/* Removed failed font-face experiment */

:root {
    --bg-color: #000000;
    --text-primary: #FFFFFF;
    --border-color: rgba(255, 255, 255, 0.15);
    --border-radius-pill: 100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    width: 100%;
    position: relative;
    height: 100vh;
}

@font-face {
    font-family: 'Zanna';
    src: url('assets/fonts/Zanna.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

.hero {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 30px 40px;
    gap: 40px;
    position: relative;
}

/* Header */
.header-pill {
    display: flex;
    position: relative;
    z-index: 1001;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-pill);
    padding: 8px 12px 8px 30px;
    background-color: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    transition: background-color 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}

.logo {
    font-family: 'Zanna', serif;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.menu-icon {
    --s: 1.8px; /* Reduced thickness */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: calc(var(--s) * 14);
    height: calc(var(--s) * 8);
    position: relative;
    z-index: 1002;
}

.burger-lines {
    background: #FFFFFF;
    width: calc(var(--s) * 14);
    height: var(--s);
    position: relative;
    transition: background 10ms 300ms ease;
}

.burger-lines::before, 
.burger-lines::after {
    transition: top 300ms 350ms ease, transform 300ms 50ms ease;
    position: absolute;
    background: #FFFFFF;
    width: calc(var(--s) * 14);
    height: var(--s);
    content: '';
    left: 0;
}

.burger-lines::before {
    top: calc(var(--s) * -3);
}

.burger-lines::after {
    top: calc(var(--s) * 3);
}

/* Interaction State */
body.menu-open .burger-lines {
    background: transparent !important;
    transition: background 10ms 300ms ease;
}

body.menu-open .burger-lines::before,
body.menu-open .burger-lines::after {
    transition: top 300ms 50ms ease, transform 300ms 350ms ease;
    top: 0;
}

body.menu-open .burger-lines::before {
    transform: rotate(45deg);
}

body.menu-open .burger-lines::after {
    transform: rotate(-45deg);
}
body.menu-open {
    overflow: hidden;
}



.talk-btn {
    background-color: var(--text-primary);
    color: var(--bg-color);
    border: none;
    padding: 12px 28px;
    border-radius: var(--border-radius-pill);
    font-family: 'Zanna', serif;
    font-size: 15px;
    font-weight: 100;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.talk-btn:hover {
    opacity: 0.9;
    transform: scale(0.98);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0 20px;
}

.gif-layer {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    pointer-events: none;
    max-height: 105%;
}

.titles-wrapper {
    position: absolute;
    left: 0;
    width: 100%;
    display: grid;
    place-items: center;
}

.title-container {
    grid-area: 1 / 1;
    position: relative;
}

.title-solid {
    z-index: 1;
}

.title-outline {
    z-index: 5;
    pointer-events: none;
}

.title-outline h1,
.title-outline h1 span {
    color: transparent;
    -webkit-text-stroke: 1px #FFFFFF;
}

.title-container h1 {
    font-family: 'Zanna', serif;
    font-weight: 400;
    display: flex;
    flex-direction: column;
    gap: 48px;
    align-items: center;
    text-align: center;
}

/* CSS specific for the text CALL ME / SALLA */
.title-container h1 {
    font-size: 100pt;
    line-height: 0.85;
    letter-spacing: -2px;
}

.title-container h1 span {
    font-size: 250pt;
    line-height: 0.8;
    letter-spacing: -5px;
}

.stats-container {
    display: flex;
    position: relative;
    margin-left: auto;
    z-index: 3;
    flex-direction: column;
    gap: 60px;
    text-align: right;
    max-width: 350px;
}

.stat-item h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 32px;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.stat-item p {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 300;
    font-size: 18px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.75);
}

/* Footer Section */
.hero-footer {
    display: flex;
    position: relative;
    z-index: 10;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 10px;
}

.brands-section p {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.brand-logos {
    display: flex;
    align-items: center;
    gap: 30px;
}

.brand-logo {
    height: 28px;
    opacity: 0.6;
    filter: brightness(0.8);
    transition: opacity 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

.brand-logo:hover {
    opacity: 1;
    filter: brightness(1);
}

.social-pill {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 5px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-pill);
    padding: 12px 24px;
    background-color: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
}

.follow-text {
    font-family: 'Zanna', serif;
    font-size: 16px;
    font-weight: 500;
    margin-right: 5px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.social-icon img {
    height: 16px;
    opacity: 0.85;
}

.social-icon:hover {
    transform: translateY(-2px);
}

.social-icon:hover img {
    opacity: 1;
}

.scroll-section {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: right;
    margin-bottom: 5px;
}

.scroll-section p {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
}

.scroll-icon {
    height: 32px;
    opacity: 0.9;
    animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* Megamenu Overlay */
.megamenu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    pointer-events: none;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.megamenu.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    pointer-events: auto;
}

/* Grid Layout */
.mega-grid {
    display: grid;
    grid-template-columns: minmax(300px, 450px) 1fr 220px;
    flex: 1;
    height: 100%;
    padding: 100px 50px 0 50px;
    gap: 0;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

/* Left: Preview Block Container */
.mega-preview-container {
    height: 80%;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.mega-floating-salla {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    transition: opacity 0.4s ease;
}

/* Hide the floating salla when hovering project items */
.megamenu:has(#nav-liga:hover) .mega-floating-salla,
.megamenu:has(#nav-quack:hover) .mega-floating-salla,
.megamenu:has(#nav-won:hover) .mega-floating-salla {
    opacity: 0;
}

/* Full-screen background layers */
.mega-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.mega-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.mega-bg-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
}

/* Show full-screen backgrounds on hover */
.megamenu:has(#nav-liga:hover) #bg-liga,
.megamenu:has(#nav-quack:hover) #bg-quack,
.megamenu:has(#nav-won:hover) #bg-won {
    opacity: 1;
}

/* Center: Navigation */
.mega-nav {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 30px 0;
}

.mega-nav-item {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px 60px; /* Added significant left padding */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.mega-nav-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mega-nav-item:hover {
    background-color: #ffffff;
    color: #000000;
    opacity: 1 !important;
}

.mega-nav-item:hover .mega-nav-num,
.mega-nav-item:hover .mega-nav-arrow {
    color: #000000;
}

/* Staggered entrance animations */
.megamenu.active .mega-nav-item:nth-child(1) {
    opacity: 1; transform: translateY(0);
    transition: opacity 0.5s ease 0.15s, transform 0.5s ease 0.15s;
}
.megamenu.active .mega-nav-item:nth-child(2) {
    opacity: 1; transform: translateY(0);
    transition: opacity 0.5s ease 0.25s, transform 0.5s ease 0.25s;
}
.megamenu.active .mega-nav-item:nth-child(3) {
    opacity: 1; transform: translateY(0);
    transition: opacity 0.5s ease 0.35s, transform 0.5s ease 0.35s;
}
.megamenu.active .mega-nav-item:nth-child(4) {
    opacity: 1; transform: translateY(0);
    transition: opacity 0.5s ease 0.45s, transform 0.5s ease 0.45s;
}



.mega-nav-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #FFFFFF;
    letter-spacing: 1px;
    min-width: 36px;
}

.mega-nav-title {
    font-family: 'Zanna', serif;
    font-size: 52px;
    font-weight: 400;
    line-height: 1;
    flex: 1;
}

/* Nav Tags */
.mega-nav-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 24px;
}

.mega-nav-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #FFFFFF;
    border-radius: 100px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1px;
    color: #FFFFFF;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.mega-nav-tag svg {
    flex-shrink: 0;
    transition: stroke 0.3s ease;
}

.mega-nav-item:hover .mega-nav-tag {
    border-color: rgba(0, 0, 0, 0.3);
    color: #000000;
}

.mega-nav-item:hover .mega-nav-tag svg {
    stroke: #000000;
}

.mega-nav-arrow {
    font-size: 20px;
    color: #FFFFFF;
    transition: color 0.3s ease, transform 0.3s ease;
}

.mega-nav-item:hover .mega-nav-arrow {
    color: #000000;
    transform: translateX(4px);
}

/* Right: Sidebar */
.mega-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 40px 0;
    gap: 30px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding-left: 40px;
}

.mega-sidebar-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mega-sidebar-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 1.5px;
    color: #FFFFFF;
    line-height: 1.6;
}

.mega-sidebar-socials {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mega-sidebar-social {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 1.5px;
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mega-sidebar-social:hover {
    color: #ffffff;
}

/* Footer */
.mega-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 2;
}

.mega-footer-left,
.mega-footer-right {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 2px;
    color: #FFFFFF;
}

.mega-footer-left strong {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsiveness for smaller screens roughly */
@media (max-width: 1200px) {
    .title-container h1 { font-size: 90px; }
    .title-container h1 span { font-size: 190px; }
}

.mobile-glass-panel {
    display: none;
}

@media (max-width: 900px) {
    .hero { 
        gap: 40px; 
        padding: 30px 0; /* Remove horizontal padding here */
        overflow-x: hidden;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .header-pill { 
        z-index: 1001;
        padding: 10px 20px;
        gap: 15px;
        width: 90%; /* Center within the hero */
        margin: 0 auto;
    }

    .main-content {
        width: 100%;
        position: static; /* Crucial: ensures its children can interleave with Siblings of Main Content */
        display: block; /* Don't use flex here on mobile as it can create stacking contexts */
        padding: 0;
    }

    .titles-wrapper {
        position: absolute;
        left: 0;
        top: 35%;
        width: 100%;
        height: 0; /* Let children determine alignment */
        z-index: auto;
        transform: none;
        display: block;
    }

    .title-container {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        pointer-events: none;
    }

    .title-container h1 { 
        font-size: 14vw; 
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        white-space: nowrap;
        margin: 0;
        padding: 0;
    }

    .title-container h1 span { 
        font-size: 26vw; 
        letter-spacing: -3px; 
    }
    
    .stats-container {
        display: none;
    }
    
    .hero-footer {
        flex-direction: column;
        align-items: center;
        padding-bottom: 40px;
        gap: 40px;
        width: 100%;
    }
    
    .hero-footer .social-pill {
        display: none;
    }
    
    .mobile-glass-panel {
        display: flex;
        flex-direction: column;
        align-items: center;
        background-color: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 40px;
        padding: 30px 30px 25px 30px;
        margin: -80px 0 0 0;
        z-index: 10;
        width: 90%;
        max-width: 380px;
        text-align: center;
    }

    .mobile-glass-panel h2 {
        font-family: 'Barlow Condensed', sans-serif;
        font-weight: 700;
        font-size: 26px;
        letter-spacing: 0.5px;
        margin-bottom: 8px;
    }

    .mobile-glass-panel p {
        font-family: 'Barlow Condensed', sans-serif;
        font-weight: 300;
        font-size: 16px;
        line-height: 1.4;
        color: rgba(255, 255, 255, 0.75);
    }

    .glass-divider {
        width: 50%;
        height: 1px;
        background: rgba(255, 255, 255, 0.15);
        margin: 20px 0;
    }

    .social-pill-inner {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
        width: 100%;
    }
    
    .scroll-section { text-align: center; flex-direction: column; }
    .brands-section { display: none; }
    
    /* Megamenu Mobile */
    .megamenu {
        overflow-y: auto;
        width: 100vw;
        left: 0;
    }

    .mega-grid {
        grid-template-columns: 1fr;
        padding: 100px 24px 30px 24px;
        gap: 0;
        height: auto;
        min-height: 100%;
    }

    .mega-bg, .mega-preview-container {
        display: none;
    }

    .mega-nav {
        padding: 0;
    }

    .mega-nav-item {
        padding: 22px 0;
        gap: 16px;
    }

    .mega-nav-title {
        font-size: 36px;
    }

    .mega-sidebar {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding-left: 0;
        padding-top: 30px;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 24px;
    }

    .mega-footer {
        padding: 20px 24px;
    }
}
