* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Syne';
}

html,
body {
    height: 100%;
    width: 100%;
}

html {
    scroll-behavior: smooth;
}

/* Hide scrollbar for all elements */
* {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
*::-webkit-scrollbar {
    display: none;
}

/* Ensure body still scrolls smoothly */
body {
    overflow-y: scroll;
}

::selection {
  background: #FCA311;
  color: #00246B; /* Optional: changes the text color within the selection */
}


#mobileMenu {
    display: none;
}

/* Close button styling */
#closeBtn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: #00246B;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
}

#minicircle {
    transition: cubic-bezier(0.19, 1, 0.22, 1) 0.6s;
    background-color: #fff;
    height: 15px;
    width: 15px;
    border-radius: 50%;
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

#minicircle.enlarged {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-transform: uppercase;
    mix-blend-mode: multiply;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

#minicircle span {
    color: #00246B;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#minicircle.enlarged span {
    opacity: 1;
}


#main {
    width: 100%;
    background-color: #CADCFC;
}

#landingPage {
    width: 100%;
    height: 100vh;
    background: linear-gradient(180deg, #06243a 0%, #001832 100%);
    position: relative;
    padding-top: 40px;
    /* Add padding to account for fixed nav */
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#particles-js .particles-js-canvas-el {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* ✅ keep pointer-events enabled for mousemove */
    pointer-events: auto;
    z-index: 0;
}

#landingMain,
#landingfooter {
    position: relative;
    z-index: 1;
}


#nav {
    color: #fff;
    padding: 10px 35px;
    position: fixed;
    top: 20px;
    /* spacing from the top */
    left: 50%;
    transform: translateX(-50%);
    /* center it */
    z-index: 1000;

    /* Capsule Shape */
    width: 60vw;
    /* responsive width */
    border-radius: 50px;

    /* Dark Glass Effect */
    background: rgba(0, 24, 50, 0.6);
    /* dark glass */
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* faint border */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);

    /* Smooth transition */
    transition: all 0.3s ease;
}

/* Nav content wrapper */
.nav-content {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Navbar sections */
.nav-left {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
}

.nav-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Navigation links */
.nav-right .nav-link {
    color: #cadcfc !important;
    /* soft blue for contrast */
    font-family: 'Syne', sans-serif !important;
    font-size: 1vw;
    font-weight: 300;
    text-transform: capitalize !important;
    letter-spacing: 1px;
    padding: 0.1rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-right .nav-link:hover {
    background: rgba(252, 162, 17, 0.15);
    /* soft amber glow */
    transform: translateY(-2px);
}

/* Company title */
.company-title {
    color: #FCA311 !important;
    /* golden accent */
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 1.5rem;
    font-weight: 400;
    text-decoration: none;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* Company logo */
.company-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.company-logo:hover {
    transform: scale(1.1);
}

#nav:hover {
    background: rgba(0, 24, 50, 0.75);
    /* slightly stronger on hover */
    box-shadow: 0 6px 28px rgba(0, 36, 107, 0.5);
    /* deep glowing shadow */
}

/* Global nav links */
#nav a {
    font-weight: 500;
    color: #cadcfc;
    /* light blue for visibility */
    font-family: 'Bebas Neue';
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
}


#landingMain {
    height: 80vh;
    width: 80vw;
    color: #CADCFC;
    padding-top: 9vw;
    padding-left: 33px;
    text-transform: uppercase;
    line-height: 0.9;
    margin-top: var(--content-top-margin);
}

#landingMain h1 {
    width: 100%;
    font-size: clamp(2rem, 6vw, 8rem);
    opacity: none;
    line-height: 0.85;
}

.hero-heading {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4.5vw;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.sacramento {
    text-transform: capitalize;
    font-family: 'Sacramento', cursive;
    letter-spacing: 0;
    font-size: 4vw;
    font-weight: 500;
    color: #FCA311;
}

#landingfooter {
    position: relative;
    width: 100%;
    height: 50px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding-right: 3vw;
}

.footercontent {
    color: #CADCFC;
    display: flex;
    gap: 2vw;
}

