/* ============================================================
   CINEMATIC PORTFOLIO — styles.css
   Color palette: #0b0b12 / #0f0f1a / #151528 + purple accents
============================================================ */

/* ── Variables ─────────────────────────────────────────── */
:root {
    --bg-0: #0b0b12;
    --bg-1: #0f0f1a;
    --bg-2: #151528;

    --accent:        #7c3aed;
    --accent-mid:    #9333ea;
    --accent-light:  #a855f7;
    --glow:          rgba(124, 58, 237, 0.35);
    --glow-strong:   rgba(168, 85, 247, 0.55);

    --text-white:    #ffffff;
    --text-primary:  #e5e5e5;
    --text-muted:    #8a8a9a;

    --radius-sm:  8px;
    --radius-md:  16px;
    --radius-lg:  24px;
    --radius-xl:  32px;

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

    --container: 1280px;
    --gap: clamp(1.5rem, 4vw, 3rem);
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg-0);
    color: var(--text-primary);
    line-height: 1.65;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ── Particles canvas ───────────────────────────────────── */
#particles-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.25;
}

/* ── Layout helpers ─────────────────────────────────────── */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 2.5rem);
    position: relative;
    z-index: 1;
}

.section {
    padding: clamp(3.5rem, 7vw, 6rem) 0;
    position: relative;
}

/* ── Gradient text ──────────────────────────────────────── */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Section header ─────────────────────────────────────── */
.section__header {
    text-align: center;
    margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.section__eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 0.75rem;
}

.section__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.section__subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 400;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.875rem 2rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    transition: transform 0.25s var(--ease-out),
                box-shadow 0.25s var(--ease-out),
                background 0.25s ease,
                border-color 0.25s ease;
    white-space: nowrap;
}

.btn--primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-mid) 100%);
    color: var(--text-white);
    box-shadow: 0 4px 24px var(--glow);
}
.btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 36px var(--glow-strong);
}

.btn--ghost {
    background: transparent;
    color: var(--text-white);
    border-color: rgba(168, 85, 247, 0.5);
}
.btn--ghost:hover {
    border-color: var(--accent-light);
    background: rgba(124, 58, 237, 0.12);
    transform: translateY(-3px);
}

.btn--lg { padding: 1.1rem 2.5rem; font-size: 1rem; }

.btn--instagram svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ── Scroll-reveal animation ────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(6px);
    transition:
        opacity 0.75s var(--ease-out),
        transform 0.75s var(--ease-out),
        filter 0.75s var(--ease-out);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}
.reveal--delay  { transition-delay: 0.15s; }
.reveal--delay-2{ transition-delay: 0.3s;  }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; filter: none; transition: none; }
}

/* ── Video thumbnail component ──────────────────────────── */
/*
   .video-thumb        — wrapper link, handles border + hover lift
   .video-thumb__img   — the actual thumbnail image
   .video-thumb__play  — centered custom play button overlay
   NOTE: glow is applied as box-shadow on the wrapper,
         NOT as an inner element, so it never covers the image.
*/
.video-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1.5px solid rgba(124, 58, 237, 0.35);
    /* Outer glow only — box-shadow stays outside the element */
    box-shadow: 0 0 22px rgba(124, 58, 237, 0.15), 0 8px 32px rgba(0,0,0,0.4);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s ease;
}
.video-thumb:hover {
    transform: translateY(-6px) scale(1.015);
    border-color: var(--accent-light);
    /* Intensified outer glow on hover — still outside, never overlays content */
    box-shadow: 0 0 55px rgba(168, 85, 247, 0.45), 0 20px 50px rgba(0,0,0,0.5);
}

.video-thumb__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s var(--ease-out);
}
.video-thumb:hover .video-thumb__img { transform: scale(1.04); }

/* Custom play button — centered overlay, semi-transparent dark bg */
.video-thumb__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    background: rgba(0,0,0,0.22);
    transition: background 0.3s ease;
}
.video-thumb:hover .video-thumb__play { background: rgba(0,0,0,0.42); }

.video-thumb__play svg {
    width: clamp(52px, 8vw, 72px);
    height: clamp(52px, 8vw, 72px);
    /* Glow on the play icon itself, not the image */
    filter: drop-shadow(0 0 14px rgba(168, 85, 247, 0.7));
    transition: transform 0.3s var(--ease-out), filter 0.3s ease;
}
.video-thumb:hover .video-thumb__play svg {
    transform: scale(1.12);
    filter: drop-shadow(0 0 22px rgba(168, 85, 247, 0.9));
}

