* {
	margin: 0;
	padding: 0;
    font-family: "Cormorant Garamond", serif;
    font-weight: 400;
    font-style: normal;
}

html {
    font-size: 20px;
    line-height: 1.5;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
	background: none;
}

div.contain {
    contain: layout;
}

h1 {
	margin: 1rem 0;
	font-size: 3rem;
    font-weight: 700;
    font-style: normal;
    font-family: "PT Sans Narrow", sans-serif;
}
h2 {
	font-size: 2rem;
	margin: 3rem 0 1rem;
    font-weight: 700;
    font-style: normal;
    font-family: "PT Sans Narrow", sans-serif;
}
h3 {
	font-size: 1.5rem;
	margin: 1rem 0;
    font-weight: 700;
    font-style: normal;
    font-family: "PT Sans Narrow", sans-serif;
}
p {
	font-size: 1rem;
    margin: 1rem 0;
    font-family: "Cormorant Garamond", serif;
}
small {
    font-size: .75rem;
}
ul {
    list-style: none;
}
img.logo {
    display: block;
    height: 32px;
    padding: 16px 0;
}
section, header {
    position: relative;
}
section > h2:first-of-type {
    margin-top: 1rem;
}
section.hero {
    background: #5871B2;
    background: radial-gradient(at center, #5871B2, #183D9C);
    background-size: cover;
    background-position: bottom;
    max-width: 100%;
}
section.intro-section {
    background: #5871B2;
    background: radial-gradient(at center, #5871B2, #183D9C);
}
section.hero h1, section.hero p {
    color: #fbfcfc;
}
section.hero h1 {
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 1rem;
}
section.hero p {
    font-size: 1.25rem;
}
section img {
    display: block;
    width: 100%;
    margin: 1.25rem auto;
}
section img.profile {
    width: 300px;
    float: right;
    margin: 0 0 0 30px;
    border-radius: 30px;
}
.clearfix::after {
  content: "";
  clear: both;
  display: table;
}
section.featured-work div.flex-container {
    display: flex;
    flex-direction: row;
    gap: 16px;
}
section.featured-work div.flex-container + div.flex-container {
    margin-top: 16px;
}
a.work-item {
    flex-grow: 1;
}
div.work-item-styles {
    padding: 32px;
}
a.work-item:hover div.work-item-styles {
    box-shadow: 0px 5px 15px #173C9C;
    cursor: pointer;
    color: #173C9C;
}
div.work-item-styles h3, a.work-item {
    text-align: center;
    margin-top: 0px;
    text-decoration: none;
    color: #132047;
}
a.work-item:hover div.work-item-styles h3 {
    color: #173C9C;
}
div.work-item-styles img {
    width: 80%;
    margin-bottom: 0px;
}
header, section, footer, div.container {
    display: block;
    margin: 0 auto;
    padding: 16px;
    max-width: 800px;
}
form {
    display: block;
    width: 100%;
    background: transparent;
    background: -webkit-radial-gradient(center, circle cover, rgba(255, 255, 255, 0) 50%, rgba(217, 236, 255, 255) 100%);
    background: -moz-radial-gradient(center, ellipse cover, rgba(255, 255, 255, 0) 50%, rgba(217, 236, 255, 255) 100%); 
    background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(50%, rgba(255, 255, 255, 0)), color-stop(100%, rgba(217, 236, 255, 255))); 
    background: -webkit-radial-gradient(center, ellipse cover, rgba(255, 255, 255, 0) 50%, rgba(217, 236, 255, 255) 100%); 
    background: -o-radial-gradient(center, ellipse cover, rgba(255, 255, 255, 0) 50%, rgba(217, 236, 255, 255) 100%); 
    background: -ms-radial-gradient(center, ellipse cover, rgba(255, 255, 255, 0) 50%, rgba(217, 236, 255, 255) 100%); 
    background: radial-gradient(center, ellipse cover, rgba(255, 255, 255, 0) 50%, rgba(217, 236, 255, 255) 100%); 
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#ffd9ecff',GradientType=1 );
    padding: 32px;
    box-sizing: border-box;
    margin: 16px 0px;
    border-radius: 30px;
}
div.form-input {
    display: block;
    margin: 16px 0px;
}
div.form-input:first-child {
    margin-top: 0px;
}
div.form-input:last-child {
    margin-bottom: 0px;
}
label, input, textarea {
    display: block;
    font-size: 1rem;
}
label {
    font-weight: 500;
    font-family: "PT Sans Narrow", sans-serif;
}
input, textarea {
    display: block;
    box-sizing: border-box;
    margin: 4px 0;
    border: 1px solid #b3bfde;
    box-shadow: inset 0 1px 3px #173C9C;
    border-radius: 15px;
    padding: 12px 20px;
    width: 100%;
    max-width: 350px;
}
span.input-error {
    color: #941900;
    display: none;
}
button, input[type="submit"] {
    border: 0px none #000000;
    padding: 8px 16px;
    background: #132047;
    color: #ffffff;
    border-radius: 15px;
    font-size: 20px;
    line-height: 29px;
    min-width: 100px;
    font-weight: 500;
    text-transform: uppercase;
    font-family: "PT Sans Narrow", sans-serif;
}
a.button-link {
    margin: 1rem 0;
    display: block;
}
button {
    font-weight: 500;
    text-transform: uppercase;
    font-family: "PT Sans Narrow", sans-serif;
}
button:hover, input[type="submit"]:hover {
    background: #284E9F;
    cursor: pointer;
}
#contact-page #nav-contact li, #home-page #nav-home li, #portfolio-page #nav-portfolio li {
    color: #173c9c;
    text-decoration: underline;
    font-weight: 800;
}

