/* ============================================
   SUMYYA UMER PORTFOLIO — STYLE 3 (MIDNIGHT)
   ============================================ */

/* ---------- Google Fonts (loaded via <link> in index.html head) ---------- */

@font-face {
    font-family: 'Feeling Passionate';
    src: url('assets/Font/FeelingPassionateRegular-gxp34.woff2') format('woff2'),
        url('assets/Font/FeelingPassionateRegular-gxp34.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Brand Colors (Midnight Charcoal & Electric Orange) */
    --clr-midnight: #080808;
    --clr-night: #000000;
    --clr-orange: #FF5722;
    --clr-orange-rgb: 255, 87, 34;
    --clr-orange-dark: #E64A19;
    --clr-silver: #FAFAFA;
    --clr-silver-muted: #CFCFCF;

    /* Dynamic Theme Variables */
    --bg-primary: var(--clr-midnight);
    --bg-secondary: var(--clr-night);
    --text-primary: var(--clr-silver);
    --text-secondary: var(--clr-silver-muted);
    --text-muted: rgba(250, 250, 250, 0.5);
    --border-color: rgba(255, 87, 34, 0.2);
    --accent: var(--clr-orange);

    /* Typography */
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-highlight: 'Story Script', cursive;
    --font-accent: 'Feeling Passionate', cursive;
    --font-serif-accent: 'Playfair Display', Georgia, 'Times New Roman', serif;

    /* Sizing */
    --nav-height: 90px;
    --container-max: 1300px;
    --section-padding: clamp(100px, 15vw, 180px);

    /* Effects */
    --radius-sm: 4px;
    --radius-md: 8px;
    --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Theme Modifiers ---------- */
.section--dark {
    --bg-primary: transparent;
    --bg-secondary: transparent;
    --text-primary: var(--clr-orange);
    --text-secondary: var(--clr-silver);
    --text-muted: var(--clr-silver-muted);
    --border-color: rgba(255, 87, 34, 0.1);
    --accent: var(--clr-silver);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-font-smoothing: antialiased;
    /* clip (not hidden) avoids the iOS double-scroll-container hard lock
       caused by overflow-x on both html and body */
    overflow-x: clip;
    width: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

/* Removed dark radial overlay as requested */
/* body::after {
        content: '';
        position: fixed;
        ...
    } */

a {
    text-decoration: none;
    color: var(--accent);
    transition: all 0.3s ease;
}

a:hover {
    color: #ffffff;
}

ul, ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

li {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
}

.container--fluid {
    width: 100%;
    padding: 0 0;
    overflow: hidden;
}

section {
    padding: var(--section-padding) 0;
    position: relative;
    background-color: transparent;
    color: var(--text-primary);
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
.editorial-heading {
    font-family: var(--font-display);
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: -0.01em;
}

.section-tag {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    display: block;
    margin-bottom: 24px;
    color: var(--accent);
}

.section-title {
    font-size: clamp(4rem, 12vw, 9rem);
    margin-bottom: 40px;
}

/* Elegant accent word for middle-section titles (About, Services, Experience, Projects).
   The script accent font (--font-accent) is reserved for the Hero and Contact sections only. */
.title-accent {
    font-family: var(--font-serif-accent);
    font-style: italic;
    font-weight: 500;
    color: var(--clr-orange);
    text-transform: none;
    letter-spacing: 0;
}

/* ---------- Navigation ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    transition: all 0.4s ease;
}

.navbar.scrolled {
    height: 70px;
    background-color: var(--bg-primary);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 40px;
}

@keyframes staggeredFlip {

    0%,
    30%,
    100% {
        transform: rotateY(0deg);
    }

    10%,
    20% {
        transform: rotateY(360deg);
    }
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    perspective: 1000px;
    gap: 1.5px;
    transition: all 0.3s ease;
}

.flip-char {
    display: inline-block;
    transition: transform 0.6s var(--transition-smooth);
    transform-style: preserve-3d;
    animation: staggeredFlip 20s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.logo-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background-color: var(--accent);
    border-radius: 50%;
    margin-left: 2px;
    align-self: flex-end;
    margin-bottom: 17px;
    transition: background-color 0.3s ease;
    /* Ensure no text or markers show */
    font-size: 0;
    line-height: 0;
    color: transparent;
    user-select: none;
    pointer-events: none;
}

.nav-logo:hover {
    transform: translateY(-5px);
    color: var(--accent);
    text-shadow: 0 5px 15px rgba(255, 87, 34, 0.4);
}

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

.nav-toggle {
    display: none;
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ffffff;
}

.nav-link:hover {
    color: var(--accent) !important;
}

/* ---------- Hero ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding-top: 80px;
}

.hero-title {
    font-size: clamp(3rem, 15vw, 180px);
    line-height: 0.85;
    margin-bottom: 40px;
}

.hero-title .title-row:last-child {
    font-family: var(--font-accent);
    text-transform: none; /* Usually script fonts look better without all-caps */
    font-size: 1.1em;
    margin-top: -0.1em;
    display: block;
}

.hero-image-container {
    position: relative;
    width: 100%;
    cursor: pointer;
}

.hero-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    border: 1px solid var(--clr-orange);
    border-radius: 12px;
    background: transparent;
    z-index: 1;
}

.hero-image {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
    z-index: 2;
    background-color: var(--bg-secondary);
    box-shadow: 0 10px 40px rgba(var(--clr-orange-rgb), 0.15), 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.5s var(--transition-smooth), box-shadow 0.5s var(--transition-smooth);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    transition: filter 0.5s ease;
}

.hero-image-container:hover .hero-image {
    box-shadow: 0 20px 60px rgba(var(--clr-orange-rgb), 0.25), 0 25px 50px rgba(0, 0, 0, 0.45);
}

.hero-image-container:hover .hero-image img {
    filter: grayscale(0%) contrast(1);
}

.hero-description {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 420px;
    color: var(--text-secondary);
}

/* ---------- Experience ---------- */
.exp-list {
    position: relative;
    margin-top: 20px;
}

.timeline-draw-line {
    position: absolute;
    left: 120px;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: var(--accent);
    transform-origin: top;
    transform: scaleY(0);
}

.exp-item {
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.exp-year {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.exp-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
}

/* ---------- Work Grid ---------- */
.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.work-card {
    position: relative;
    aspect-ratio: 4/5;
    background-color: var(--bg-secondary);
    overflow: hidden;
    cursor: pointer;
}

/* Hide duplicate JS items on desktop so grid stays 2x2 */
.work-grid .work-card:nth-child(n+5) {
    display: none;
}

.work-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) grayscale(100%);
    transition: transform 0.6s ease-in-out, filter 0.6s ease-in-out;
}

