:root {
    --primary: #FFF000;
    --bg: #000000;
    --bg-dark: #050505;
    --surface: #0a0a0a;
    --surface-light: #151515;
    --text: #ffffff;
    --text-muted: #888888;
    --card-bg: rgba(15, 15, 15, 0.85);
    --border-color: rgba(255, 255, 255, 0.1);
    --grid-line: rgba(255, 240, 0, 0.04);
    --primary-glow: rgba(255, 240, 0, 0.12);
    --hotspot-glow: rgba(255, 240, 0, 0.3);
    --grid-color: rgba(255, 240, 0, 0.04);
    --primary-glow-btn: rgba(255, 240, 0, 0.3);
    --border-glass: rgba(255, 255, 255, 0.1);
    --telegram-blue: #229ED9;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #000;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
    /* Multi-layer background: hotspots + diffuse glows + grid */
    background-image:
        radial-gradient(circle at 20% 80%, var(--hotspot-glow) 0%, transparent 25%),
        radial-gradient(circle at 55% 20%, var(--hotspot-glow) 0%, transparent 20%),
        radial-gradient(circle at 80% 50%, var(--primary-glow) 0%, transparent 50%),
        radial-gradient(circle at 10% 10%, var(--primary-glow) 0%, transparent 40%),
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size:
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        45px 45px,
        45px 45px;
    background-attachment: fixed;
}

/* --- LIGHTNING PAGE LOADER --- */
.page-loader {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
}

.page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -1px;
    animation: lightningStrike 1.8s ease-out forwards;
}

.loader-logo .logo-ladder { color: var(--primary); }
.loader-logo .logo-run { color: #ffffff; }

@keyframes lightningStrike {
    0% {
        clip-path: polygon(0 50%, 100% 50%, 100% 50%, 0 50%);
        filter: brightness(0);
        transform: scale(0.9) skewX(-20deg);
    }
    10% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        filter: brightness(2) drop-shadow(0 0 50px var(--primary));
        transform: scale(1.1) skewX(10deg);
    }
    15% {
        filter: brightness(0);
        transform: scale(1) skewX(0);
    }
    20% {
        filter: brightness(2.5) drop-shadow(0 0 60px var(--primary));
        transform: scale(1.05) skewX(-5deg);
    }
    25% {
        filter: brightness(1) drop-shadow(0 0 15px var(--primary));
        transform: scale(1) skewX(0);
    }
    100% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        filter: brightness(1) drop-shadow(0 0 0 transparent);
        transform: scale(1) skewX(0);
    }
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.highlight {
    color: var(--primary);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-align: center;
}

.section-padding {
    padding: 8rem 0;
}

/* --- Pure CSS background system (Cyberpunk / Tech) --- */
.section-bg {
    position: relative;
    background: transparent !important;
}
.section-bg::before,
.section-bg::after {
    display: none !important;
}
.section-bg .container,
.section-bg .hero-content { position: relative; z-index: 2; }

/* Highlight box (semi-transparent yellow square) on Hero */
.hero.section-bg::before {
    display: block !important;
    content: '';
    position: absolute;
    top: 15%;
    left: 45%;
    width: 200px;
    height: 200px;
    background: rgba(255, 240, 0, 0.03);
    border: 1px solid rgba(255, 240, 0, 0.1);
    box-shadow: 0 0 40px rgba(255, 240, 0, 0.05);
    z-index: 0;
    pointer-events: none;
}

/* --- SCROLL REVEAL (fade-in on scroll) --- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
/* Stagger children in grids */
.offer-grid .reveal:nth-child(1) { transition-delay: 0.05s; }
.offer-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.offer-grid .reveal:nth-child(3) { transition-delay: 0.15s; }
.testimonials-grid .reveal:nth-child(1) { transition-delay: 0.05s; }
.testimonials-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.testimonials-grid .reveal:nth-child(3) { transition-delay: 0.15s; }
.team-grid .reveal:nth-child(1) { transition-delay: 0.05s; }
.team-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.gallery-track .reveal:nth-child(1) { transition-delay: 0.05s; }
.gallery-track .reveal:nth-child(2) { transition-delay: 0.1s; }
.gallery-track .reveal:nth-child(3) { transition-delay: 0.15s; }