nav ul a:hover {
    background: transparent;
    background: -webkit-radial-gradient(center, circle cover, rgba(255, 255, 255, 0) 50%, rgba(217, 236, 255, 255) 100%);
    background: -moz-radial-gradient(center, ellipse cover, rgba(255, 255, 255, 0) 50%, rgba(217, 236, 255, 255) 100%); 
    background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(50%, rgba(255, 255, 255, 0)), color-stop(100%, rgba(217, 236, 255, 255))); 
    background: -webkit-radial-gradient(center, ellipse cover, rgba(255, 255, 255, 0) 50%, rgba(217, 236, 255, 255) 100%); 
    background: -o-radial-gradient(center, ellipse cover, rgba(255, 255, 255, 0) 50%, rgba(217, 236, 255, 255) 100%); 
    background: -ms-radial-gradient(center, ellipse cover, rgba(255, 255, 255, 0) 50%, rgba(217, 236, 255, 255) 100%); 
    background: radial-gradient(center, ellipse cover, rgba(255, 255, 255, 0) 50%, rgba(217, 236, 255, 255) 100%); 
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#ffd9ecff',GradientType=1 );
}

#contact-page #nav-contact:hover, #home-page #nav-home:hover, #portfolio-page #nav-portfolio:hover {
    background: none;
    cursor: default;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0 20px; /* Optional padding for spacing */
}

header .logo {
    max-height: 60px; /* Adjust logo size as needed */  
}

nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 16px;
    margin-bottom: 16px;
    order: 2;
}

nav ul {
    display: flex;
    flex-direction: row;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul a {
    z-index: 4;
    text-decoration: none;
    color: #132047;
    padding: 8px 16px;
    border-radius: 8px;
}

nav ul li {
    font-size: .85rem;
    margin: 0;
    text-transform: uppercase;
}


.abubble {
    position: relative;
    top: 50px;
    right: -60px;
    background-color: transparent;
    width: 150px;
    height: 150px;
    z-index: 2;
}

.decobubble {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100%; /* Ensures it grows to the page's height */
  height: auto;     /* Allows it to adjust dynamically if content grows */
  box-sizing: border-box;
  z-index: 0;   
}

.innerbubble {
    cursor: pointer;
    position: absolute;
    top:0;
    left:0;
    width: 130px;
    height: 130px;
    z-index: 3;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    background: transparent;
    background: -webkit-radial-gradient(center, circle cover, rgba(255, 255, 255, 0) 50%, rgba(217, 236, 255, 255) 100%);
    background: -moz-radial-gradient(center, ellipse cover, rgba(255, 255, 255, 0) 50%, rgba(217, 236, 255, 255) 100%); 
    background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(50%, rgba(255, 255, 255, 0)), color-stop(100%, rgba(217, 236, 255, 255))); 
    background: -webkit-radial-gradient(center, ellipse cover, rgba(255, 255, 255, 0) 50%, rgba(217, 236, 255, 255) 100%); 
    background: -o-radial-gradient(center, ellipse cover, rgba(255, 255, 255, 0) 50%, rgba(217, 236, 255, 255) 100%); 
    background: -ms-radial-gradient(center, ellipse cover, rgba(255, 255, 255, 0) 50%, rgba(217, 236, 255, 255) 100%); 
    background: radial-gradient(center, ellipse cover, rgba(255, 255, 255, 0) 50%, rgba(217, 236, 255, 255) 100%); 
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#ffd9ecff',GradientType=1 );
    animation: bubbleFloat linear 5s infinite;
}  

