/* General */
body {
    background-color: #f4f4f4;
    font-family: 'Comfortaa', sans-serif;
}
#company-logo {
    width: 750px;
    height: auto;
    margin: 20px auto;
    display: block;
    padding-top: 100px;
}

/* Main Section */
.main-section {
    position: relative;
    overflow: hidden;
    min-height: 500px;
}
.scroll-indicator-container {
    position: absolute;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    z-index: 3;
}
#scroll-down-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
}
#scroll-down-indicator span {
    font-size: 20px;
    color: #0071BC;
    margin-bottom: 8px;
}
#scroll-down-indicator svg {
    display: block;
    animation: bounce-arrow 1.4s infinite;
}
@keyframes bounce-arrow {
    0%, 100% { transform: translateY(0);}
    30% { transform: translateY(10px);}
    50% { transform: translateY(0);}
    70% { transform: translateY(5px);}
}
#scroll-down-indicator.hide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}
.main-content-row {
    align-items: center;
    justify-content: flex-end;
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
}
.main-content-spacer {
    flex: 1;
}
.main-content-center {
    justify-content: center;
    width: auto;
    display: flex;
    position: relative;
    z-index: 2;
}
.main-content-text {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.gradient-text-main {
    font-size: 72px;
    text-align: center;
    color: #0071BC; /* fallback for browsers that don't support background-clip:text */
    background: linear-gradient(90deg, #99D6F0 20%, #0071BC 100%);
    background-size: 200% 100%;
    background-position: 0% 50%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: brightness(1.05) drop-shadow(0 2px 12px #99D6F0AA);
    letter-spacing: -2px;
    font-weight: bold;
    animation: gradient-text 6s ease-in-out infinite;
    margin-left: 200px;
    margin-right: 200px;
    position: relative;
    /* Prevent overflow on mobile */
    word-break: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 900px) {
    .gradient-text-main {
        font-size: 2.2rem;
        margin-left: 0;
        margin-right: 0;
    }
}
@media (max-width: 500px) {
    .gradient-text-main {
        font-size: 1.3rem;
    }
}
@keyframes gradient-text {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.fade-in-text {
    opacity: 0;
    animation: fadeInText 0.3s ease-in 0.2s forwards;
    transition: opacity 0.5s;
    display: inline-block;
}
@keyframes fadeInText {
    to { opacity: 1; }
}
/* reflection styles removed (not used in current markup) */

/* Fade-in sections */
.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
    will-change: opacity, transform;
}
.fade-in-section.visible {
    opacity: 1;
    transform: none;
}

/* Gradient Section */
.gradient-section {
    background: linear-gradient(180deg, #99D6F0 0%, #eaf6fb 40%, #f4f4f4);
    padding: 50px 0;
    position: relative;
    border-top: 4px solid #99D6F0;
    margin-top: 80px;
}

.feature-title {
    font-size: 2.5rem;
    margin-top: 0; /* move title up, right under image */
    text-align: center;
}
.feature-desc {
    font-size: 1.5rem;
    text-align: center;
    margin-top: 120px;
    color: #787878;
    padding-top: 0px;
    padding-left: 10%;
    padding-right: 10%;
}
@media (max-width: 1100px) {
    .flex-row {
        flex-direction: column !important;
        gap: 70px !important;
    }
}
@media (max-width: 700px) {
    .feature-col {
        max-width: 95vw !important;
        min-width: 0 !important;
    }
    .feature-title {
        font-size: 1.5rem !important;
    }
    .feature-desc {
        font-size: 1rem !important;
    }
}

/* Divider */
.section-divider {
    border: none;
    border-top: 2px solid #e0e0e0;
    margin: 60px 0 40px 0;
    width: 100%;
}

/* Team Section */
.team-section {
    padding: 50px;
    position: relative;
    z-index: 1;
    margin-top: 50px;
}
.team-title {
    font-size: 36px;
    text-align: center;
}
.team-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 75px;
    flex-wrap: wrap;
    padding-bottom: 75px;
}
.team-member {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 24px 16px 16px 16px;
    width: 300px;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    box-sizing: border-box;
}
.team-img {
    width: 275px;
    height: 275px;
    border-radius: 25%;
    object-fit: cover;
    margin-bottom: 16px;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}
.name {
    font-size: 18px;
    margin: 8px 0 0 0;
}
.role {
    font-size: 16px;
    margin: 0;
    color: #787878;
}
.team-member .bio-popup {
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    display: block;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #222;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.32);
    padding: 24px;
    width: 260px;
    z-index: 10;
    font-size: 16px;
    min-height: 120px;
    max-width: 90vw;
    box-sizing: border-box;
    text-align: center; /* Center all content in the popup */
}

.team-member .bio-popup b {
    display: block;
    margin-bottom: 8px; /* Add some space below the name */
}

.team-member .bio-popup .role {
    display: block;
    margin-top: 8px; /* Add some space above the role */
    margin-bottom: 0;
}

.team-member .bio-popup hr {
    margin: 12px 0; /* Add consistent spacing around the line */
    border: none;
    border-top: 1px solid #e0e0e0;
}
.team-member:hover .bio-popup,
.team-member:focus-within .bio-popup {
    pointer-events: auto;
    opacity: 1;
    animation: popup-bounce 0.4s cubic-bezier(.4,2,.6,1);
}
.name-link{
    color: #0071BC;
    text-decoration: none;
}
.name-link:hover {
    color: #99D6F0;
    text-decoration: underline; /* adds underline on hover */
}
@keyframes popup-bounce {
    0%   { transform: translateX(-50%) scale(0.95);}
    60%  { transform: translateX(-50%) scale(1.05);}
    80%  { transform: translateX(-50%) scale(0.98);}
    100% { transform: translateX(-50%) scale(1);}
}
@media (max-width: 1200px) {
    .team-row {
        gap: 24px;
    }
    .team-member {
        width: 220px;
        min-height: 340px;
        padding: 16px 8px 8px 8px;
    }
    .team-img {
        width: 140px;
        height: 140px;
    }
    .team-member .bio-popup {
        width: 180px;
        font-size: 14px;
        padding: 12px;
    }
}
@media (max-width: 800px) {
    .team-row {
        flex-direction: column;
        align-items: center;
    }
    .team-member {
        width: 90vw;
        min-width: 180px;
        max-width: 340px;
    }
}

@media (max-width: 900px) {
    #company-logo {
        width: 70vw;
        max-width: 350px;
        padding-top: 40px;
    }
}

@media (max-width: 600px) {
    #company-logo {
        width: 60vw;
        max-width: 280px;
        padding-top: 30px;
    }
}

@media (max-width: 400px) {
    #company-logo {
        width: 55vw;
        max-width: 220px;
        padding-top: 20px;
    }
}