/* Aspect ratios */
.video-thumb--vertical  { aspect-ratio: 9 / 16; }
.video-thumb--horizontal{ aspect-ratio: 16 / 9; }

/* ── HERO ───────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
    position: relative;
    overflow: hidden;
}

/* Radial purple glow behind hero */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: min(900px, 120vw);
    height: min(900px, 120vw);
    background: radial-gradient(circle, rgba(124,58,237,0.18) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(3rem, 6vw, 5rem);
}

.hero__text {
    text-align: center;
    max-width: 780px;
}

.hero__eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 1.25rem;
}

.hero__title {
    font-size: clamp(2.75rem, 8vw, 6rem);
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1.05;
    color: var(--text-white);
    margin-bottom: 1.5rem;
}

.hero__description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 400;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero video */
.hero__video-wrap {
    width: 100%;
    max-width: 900px;
    opacity: 1; /* always visible — GSAP animates it on load */
}

/* Explicit 16:9 for the hero thumb — outer glow only via box-shadow */
.video-thumb--hero {
    aspect-ratio: 16 / 9;
    display: block;
    width: 100%;
    /* Override the base .video-thumb box-shadow with a single, clean outer glow */
    box-shadow: 0 0 60px rgba(124, 58, 237, 0.25), 0 30px 60px rgba(0,0,0,0.5);
}
.video-thumb--hero:hover {
    box-shadow: 0 0 90px rgba(168, 85, 247, 0.35), 0 30px 70px rgba(0,0,0,0.55);
}

/* ── SHORTS — 9:16 grid ─────────────────────────────────── */
.shorts__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

/* ── HORIZONTAL VIDEOS — 16:9 grid ─────────────────────── */
.hvideos__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

/* ── SOFTWARE ───────────────────────────────────────────── */
.software__track-wrap {
    /* overflow must NOT be hidden — cards lift on hover and need visible space */
    overflow: visible;
    /* padding gives the lifted cards and their box-shadow room at the top */
    padding-top: 1rem;
}

.software__track {
    display: flex;
    justify-content: center;
    gap: var(--gap);
    flex-wrap: wrap;
}

.software-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 2.5rem 2rem;
    background: linear-gradient(145deg, var(--bg-1) 0%, var(--bg-2) 100%);
    border: 1.5px solid rgba(124, 58, 237, 0.25);
    border-radius: var(--radius-lg);
    width: clamp(200px, 28vw, 280px);
    /* Outer glow via box-shadow only */
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.1);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s ease;
}
.software-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-light);
    box-shadow: 0 0 50px rgba(124, 58, 237, 0.35), 0 16px 40px rgba(0,0,0,0.4);
}

.software-card__logo-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.software-card__logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    transition: transform 0.3s var(--ease-out), filter 0.3s ease;
}
/* Glow on the logo image itself, not an overlay element */
.software-card:hover .software-card__logo {
    transform: scale(1.1);
    filter: drop-shadow(0 0 16px rgba(168, 85, 247, 0.6));
}

.software-card__name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-white);
}

.software-card__desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
}

/* ── SERVICES GRID ──────────────────────────────────────── */
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

.service-card {
    padding: 2rem 1.75rem;
    background: linear-gradient(145deg, var(--bg-1) 0%, var(--bg-2) 100%);
    border: 1.5px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--radius-lg);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease-out);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(168, 85, 247, 0.45);
    box-shadow: 0 12px 40px var(--glow);
}

.service-card__icon {
    width: 44px;
    height: 44px;
    color: var(--accent-light);
    margin-bottom: 1.25rem;
}
.service-card__icon svg { width: 100%; height: 100%; }

.service-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.6rem;
}

.service-card__text {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ── ABOUT ──────────────────────────────────────────────── */
.about__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
}

.about__title { text-align: left; }

.about__bio {
    font-size: 1.0625rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}
.about__bio:last-of-type { margin-bottom: 0; }

.text-highlight {
    color: var(--accent-light);
    font-weight: 600;
}

.about__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-self: center;
}

.tag {
    padding: 0.5rem 1.1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent-light);
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.35);
    border-radius: 100px;
    transition: background 0.25s ease, box-shadow 0.25s ease;
}
.tag:hover {
    background: rgba(124, 58, 237, 0.2);
    box-shadow: 0 0 20px var(--glow);
}

/* ── STEPS ──────────────────────────────────────────────── */
.steps__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