@keyframes pulseOpacity {
    0% { opacity: 0; }
    25% { opacity: 0; }
    50% { opacity: 0.7; }
    75% { opacity: 0; }
    100% { opacity: 0; }
}

.innerbubble div.popme {
    display: block;
    line-height: 130px;
    text-align: center;
    width: 130px;
    font-family: "PT Sans Narrow", sans-serif;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 1.5rem;
    color: #b3bfde;
    opacity: 0; /* Initial state */
    
    /* Apply animation */
    animation: pulseOpacity 8s ease-in-out infinite;
}

.secondarybubble {
    cursor: default;
    position: absolute;
    top:0;
    right:0;
    width: 75px;
    height: 75px;
    z-index: 2;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    background: transparent;
    background: -webkit-radial-gradient(center, circle cover, rgba(255, 255, 255, 0) 50%, rgba(217, 236, 255, 255) 100%);
    background: -moz-radial-gradient(center, ellipse cover, rgba(255, 255, 255, 0) 50%, rgba(217, 236, 255, 255) 100%); 
    background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(50%, rgba(255, 255, 255, 0)), color-stop(100%, rgba(217, 236, 255, 255))); 
    background: -webkit-radial-gradient(center, ellipse cover, rgba(255, 255, 255, 0) 50%, rgba(217, 236, 255, 255) 100%); 
    background: -o-radial-gradient(center, ellipse cover, rgba(255, 255, 255, 0) 50%, rgba(217, 236, 255, 255) 100%); 
    background: -ms-radial-gradient(center, ellipse cover, rgba(255, 255, 255, 0) 50%, rgba(217, 236, 255, 255) 100%); 
    background: radial-gradient(center, ellipse cover, rgba(255, 255, 255, 0) 50%, rgba(217, 236, 255, 255) 100%); 
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#ffd9ecff',GradientType=1 );
    animation: secondaryBubbleMove ease-in-out 3s infinite;
}  
.tertiarybubble {
    cursor: default;
    position: absolute;
    bottom:0;
    left:0;
    width: 40px;
    height: 40px;
    z-index: 2;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    background: transparent;
    background: -webkit-radial-gradient(center, circle cover, rgba(255, 255, 255, 0) 50%, rgba(217, 236, 255, 255) 100%);
    background: -moz-radial-gradient(center, ellipse cover, rgba(255, 255, 255, 0) 50%, rgba(217, 236, 255, 255) 100%); 
    background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(50%, rgba(255, 255, 255, 0)), color-stop(100%, rgba(217, 236, 255, 255))); 
    background: -webkit-radial-gradient(center, ellipse cover, rgba(255, 255, 255, 0) 50%, rgba(217, 236, 255, 255) 100%); 
    background: -o-radial-gradient(center, ellipse cover, rgba(255, 255, 255, 0) 50%, rgba(217, 236, 255, 255) 100%); 
    background: -ms-radial-gradient(center, ellipse cover, rgba(255, 255, 255, 0) 50%, rgba(217, 236, 255, 255) 100%); 
    background: radial-gradient(center, ellipse cover, rgba(255, 255, 255, 0) 50%, rgba(217, 236, 255, 255) 100%); 
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#ffd9ecff',GradientType=1 );
    animation: tertiaryBubbleMove ease-in-out 4s infinite;
}  
.bubblebackground {    
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 30px;
    background: transparent;
    background: -webkit-radial-gradient(center, circle cover, rgba(255, 255, 255, 0) 50%, rgba(217, 236, 255, 255) 100%);
    background: -moz-radial-gradient(center, ellipse cover, rgba(255, 255, 255, 0) 50%, rgba(217, 236, 255, 255) 100%); 
    background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(50%, rgba(255, 255, 255, 0)), color-stop(100%, rgba(217, 236, 255, 255))); 
    background: -webkit-radial-gradient(center, ellipse cover, rgba(255, 255, 255, 0) 50%, rgba(217, 236, 255, 255) 100%); 
    background: -o-radial-gradient(center, ellipse cover, rgba(255, 255, 255, 0) 50%, rgba(217, 236, 255, 255) 100%); 
    background: -ms-radial-gradient(center, ellipse cover, rgba(255, 255, 255, 0) 50%, rgba(217, 236, 255, 255) 100%); 
    background: radial-gradient(center, ellipse cover, rgba(255, 255, 255, 0) 50%, rgba(217, 236, 255, 255) 100%); 
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#ffd9ecff',GradientType=1 );
}

