/* 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; }
}
.gradient-text-reflection {
    display: block;
    margin-top: -10px;
    font-size: 72px;
    font-weight: bold;
    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;
    transform: scaleY(-1);
    opacity: 0.25;
    pointer-events: none;
    user-select: none;
    animation: gradient-text 6s ease-in-out infinite;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, transparent 80%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, transparent 80%);
}
.reflection-animate {
    opacity: 0;
    transform: scaleX(0.2);
    animation: reflectionExpand 0.7s 0.55s cubic-bezier(.4,1.6,.4,1) forwards;
    transform-origin: center top;
}
@keyframes reflectionExpand {
    0% { opacity: 0; transform: scaleX(0.1);}
    100% { opacity: 1; transform: scaleX(1);}
}
.reflection-glow {
    width: 80%;
    height: 32px;
    margin: -70px auto 0 auto;
    background: linear-gradient(to bottom, rgba(153,214,240,0.18) 0%, rgba(0,113,188,0.10) 60%, transparent 100%);
    filter: blur(2px);
    border-radius: 50%;
    position: relative;
    z-index: 1;
    box-shadow: 0 18px 32px 0 rgba(0,0,0,0.10);
    pointer-events: none;
}

/* 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;
}
.flex-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    max-width: 1000px;
    margin: 0 auto;
    gap: 60px;
}

.feature-col {
    flex: 1 1 400px;
    max-width: 500px;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin-right: 0;
}
.feature-img-wrap {
    width: 900px;
    height: 400px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-top: 0;
    padding-top: 0;
    flex-direction: column;
}

.feature-title {
    font-size: 2rem;
    text-align: center;
    font-weight: bold;
}
.feature-desc {
    font-size: 1.2rem;
    text-align: center;
    margin-top: 24px;
    color: #787878;
    padding: 0 6vw;
    line-height: 1.5;
}
@media (max-width: 1100px) {
    .flex-row {
        flex-direction: column;
        gap: 40px;
        max-width: 98vw;
    }
    .feature-col {
        max-width: 98vw;
        min-width: 0;
        margin: 0 auto;
    }
    .feature-img-wrap {
        max-width: 98vw;
    }
}
@media (max-width: 700px) {
    .feature-title {
        font-size: 1.2rem;
    }
    .feature-desc {
        font-size: 1rem;
        padding: 0 4vw;
    }
    .feature-img-wrap img {
        max-width: 90vw;
    }
}

/* 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;
}
.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);
}
@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 Button and Popup */
#contact-us-btn {
    position: fixed;
    top: 40px;
    right: 40px;
    background: linear-gradient(90deg, #99D6F0 20%, #0071BC 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 18px 36px;
    font-size: 1.3rem;
    font-weight: bold;
    box-shadow: 0 4px 18px rgba(0,0,0,0.10);
    cursor: pointer;
    transition: background 0.2s;
    z-index: 1000;
    transform: scaleX(0.2);
    opacity: 0;
    animation: contactBtnExpand 0.7s cubic-bezier(.4,1.6,.4,1) 0.3s forwards;
    transform-origin: center;
}
@keyframes contactBtnExpand {
    0% { opacity: 0; transform: scaleX(0.2);}
    60% { opacity: 1; transform: scaleX(1.08);}
    80% { opacity: 1; transform: scaleX(0.96);}
    100% { opacity: 1; transform: scaleX(1);}
}
@media (max-width: 600px) {
    #contact-us-btn {
        top: 16px;
        right: 8px;
        padding: 12px 18px;
        font-size: 1rem;
    }
}
#contact-us-btn:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 12px 32px rgba(0,113,188,0.22);
    transition: transform 0.32s cubic-bezier(.4,1.4,.4,1), box-shadow 0.32s cubic-bezier(.4,1.4,.4,1);
}
#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);}
}

