@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;600;700&family=Poppins:wght@300;400;500&display=swap');

:root {
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --nav-bg: rgba(10, 10, 15, 0.3);
    --backdrop-blur: blur(12px);
    --accent: #f5f5f5;
}

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

html {
    scroll-behavior: smooth;
    background-color: #050505; /* Fallback before images load */
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Background Video Setup (Fixed full screen) */
.hero-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background-color: #000;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    mask-image: radial-gradient(circle at center, transparent 15%, black 80%);
    -webkit-mask-image: radial-gradient(circle at center, transparent 15%, black 80%);
    z-index: 1;
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.6;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: transparent;
    z-index: 100;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                background 0.4s ease, 
                backdrop-filter 0.4s ease, 
                border-radius 0.4s ease, 
                box-shadow 0.4s ease,
                border 0.4s ease;
    border-radius: 20px;
    border: 1px solid transparent;
}

.navbar.hidden {
    transform: translateX(-50%) translateY(-150%);
}

.navbar:hover {
    background: rgba(20, 20, 25, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.logo {
    font-family: 'Arial Black', Impact, sans-serif;
    font-size: 38px;
    font-style: italic;
    font-weight: 900;
    letter-spacing: -2px;
    text-transform: lowercase;
    color: rgba(255, 255, 255, 0.9);
    transform: skewX(-5deg);
    transition: transform 0.3s ease, color 0.3s ease;
}

.navbar:hover .logo {
    transform: skewX(-5deg) scale(1.05);
    color: #ffffff;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 4px;
    transition: font-weight 0.3s ease, color 0.3s ease;
}

.navbar:hover .nav-links li a {
    font-weight: 700;
    color: #ffffff;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #ffffff;
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Container for all scrollable stuff */
.content-container {
    position: relative;
    z-index: 10;
}

/* Hero Spacer */
.hero-spacer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    padding-top: 25vh;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 5.5rem;
    font-weight: 200;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 16px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.6);
    
    /* Animation */
    opacity: 0;
    transform: translateY(40px);
    animation: slideUpFade 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.hero-title .red-dot {
    color: #ff0000;
    font-weight: 700;
}

.hero-roles {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 4px 15px rgba(0,0,0,0.6);
    
    /* Animation */
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFade 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards, breath 4s ease-in-out 1.9s infinite alternate;
}

@keyframes breath {
    0% { transform: translateY(0) scale(0.98); opacity: 0.8; letter-spacing: 4px; }
    100% { transform: translateY(0) scale(1.02); opacity: 1; letter-spacing: 6px; }
}

.role-item {
    flex: 1;
}
.role-item.left { text-align: left; }
.role-item.center { text-align: center; }
.role-item.right { text-align: right; }

.hero-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFade 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
}

.btn-glass {
    position: relative;
    padding: 16px 40px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 40px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(255,255,255,0.05);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(255, 255, 255, 0.3), 0 0 25px rgba(255, 255, 255, 0.4);
    transform: translateY(-5px);
    color: #fff;
}

.btn-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shine 6s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    15% { left: 200%; }
    100% { left: 200%; }
}

/* Spiral effect removed */

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

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: slideUpFade 1s ease 1.2s forwards;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    animation: scroll 2s infinite cubic-bezier(0.15, 0.41, 0.69, 0.94);
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}


/* General Content Sections */
.content-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 60px;
    position: relative;
    /* Soft gradient at bottom sections so text is legible */
    background: linear-gradient(180deg, rgba(5,5,5,0) 0%, rgba(5,5,5,0.7) 30%, rgba(5,5,5,0.95) 100%);
}

.content-section:not(:first-of-type) {
    background: #050505;
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.content-section h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    font-weight: 600;
    letter-spacing: -1px;
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
}

.content-section p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 40px;
    font-weight: 300;
}

/* Swiper Carousel Styles */
.works-swiper {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
}

.work-slide {
    background-position: center;
    background-size: cover;
    width: 320px;
    height: 320px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6), inset 0 0 0 2px rgba(255, 255, 255, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.4s ease;
}

.work-slide::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0; top: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 50%);
    opacity: 0.7;
    transition: opacity 0.4s ease;
}

.work-slide:hover::after {
    opacity: 0.9;
}

.work-slide:hover {
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.15);
}

.slide-overlay {
    position: absolute;
    bottom: 25px;
    left: 20px;
    right: 20px;
    text-align: center;
    color: #fff;
    z-index: 2;
    transform: translateY(10px);
    opacity: 0.8;
    transition: all 0.4s ease;
}

.work-slide:hover .slide-overlay {
    transform: translateY(0);
    opacity: 1;
}

.slide-overlay h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.slide-overlay p {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 16px 40px;
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    border-radius: 30px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #e0e0e0;
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(255,255,255,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 20px 20px;
        width: 100%;
    }
    .navbar.scrolled {
        padding: 15px 20px;
    }
    .nav-links {
        display: none; /* In a real app, add a hamburger menu */
    }
    .hero-spacer {
        justify-content: flex-end;
        padding-bottom: 12vh;
    }
    .hero-title {
        font-size: 3rem;
        padding: 0 10px;
        margin-bottom: 15px;
    }
    .hero-roles {
        width: 95%;
        font-size: 0.70rem;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 25px;
    }
    .hero-buttons {
        flex-direction: column;
        width: 80%;
        gap: 15px;
        margin-bottom: 30px;
    }
    .btn-glass {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
    .content-section h2 {
        font-size: 2.8rem;
    }
    .content-section {
        padding: 80px 20px;
    }
    .bg-video {
        object-position: center;
    }
}