@keyframes secondaryBubbleMove {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-10px, -20px);
  }
}

@keyframes tertiaryBubbleMove {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(20px, 15px);
  }
}

@keyframes bubbleFloat {
  0% {
    transform: translate(0px, 0px);
  }
  6.25% {
    transform: translate(2px, -9px);
  }
  12.5% {
    transform: translate(5px, -10px);
  }
  18.75% {
    transform: translate(7px, -9px);
  }
  25% {
    transform: translate(10px, -7px);
  }
  31.25% {
    transform: translate(12px, -5px);
  }
  37.5% {
    transform: translate(13px, -2px);
  }
  43.75% {
    transform: translate(14px, 0px);
  }
  50% {
    transform: translate(13px, 2px);
  }
  56.25% {
    transform: translate(12px, 5px);
  }
  62.5% {
    transform: translate(10px, 7px);
  }
  68.75% {
    transform: translate(7px, 9px);
  }
  75% {
    transform: translate(5px, 10px);
  }
  81.25% {
    transform: translate(2px, 9px);
  }
  87.5% {
    transform: translate(0px, 7px);
  }
  93.75% {
    transform: translate(-2px, 5px);
  }
  100% {
    transform: translate(0px, 0px);
  }
}

#bubble-1 {
    position: absolute;
    left: -175px;
    top: 40%;
}
#bubble-2 {
    position: absolute;
    right: -75px;
    bottom: -60px;
}
#bubble-3 {
    position: absolute;
    right: -100px;
    bottom: -150px;
}
#bubble-4 {
    position: absolute;
    right: -125px;
    top: 500px;
}
#bubble-5 {
    position: absolute;
    left: -130px;
    top: 50%;
}

.modal {
    position: absolute;
    top: 0px;
    right: 10px;
    width: 300px;
    padding: 20px 40px;
    z-index: 1000;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 30px;
    background: transparent;
    background: -webkit-radial-gradient(center, circle cover, rgba(255, 255, 255, 0.95) 50%, rgba(217, 236, 255, 255) 100%);
    background: -moz-radial-gradient(center, ellipse cover, rgba(255, 255, 255, 0.95) 50%, rgba(217, 236, 255, 255) 100%); 
    background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(50%, rgba(255, 255, 255, 0.95)), color-stop(100%, rgba(217, 236, 255, 255))); 
    background: -webkit-radial-gradient(center, ellipse cover, rgba(255, 255, 255, 0.95) 50%, rgba(217, 236, 255, 255) 100%); 
    background: -o-radial-gradient(center, ellipse cover, rgba(255, 255, 255, 0.95) 50%, rgba(217, 236, 255, 255) 100%); 
    background: -ms-radial-gradient(center, ellipse cover, rgba(255, 255, 255, 0.95) 50%, rgba(217, 236, 255, 255) 100%); 
    background: radial-gradient(center, ellipse cover, rgba(255, 255, 255, 0.95) 50%, rgba(217, 236, 255, 255) 100%); 
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e0ffffff', endColorstr='#ffd9ecff',GradientType=1 );
}
.left-bubble .modal {
    right: auto;
    left: 10px;
}
.bottom-bubble .modal {
    top: auto;
    bottom: 10px;
}
.modal h2 {
    margin: 1rem 0 0.5rem;
    line-height: 1;
    color: #173C9C;
}
.modal p {
    margin: 0.5rem 0 1rem;
}
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    width: 24px;
    height: 24px;
}

@media (max-width: 980px) {
    .innerbubble {
        display: none;
    }
}

@media (max-width: 636px) {
    header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        padding: 0 16px;
    }
    nav {
        width: 100%;
    }
    
    nav ul {
        justify-content: space-around;
        width: 100%;
    }
    
    nav ul a {
        flex: 1;
        text-align: center;
    }
    header a:first-of-type {
        display: block;
        margin: 0 auto;
    } 
    section.hero h1 {
        font-size: 60px;
        line-height: 80px;
    }
    section.hero p {
        font-size: 20px;
        line-height: 26px;
    }
    section img.profile {
        width: 45%;
        float: right;
        margin: 0 0 30px 30px;
        border-radius: 30px;
    }
    section.featured-work div.flex-container {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;  
        gap: auto;
    }
    a.work-item {
        flex: 1 0 100%;
    }
    input, textarea {
        max-width: none;
    }
    .abubble {
        display: none;
    } 
}
