/* CSS Variables & Reset */
:root {
    --bg-color: #000000;
    --surface-color: #111111;
    --text-color: #f4f4f5;
    --accent-color: #ffffff;
    --secondary-text: #a1a1aa;
    --border-color: #27272a;
    --inverse-bg: #ececec;
    --inverse-text: #050505;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', serif;
    
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    /* Custom Cursor overrides */
    cursor: none;
}

a {
    color: inherit;
    text-decoration: none;
    cursor: none;
}

ul {
    list-style: none;
}

/* Custom Cursor */
.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-color);
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Background Noise */
.bg-noise {
    position: fixed;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    width: 200%;
    height: 200vh;
    background: transparent 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.8" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    opacity: 0.05;
    pointer-events: none;
    z-index: 10;
}

@keyframes noise {
    0% { transform: translate(0,0) }
    10% { transform: translate(-5%,-5%) }
    20% { transform: translate(-10%,5%) }
    30% { transform: translate(5%,-10%) }
    40% { transform: translate(-5%,15%) }
    50% { transform: translate(-10%,5%) }
    60% { transform: translate(15%,0) }
    70% { transform: translate(0,15%) }
    80% { transform: translate(3%,35%) }
    90% { transform: translate(-10%,10%) }
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.italic-serif {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

/* Layout Utilities */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-padding {
    padding: 120px 0;
}

.dark-bg {
    background-color: #111;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 40px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--inverse-text);
    border: 1px solid var(--accent-color);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-color);
    padding-left: 40px;
    padding-right: 24px;
}

.btn-primary::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover::before {
    left: 16px;
    opacity: 1;
}

.nav-btn {
    padding: 10px 24px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 14px;
    transition: var(--transition-fast);
}

.nav-btn:hover {
    background-color: var(--accent-color);
    color: var(--inverse-text);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 0;
    z-index: 100;
    transition: var(--transition-smooth);
    mix-blend-mode: difference;
}

.nav.scrolled {
    padding: 16px 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    mix-blend-mode: normal;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

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

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: none;
    gap: 6px;
    flex-direction: column;
    z-index: 1000;
}

.mobile-toggle span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
    transition: 0.3s;
}

.mobile-toggle.active span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
}

/* Mobile Menu Overlay CSS */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-color);
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(-10px);
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.mobile-nav-link {
    font-size: 2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-menu-overlay.active .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-overlay.active .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-overlay.active .mobile-nav-link:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu-overlay.active .mobile-nav-link:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu-overlay.active .mobile-nav-link:nth-child(4) { transition-delay: 0.4s; }

.mobile-nav-btn {
    margin-top: 16px;
    padding: 16px 32px;
    border: 1px solid var(--accent-color);
    border-radius: 40px;
    font-size: 1rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 5%;
}

.hero-content {
    max-width: 1000px;
    z-index: 1;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 7rem);
    display: flex;
    flex-direction: column;
    margin-bottom: 32px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--secondary-text);
    max-width: 500px;
    margin-bottom: 48px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 5%;
    display: flex;
    align-items: center;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--secondary-text);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

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

/* Work Section */
.section-header {
    margin-bottom: 80px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 16px;
}

.section-desc {
    color: var(--secondary-text);
    font-size: 1.1rem;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.work-card {
    cursor: none;
}



.work-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 4/5;
    background-color: var(--surface-color);
    margin-bottom: 24px;
    transform-origin: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card:hover .work-image-wrapper {
    transform: scale(0.98);
}

/* Simulated Image Placeholders */
.placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: rgba(255,255,255,0.1);
    letter-spacing: 4px;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.placeholder-img.dark { background: #111; }
.placeholder-img.light { background: #222; }

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.work-image-wrapper:hover .placeholder-img {
    transform: scale(1.08);
}

.work-image-wrapper:hover .work-overlay {
    opacity: 1;
}

.view-project {
    padding: 12px 24px;
    border: 1px solid #fff;
    border-radius: 30px;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s, color 0.3s;
}

.work-image-wrapper:hover .view-project {
    transform: translateY(0);
}

.view-project:hover {
    background-color: var(--accent-color);
    color: var(--inverse-text);
}

.work-info h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card:hover .work-info h3 {
    transform: translateX(8px);
}

.work-info p {
    color: var(--secondary-text);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Options Marquee */
.marquee-container {
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    background: var(--inverse-bg);
    color: var(--inverse-text);
}

.marquee {
    display: inline-block;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    text-transform: uppercase;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Testimonials */
.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.quote-icon {
    font-family: var(--font-serif);
    font-size: 6rem;
    line-height: 1;
    color: var(--border-color);
    margin-bottom: 24px;
}

.testimonial-text {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-family: var(--font-serif);
    font-style: italic;
    margin-bottom: 40px;
    line-height: 1.4;
}

.testimonial-author h4 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.testimonial-author p {
    color: var(--secondary-text);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    padding: 100px 0 40px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 100px;
}

.footer-logo {
    font-size: 3rem;
    margin-bottom: 16px;
    letter-spacing: -2px;
}

.brand-col p {
    color: var(--secondary-text);
}

.footer-col h3 {
    font-size: 1rem;
    color: var(--secondary-text);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-col ul li {
    margin-bottom: 16px;
}

.hover-underline {
    position: relative;
}

.hover-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.hover-underline:hover::after {
    width: 100%;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    color: var(--secondary-text);
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-text span {
    display: block;
    opacity: 0;
    transform: translateY(100%);
    animation: revealUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-text span:nth-child(1) { animation-delay: 0.2s; }
.reveal-text span:nth-child(2) { animation-delay: 0.4s; }
.reveal-text span:nth-child(3) { animation-delay: 0.6s; }

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

/* Responsive */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }
    .mobile-toggle {
        display: flex;
    }
    .work-grid {
        grid-template-columns: 1fr;
    }
    .work-card:nth-child(even) {
        margin-top: 0;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