/* contact-us-btn styles removed (button no longer in markup) */
#contact-popup-overlay {
    display: none;
    position: fixed;
    top:0;
    left:0;
    width:100vw;
    height:100vh;
    background:rgba(0,0,0,0.25);
    z-index: 1001;
    align-items: center;
    justify-content: center;
    animation: fadeInOverlay 0.2s;
}
#contact-popup-overlay.active {
    display: flex !important;
    animation: fadeInOverlay 0.2s;
}
@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}
#contact-popup {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    padding: 40px 30px;
    font-family: 'Comfortaa';
    max-width: 95vw;
    width: 400px;
    position: relative;
    animation: popupAppear 0.25s cubic-bezier(.4,2,.6,1);
}
@keyframes popupAppear {
    from { transform: scale(0.96) translateY(30px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}
#close-contact-popup {
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #0071BC;
    cursor: pointer;
}
#contact-popup h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 18px;
    color: #0071BC;
}
#contact-popup p {
    text-align: center;
    color: #555;
    margin-bottom: 32px;
}
#contact-popup form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
#contact-popup label {
    font-size: 1.1rem;
}
#contact-popup input,
#contact-popup textarea {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #b0c4d6;
    font-size: 1rem;
}
#contact-popup button[type="submit"] {
    margin-top: 10px;
    background: linear-gradient(90deg, #99D6F0 20%, #0071BC 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 0;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}
@media (max-width: 600px) {
    #contact-popup {
        width: 98vw !important;
        padding: 18px 4vw !important;
    }
}

/* Footer */
footer {
    background-color: #dddddd;
    padding-bottom: 20px;
    padding-top: 50px;
    font-family: 'Comfortaa';
    position: relative;
    z-index: 1;
    margin-top: 50px;
    text-align: center;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.1);
}
.socials {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 10px;
    font-size:32px;
}
.socials img {
    width:75px;
    height:75px;
}
.bounce-link {
    display: inline-block;
    transition: transform 0.2s;
}
.bounce-link:hover {
    animation: bounce 0.5s;
}
@keyframes bounce {
    0%   { transform: translateY(0);}
    30%  { transform: translateY(-6px);}
    50%  { transform: translateY(0);}
    70%  { transform: translateY(-3px);}
    100% { transform: translateY(0);}
}