.time{
    font-size: 1.2rem;
    color: #FCA311;
}

.bounding {
    overflow: hidden;
    display: inline-block;
}

.bounding-elem {
    display: block;
    transform: translateY(100%);
}

#landingMain .bounding {
    display: block;
}

.footer-link {
    color: #CADCFC;
    font-size: 1.2rem;
    font-weight: 200;
    text-decoration: none;
    text-transform: uppercase;
    display: inline-block;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

#infopage {
    height: 100vh;
    background: linear-gradient(180deg, #001832 100%, #00246b 0%);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1vh;
}

#supportedBy {
    width: 100%;
    min-height: 20vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    flex-direction: column;
    position: relative;
}

.supporth1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 3vw, 6rem);
    color: #f99e0c;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: 8rem;
    position: relative;
}

.supporth1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 10px;
    width: 100%;
    height: 2px;
    /* background-color: #CADCFC; */
    border-radius: 2px;
}

/* Slider */
.supporter-slider {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 35%, black 65%, transparent);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-image: linear-gradient(to right, transparent, black 35%, black 65%, transparent);
    mask-repeat: no-repeat;
    mask-size: 100% 100%;
}


.supporter-track {
    display: flex;
    gap: 4rem;
    /* spacing between logos */
    animation: scroll 30s linear infinite;
}

.supporter-track a {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.supporter-track img {
    max-height: 80px;
    object-fit: contain;
    /* filter: grayscale(80%) opacity(0.5); */
    /* dim by default */
    transition: filter 0.3s ease;
}

/* Infinite scroll */
@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Responsive */
@media (max-width: 1100px) {
    .supporter-track img {
        max-height: 100px;
    }
}

@media (max-width: 640px) {
    .supporter-track img {
        max-height: 80px;
    }

    .supporter-track {
        gap: 2rem;
    }
}

/* Faster supporter slider on smaller screens */
@media (max-width: 768px) {
  .supporter-track {
    /* reduce duration to speed up animation on mobile/tablet */
    animation: scroll 12s linear infinite;
  }
}

@media (max-width: 480px) {
  .supporter-track {
    /* even faster on small phones */
    animation: scroll 7s linear infinite;
  }
}


#description {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding-top: 2%;
    overflow: hidden;
}

.description-text {
    color: #CADCFC;
    font-size: 1.25vw;
    line-height: 1.4;
    text-transform: capitalize;
    font-family: 'Syne';
    letter-spacing: 1px;
    font-weight: 300;
    opacity: 0;
    transform: translateY(50px);
    width: 65%;
    margin: 0 auto;
    text-align: center;
}

@media (max-width: 768px) {
    .description-text {
        font-size: 20px;
        text-align: justify;
        width: 100%;
    }
}

.sacramentoinfo {
    font-size: 30px;
    letter-spacing: 0cm;
    text-transform: capitalize;
    font-family: 'Sacramento', cursive;
    color: #FCA311;
    font-weight: 500;
}

.splittext {
    display: block;
    overflow: hidden;
    transform-origin: bottom left;
}

#domains {
    width: 100%;
    background: linear-gradient(180deg, #001933 0%, #001832 100%);
    overflow: hidden;
}

#floatinghead {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.scroll-track {
    display: flex;
    width: max-content;
    will-change: transform;
}

.scroll-item {
    display: flex;
    align-items: center;
    gap: 2vw;
    padding: 0 1vw;
    white-space: nowrap;
}

.scroll-item h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 8vw;
    color: #CADCFC;
    font-weight: 600;
}

.fullstop {
    height: 2vw;
    width: 2vw;
    background-color: #f99e0c;
    border-radius: 50%;
}

#grid {
    height: fit-content;
    width: 100%;
}

.swiper-container {
    width: 100%;
    height: 100%;
}