/* --- BUTTONS (Stairs stílus: lekerekített + shine) --- */
.btn,
.nav-cta-button {
    display: inline-block;
    background: var(--primary);
    color: #000;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 240, 0, 0.2);
}

.btn::before,
.nav-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before,
.nav-cta-button:hover::before {
    left: 100%;
}

.btn:hover,
.nav-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow-btn);
}

.btn-primary { background: var(--primary); color: #000; }
.btn-primary:hover { background: #fff; }

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.nav-cta-button {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
    background: #fff;
    color: #000;
}
.nav-cta-button:hover {
    background: var(--primary);
}

@media (max-width: 398px) {
    .nav-cta-button {
        font-size: 0.65rem;
        padding: 0.5rem 0.85rem;
        white-space: nowrap;
    }
}

/* --- STABIL ÉS PROFI NAVBAR --- */
.header {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 100%;
    max-width: 1200px;
    padding: 0 1rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav {
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    padding: 0.6rem 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.nav-actions { display: flex; align-items: center; gap: 1rem; }

.header.scrolled {
    top: 1rem;
    max-width: 450px;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -1px;
    text-decoration: none;
    color: inherit;
}
.logo-icon,
.nav-logo .bi { color: var(--primary); font-size: 1.25rem; }
img.logo-icon {
    height: 1.75rem;
    width: auto;
    display: block;
    object-fit: contain;
}
.logo-text { display: inline; }
.footer-logo { justify-content: center; }
.logo-ladder { color: var(--primary); }
.logo-run { color: var(--text); }

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

/* --- DOBOZOK ELKÜLÖNÍTÉSE (Glassmorphism kártyák) --- */
.offer-card-new,
.testi-card,
.team-card,
.step-content {
    background: var(--card-bg) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.6),
        inset 0 0 20px rgba(255, 255, 255, 0.02) !important;
    transition: all 0.4s ease;
}

.offer-card-new:hover,
.testi-card:hover,
.team-card:hover {
    border-color: var(--primary) !important;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(255, 240, 0, 0.1) !important;
    transform: translateY(-5px);
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 100px;
    background: radial-gradient(circle at center, rgba(255, 240, 0, 0.05) 0%, rgba(0,0,0,1) 60%);
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero-content p,
.hero-subline {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* --- ULTIMATE GLOWING VSL FRAME --- */
.vsl-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background: rgba(255, 255, 255, 0.03);
    padding: 2px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow:
        0 0 20px rgba(255, 240, 0, 0.1),
        0 0 40px rgba(255, 240, 0, 0.05);
    animation: wrapperPulse 4s infinite alternate ease-in-out;
    backdrop-filter: blur(8px);
}

.vsl-wrapper::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: conic-gradient(
        transparent,
        rgba(255, 240, 0, 0.1),
        var(--primary),
        rgba(255, 240, 0, 0.1),
        transparent 30%
    );
    animation: rotateBeam 4s linear infinite;
    z-index: 0;
}

.vsl-wrapper::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: #000;
    border-radius: 2px;
    z-index: 1;
}

.video-placeholder {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.vsl-preview,
.hero-vsl {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.vsl-preview {
    z-index: 2;
    transition: opacity 0.3s ease;
}
.hero-vsl { display: block; z-index: 1; }
.video-placeholder.playing .vsl-preview { opacity: 0; pointer-events: none; }
.video-placeholder.playing .play-btn { opacity: 0; pointer-events: none; }
.video-placeholder.playing .play-btn:hover { opacity: 0; }

.play-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10;
    box-shadow: 0 0 30px rgba(255, 240, 0, 0.6);
    border: 2px solid rgba(0, 0, 0, 0.2);
}

.play-btn:hover {
    box-shadow: 0 0 50px rgba(255, 240, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}
.play-btn i,
.play-btn .bi { color: black; font-size: 2.5rem; }

@keyframes rotateBeam {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes wrapperPulse {
    0% {
        box-shadow: 0 0 20px rgba(255, 240, 0, 0.15), 0 0 40px rgba(255, 240, 0, 0.05);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 0 35px rgba(255, 240, 0, 0.3), 0 0 70px rgba(255, 240, 0, 0.1);
        transform: scale(1.005);
    }
}

/* --- FEATURES (SERVICE CARDS) --- */
#work .section-title { text-align: center; }
.offer-social-proof {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: -0.5rem;
    margin-bottom: 2rem;
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}
.offer-card-new {
    position: relative;
    padding: 2.5rem;
    background: #000 !important;
    background-image:
        linear-gradient(rgba(255, 240, 0, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 240, 0, 0.06) 1px, transparent 1px) !important;
    background-size: 20px 20px !important;
}
.offer-logo {
    display: block;
    height: 56px;
    width: auto;
    margin-bottom: 1.5rem;
    object-fit: contain;
}
.offer-card-new h3 {
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    color: var(--text);
}
.offer-card-new p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- STATS SECTION --- */
.stats-section {
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(90deg, #000 0%, #050505 50%, #000 100%);
    margin-bottom: 2rem;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    text-align: center;
}

.stat-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.stat-item.active { opacity: 1; transform: translateY(0); }
.stat-item i,
.stat-item .bi { font-size: 2rem; color: var(--text-muted); margin-bottom: 1rem; }

.stat-number-wrapper {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    font-family: 'Inter', monospace;
    text-shadow: 0 0 10px rgba(255, 240, 0, 0.3);
    transition: text-shadow 0.4s ease, filter 0.4s ease;
}

.stat-label {
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- THE LADDER (Interactive Scroll Workflow) --- */
:root {
    --ladder-center: 50%;
    --ladder-width: 80px; /* Width between the two rails */
}

.workflow-container.ladder-mode { position: relative; max-width: 800px; margin: 0 auto; padding-top: 2rem; }

/* The Track & Rails */
.ladder-track {
    position: absolute; top: 0; bottom: 0; left: 0; right: 0;
    pointer-events: none; z-index: 1;
}
.rail {
    position: absolute; top: 0; bottom: 0; width: 4px;
    background: rgba(255, 255, 255, 0.05); /* Dim rail background */
}
.rail-left { left: calc(var(--ladder-center) - (var(--ladder-width) / 2)); }
.rail-right { left: calc(var(--ladder-center) + (var(--ladder-width) / 2)); }

/* The Glowing Scroll Fill */
.rail::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%;
    height: var(--ladder-progress, 0%); /* Controlled by JS */
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
    transition: height 0.1s ease-out;
}

/* Steps Setup */
.workflow-step { position: relative; margin-bottom: 6rem; width: 50%; opacity: 0; transform: translateY(30px); transition: all 0.6s ease; z-index: 2; }
.workflow-step.active { opacity: 1; transform: translateY(0); }

/* The Horizontal Rungs */
.ladder-rung {
    position: absolute; height: 4px; top: 20px;
    width: var(--ladder-width);
    left: var(--ladder-center);
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.5s ease;
    z-index: 1;
}
/* Rungs glow when step becomes active */
.workflow-step.active .ladder-rung { background: var(--primary); box-shadow: 0 0 10px var(--primary); }

/* Step Numbers sitting directly on the rungs */
.step-number {
    position: absolute; width: 44px; height: 44px; top: 0;
    left: var(--ladder-center); transform: translateX(-50%);
    background: var(--bg); border: 2px solid rgba(255,255,255,0.1); color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 1.2rem; font-family: 'Inter', monospace;
    z-index: 3; border-radius: 4px; transition: all 0.5s ease;
}
.workflow-step.active .step-number {
    border-color: var(--primary); color: var(--bg); background: var(--primary);
    box-shadow: 0 0 20px rgba(255, 240, 0, 0.4);
}

/* Desktop Alternating Layout */
.workflow-step:nth-child(odd) { margin-left: auto; padding-left: 70px; }
.workflow-step:nth-child(even) { margin-right: auto; padding-right: 70px; text-align: right; }
.step-content {
    background: #000 !important;
    background-image:
        linear-gradient(rgba(255, 240, 0, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 240, 0, 0.06) 1px, transparent 1px) !important;
    background-size: 20px 20px !important;
    padding: 2rem;
    border: 1px solid #FFF000 !important;
    border-radius: 16px;
    transition: 0.3s;
}
.workflow-step.active .step-content { border-color: #FFF000 !important; }
.step-content h3 { color: var(--primary); margin-bottom: 0.5rem; text-transform: uppercase; font-size: 1rem; letter-spacing: 0.5px; }

/* Mobile Layout overrides */
@media (max-width: 768px) {
    :root {
        --ladder-center: 40px; /* Shift ladder to the left side */
        --ladder-width: 40px; /* Make ladder slightly narrower on mobile */
    }
    .workflow-step { width: 100%; margin-bottom: 4rem; }
    .workflow-step:nth-child(odd), .workflow-step:nth-child(even) { margin-left: 0; margin-right: 0; padding-left: 80px; padding-right: 0; text-align: left; }
}

/* --- TESTIMONIALS --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.testi-card {
    position: relative;
    background: var(--surface);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    outline: 1px solid rgba(255, 240, 0, 0.15);
    outline-offset: -1px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease, outline-color 0.3s ease;
}
.testi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 240, 0, 0.08);
    outline-color: rgba(255, 240, 0, 0.35);
}
/* --- PREMIUM TOP CLIMBER BADGE --- */
.testi-badge {
    position: absolute;
    top: -12px;
    right: 25px;
    background: var(--primary);
    color: #000;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 240, 0, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.testi-card:hover .testi-badge {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 25px rgba(255, 240, 0, 0.6);
}

.testi-badge i,
.testi-badge .bi {
    font-size: 0.75rem;
    margin-bottom: 1px;
}
.testi-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.testi-pic { width: 50px; height: 50px; background: #333; border-radius: 50%; overflow: hidden; }
.testi-pic img { width: 100%; height: 100%; object-fit: cover; }
.testi-info h4 { font-size: 1rem; }
.testi-info span { font-size: 0.8rem; color: var(--primary); }
.tiktok-link, .twitter-link, .instagram-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--primary); font-size: 0.85rem; font-weight: 600; transition: 0.3s; }
.tiktok-link:hover, .twitter-link:hover, .instagram-link:hover { color: var(--text); transform: translateX(3px); }
.testi-quote { font-style: italic; color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1rem; }
.testi-attribution { font-size: 0.85rem; color: var(--text-muted); font-style: normal; }
.reviews-links { margin-top: 4rem; text-align: center; }
.reviews-heading { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 1px; }
.reviews-list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2rem; }
.reviews-list a { color: var(--primary); font-weight: 600; }
.reviews-list a:hover { color: var(--text); }
.reviews-tag { color: var(--text-muted); font-size: 0.85rem; margin-left: 0.5rem; }
#testimonials .container > .section-title,
#testimonials .container > .testimonials-social-proof { text-align: center; }
#testimonials .section-title { display: block; width: 100%; text-align: center; }
.testimonials-social-proof { color: var(--text-muted); margin-bottom: 2rem; font-size: 1rem; }

/* --- INFINITE TESTIMONIAL SLIDER --- */
#testimonials {
    overflow: hidden; /* Ensures no horizontal scrollbar appears on the page */
    padding-bottom: 6rem;
}

.testimonial-slider-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Adds a subtle fade effect on the left and right edges */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.testimonial-track {
    display: flex;
    width: max-content; /* Forces the track to be as wide as all cards combined */
    gap: 2rem;
    /* The animation: name duration timing-function iteration-count */
    animation: scroll-infinite 35s linear infinite;
}

/* Pause animation on hover so people can read */
.testimonial-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-infinite {
    0% {
        transform: translateX(0);
    }
    100% {
        /* We move exactly -50% because JS will double the content. */
        transform: translateX(-50%);
    }
}

/* --- CARD STYLING (infinite slider) --- */
.testimonial-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2.5rem 2rem 2rem 2rem;
    width: 450px;
    flex-shrink: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.3s ease;
}

.testimonial-card:hover {
    border-color: rgba(255, 240, 0, 0.3);
}

.quote-icon {
    color: var(--primary);
    opacity: 0.3;
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    width: 36px;
    height: 36px;
}

.quote-icon svg {
    width: 100%;
    height: 100%;
}

.review-text {
    position: relative;
    z-index: 2;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    margin-top: 2.25rem;
    padding-left: 0.5rem;
    color: var(--text);
}

.reviewer-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #0a0a0a;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: fit-content;
}

a.reviewer-profile-link {
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease;
}
a.reviewer-profile-link:hover {
    border-color: rgba(255, 240, 0, 0.3);
}

.profile-pic {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
}

.reviewer-info h4 {
    color: var(--text);
    margin-bottom: 0.2rem;
    font-weight: 700;
    font-size: 1rem;
}

.reviewer-info span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

#testimonials .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

#testimonials .neon-text {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
}

#testimonials .subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

@media (max-width: 768px) {
    .testimonial-card {
        width: 320px;
        padding: 2rem 1.5rem 1.5rem 1.5rem;
    }
    .reviewer-profile {
        padding: 0.5rem 1rem;
        gap: 0.75rem;
    }
    .profile-pic {
        width: 40px;
        height: 40px;
    }
}

/* --- TEAM SECTION --- */
.team-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 3rem; margin-top: 4rem;
}
.team-card {
    background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.1); transition: transform 0.3s ease;
}
.team-card:hover { transform: translateY(-5px); border-color: var(--primary); }
.team-img-wrapper {
    width: 100%;
    height: 380px;
    overflow: hidden;
}
.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    filter: grayscale(100%);
    transition: filter 0.4s ease, transform 0.4s ease;
}
.team-card:hover .team-img-wrapper img { filter: grayscale(0%); transform: scale(1.05); }
.team-info { padding: 2rem; }
.team-name { font-size: 2rem; font-weight: 800; text-transform: uppercase; line-height: 1; margin-bottom: 0.5rem; }
.team-role { display: inline-block; color: var(--bg); background: var(--primary); padding: 0.2rem 0.8rem; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; margin-bottom: 1.5rem; }
.team-bio { color: var(--text-muted); font-size: 0.95rem; font-weight: 400; margin-bottom: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1rem; }
.team-socials a { color: var(--text); font-size: 1.2rem; margin-right: 15px; }
.team-socials a:hover { color: var(--primary); }