.work-card:hover img {
    transform: scale(1.05);
    filter: brightness(1) grayscale(0%);
}

.work-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.work-card:hover .work-info {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 20px 40px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid var(--accent);
    transition: all 0.3s ease;
}

.btn--solid {
    background-color: var(--accent);
    color: #fff;
}

.btn--solid:hover {
    background-color: transparent;
    color: var(--accent);
}

/* ---------- Brands Showcase ---------- */
.brands {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.brands-marquee {
    overflow: hidden;
    width: 100%;
}

.brands-track {
    display: flex;
    gap: 80px;
    width: max-content;
    align-items: center;
    animation: brands-scroll 30s linear infinite;
}

@keyframes brands-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-25%);
    }
}

.brand-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Brand logos render directly on the dark background, full color */
.brand-logo {
    max-height: 96px;
    width: auto;
    object-fit: contain;
    border-radius: 5px;
    filter: grayscale(0%) opacity(1);
    transition: all 0.3s ease;
}

/* Gentle scale on hover */
.brand-item:hover .brand-logo {
    transform: scale(1.06);
}

/* ---------- Influencers Showcase ---------- */
.influencers {
    border-bottom: 1px solid var(--border-color);
}

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

.influencer-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.influencer-card:hover {
    border-color: var(--accent);
    background-color: rgba(255, 87, 34, 0.06);
    transform: translateY(-6px);
}