.swipe {
    font-size: 1vw;
    color: ivory;
    margin: 0 0.5vw;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.swiper-wrapper {
    display: flex;
}

.swiper-slide {
    flex-shrink: 0;
    width: 20%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    color: #CADCFC;
    padding: 1vw;
    gap: 2vw;
}

.box {
    height: 14vw;
    margin: 2.5vw 0;
    border-left: 1px solid #FCA311;
}

.box h2 {
    font-size: 1.75vw;
    color: #FCA311;
    letter-spacing: 0.1vw;
    font-family: 'Bebas Neue', sans-serif;
}

.box h3 {
    width: 80%;
    font-size: 1.1vw;
    text-align: left;
}

#domaindesc {
    height: 30%;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

#domaindesc .data {
    width: 50%;
    margin-top: 2.25vw;
    margin-bottom: 5vw;
    padding: 0 1vw;
}

.data h2 {
    color: #CADCFC;
    text-align: right;
    font-size: 1vw;
}

.data h2 span {
    text-transform: capitalize;
    font-family: 'Sacramento', cursive;
    color: #f99e0c;
    font-size: 1.5vw;
}

/* Your color palette */
:root {
    --primary-dark: #00246B;
    --accent: #FCA311;
    --light-bg: #CADCFC;
    --white: #ffffff;
}


/* Our Works Section */
#our-works {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-heading {
    text-align: center;
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 40px;
    position: relative;
}

.section-heading::after {
    content: '';
    width: 60px;
    height: 4px;
    background-color: var(--primary-dark);
    display: block;
    margin: 12px auto 0;
}

#ourWorks {
    padding-top: clamp(4vw, 6vw, 8vw);
    padding-left: clamp(5vw, 8vw, 12vw);
    padding-right: clamp(5vw, 8vw, 12vw);
    width: 100%;
    height: fit-content;
    background: linear-gradient(180deg, #001832 0%, #00246b 100%);
    position: relative;
}

.ourWorks-heading {
    color: #f99e0c;
    font-family: 'Bebas Neue';
    font-size: clamp(2.5rem, 3vw, 4rem);
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 400;
    position: relative;
    letter-spacing: 2px;
}

/* 2x3 Grid Layout */
.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    height: 400px;
}

/* Work Card Styling */
.work-card {
    position: relative;
    background: rgba(0, 24, 50, 0.55);
    /* dark glassy navy */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    /* deeper shadow for contrast */
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* subtle faint border */
}

.work-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(0, 36, 107, 0.4);
    /* glowing blue hover */
    border-color: #f99e0c;
    /* red accent */
}

.work-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 100%;
}

.work-card h2 {
    color: #ffffff;
    /* white for readability */
    font-family: sans-serif;
    font-size: 1.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.work-year {
    color: #f99e0c;
    /* red accent */
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.work-category {
    color: #cadcfc;
    /* soft light blue */
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.08);
    /* dark glassy pill */
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}


/* Responsive Design */
@media (max-width: 1024px) {
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        height: auto;
        gap: 1.5rem;
    }

    .work-card {
        height: 200px;
        padding: 1.5rem;
    }

    .work-card h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .works-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 1fr);
        gap: 1rem;
        height: auto;
    }

    .work-card {
        height: 150px;
        padding: 1.25rem;
    }

    .work-card h2 {
        font-size: 1.3rem;
    }

    .work-year {
        font-size: 0.9rem;
    }

    .work-category {
        font-size: 0.8rem;
        padding: 4px 12px;
    }
}