/* Responsive adjustments for mobile devices */
@media (max-width: 900px) {
    #company-logo {
        width: 90vw;
        max-width: 400px;
        padding-top: 40px;
    }
    .gradient-text-main {
        font-size: 2.2rem;
        margin-left: 0;
        margin-right: 0;
    }
    .main-content-row {
        flex-direction: column;
        align-items: center;
    }
    .main-content-spacer {
        display: none;
    }
    .main-content-center {
        width: 100%;
    }
    /* .feature-img-wrap removed (not used) */
    .feature-title {
        font-size: 1.3rem;
    }
    .feature-desc {
        font-size: 1rem;
        margin-top: 40px;
        padding-left: 5vw;
        padding-right: 5vw;
    }
    .team-section {
        padding: 20px 0;
    }
    .team-row {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }
    .team-member {
        width: 90vw;
        min-width: unset;
        max-width: 340px;
        padding: 12px 4vw;
    }
    .team-img {
        width: 120px;
        height: 120px;
    }
    #contact-popup {
        width: 98vw !important;
        padding: 18px 4vw !important;
    }
    /* responsive rules for removed #contact-us-btn removed */
    .socials img {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 500px) {
    .gradient-text-main {
        font-size: 1.3rem;
    }
    /* .feature-img-wrap removed (not used) */
    .team-img {
        width: 80px;
        height: 80px;
    }
}

/* Navigator dropdown (replaces contact button) */
.nav-container {
    position: fixed;
    top: 40px;
    right: 40px;
    z-index: 1000;
}
.nav-container button#nav-btn {
    background: linear-gradient(90deg, #99D6F0 20%, #0071BC 100%);
    color: #fff;
    border: none;
    border-radius: 56px;
    padding: 16px 26px; /* larger clickable area */
    font-size: 1.15rem; /* slightly bigger text */
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 26px rgba(0,0,0,0.12);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.nav-container button#nav-btn:focus {
    outline: 3px solid rgba(153,214,240,0.45);
}
.nav-container ul#nav-dropdown {
    display: none;
    position: absolute;
    top: 56px;
    right: 0;
    background: #fff;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    min-width: 180px;
}
.nav-container ul#nav-dropdown[aria-hidden="false"],
.nav-container ul#nav-dropdown.show {
    display: block;
}
.nav-container ul#nav-dropdown li {
    padding: 0;
}
.nav-container ul#nav-dropdown a,
.nav-container ul#nav-dropdown button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 18px;
    background: none;
    border: none;
    color: #222;
    text-decoration: none;
    font-size: 1.05rem;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

/* Hover: make the text itself a gradient from light blue to white */
.nav-container ul#nav-dropdown a:hover,
.nav-container ul#nav-dropdown button:hover {
    /* light hover background */
    background: linear-gradient(90deg, #f7fbff, #eef9ff);
    /* apply a gradient to the text itself */
    color: transparent;
    background-image: linear-gradient(90deg, #99D6F0 0%, #ffffff 120%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: background 0.25s ease, transform 0.15s ease;
}

@media (max-width: 600px) {
    .nav-container { top: 12px; right: 12px; }
    .nav-container button#nav-btn { padding: 10px 14px; font-size: 0.95rem; }
}

/* Hamburger icon styling (uses .hamburger and .hamburger-inner) */
.nav-container button#nav-btn.hamburger {
    width: 64px;
    height: 48px;
    padding: 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.nav-container .hamburger-box {
    width: 30px;
    height: 18px;
    display: inline-block;
    position: relative;
}
.nav-container .hamburger-inner {
    background-color: #fff;
    position: absolute;
    width: 100%;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    transition: background-color 0.15s ease, transform 0.22s cubic-bezier(.2,.9,.2,1);
}
.nav-container .hamburger-inner::before,
.nav-container .hamburger-inner::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: transform 0.22s cubic-bezier(.2,.9,.2,1), opacity 0.12s ease;
}
.nav-container .hamburger-inner::before { top: -7px; }
.nav-container .hamburger-inner::after  { top: 7px; }

.nav-container button#nav-btn.hamburger:hover,
.nav-container button#nav-btn.hamburger:focus {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0,113,188,0.12);
}

/* Open state toggles to X */
@keyframes hamburger-pop {
    0% { transform: scale(0.98) rotate(0deg); }
    50% { transform: scale(1.06) rotate(6deg); }
    100% { transform: scale(1) rotate(45deg); }
}

.nav-container button#nav-btn.hamburger.open .hamburger-inner {
    transform: rotate(45deg);
    animation: hamburger-pop 220ms cubic-bezier(.2,.9,.2,1) both;
}
.nav-container button#nav-btn.hamburger.open .hamburger-inner::before {
    transform: rotate(-90deg) translateX(-0.5px);
    top: 0;
}
.nav-container button#nav-btn.hamburger.open .hamburger-inner::after {
    opacity: 0;
    transform: translateX(20px);
}

/* Smooth reverse animation when removing .open (closing) */
.nav-container button#nav-btn.hamburger .hamburger-inner {
    will-change: transform;
}