@font-face {
    font-family: 'Amiri';
    src: url('fonts/Amiri-Italic.woff2') format('woff2'),
         url('fonts/Amiri-Italic.ttf') format('truetype');
    font-style: italic;
    font-weight: 400;
}

@font-face {
    font-family: 'Lato';
    src: url('fonts/Lato-Bold.woff2') format('woff2'),
         url('fonts/Lato-Bold.ttf') format('truetype');
    font-style: normal;
    font-weight: 700;
}

:root {
    --bg-color: #000000;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a5;
    --accent: #ffffff; 
    
    --font-heading: 'Lato', sans-serif;
    --font-body: 'Lato', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    overscroll-behavior: none;
}

/* Lenis smooth scroll */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

/* Cinematic Noise Overlay */
.noise {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Glass Navigation */
.glass-nav {
    position: fixed;
    top: 2rem;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 90%;
    max-width: 1100px;
    padding: 0.5rem 0.5rem 0.5rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border-radius: 50px;
    z-index: 1000;
    opacity: 0; /* Animated in via JS */
    transform: translateY(-150%);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    color: #000000;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    position: relative;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: #ffb6c1;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Video Sequence Canvas */
#video-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1; 
    pointer-events: none;
    opacity: 0.7; /* Dimming for text legibility */
}

/* The Drop */
.drop-container {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 50;
    display: flex;
    justify-content: center;
    align-items: center;
}

.drop {
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 20px 5px rgba(255,255,255,0.5);
    will-change: transform, background, box-shadow, width, height;
}

/* Typography */
h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: normal; /* Adjusted for mixed typography */
    margin-bottom: 1.5rem;
    text-shadow: 0 10px 30px rgba(0,0,0,0.9);
}

h1 .italic-serif {
    font-family: 'Amiri', serif;
    font-style: italic;
    font-weight: 400;
}

h1 .bold-sans {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
}

p {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-primary);
    text-shadow: 0 4px 15px rgba(0,0,0,0.8);
    opacity: 0.9;
    max-width: 600px;
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.05em;
    border-radius: 30px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.btn-group {
    display: flex;
    gap: 1rem;
}

.btn:hover {
    background: rgba(255,255,255,0.2);
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.btn-outline {
    background: transparent;
}

/* SplitText styles */
.line { overflow: hidden; padding-bottom: 0.1em; }
.word { display: inline-block; will-change: transform, opacity, filter; }
.char { display: inline-block; will-change: transform, opacity, filter; }

/* Scenes */
.scroll-container {
    position: relative;
    z-index: 10;
}

.scene {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 10vw;
    background: transparent;
}

.scene-8 {
    background: linear-gradient(to bottom, transparent, #000 90%);
    justify-content: center;
    padding-left: 0;
}

.content {
    position: relative;
    z-index: 20;
    max-width: 800px;
}

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

/* Nav Additions */
.logo-img {
    height: 30px;
    width: auto;
    object-fit: contain;
}

.nav-actions {
    display: flex;
    align-items: center;
}

.action-pill {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 30px;
    padding: 0.25rem 0.25rem 0.25rem 1rem;
    /* Removed box-shadow since parent is now white */
}

.contact-link {
    color: #000;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.arrow-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #ffb6c1; /* pink circle */
    border-radius: 50%;
    color: #000;
}

.pill-divider {
    width: 1px;
    height: 20px;
    background: #e0e0e0;
    margin: 0 0.5rem;
}

.menu-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #000;
}

/* Mega Menu */
.mega-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #f4f4f4;
    z-index: 990; /* Just below glass-nav which is 1000 */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    clip-path: inset(0 0 100% 0);
    transition: all 0.7s cubic-bezier(0.77, 0, 0.175, 1);
}

.mega-menu.active {
    opacity: 1;
    pointer-events: all;
    clip-path: inset(0 0 0% 0);
}