/* Mobile Screen */
@media (max-width: 768px) {

    #nav {
        border-radius: 0;
        top: 0;
        width: 100%;
        max-width: 100%;
        padding: 10px 20px;
        background: transparent;
        box-shadow: none;
        border-bottom: 2px solid #cadcfc3f;
    }

    #nav a {
        font-size: 1.5rem;
        font-weight: 300;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: #00246B;
        font-family: 'Bebas Neue';
        text-decoration: none;
    }

    .nav-right {
        display: none;
        /* hide normal links */
    }

    .nav-right .nav-link {
        display: none;
    }

    .nav-hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 22px;
        cursor: pointer;
        z-index: 1100;
    }

    .nav-hamburger span {
        height: 3px;
        width: 100%;
        background: #CADCFC;
        border-radius: 2px;
        transition: all 0.4s ease;
    }

    .nav-hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Swap positions */
    .nav-left {
        order: 1;
        justify-content: space-between;
        width: fit-content;
    }

    .nav-right {
        order: 3;
        display: flex;
        align-items: center;
        gap: 4rem;
    }

    /* Media query for mobile screens */
    @media (max-width: 768px) {
        .nav-right {
            position: relative;
            display: flex;
            justify-content: space-between;
        }

        .nav-right .bounding {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
        }

        .nav-hamburger {
            margin-left: auto;
            /* Push hamburger to right */
            position: relative;
        }
    }

    /* Hamburger z-index to stay above overlay */
    .nav-hamburger {
        z-index: 1200;
        /* ensure above mobile menu */
    }

    /* Same as before for mobile, just cross toggle already handled */


    /* Full screen overlay */
    #mobileMenu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.5s ease;
        z-index: 1000;
    }

    #mobileMenu.show {
        right: 0;
    }

    #menuTop {
        width: 100%;
        height: 45%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding-left: 5%;

    }

    #menuTop a {
        color: #01153c;
        font-size: 2.25rem;
        font-family: 'Bebas Neue', sans-serif;
        text-transform: uppercase;
        text-decoration: none;
        opacity: 0;
        transform: translateY(50px);
        animation-fill-mode: forwards;
        border-bottom: 2px solid #f99e0c;
        padding-bottom: 2.5px;
        display: inline-block;
        position: relative;
    }

    #menuTop a::before {
        content: '• ';
        /* Unicode bullet character */
        font-size: 2.5rem;
        /* Adjust size as needed */
        position: absolute;
        left: -2.5px;
        top: 105%;
        transform: translateY(-50%);
        color: #f99e0c;
        /* Accent color */
    }

    #menuTop a::after {
        content: none;
    }

    #menuBottom {
        width: 100%;
        height: 55%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    #socialsMenu {
        color: #01153c;
        width: 100%;
        height: 5%;
        display: flex;
        gap: 2rem;
        padding-left: 5%;
        font-weight: 800;
    }

    #eventsMenu {
        width: 100%;
        height: 90%;
        display: flex;
        justify-content: center;
        align-items: center;
        box-sizing: border-box;
    }

    .insta-card {
        max-width: 250px;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .insta-card img {
        width: 100%;
        display: block;
        border-radius: 16px;
    }

    #landingfooter .bounding h1 .time,
    #landingfooter .bounding h1 #time {
        display: none;
    }



    /* Link animation */
    #mobileMenu a:nth-child(1) {
        animation-delay: 0.1s;
    }

    #mobileMenu a:nth-child(2) {
        animation-delay: 0.2s;
    }

    #mobileMenu a:nth-child(3) {
        animation-delay: 0.3s;
    }

    #mobileMenu a:nth-child(4) {
        animation-delay: 0.4s;
    }

    #mobileMenu a:nth-child(5) {
        animation-delay: 0.5s;
    }

    @keyframes slideUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}


@media (max-width: 480px) {
    #ourWorks {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .work-card {
        height: 130px;
        padding: 1rem;
    }

    .work-card h2 {
        font-size: 1.1rem;
    }

    .work-year {
        font-size: 0.8rem;
    }

    .work-category {
        font-size: 0.75rem;
        padding: 3px 10px;
    }
}



#team,
.team-section {
    width: 100%;
    background-color: #00246B;
    padding: 80px 20px;
    box-sizing: border-box;
    color: var(--primary-dark);
}

.team-inner {
    margin: 0 auto;
    text-align: center;
}

.team-sub {
    color: #23406a;
    opacity: 0.85;
    margin-bottom: 36px;
    font-size: 1rem;
}

/* Team: full-bleed image cards with glass role tags + morphing name bubble */
.team-section {
    padding: 56px 20px;
    background: linear-gradient(180deg, #00246B 0%, #06243a 100%);
    /* deep brand blue */
    color: #fff;
}

.team-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    color: #FCA311;
    margin-bottom: 18px;
}