/* --- CONTACT SECTION & TELEGRAM MOCKUP --- */
#contact {
    position: relative;
}

#contact .section-header {
    text-align: center;
    margin-bottom: 2rem;
}

#contact .neon-text {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
}

#contact .subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

.telegram-mockup-wrapper {
    max-width: 550px;
    margin: 3rem auto 0;
    text-align: center;
}

.telegram-chat-interface {
    background: var(--card-bg);
    border: 1px solid rgba(34, 158, 217, 0.3);
    box-shadow: 0 10px 40px -10px rgba(34, 158, 217, 0.3);
    border-radius: 20px;
    padding: 1rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.telegram-chat-interface:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px -10px rgba(34, 158, 217, 0.5);
}

.telegram-input-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 14px;
    padding: 0.5rem;
    padding-left: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.telegram-message-preview {
    flex: 1;
    min-width: 0;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    opacity: 0.8;
    margin-right: 1rem;
    /* Allow natural wrapping */
    white-space: normal;
}

.typing-text {
    /* Must be inline so the cursor wraps directly next to the last word */
    display: inline;
    white-space: pre-wrap;
}

/* The blinking cursor attached directly to the end of the text */
.typing-text::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background-color: var(--telegram-blue);
    vertical-align: text-bottom;
    margin-left: 3px;
    animation: blinkCaret 0.75s step-end infinite;
}

