/* Mobile-only section padding */
@media (max-width: 767px) {
        section {
                padding-left: 24px !important;
                padding-right: 24px !important;
        }
}

.material-symbols-outlined {
        font-family: 'Material Symbols Outlined';
        font-weight: normal;
        font-style: normal;
        font-size: 24px;
        line-height: 1;
        letter-spacing: normal;
        text-transform: none;
        display: inline-block;
        white-space: nowrap;
        word-wrap: normal;
        direction: ltr;
        font-feature-settings: 'liga';
        -webkit-font-smoothing: antialiased;
}

.grid-overlay {
        background-color: #131313;
        background-image: url(images/bg1.png);
        background-repeat: repeat;
        background-attachment: fixed;
}

.nav-link-3d {
        perspective: 1000px;
        position: relative;
        display: inline-block;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        transform-style: preserve-3d;
        color: #e5e2e1;
        /* on-surface */
}

.nav-link-3d:hover {
        transform: translateZ(20px) translateY(-2px);
        color: #82db7e;
        /* primary/lime-ish from theme */
        text-shadow:
                0 0 10px rgba(50, 205, 50, 0.4),
                0 0 20px rgba(165, 243, 252, 0.3);
}

/* Specific styling for the 'Partner' link to ensure it matches the text link style */
.nav-link-partner {
        background: transparent !important;
        border: none !important;
        padding: 8px 16px !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
}

.section-card {
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.4s ease,
                box-shadow 0.4s ease;
}

.section-card:hover {
        transform: scale(1.015) translateY(-2px);
        border-color: #9df898;
        /* primary-fixed */
        box-shadow:
                0 0 15px rgba(130, 219, 126, 0.15),
                0 0 30px rgba(130, 219, 126, 0.08),
                0 8px 32px rgba(0, 0, 0, 0.3);
}

[id] {
        scroll-margin-top: 100px;
}

/* Hamburger button */
.hamburger-btn {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 44px;
        height: 44px;
        cursor: pointer;
        background: transparent;
        border: none;
        padding: 0;
        z-index: 60;
        position: relative;
}

.hamburger-btn span {
        display: block;
        width: 26px;
        height: 2px;
        background-color: #e5e2e1;
        border-radius: 2px;
        transition: all 0.35s cubic-bezier(0.77, 0, 0.175, 1);
        position: absolute;
}

.hamburger-btn span:nth-child(1) {
        transform: translateY(-8px);
}

.hamburger-btn span:nth-child(2) {
        opacity: 1;
}

.hamburger-btn span:nth-child(3) {
        transform: translateY(8px);
}

/* Hamburger open state (X) */
.hamburger-btn.is-active span:nth-child(1) {
        transform: rotate(45deg) translateY(0);
        background-color: #82db7e;
}

.hamburger-btn.is-active span:nth-child(2) {
        opacity: 0;
        transform: translateX(20px);
}

.hamburger-btn.is-active span:nth-child(3) {
        transform: rotate(-45deg) translateY(0);
        background-color: #82db7e;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 51;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-menu-overlay.is-visible {
        opacity: 1;
        visibility: visible;
}

/* Mobile menu drawer */
.mobile-menu-drawer {
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 360px;
        height: 100%;
        z-index: 52;
        background: linear-gradient(195deg, rgba(32, 31, 31, 0.97) 0%, rgba(14, 14, 14, 0.98) 100%);
        backdrop-filter: blur(40px) saturate(1.4);
        border-left: 1px solid rgba(130, 219, 126, 0.15);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
        overflow-y: auto;
        display: flex;
        flex-direction: column;
}

.mobile-menu-drawer.is-open {
        transform: translateX(0);
}

/* Mobile menu links */
.mobile-nav-link {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 18px 28px;
        color: #e5e2e1;
        text-decoration: none;
        font-family: 'Outfit', sans-serif;
        font-size: 15px;
        font-weight: 600;
        letter-spacing: 0.15em;
        text-transform: uppercase;
        border-bottom: 1px solid rgba(64, 73, 61, 0.3);
        transition: all 0.25s ease;
        opacity: 0;
        transform: translateX(30px);
}

.mobile-menu-drawer.is-open .mobile-nav-link {
        opacity: 1;
        transform: translateX(0);
}

/* Stagger the link animations */
.mobile-nav-link:nth-child(1) {
        transition-delay: 0.08s;
}

.mobile-nav-link:nth-child(2) {
        transition-delay: 0.12s;
}

.mobile-nav-link:nth-child(3) {
        transition-delay: 0.16s;
}

.mobile-nav-link:nth-child(4) {
        transition-delay: 0.20s;
}

.mobile-nav-link:nth-child(5) {
        transition-delay: 0.24s;
}

.mobile-nav-link:nth-child(6) {
        transition-delay: 0.28s;
}

.mobile-nav-link:nth-child(7) {
        transition-delay: 0.32s;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
        background: rgba(130, 219, 126, 0.08);
        color: #82db7e;
        padding-left: 36px;
}

.mobile-nav-link .material-symbols-outlined {
        font-size: 22px;
        color: #82db7e;
        opacity: 0.7;
}

/* Prevent body scroll when menu is open */
body.mobile-menu-open {
        overflow: hidden;
}

/* Video Area Wrapper */
.vimeo-cover-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 600px;
        overflow: hidden;
        background: #002d28;
}

.vimeo-cover-wrapper iframe {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100vw;
        height: 56.25vw;
        /* 16:9 aspect ratio based on viewport width */
        min-height: 100%;
        min-width: 177.78vh;
        /* 16:9 aspect ratio based on container height */
        transform: translate(-50%, -50%);
        border: 0;
        z-index: 10;
}

@keyframes forest-fill {
        0% {
                background-position: 0 100%;
        }

        100% {
                background-position: 0 0;
        }
}

.loading-forest {
        font-size: 320px;
        background: linear-gradient(to top, #82db7e 50%, transparent 50%);
        background-size: 100% 200%;
        background-position: 0 100%;
        -webkit-background-clip: text;
        color: transparent;
        -webkit-text-stroke: 4px rgba(130, 219, 126, 0.4);
        animation: forest-fill 2.5s ease-in-out infinite;
        z-index: 1;
        opacity: 0.8;
}