/* responsive grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    justify-content: center; /* center grid track so last (partial) row is centered */
    /* optional: keep a sane max width so centering behaves predictably */
}

/* card: image is full-bleed (fills card) */
.member-card {
    background: transparent;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    min-height: 300px;
    display: block;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* image fills container */
.member-media {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 260px;
    display: block;
    overflow: hidden;
    background: #e9f0fb;
}

.member-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%) contrast(110%);
    transition: transform .6s cubic-bezier(.2, .9, .3, 1), filter .45s ease, opacity .25s;
}

/* dark gradient bottom to ensure tag legibility */
.member-media::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 42%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.40) 100%);
    pointer-events: none;
}

/* roles tags: glassmorphism, small, sit at bottom center (full-bleed overlay) */
.roles {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 14px;
    display: flex;
    gap: 8px;
    z-index: 4;
    padding: 6px 8px;
    background: rgba(0, 24, 50, 0.6);
    backdrop-filter: blur(10px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(0, 36, 107, 0.35);
}

.roles span {
    font-size: .78rem;
    color: #fff;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
    letter-spacing: .2px;
    font-weight: 600;
}

/* name bubble: starts as small glass dot, morphs into tooltip on hover and follows cursor via CSS vars */
.name-bubble {
    position: absolute;
    left: calc(var(--mx, 50px));
    top: calc(var(--my, 50px));
    transform: translate(-50%, -140%) scale(0.85);
    min-width: 36px;
    height: 36px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    z-index: 6;
    color: #00246B;
    background: rgba(252, 163, 17, 0.98);
    /* accent when revealed */
    font-weight: 700;
    font-size: .85rem;
    border-radius: 50%;
    transition: width .26s, height .26s, transform .26s cubic-bezier(.2, .9, .3, 1), opacity .18s, border-radius .26s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    white-space: nowrap;
}

/* hovered state: bubble becomes tooltip */
.member-card.is-hover .name-bubble {
    opacity: 1;
    transform: translate(-50%, -160%) scale(1);
    border-radius: 10px;
    min-width: 120px;
    height: auto;
    padding: 8px 12px;
}

/* reveal color on image hover */
.member-card.is-hover .member-media img {
    transform: scale(1.06);
    filter: grayscale(0%) contrast(100%) saturate(105%);
    opacity: 1;
}


/* ensure roles text readable against dark background after bubble shows */
.member-card .roles span {
    color: #fff;
}

/* accessibility & keyboard: when focused show bubble centered */
.member-card:focus {
    outline: 3px solid rgba(252, 163, 17, 0.14);
}

.member-card:focus .name-bubble {
    opacity: 1;
    transform: translate(-50%, -160%) scale(1);
    border-radius: 10px;
    min-width: 120px;
}

/* responsive tweaks */
@media (max-width:900px) {
    .team-grid {
        gap: 14px;
    }

    .member-card {
        min-height: 260px;
    }
}

@media (max-width:480px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .member-card {
        min-height: 200px;
    }

    .roles {
        bottom: 10px;
        padding: 5px;
        gap: 6px;
    }

    .roles span {
        font-size: .72rem;
        padding: 5px 8px;
    }

    .name-bubble {
        font-size: .78rem;
        min-width: 86px;
    }
}

/* brand accents: role tag border highlight on hover */
.member-card.is-hover .roles {
    box-shadow: 0 12px 28px rgba(0, 36, 107, 0.18);
    border: 1px solid rgba(252, 163, 17, 0.12);
}

.member-card.is-hover .roles span:first-child {
    background: rgba(252, 162, 17, 0.063);
    color: #fff;
    font-weight: 700;
    border-color: rgba(252, 162, 17, 0.099);
}

#footer {
    width: 100%;
    min-height: 45vh;
    border-top: 1px solid #cadcfc;
    background: linear-gradient(180deg, #06243a 0%, #001832 100%);
    border-bottom: 1px solid rgba(202, 220, 252, 0.06);
    display: flex;
    justify-content: space-between;
    color: var(--light-bg);
}

#footerleft {
    height: 100%;
    width: 44%;
}