.step-card {
    padding: 2.5rem 2rem;
    background: linear-gradient(145deg, rgba(124,58,237,0.08) 0%, transparent 100%);
    border: 1.5px solid rgba(124, 58, 237, 0.25);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}
.step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px var(--glow);
}

/* Big gradient number */
.step-card__number {
    font-size: clamp(4rem, 8vw, 6rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent) 0%, transparent 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    display: block;
}

.step-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.75rem;
}

.step-card__text {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ── FAQ ────────────────────────────────────────────────── */
.faq__list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: linear-gradient(145deg, var(--bg-1) 0%, var(--bg-2) 100%);
    border: 1.5px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.3s ease;
}
.faq-item.open {
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 30px var(--glow);
}

.faq-item__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.375rem 1.75rem;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    transition: color 0.25s ease;
}
.faq-item__question:hover { color: var(--accent-light); }
.faq-item.open .faq-item__question { color: var(--accent-light); }

.faq-item__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--accent-light);
    transition: transform 0.35s var(--ease-out);
}
.faq-item.open .faq-item__icon { transform: rotate(180deg); }

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s var(--ease-out), padding 0.3s ease;
}
.faq-item.open .faq-item__answer {
    max-height: 300px;
}

.faq-item__answer p {
    padding: 0 1.75rem 1.5rem;
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.75;
}

/* CTA SECTION */
.cta-section { padding-bottom: clamp(3.5rem, 7vw, 6rem); }

.cta-box {
    background: linear-gradient(135deg, rgba(124,58,237,0.18) 0%, rgba(124,58,237,0.04) 60%, transparent 100%);
    border: 1.5px solid rgba(168, 85, 247, 0.35);
    border-radius: var(--radius-xl);
    padding: clamp(3rem, 7vw, 5rem) clamp(2rem, 6vw, 5rem);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-box::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124,58,237,0.15) 0%, transparent 65%);
    pointer-events: none;
}

.cta-box__title {
    font-size: clamp(1.75rem, 4.5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.cta-box__text {
    font-size: 1.0625rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.cta-box__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── TESTIMONIALS ───────────────────────────────────────── */
/*
   Three cards in a 3-column grid.
   Each card has: stars, quote, avatar + name/role.
   Cards animate in with staggered reveal (handled by .reveal classes).
*/
.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 1.75rem;
    background: linear-gradient(145deg, var(--bg-1) 0%, var(--bg-2) 100%);
    border: 1.5px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--radius-lg);
    /* Subtle outer glow — no inner overlay */
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.08);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
    overflow: hidden;
}

/* Thin top accent line that grows on hover */
.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out);
}
.testimonial-card:hover::before { transform: scaleX(1); }

.testimonial-card:hover {
    transform: translateY(-6px);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 45px rgba(124, 58, 237, 0.22), 0 16px 40px rgba(0,0,0,0.35);
}

/* Star rating row */
.testimonial__stars {
    display: flex;
    gap: 3px;
}
.testimonial__stars svg {
    width: 14px;
    height: 14px;
    color: var(--accent-light);
}

/* Quote text */
.testimonial__quote {
    font-size: 0.9375rem;
    font-style: normal;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.75;
    flex: 1; /* pushes client info to bottom */
    position: relative;
    padding-left: 1.25rem;
}

/* Left quote bar */
.testimonial__quote::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.2em;
    bottom: 0.2em;
    width: 3px;
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-light) 100%);
    border-radius: 2px;
}

/* Client row: avatar + name/role */
.testimonial__client {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(124, 58, 237, 0.15);
}

/* Initials avatar circle */
.testimonial__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    letter-spacing: 0.03em;
}

.testimonial__name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.3;
}

.testimonial__role {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

@media (max-width: 1024px) {
    .testimonials__grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}

/* ── INSTAGRAM SECTION ──────────────────────────────────── */
.instagram-section { padding: clamp(2rem, 5vw, 4rem) 0; }

.instagram-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: clamp(2rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem);
    background: linear-gradient(120deg,
        rgba(124, 58, 237, 0.22) 0%,
        rgba(124, 58, 237, 0.08) 50%,
        transparent 100%);
    border: 1.5px solid rgba(168, 85, 247, 0.45);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

/* Ambient glow blob */
.instagram-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168,85,247,0.15) 0%, transparent 65%);
    pointer-events: none;
}

.instagram-box__left {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    flex: 1;
    min-width: 0;
}

.instagram-box__icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    border-radius: var(--radius-md);
    box-shadow: 0 0 30px var(--glow-strong);
}
.instagram-box__icon svg {
    width: 28px;
    height: 28px;
    color: white;
    fill: white;
}