.influencer-photo {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.influencer-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.8);
    transition: transform 0.6s ease-in-out, filter 0.6s ease-in-out;
}

.influencer-card:hover .influencer-photo img {
    transform: scale(1.06);
    filter: grayscale(0%) brightness(1);
}

/* Instagram icon badge on the photo */
.influencer-ig-icon {
    position: absolute;
    bottom: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--clr-orange);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.4s ease;
}

.influencer-ig-icon svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.influencer-card:hover .influencer-ig-icon {
    opacity: 1;
    transform: scale(1);
}

.influencer-info {
    padding: 20px;
    text-align: center;
}

.influencer-name {
    font-family: var(--font-display);
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.influencer-handle {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.influencer-card:hover .influencer-handle {
    color: var(--clr-orange);
}

/* ---------- Services ---------- */
.services-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.service-card {
    position: relative;
    padding: 32px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    cursor: pointer;
}

.service-card:hover {
    border-color: var(--accent);
    background-color: rgba(255, 87, 34, 0.06);
    transform: translateY(-6px);
}

.service-card h3 {
    font-size: clamp(2.4rem, 3vw, 3.5rem);
    margin-bottom: 1rem;
}

/* Featured service card stands out with an accent border and spans the full row */
.service-card--featured {
    grid-column: 1 / -1;
    border: 1px solid var(--clr-orange);
    background-color: rgba(255, 87, 34, 0.04);
    cursor: pointer;
}

.service-card--featured:hover {
    background-color: rgba(255, 87, 34, 0.1);
}

.service-badge {
    align-self: flex-start;
    display: inline-block;
    margin-bottom: 16px;
    padding: 6px 14px;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--clr-orange);
    border: 1px solid var(--clr-orange);
    border-radius: 999px;
}

.service-tagline {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--clr-orange);
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

/* ---------- Reels Showcase ---------- */
.reels {
    overflow: hidden;
    padding: 100px 0;
}

.reels-carousel {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.reels-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: marquee-reels 60s linear infinite;
}

.reels-track:hover {
    animation-play-state: paused;
}

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

    100% {
        transform: translateX(-50%);
    }
}

.reel-card {
    width: calc(20vw - 30px);
    min-width: 260px;
    flex-shrink: 0;
    transition: transform 0.4s ease;
}

.reel-card:hover {
    transform: translateY(-10px) scale(1.02);
}

/* Dark container card for each embedded reel — fixed 9:16 ratio prevents layout shift */
.reel-embed {
    position: relative;
    aspect-ratio: 9/16;
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    filter: brightness(0.85);
    transition: filter 0.4s ease, box-shadow 0.4s ease;
}