#footerleft h1 {
    color: #CADCFC;
    opacity: .6;
    font-size: clamp(5rem, 10vw, 12rem);
    padding: 0px 20px;
    line-height: .90;
    text-transform: uppercase;
    font-weight: 600;
    font-family: 'Bebas Neue';
    letter-spacing: 5px;
}

#copyright {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#copyright h4 {
    color: #CADCFC;
    padding: 10px 20px;
    font-size: clamp(.7rem, 1.2vw, 1.2rem);
}

#footeright {
    height: 100%;
    width: 56%;
}

#footeright h2 {
    color: #CADCFC;
    font-family: 'Bebas Neue', sans-serif;
    text-align: center;
    padding-top: 70px;
    font-size: 1.5rem;
}

/* Main form wrapper */
#email-form {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
}

/* Email input field */
#mail {
    width: 60%;
    padding: 15px 25px;
    border: 1px solid #CADCFC;
    border-radius: 50px;
    background: transparent;
    color: #CADCFC;
    font-size: 1.2rem;
    font-family: 'Syne', sans-serif;
    outline: none;
    transition: all 0.3s ease;
}

#mail:focus {
    border-color: #FCA311;
    box-shadow: 0 0 10px rgba(252, 163, 17, 0.2);
}

#mail::placeholder {
    color: #CADCFC;
    opacity: 0.6;
}

/* Submit button styling */
#btn {
    position: relative;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background-color: #FCA311;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hover animation */
#btn:hover {
    transform: scale(1.1) rotate(45deg);
    background-color: #CADCFC;
}

/* Icon inside the button */
#btn i {
    color: #001832;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

/* On hover, invert the colors smoothly */
#btn:hover i {
    color: #06243a;
}

/* Responsive design */
@media (max-width: 768px) {
    #email-form {
        flex-direction: column;
        gap: 10px;
    }

    #mail {
        width: 90%;
        font-size: 1rem;
    }

    #btn {
        width: 45px;
        height: 45px;
    }

    #btn i {
        font-size: 1.3rem;
    }
}



.address {
    color: #CADCFC;
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.8;
    padding-left: 20px;
}

.socials-heading {
    color: #CADCFC;
    font-size: 1.2rem;
    margin: 30px 0 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-links a {
    color: #CADCFC;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #FCA311;
    transform: translateY(-3px);
}

.footer-bottom {
    background: linear-gradient(180deg, #06243a 0%, #001832 100%) !important;
    color: var(--light-bg);
    border-top: 1px solid rgba(202, 220, 252, 0.04);
    /* keep spacing and layout */
    padding: 8px 1.25vw;
    display: flex;
    justify-content: space-between;
    /* align-items: flex-end; */
}

/* --- Project Overlay --- */
#project-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 36, 107, 0.535);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: opacity 0.3s;
}

#project-overlay.hidden {
    display: none;
}

.project-overlay-content {
    width: 48vw;
    height: 80vh;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0, 36, 107, 0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    animation: overlayPopIn 0.4s cubic-bezier(.4, 0, .2, 1);
}

#project-overlay-top {
    width: 100%;
    height: 30%;
    flex: 0 0 35%;
    background: linear-gradient(120deg, #CADCFC 60%, #FCA311 100%);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 2vw 2vw 1vw 2vw;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 36, 107, 0.06);
}

#project-overlay-top h1 {
    color: #00246B;
    font-size: 3vw;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: .15vw;
    text-align: center;
    text-shadow: 0 2px 8px #fff8;
}

#project-overlay-top video {
    width: 40%;
    height: 95%;
    max-width: 340px;
    object-fit: cover;
    border-radius: 10px;
}

#project-overlay-middle {
    flex: 0 0 18%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    background: linear-gradient(120deg, #eaf1fb 60%, #fca31122 100%);
    padding: 1.2vw 2vw;
    border-bottom: 1px solid #CADCFC;
    gap: 2vw;
    border-top: 1px solid #CADCFC;
    border-radius: 0 0 0 0;
    box-shadow: 0 2px 8px rgba(0, 36, 107, 0.04);
}