.mega-menu-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    width: 85%;
    max-width: 1400px;
    height: 70vh;
    gap: 4rem;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.5s ease 0.3s;
}

.mega-menu.active .mega-menu-inner {
    transform: translateY(0);
    opacity: 1;
}

.mega-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.2rem;
}

.mega-col a {
    color: #333;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

.mega-col.main-links a {
    font-size: 1.8rem;
    color: #999;
}

.mega-col.main-links a:hover,
.mega-col.main-links a.italic-link {
    color: #000;
}

.italic-link {
    font-family: 'Amiri', serif;
    font-style: italic;
    font-size: 2.2rem !important;
}

.mega-col.sub-links {
    gap: 0.5rem;
}

.mega-col.sub-links a {
    font-size: 1rem;
    padding: 0.7rem 1.2rem;
    border-radius: 6px;
    color: #666;
    transition: all 0.3s ease;
}

.mega-col.sub-links a:hover,
.mega-col.sub-links a.active {
    background: #e8e8e8;
    color: #000;
    font-weight: 500;
}

.visual {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
}

.mega-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Toggle link colors when mega menu is open - no longer needed since nav is always white */
.glass-nav.menu-open {
    box-shadow: none;
}

/* Scene 8 typography update */
.heading-8 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-transform: none;
    letter-spacing: normal;
}

.final-desc {
    max-width: 700px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #cccccc;
    font-weight: 300;
    letter-spacing: normal !important; /* override gsap */
}

.btn-wrap {
    display: flex;
    justify-content: center;
}

.contact-btn-final {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    border: 1px solid #ffffff;
    border-radius: 40px;
    padding: 0.8rem 1.5rem 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    text-transform: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.contact-btn-final:hover {
    background: #ffffff;
    color: #000000;
}

.contact-btn-final:hover .arrow-circle-white {
    background: #000000;
    color: #ffffff;
}

.arrow-circle-white {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #ffffff;
    color: #000000;
    border-radius: 50%;
    font-size: 1.2rem;
    line-height: 1;
    transition: all 0.3s ease;
}

/* Footer Styles */
.site-footer {
    position: relative;
    z-index: 50; /* Above background but below nav */
    padding: 0 2rem 2rem 2rem;
    background: transparent;
}

.footer-box {
    background: #ffffff;
    border-radius: 30px;
    padding: 4rem 4rem 2rem 4rem;
    color: #000000;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-left {
    flex: 1;
    max-width: 450px;
}

.footer-logo {
    height: 35px;
    margin-bottom: 2rem;
}

.footer-about {
    font-size: 1rem;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 2.5rem;
    font-weight: 400;
    text-shadow: none;
}

.footer-contact {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #fdf0f2;
    border-radius: 50%;
}

.contact-text {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.8rem;
    color: #888888;
    margin-bottom: 0.2rem;
}

.contact-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: #000000;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    color: #000000;
    transition: opacity 0.3s ease;
}

.footer-socials a:hover {
    opacity: 0.6;
}

.footer-right {
    flex: 1;
    max-width: 500px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.footer-links li {
    border-bottom: 1px solid #eeeeee;
}

.footer-links li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    color: #000000;
    text-decoration: none;
    font-family: 'Amiri', serif;
    font-style: italic;
    font-size: 2.5rem;
    transition: opacity 0.3s ease;
}

.footer-links li a:hover {
    opacity: 0.7;
}

.arrow-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border-radius: 50%;
    font-family: 'Lato', sans-serif;
    font-style: normal;
    font-size: 1.2rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid #eeeeee;
    font-size: 0.85rem;
    color: #888888;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: #888888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #000000;
}

@media (max-width: 900px) {
    .footer-top {
        flex-direction: column;
    }
    .footer-links li a {
        font-size: 2rem;
    }
    .footer-bottom {
        flex-direction: column-reverse;
        gap: 1rem;
        text-align: center;
    }
}