/* Shimmering skeleton shown before the Instagram embed is processed */
.reel-skeleton {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(110deg, #161616 8%, #232323 18%, #161616 33%);
    background-size: 200% 100%;
    animation: reel-skeleton-shimmer 1.6s linear infinite;
    border-radius: inherit;
}

@keyframes reel-skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Neutralize the white Instagram embed shell so it blends into the dark card */
.reel-embed .instagram-media {
    background: #121212 !important;
    box-shadow: none !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    border-radius: 0 !important;
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Reveal the embed and hide the skeleton once Instagram has processed it */
.reel-embed.is-loaded .instagram-media {
    opacity: 1;
}

.reel-embed.is-loaded .reel-skeleton {
    opacity: 0;
    pointer-events: none;
    animation: none;
}

.reel-embed iframe {
    width: 100% !important;
    height: 100% !important;
}

/* Fallback shown if the Instagram embed cannot be loaded */
.reel-fallback {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    background: #121212;
    color: var(--clr-orange);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
}

.reel-embed.is-failed .reel-skeleton {
    opacity: 0;
    pointer-events: none;
    animation: none;
}

.reel-embed.is-failed .reel-fallback {
    display: flex;
}

/* Manual retry button shown only when an embed has failed */
.reel-retry {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    background: var(--clr-orange);
    color: #000;
    border: none;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.reel-retry:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.reel-embed.is-failed .reel-retry {
    display: flex;
}

.reel-card:hover .reel-embed {
    filter: brightness(1);
}

/* Fallback/Overlay styles if needed */
.reel-video-placeholder {
    width: 100%;
    aspect-ratio: 9/16;
    background: var(--bg-secondary);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Testimonials ---------- */
/* ---------- Testimonials (Vertical Dual-Column) ---------- */
.testimonials {
    padding: var(--section-padding) 0;
    background-color: var(--bg-secondary);
}

.test-container-vertical {
    display: flex;
    gap: 40px;
    height: 600px;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

.test-column {
    flex: 1;
    position: relative;
}

.test-track-vertical {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 20px 0;
}

.test-track-vertical.up {
    animation: scroll-vertical-up 40s linear infinite;
}

.test-track-vertical.down {
    animation: scroll-vertical-down 40s linear infinite;
}

.test-track-vertical:hover {
    animation-play-state: paused;
}

@keyframes scroll-vertical-up {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

@keyframes scroll-vertical-down {
    0% {
        transform: translateY(-50%);
    }

    100% {
        transform: translateY(0);
    }
}

.testimonial-card-vertical {
    padding: 60px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.4s ease;
    cursor: default;
}

.testimonial-card-vertical:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    transform: translateX(10px);
}

.test-quote {
    font-size: 1.8rem;
    line-height: 1.3;
    font-style: italic;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 24px;
    position: relative;
}

.test-quote::before {
    content: '•';
    color: var(--accent);
    position: absolute;
    left: -30px;
    top: 0;
}

.test-meta {
    display: flex;
    flex-direction: column;
}

.test-author {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
}



/* ---------- Phone CTA ---------- */
.phone-cta {
    margin-bottom: 20px;
    display: inline-block;
}

.phone-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--accent);
    transition: all 0.3s ease-out;
}

.phone-link:hover {
    color: #ffffff;
    transform: translateY(-5px);
}

.phone-label {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 10px;
    opacity: 0.8;
}

.phone-number {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1;
}

/* ---------- Social Icons ---------- */
.social-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 60px;
    padding: 40px 0;
}

.social-link {
    font-size: 3rem;
    color: var(--accent);
    transition: all 0.3s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

.social-link:hover {
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-15px) scale(1.1);
    box-shadow: 0 15px 30px rgba(255, 87, 34, 0.3);
}

.social-link svg {
    width: 3rem;
    height: 3rem;
    fill: currentColor;
    z-index: 2;
}

/* Background pulse effect on hover */
.social-link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
    z-index: 1;
    opacity: 0;
}

.social-link:hover::after {
    width: 200%;
    height: 200%;
    opacity: 0.1;
}

/* ---------- Custom Cursor ---------- */
#cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    display: none;
    /* Shown via JS */
}

#cursor-outline {
    display: none !important;
}