.project-middle-left h1,
.project-middle-right h1 {
    font-size: 1.2vw;
    color: #00246B;
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    margin: 0 0 0.5vw 0;
    letter-spacing: 0.5px;
}

.project-middle-left span,
.project-middle-right span {
    color: #FCA311;
    font-weight: 700;
    font-family: inherit;
}

.project-middle-left {
    background-color: transparent;
}

.project-middle-right {
    display: flex;
    flex-direction: column;
    gap: 0.2vw;
}

#project-overlay-bottom {
    flex: 1 1 47%;
    background: linear-gradient(120deg, #fff 60%, #cadcfc 100%);
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    display: flex;
    padding: 0.25vw 2vw 0.25vw 2vw;
    overflow-y: auto;
}

.projectDesc p {
    color: #00246B;
    font-size: 1.08rem;
    line-height: 1.6;
    font-family: 'Syne', sans-serif;
    margin: 0;
    opacity: 0.92;
}

.projectDesc {
    flex: 2 1 60%;
    padding-right: 1vw;
    display: flex;
    flex-direction: column;
    justify-content: justify;
}

.projectDesc h2 {
    color: #00246B;
    font-size: 1.3vw;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1.5px;
    margin-bottom: 0.7vw;
    background-clip: text;
    font-weight: 500;
}

/* --- Project Overlay Close Button --- */
.project-overlay-close {
    position: absolute;
    top: 18px;
    right: 22px;
    background: #FCA311;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px #00246b22;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.project-overlay-close:hover {
    background: #00246B;
    color: #FCA311;
}

/* Responsive for close button */
@media (max-width: 600px) {
    .project-overlay-close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        font-size: 1.5rem;
    }
}

@media (max-width: 900px) {
    .project-overlay-content {
        width: 90vw;
        max-width: 98vw;
        min-width: 0;
        height: fit-content;
        border-radius: 4vw;
    }

    #project-overlay-top {
        flex-direction: column;
        padding: 4vw 2vw 2vw 2vw;
    }

    #project-overlay-top h1 {
        font-size: 8vw;
        margin-bottom: 1vw;
    }

    #project-overlay-top video {
        width: 80%;
        height: 40vw;
        min-height: 90px;
        max-width: 80%;
    }

    #project-overlay-middle {
        flex-direction: column;
        gap: 1vw;
        padding: 2vw 3vw;
        justify-content: normal;
    }

    #project-overlay-bottom {
        flex-direction: column;
        gap: 1vw;
        padding: 2vw 3vw;
    }

    .project-middle-left,
    .project-middle-right {
        width: 100%;
        text-align: left;
    }

    .project-middle-left h1,
    .project-middle-right h1 {
        font-size: 3.5vw;
    }

    .projectDesc h2 {
        font-size: 4vw;
        margin-bottom: 1vw;
    }

    .projectDesc {
        flex: none;
        width: 100%;
        padding: 0;
    }

    .projectTeam {
        border-left: none;
        border-top: 2px solid #CADCFC;
        padding-left: 0;
        padding-top: 1vw;
        min-width: 0;
    }

    .projectTeam h2 {
        font-size: 3.5vw;
        margin-bottom: 1vw;
    }

    .projectTeam li {
        font-size: 3vw;
        margin-bottom: 0.8vw;
    }

    .sacramentoinfo {
        font-size: 8vw;
    }

    #elem img {
        display: none;
    }
}