/* We use opacity for the blink instead of border-color so it works on the pseudo-element */
@keyframes blinkCaret {
    from, to { opacity: 0; }
    50% { opacity: 1; }
}

.telegram-send-button {
    background: var(--telegram-blue);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(34, 158, 217, 0.5);
    position: relative;
    overflow: hidden;
}

.telegram-send-button svg {
    width: 26px;
    height: 26px;
    transform: translateX(-2px) rotate(0deg);
    transition: transform 0.3s ease;
}

.telegram-send-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(34, 158, 217, 0.7);
}

.telegram-send-button:hover svg {
    transform: translateX(2px) translateY(-2px) rotate(-10deg);
}

.telegram-send-button::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--telegram-blue);
    animation: pulse-blue 2s infinite;
    opacity: 0;
}

@keyframes pulse-blue {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

.telegram-subtext {
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

@media (max-width: 480px) {
    .telegram-send-button { width: 48px; height: 48px; }
    .telegram-send-button svg { width: 22px; height: 22px; }
}

/* --- FOOTER --- */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 0;
    margin-top: 5rem;
    text-align: center;
}
.socials { display: flex; justify-content: center; gap: 1.5rem; margin-top: 2rem; }
.socials a { font-size: 1.2rem; color: var(--text-muted); }
.socials a:hover { color: var(--primary); }

/* --- GALLERY --- */
.gallery-header {
    text-align: center;
    margin-bottom: 2rem;
}
.gallery-header .section-title { margin-bottom: 0.5rem; }
.gallery-subtitle {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}
.gallery-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.nav-btn {
    background: transparent; border: 1px solid rgba(255, 255, 255, 0.2); color: var(--text);
    width: 50px; height: 50px; border-radius: 50%; cursor: pointer; transition: 0.3s;
    display: flex; align-items: center; justify-content: center;
}
.nav-btn:hover { background: var(--primary); color: var(--bg); border-color: var(--primary); }

.gallery-track {
    display: flex; gap: 2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 2rem; scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-item { min-width: 400px; scroll-snap-align: center; }

.jagged-wrapper {
    position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; cursor: pointer; transition: transform 0.3s ease, filter 0.3s ease;
    clip-path: polygon(0% 0%, 5% 2%, 10% 0%, 15% 2%, 20% 0%, 25% 2%, 30% 0%, 35% 2%, 40% 0%, 45% 2%, 50% 0%, 55% 2%, 60% 0%, 65% 2%, 70% 0%, 75% 2%, 80% 0%, 85% 2%, 90% 0%, 95% 2%, 100% 0%, 100% 100%, 95% 98%, 90% 100%, 85% 98%, 80% 100%, 75% 98%, 70% 100%, 65% 98%, 60% 100%, 55% 98%, 50% 100%, 45% 98%, 40% 100%, 35% 98%, 30% 100%, 25% 98%, 20% 100%, 15% 98%, 10% 100%, 5% 98%, 0% 100%);
}
.jagged-wrapper img, .jagged-wrapper video { width: 100%; height: 100%; object-fit: cover; filter: sepia(0.6) contrast(1.2) grayscale(0.2); transition: filter 0.4s ease, transform 0.4s ease; }
.gallery-video { width: 100%; height: 100%; object-fit: cover; display: block; outline: none; }
.gallery-video:focus { outline: none; }

.jagged-wrapper:hover { transform: scale(1.02); }
.jagged-wrapper:hover img, .jagged-wrapper:hover video { filter: sepia(0) contrast(1) grayscale(0); }
.video-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; z-index: 2; opacity: 0; transition: 0.3s; }
.video-overlay i { font-size: 3rem; color: var(--primary); }
.jagged-wrapper:hover .video-overlay { opacity: 1; }
.work-info { margin-top: 1rem; }
.work-info h4 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.2rem; }
.work-info span,
.work-tag { color: var(--primary); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
.work-tag-bold { font-weight: 700; }

/* --- VIDEO MODAL (Selected Works) --- */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.video-modal[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}
.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}
.video-modal-content {
    position: relative;
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    border-radius: 20px;
    overflow: hidden;
}
.video-modal-close {
    position: absolute;
    top: -3rem;
    right: 0;
    width: 48px;
    height: 48px;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}
.video-modal-close:hover {
    background: var(--primary);
    color: var(--bg);
    border-color: var(--primary);
}
.video-modal-player {
    width: 100%;
    max-height: 90vh;
    object-fit: contain;
    background: #000;
    border: 1px solid rgba(255, 240, 0, 0.2);
    border-radius: 20px;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .offer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .header { max-width: 100%; }
    .nav { flex-wrap: wrap; justify-content: space-between; padding: 0.75rem 1.25rem; border-radius: 24px; }
    .team-grid { grid-template-columns: 1fr; }
    .gallery-item { min-width: 300px; }
}

/* --- CONTACT SECTION CONFETTI --- */
.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* So it doesn't block clicks on the Telegram button */
    overflow: hidden;
    z-index: 10;
}

.confetti {
    position: absolute;
    top: -20px;
    opacity: 0;
    border-radius: 2px;
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(800px) rotate(720deg) scale(0.5);
    }
}