/* ---------- Preloader ---------- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--clr-night);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-line-wrap {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.loader-line {
    width: 0%;
    height: 100%;
    background: var(--accent);
    position: absolute;
    top: 0;
    left: 0;
}

/* ---------- GSAP Reveals ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
}

@media (max-width: 991px) {
    .reels-track {
        gap: 20px;
    }

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

    .reel-card {
        width: 320px;
        min-width: 320px;
        margin-right: 0;
    }

    .hero-container,
    .experience-grid {
        grid-template-columns: 1fr;
    }

    .work-grid .work-card:nth-child(n+5) {
        display: block;
    }

    .work-grid {
        display: flex;
        width: max-content;
        gap: 20px;
        padding-bottom: 20px;
        animation: work-scroll 15s linear infinite reverse;
        flex-wrap: nowrap;
    }
    
    .work {
        overflow: hidden; /* Hide the scrolling overflow horizontally */
    }

    .work-grid::-webkit-scrollbar {
        display: none;
    }

    .work-card {
        width: 250px;
        aspect-ratio: 4/5;
        flex-shrink: 0;
    }
    
    @keyframes work-scroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(-50%); }
    }

    .section-title {
        font-size: 4rem;
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    .nav-toggle span {
        width: 100%;
        height: 2px;
        background-color: var(--text-primary);
        transition: all 0.3s ease;
    }

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

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-primary);
        padding: 100px 40px;
        transition: right 0.5s ease;
        z-index: 1000;
        gap: 30px;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        font-size: 2rem;
    }

    .container, .nav-container {
        padding: 0 20px;
    }

    .test-container-vertical {
        flex-direction: column;
        height: 500px;
        /* mask-image causes severe repaint jank on iOS while scrolling */
        mask-image: none;
        -webkit-mask-image: none;
    }

    .test-column:nth-child(2) {
        display: none;
        /* Hide second column on mobile for clarity */
    }

    .test-track-vertical.up {
        animation-duration: 20s;
    }

    .test-track-vertical.down {
        animation-duration: 20s;
    }

    .brands-track {
        gap: 40px;
        animation-duration: 15s;
    }

    .social-grid {
        gap: 15px;
        flex-wrap: nowrap;
    }

    .social-link {
        width: 65px;
        height: 65px;
        font-size: 1.7rem;
    }

    .social-link svg {
        width: 1.7rem;
        height: 1.7rem;
    }

    .phone-number {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .reels-carousel {
        transform: none;
        margin-bottom: 0;
    }

    .reel-card {
        width: 85vw;
        min-width: unset;
        pointer-events: auto;
    }

    .test-track-vertical:hover,
    .reels-track:hover {
        animation-play-state: running !important;
    }

    footer p {
        font-size: 0.8rem;
    }

    .service-card h3 {
        font-size: 2.2rem;
    }

    .services-list {
        grid-template-columns: 1fr;
    }

    .testimonial-card-vertical {
        padding: 30px;
    }

    /* Disable hover slide/tilt effects on mobile */
    .service-card:hover {
        transform: none;
        background-color: transparent;
    }

    .testimonial-card-vertical:hover {
        transform: translateX(0);
        background: rgba(255, 255, 255, 0.03);
        border-color: var(--border-color);
    }

    .test-quote {
        font-size: 1.3rem;
    }

    /* --- MOBILE PERFORMANCE OPTIMIZATIONS --- */
    /* background-attachment: fixed causes severe scroll jank on iOS/Android */
    body {
        background-attachment: scroll;
    }

    /* backdrop-filter is extremely heavy to render during scroll */
    .navbar.scrolled {
        backdrop-filter: none;
        background-color: rgba(8, 8, 8, 0.98);
    }
    
    /* Disable 3D flip animation on mobile to save CPU/GPU */
    .flip-char {
        animation: none !important;
        transform: none !important;
    }

    /* Hide custom cursor completely on touch/mobile devices */
    #cursor-dot {
        display: none !important;
    }

    /* Fix Experience Section Overflow */
    .exp-item {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 20px 0;
    }
    
    .timeline-draw-line {
        display: none;
    }
    
    .exp-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: clamp(3rem, 18vw, 80px);
        line-height: 0.9;
    }

    .hero-title .title-row:last-child {
        font-size: 1.2em;
        margin-top: -0.15em;
    }

    .influencers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .influencer-info {
        padding: 14px;
    }

    .influencer-name {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .influencers-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }
}

/* ---------- Lenis Smooth Scroll (desktop only) ---------- */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-smooth iframe {
    pointer-events: none;
}