/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
    --bg: #09090b;
    --bg-raised: #111114;
    --surface: rgba(255, 255, 255, 0.025);
    --border: rgba(255, 255, 255, 0.06);
    --border-hi: rgba(160, 200, 255, 0.18);
    --accent: #8b5cf6;
    --accent-soft: #a78bfa;
    --accent-dim: rgba(139, 92, 246, 0.08);
    --accent-glow: rgba(139, 92, 246, 0.15);
    --text: #ececef;
    --text-mid: #8a8a96;
    --text-dim: #4e4e5a;
    --font-display: 'Space Grotesk', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 100px;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.no-scroll { overflow: hidden; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(139, 92, 246, 0.2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
* { scrollbar-width: thin; scrollbar-color: rgba(139, 92, 246, 0.2) transparent; }

/* Noise overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    pointer-events: none;
    z-index: 9999;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text);
    letter-spacing: -0.02em;
}

p { color: var(--text-mid); }

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

/* =============================================
   LAYOUT
   ============================================= */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
    width: 100%;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text);
    letter-spacing: -0.02em;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-mid);
    transition: color 0.25s ease;
    letter-spacing: 0.01em;
}

.nav-links a:hover { color: var(--text); }

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 20px;
    position: relative;
    z-index: 110;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: absolute;
    left: 0;
}

.nav-toggle span:first-child { top: 2px; }
.nav-toggle span:last-child { bottom: 2px; }

.nav-toggle.open span:first-child {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.nav-toggle.open span:last-child {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Mobile menu overlay */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(9, 9, 11, 0.95);
    backdrop-filter: blur(24px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu ul {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-menu a {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text);
    transition: color 0.25s ease;
}

.mobile-menu a:hover { color: var(--accent-soft); }

/* =============================================
   HERO
   ============================================= */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: clamp(100px, 14vh, 160px) clamp(20px, 4vw, 40px) clamp(60px, 8vh, 100px);
    position: relative;
    background: radial-gradient(ellipse 60% 50% at 50% 30%, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
}

.hero-content {
    max-width: 720px;
}

.hero h1 {
    font-size: clamp(2.4rem, 7vw, 4.5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp 0.8s var(--ease-out) 0.1s forwards;
}

.hero .accent {
    background: linear-gradient(120deg, var(--accent-soft), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.7;
    font-weight: 400;
    color: var(--text-mid);
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp 0.8s var(--ease-out) 0.25s forwards;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp 0.8s var(--ease-out) 0.4s forwards;
}

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

/* Scroll cue */
.scroll-cue {
    position: absolute;
    bottom: clamp(1.5rem, 3vh, 3rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: none;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.3s ease;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.6s forwards;
}

.scroll-cue:hover { color: var(--text-mid); }

.scroll-cue i {
    font-size: 0.65rem;
    animation: bounce 2.5s ease infinite;
}

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

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.88rem;
    padding: 0.7rem 1.6rem;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    text-decoration: none;
    white-space: nowrap;
}

.btn-outline {
    border-color: var(--border);
    color: var(--text-mid);
    background: var(--surface);
}

.btn-outline:hover {
    border-color: var(--accent-glow);
    color: var(--text);
    background: var(--accent-dim);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -8px rgba(139, 92, 246, 0.2);
}

.btn-outline:active { transform: translateY(0); }

.btn-sm {
    padding: 0.55rem 1.2rem;
    font-size: 0.82rem;
}

/* =============================================
   SECTIONS
   ============================================= */
.section {
    padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-alt {
    background: var(--bg-raised);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-header {
    text-align: center;
    margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 0.4rem;
}

.section-sub {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-mid);
    margin-top: 0.3rem;
}

.divider {
    width: 48px;
    height: 2px;
    background: var(--accent);
    margin: 1.2rem auto 0;
    border-radius: 2px;
    opacity: 0.6;
}

/* =============================================
   INTRO
   ============================================= */
.intro {
    padding: clamp(3rem, 6vw, 5rem) 0;
    text-align: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-raised) 100%);
}

.intro-text {
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 780px;
    margin: 0 auto;
    font-weight: 400;
    color: var(--text-mid);
    line-height: 1.8;
}

/* =============================================
   CARDS (video cards)
   ============================================= */
.card {
    position: relative;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition:
        border-color 0.3s ease,
        transform 0.35s var(--ease-out),
        box-shadow 0.4s var(--ease-out);
}

/* Top shine line */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(139, 92, 246, 0.0) 20%,
        rgba(139, 92, 246, 0.12) 50%,
        rgba(139, 92, 246, 0.0) 80%,
        transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.card:hover {
    border-color: rgba(139, 92, 246, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px -12px rgba(0, 0, 0, 0.5);
}

.card:hover::before { opacity: 1; }

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.card-body {
    padding: 1.5rem 1.75rem;
}

.card-body h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.card-body p {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* =============================================
   VIDEO GRID
   ============================================= */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 1.5rem;
}

/* =============================================
   REEL GRID
   ============================================= */
.reel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 1rem;
}

.reel-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.6rem;
    padding: 2.5rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all 0.3s var(--ease-out);
    text-decoration: none;
}

.reel-card:hover {
    border-color: rgba(139, 92, 246, 0.25);
    background: var(--accent-dim);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.4);
}

.reel-icon {
    font-size: 2rem;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s var(--ease-out);
}

.reel-card:hover .reel-icon { transform: scale(1.1) rotate(4deg); }

.reel-label {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
}

.reel-cta {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.25s ease;
}

.reel-card:hover .reel-cta { color: var(--text-mid); }

/* Center link / CTA */
.center-link {
    text-align: center;
    margin-top: 2.5rem;
}

.link-arrow {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--accent-soft);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.25s ease, gap 0.25s ease;
}

.link-arrow:hover {
    color: var(--text);
    gap: 0.75rem;
}

/* =============================================
   TABS
   ============================================= */
.tabs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: clamp(2rem, 3vw, 3rem);
}