@media screen and (max-width: 768px) {
    #minicircle {
        display: none;
    }

    #landingPage {
        width: 100%;
        height: 100vh;
        background-color: #00246b;
        position: relative;
        padding-top: 80px;
    }

    #landingMain {
        height: 60vh !important;
        width: 90%;
        height: fit-content;
        padding: 10px;
        line-height: 1;
    }

    #landingMain h1 {
        font-size: clamp(5.5rem, 11vw, 6rem);
        line-height: 85%;
    }

    #landingfooter {
        display: flex;
        justify-content: center;
        align-items: center;
        bottom: -25%;
    }

    .footercontent {
        font-size: 2vh;
        font-weight: 500;
        color: #CADCFC;
        gap: 20px;
    }

    .hero-heading {
        font-size: 4.5vw;
        letter-spacing: 1px;
    }

    .sacramento {
        font-size: 6vh;
    }

    .footer-link {
        font-size: 1.7vh;
    }

    #infopage {
        justify-content: space-evenly;
        padding: 30px 45px;
        min-height: 50vh;
    }

    #infopage h2.splittext {
        font-size: 4.5vw !important;
        line-height: 1.3 !important;
        letter-spacing: 0.5px !important;
        text-align: center;
    }

    /* Hide Swiper behavior on mobile */
    .swiper-container,
    .swiper-wrapper {
        all: unset;
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .swiper-slide {
        all: unset;
        display: block;
        border-radius: 12px;
        padding: 20px;
        /* border-left: 4px solid #fca311; */
        border-bottom: 1px solid #f99e0c;
    }

    .swiper-slide h2 {
        font-size: 5vw;
        color: #FCA311;
        margin-bottom: 10px;
    }

    .swiper-slide h3 {
        font-size: 4vw;
        color: #CADCFC;
        line-height: 1.5;
        width: 100%;
        text-align: justify;
    }

    #floatinghead {
        text-align: center;
        margin-bottom: 20px;
    }

    .scroll-item h1 {
        font-size: 6vh;
        ;
        margin: 0 auto;
        line-height: 1.3;
    }

    .fullstop {
        height: 2vh;
        width: 2vh;
    }

    #domaindesc {
        margin-top: 30px;
        padding: 0 16px;
        text-align: center;
        justify-content: center;
        align-items: center;
    }

    #domaindesc .data {
        width: 90%;
    }

    #domaindesc h2 {
        font-size: 4.2vw;
        color: #CADCFC;
        text-align: center;
        line-height: 1.5;
    }

    #domaindesc h2 span {
        color: #f99e0c;
        font-weight: 700;
        font-size: 2.2vh;
    }

    /* Prevent scrolling overlap */
    body {
        overflow-x: hidden;
    }

    img {
        max-width: 200%;
    }

    #footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    #footerleft {
        border-bottom: 1.5px solid #CADCFC;
        width: 100%;
        height: auto;
        padding-bottom: 20px;
    }

    #footerleft,
    #footeright {
        width: 90%;
        height: auto;
    }

    #footerleft h1 {
        font-size: clamp(2.5rem, 10vw, 5rem);
        padding: 5px 10px;
        line-height: 1;
    }

    #copyright {
        flex-direction: column;
        gap: 10px;
        justify-content: center;
        align-items: center;
    }

    #copyright h4,
    .address {

        padding: 0 10px;
        font-size: 3.9vw;
    }

    #footeright h2 {
        padding-top: 30px;
        font-size: 1.5rem;
    }

    #email {
        flex-direction: column;
        padding: 20px 0;
        gap: 10px;
    }

    #mail {
        width: 80%;
        font-size: 1rem;
        padding: 10px 20px;
    }

    #email i {
        font-size: 1.2rem;
    }

    .socials-heading {
        display: none;
    }

    .social-links {
        gap: 5vw;
        margin-bottom: 1vw;
    }

    .social-links a {
        font-size: 5.3vw;
    }

    .footer-bottom {
        gap: 10px;
        text-align: center;
    }

    .rights,
    .privacy {
        font-size: 0.85rem;
    }
}

/* Team slider styles */
.team-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.team-track {
    display: flex;
    gap: 20px;
    /* remove grid styles */
    width: max-content;
}

/* Keep existing member-card styles but ensure they don't grow/shrink */
.member-card {
    flex: 0 0 auto;
    width: 280px; /* fixed width instead of grid-based */
}

@keyframes slideTeam {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.team-track.animate {
    animation: slideTeam 30s linear infinite;
}

/* Adjust animation speed for mobile */
@media (max-width: 768px) {
    .team-track.animate {
        animation-duration: 20s;
    }
}