.instagram-box__label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 0.3rem;
}

.instagram-box__handle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.instagram-box__desc {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 480px;
}

.btn--instagram-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-white);
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    border: none;
    border-radius: var(--radius-md);
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 4px 24px var(--glow);
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
    text-decoration: none;
}
.btn--instagram-cta svg {
    width: 18px;
    height: 18px;
    transition: transform 0.25s var(--ease-out);
}
.btn--instagram-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 36px var(--glow-strong);
}
.btn--instagram-cta:hover svg { transform: translateX(4px); }

@media (max-width: 768px) {
    .instagram-box {
        flex-direction: column;
        text-align: center;
    }
    .instagram-box__left {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .instagram-box__desc { max-width: 100%; }
    .btn--instagram-cta { width: 100%; justify-content: center; }
}

/* ── FOOTER ─────────────────────────────────────────────── */
.footer {
    border-top: 1px solid rgba(124, 58, 237, 0.2);
    padding: 2.5rem 0;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-light);
}

.footer__copy {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(124, 58, 237, 0.35);
    color: var(--text-muted);
    transition: color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.footer__social a svg { width: 18px; height: 18px; }
.footer__social a:hover {
    color: var(--accent-light);
    border-color: var(--accent-light);
    box-shadow: 0 0 20px var(--glow);
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
    .about__inner { grid-template-columns: 1fr; }
    .about__title { text-align: center; }
    .about__tags  { justify-content: center; }
}

@media (max-width: 768px) {
    .shorts__grid,
    .hvideos__grid,
    .services__grid,
    .steps__grid {
        grid-template-columns: 1fr;
    }

    .software__track {
        flex-direction: column;
        align-items: center;
    }

    .software-card { width: 100%; max-width: 320px; }

    .footer__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .hero__actions { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    .cta-box__actions { flex-direction: column; align-items: stretch; }
}

/* Focus styles for keyboard nav */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent-light);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ============================================================
   VIDEO LIGHTBOX
   Opens over the page when a .js-lightbox card is clicked.
   Uses CSS transitions driven by .lightbox--open class toggled by JS.
============================================================ */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    /* Start invisible — JS adds .lightbox--open to animate in */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease-out);
}

/* Visible state */
.lightbox--open {
    opacity: 1;
    pointer-events: all;
}

/* Blurred dark backdrop */
.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 14, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    cursor: pointer; /* clicking backdrop closes the lightbox */
}

/* The video stage — scales up on open */
.lightbox__stage {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 960px;
    transform: scale(0.88) translateY(24px);
    transition: transform 0.4s var(--ease-out);
}

.lightbox--open .lightbox__stage {
    transform: scale(1) translateY(0);
}

/* Close button — top-right corner */
.lightbox__close {
    position: absolute;
    top: -3rem;
    right: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, 0.2);
    border: 1.5px solid rgba(168, 85, 247, 0.45);
    border-radius: 50%;
    color: var(--text-white);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}
.lightbox__close svg { width: 18px; height: 18px; }
.lightbox__close:hover {
    background: var(--accent);
    box-shadow: 0 0 20px var(--glow-strong);
    transform: rotate(90deg) scale(1.1);
}

/* Frame wrapper — maintains aspect ratio, purple outer glow */
.lightbox__frame-wrap {
    position: relative;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1.5px solid rgba(168, 85, 247, 0.4);
    box-shadow:
        0 0 60px rgba(124, 58, 237, 0.35),
        0 30px 80px rgba(0, 0, 0, 0.7);
    background: #000;
}

/* 16:9 default — overridden to 9:16 for shorts by JS */
.lightbox__frame-wrap--horizontal { aspect-ratio: 16 / 9; }
.lightbox__frame-wrap--vertical   { aspect-ratio: 9 / 16; max-width: 420px; margin: 0 auto; }

/* The injected iframe */
.lightbox__frame-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Mobile: tighten padding so video fills screen nicely */
@media (max-width: 600px) {
    .lightbox { padding: 1rem; }
    .lightbox__close { top: -2.75rem; }
    .lightbox__frame-wrap--vertical { max-width: 100%; }
}

/* Lightbox fallback — shown when YouTube blocks the embed */
.lightbox__fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    background: var(--bg-1);
    color: var(--text-muted);
    font-size: 1rem;
    text-align: center;
    padding: 2rem;
}
.lightbox__fallback[hidden] { display: none; }
.lightbox__fallback p {
    font-size: 1rem;
    color: var(--text-muted);
}