.tab-btn {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-mid);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.65rem 1.6rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.01em;
}

.tab-btn:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.15);
}

.tab-btn.active {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
    font-weight: 600;
}

/* =============================================
   GALLERY GRIDS
   ============================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 1.25rem;
    animation: fadeIn 0.4s ease;
}

.gallery-grid:not(.active-gallery) { display: none; }

.masonry-grid {
    column-count: 3;
    column-gap: 1.25rem;
    animation: fadeIn 0.4s ease;
}

.masonry-grid:not(.active-gallery) { display: none; }

.masonry-grid .graphic-item {
    break-inside: avoid;
    margin-bottom: 1.25rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.graphic-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease, border-color 0.3s ease;
}

@media (min-width: 769px) {
    .graphic-item img {
        cursor: zoom-in;
    }
    .graphic-item img:hover {
        transform: scale(1.015);
        box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.5);
        border-color: rgba(139, 92, 246, 0.2);
    }
}

/* =============================================
   MODAL
   ============================================= */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.modal.open { display: flex; }

.modal-close {
    position: absolute;
    top: 16px;
    right: 24px;
    background: none;
    border: none;
    color: var(--text-mid);
    font-size: 2.2rem;
    cursor: pointer;
    z-index: 2010;
    transition: color 0.2s ease;
    line-height: 1;
    padding: 8px;
}

.modal-close:hover { color: var(--text); }

.modal-viewport {
    width: 100%;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.modal-img {
    max-width: 90%;
    max-height: 100%;
    border-radius: 4px;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
    transition: transform 0.1s ease-out;
    cursor: zoom-in;
    user-select: none;
    -webkit-user-select: none;
}

.modal-img.zoomed { cursor: grab; }
.modal-img.grabbing { cursor: grabbing; }

/* Navigation */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-mid);
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 2010;
    transition: all 0.25s ease;
}

.modal-nav:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text);
}

.modal-nav.hidden { display: none; }

.modal-prev { left: 20px; }
.modal-next { right: 20px; }

/* Zoom controls */
.modal-zoom {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    background: rgba(255, 255, 255, 0.06);
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    z-index: 2010;
}

.modal-zoom i {
    color: var(--text-dim);
    font-size: 0.7rem;
}

input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 160px;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    outline: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--text);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

input[type=range]::-webkit-slider-thumb:hover {
    background: var(--accent-soft);
    transform: scale(1.15);
}

input[type=range]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--text);
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
    text-align: center;
    background: #050507;
    padding: clamp(4rem, 6vw, 6rem) 0 clamp(2rem, 3vw, 3rem);
    border-top: 1px solid var(--border);
}

.footer-inner h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    margin-bottom: 0.6rem;
    letter-spacing: -0.03em;
}

.footer-inner > p {
    font-size: 0.95rem;
    color: var(--text-mid);
    font-weight: 400;
}

.contact-row {
    display: flex;
    justify-content: center;
    gap: clamp(2rem, 5vw, 4rem);
    margin: 2.5rem 0;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--accent-soft);
}

.contact-item span,
.contact-item a {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text);
    transition: color 0.25s ease;
}

.contact-item a:hover { color: var(--accent-soft); }

.copyright {
    margin-top: 3rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 0.04em;
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.anim-target {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.7s var(--ease-out),
        transform 0.7s var(--ease-out);
}

.anim-target.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   RESPONSIVE - TABLET
   ============================================= */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .nav-inner { height: 56px; }

    .hero {
        padding-top: clamp(90px, 14vh, 130px);
        padding-bottom: clamp(40px, 6vh, 70px);
    }

    .video-grid { grid-template-columns: 1fr; gap: 1.25rem; }

    .reel-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .masonry-grid { column-count: 2; }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    }

    .modal-nav, .modal-zoom { display: none; }
    .modal-viewport { height: auto; padding: 20px; }
    .modal-img { max-width: 100%; border-radius: 8px; cursor: default; }
}

/* =============================================
   RESPONSIVE - MOBILE
   ============================================= */
@media (max-width: 480px) {
    .hero h1 { font-size: clamp(2rem, 10vw, 2.6rem); }
    .hero p { font-size: 0.95rem; }

    .section { padding: clamp(3rem, 6vw, 4rem) 0; }

    .tabs { gap: 0.5rem; }
    .tab-btn { padding: 0.55rem 1.1rem; font-size: 0.8rem; }

    .reel-grid { grid-template-columns: 1fr 1fr; }
    .reel-card { padding: 1.8rem 1rem; }

    .masonry-grid { column-count: 1; }
    .gallery-grid { grid-template-columns: 1fr; }

    .card-body { padding: 1.25rem; }

    .contact-row { flex-direction: column; gap: 1.5rem; }
}
