/* ========================================
   DXMEDIA.PL — PREMIUM DARK DESIGN SYSTEM
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;700;900&family=Inter:wght@300;400;600&display=swap');

/* --- TOKENS --- */
:root {
    --primary: #53FC18;
    --primary-dark: #3dd00f;
    --primary-glow: rgba(83, 252, 24, 0.4);
    --primary-subtle: rgba(83, 252, 24, 0.08);
    --bg: #0A0A0A;
    --bg-alt: #050505;
    --surface: #141414;
    --surface-hover: #1a1a1a;
    --border: rgba(255, 255, 255, 0.06);
    --border-active: rgba(83, 252, 24, 0.25);
    --text: #FFFFFF;
    --text-muted: #888888;
    --radius: 14px;
    --radius-sm: 8px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    line-height: 1.15;
}

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

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

/* --- LAYOUT --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 100px 0;
}

/* ========================================
   DECORATIVE BACKGROUND EFFECTS
   ======================================== */
.bg-texture {
    position: fixed;
    inset: 0;
    z-index: -3;
    background: 
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(83, 252, 24, 0.04) 0%, transparent 60%),
        var(--bg);
}

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

/* ========================================
   LIGHTWEIGHT CURSOR GLOW (Desktop only)
   ======================================== */
.cursor-glow {
    position: fixed;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(83, 252, 24, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: left 0.15s linear, top 0.15s linear;
}

@media (max-width: 1024px) {
    .cursor-glow { display: none !important; }
}

/* ========================================
   LENIS SMOOTH SCROLL OPTIMIZATION
   ======================================== */
html.lenis, html.lenis body {
    height: auto;
}

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

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

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

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

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -2;
    opacity: 0.15;
    pointer-events: none;
    will-change: transform;
    animation: orbFloat 20s ease-in-out infinite alternate;
}

.orb-1 { width: 500px; height: 500px; background: var(--primary); top: -10%; left: -5%; }
.orb-2 { width: 600px; height: 600px; background: #6d00cc; bottom: -15%; right: -10%; }
.orb-3 { width: 300px; height: 300px; background: #00a8ff; top: 40%; right: 20%; animation-delay: -5s; }
.orb-4 { width: 350px; height: 350px; background: var(--primary); bottom: 30%; left: 15%; animation-delay: -10s; }
.orb-5 { width: 250px; height: 250px; background: #ff006e; top: 60%; left: 50%; animation-delay: -3s; }
.orb-6 { width: 400px; height: 400px; background: #6d00cc; top: 20%; right: 5%; animation-delay: -8s; }

@keyframes orbFloat {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(30px, -20px) scale(1.1); }
    100% { transform: translate(-20px, 30px) scale(0.95); }
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

/* Logo */
.logo {
    display: flex;
    align-items: baseline;
    gap: 2px;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
    z-index: 1001;
}

.logo-dx {
    color: var(--primary) !important;
}

.logo-media {
    color: var(--text) !important;
}

.logo-dot {
    color: var(--primary) !important;
    display: inline-block;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}

/* Desktop Nav */
.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 5px 0;
    transition: color var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: width var(--transition);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.lang-switch {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    font-family: 'Inter', sans-serif;
    letter-spacing: 1px;
}

.lang-switch:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    z-index: 1001;
    padding: 2px;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

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

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

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

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 120px;
    padding-bottom: 60px;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(83, 252, 24, 0.07) 0%, transparent 60%);
    pointer-events: none;
}

.hero-eyebrow {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--primary);
    margin-bottom: 15px;
    opacity: 0.8;
    font-family: 'Inter', sans-serif;
}

.hero h1 {
    font-size: clamp(2.2rem, 5.5vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.hero h1 span {
    color: var(--primary);
    position: relative;
}

.hero p {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

/* Hero text shimmer effect */
.hero h1 span {
    color: var(--primary);
    position: relative;
    background: linear-gradient(90deg, var(--primary), #00e5ff, var(--primary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShimmer 3s ease-in-out infinite;
}

@keyframes textShimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 200% center; }
}

/* Floating particles */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(83, 252, 24, 0.3), transparent),
        radial-gradient(2px 2px at 40% 70%, rgba(83, 252, 24, 0.2), transparent),
        radial-gradient(1px 1px at 60% 20%, rgba(0, 229, 255, 0.3), transparent),
        radial-gradient(2px 2px at 80% 60%, rgba(83, 252, 24, 0.15), transparent),
        radial-gradient(1px 1px at 10% 80%, rgba(0, 229, 255, 0.2), transparent),
        radial-gradient(1px 1px at 90% 40%, rgba(83, 252, 24, 0.25), transparent);
    animation: particleFloat 8s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes particleFloat {
    0% { transform: translateY(0) scale(1); opacity: 0.6; }
    50% { transform: translateY(-15px) scale(1.05); opacity: 1; }
    100% { transform: translateY(5px) scale(0.98); opacity: 0.7; }
}

/* Glow pulse on primary buttons */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--primary), #00e5ff, var(--primary));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    filter: blur(12px);
    transition: opacity 0.4s ease;
}

.btn-primary:hover::after {
    opacity: 0.6;
    animation: btnGlowPulse 1.5s ease-in-out infinite;
}

@keyframes btnGlowPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

/* ========================================
   REVEAL ANIMATION
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.9s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                transform 0.9s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   PREMIUM SUBTLE ANIMATIONS
   ======================================== */

/* Smooth hover lift on all interactive cards */
.service-card,
.pkg-card,
.portfolio-item,
.contact-chip {
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.4s ease,
                border-color 0.3s ease;
}

.service-card:hover,
.pkg-card:hover,
.portfolio-item:hover {
    box-shadow: 0 12px 40px rgba(83, 252, 24, 0.08);
}

/* Subtle gradient flow on section headings */
.section-heading {
    background-size: 200% auto;
    animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

/* Smooth focus ring for accessibility */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    transition: outline-offset 0.2s ease;
}

/* ========================================
   SCROLL PROGRESS BAR
   ======================================== */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 10005;
    pointer-events: none;
}

.scroll-progress-bar {
    height: 100%;
    background: var(--primary);
    width: 0%;
    box-shadow: 0 0 10px var(--primary);
}

/* ========================================
   MOBILE & PERFORMANCE OPTIMIZATIONS
   ======================================== */

/* Reduce animation intensity on mobile */
@media (max-width: 768px) {
    .glow-orb { opacity: 0.08; filter: blur(80px); }
    .growth-particle { display: none !important; }
    .hero-icon { opacity: 0.15 !important; width: 35px !important; height: 35px !important; }
    .noise-overlay { opacity: 0.015; }
    .bg-texture { opacity: 0.3; }
    .scroll-progress-container { height: 2px; }
    .service-card::after { display: none; }
    .services-category::after { display: none; }
}

/* Respect user's reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .growth-particle { display: none !important; }
    .hero-icon { animation: none !important; }
    .glow-orb { display: none; }
}

/* Staggered reveal children */
.reveal.active .service-card,
.reveal.active .portfolio-item,
.reveal.active .contact-chip {
    opacity: 1;
    transform: translateY(0);
}

/* Glow line animation on category hover */
.services-category {
    position: relative;
}

.services-category::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), #00e5ff, var(--primary), transparent);
    transition: width 0.6s ease, left 0.6s ease;
}

.services-category:hover::after {
    width: 80%;
    left: 10%;
}

/* Smooth scanning line on service cards */
.service-card::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(83, 252, 24, 0.03), transparent);
    transition: top 0.8s ease;
    pointer-events: none;
}

.service-card:hover::after {
    top: 100%;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-decoration: none;
    letter-spacing: 0.2px;
}

.btn-primary {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 0 0 var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--primary-glow);
    background: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-subtle);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.05rem;
    border-radius: var(--radius);
}

.btn-small {
    padding: 9px 18px;
    font-size: 0.85rem;
}

/* ========================================
   STATS / SERVICE GRID
   ======================================== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 60px 0;
}

.service-grid > div {
    padding: 30px;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.service-grid > div:hover {
    border-color: var(--border-active);
    transform: translateY(-4px);
}

.service-grid h3 {
    font-size: 3rem !important;
    color: var(--primary) !important;
    margin-bottom: 8px;
}

.service-grid p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ========================================
   SECTION HEADER (cennik & quiz)
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.section-header h1 span {
    color: var(--primary);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ========================================
   PRICING CARDS
   ======================================== */
.pricing-dashboard {
    max-width: 1000px;
    margin: 0 auto;
}

.pkg-card {
    background: var(--surface);
    padding: 35px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.pkg-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(83, 252, 24, 0.03) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition);
}

.pkg-card:hover {
    border-color: var(--border-active);
    transform: translateY(-5px);
}

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

.pkg-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* ========================================
   STICKY FORM / BRIEF PANEL
   ======================================== */
.sticky-form-wrapper {
    position: fixed;
    right: 0;
    top: 0;
    width: 420px;
    height: 100vh;
    background: var(--surface);
    border-left: 1px solid var(--border);
    padding: 40px 30px;
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.5);
}

body.form-active .sticky-form-wrapper {
    transform: translateX(0);
}

.brief-header h2 {
    font-size: 1.5rem;
    font-weight: 900;
}

.brief-header h2 span {
    color: var(--primary);
}

.brief-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Service Chips Grid */
.service-chips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.chip-item {
    position: relative;
    cursor: pointer;
}

.chip-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.chip-label {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted) !important;
    background: transparent;
    transition: all var(--transition);
    cursor: pointer;
    user-select: none;
}

.chip-item input[type="checkbox"]:checked + .chip-label {
    border-color: var(--primary);
    background: var(--primary-subtle);
    color: var(--primary) !important;
    box-shadow: 0 0 12px rgba(83, 252, 24, 0.15);
}

.chip-label:hover {
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text) !important;
}

/* Form Elements */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 13px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--primary);
    background: rgba(83, 252, 24, 0.03);
    box-shadow: 0 0 0 3px rgba(83, 252, 24, 0.08);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

/* ========================================
   QUIZ CONTAINER
   ======================================== */
.quiz-container h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.quiz-container h2 {
    font-size: 1.8rem;
    font-weight: 900;
}

.quiz-container .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
}

.quiz-opt {
    padding: 14px 20px !important;
    font-size: 1rem !important;
    border-radius: var(--radius-sm) !important;
}

.quiz-opt:hover {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    background: var(--primary-subtle) !important;
    transform: translateY(-2px) !important;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    border-top: 1px solid var(--border) !important;
}

/* ========================================
   COUNTER ANIMATION STYLING
   ======================================== */
.counter {
    font-variant-numeric: tabular-nums;
}

/* ========================================
   RESPONSIVE — TABLET
   ======================================== */
@media (max-width: 992px) {
    .service-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* ========================================
   RESPONSIVE — MOBILE
   ======================================== */
@media (max-width: 768px) {

    /* --- MOBILE MENU --- */
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.97);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transform: translateY(-100%);
        visibility: hidden;
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                    visibility 0.5s;
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0) !important;
        visibility: visible !important;
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 700;
    }

    .nav-links a::after {
        bottom: -4px;
        height: 3px;
    }

    .lang-switch {
        margin-top: 10px;
        padding: 10px 24px;
        font-size: 0.9rem;
    }

    /* --- HERO --- */
    .hero {
        min-height: 90vh;
        padding-top: 100px;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
        letter-spacing: -0.5px;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .hero .btn {
        display: block;
        width: 100%;
        margin: 0 0 12px 0 !important;
        text-align: center;
    }

    /* --- STATS --- */
    .service-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-grid h3 {
        font-size: 2.2rem !important;
    }

    /* --- FORM PANEL --- */
    .sticky-form-wrapper {
        width: 100%;
        padding: 30px 20px;
    }

    /* --- PRICING --- */
    .package-grid {
        grid-template-columns: 1fr !important;
    }

    .pkg-card {
        padding: 25px;
    }

    /* --- HEADER --- */
    .header .container {
        padding: 14px 0;
    }

    /* --- SECTION --- */
    .section {
        padding: 60px 0;
    }
}

/* ========================================
   RESPONSIVE — TABLET
   ======================================== */
@media (max-width: 1024px) {
    #constellation-bg { opacity: 0.4; }
    .hero-decorations { opacity: 0.5; }
}

/* ========================================
   RESPONSIVE — SMALL MOBILE
   ======================================== */
@media (max-width: 400px) {
    .hero h1 {
        font-size: 1.7rem;
    }

    .container {
        width: 92%;
    }

    .service-grid h3 {
        font-size: 1.8rem !important;
    }

    .btn-large {
        padding: 14px 24px;
        font-size: 0.95rem;
    }

    #constellation-bg { display: none; }
}

/* ========================================
   SERVICES SHOWCASE (Homepage)
   ======================================== */
.services-showcase .section-header h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.services-showcase .section-header h2 span {
    color: var(--primary);
}

.services-category {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 35px;
    margin-bottom: 24px;
}

.category-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
}

.category-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.category-header h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--text);
}

.category-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.services-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.services-cards-grid--wide {
    grid-template-columns: repeat(3, 1fr);
}

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

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 24px 20px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(83, 252, 24, 0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition);
}

.service-card:hover {
    border-color: var(--border-active);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

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

.service-card-icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 12px;
}

.service-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
    position: relative;
}

.service-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    position: relative;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 10px 22px;
    background: var(--primary-subtle);
    border: 1px solid var(--border-active);
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
}

.badge-icon {
    font-size: 1.1rem;
}

/* ========================================
   FORM INFO BANNER (Contact page)
   ======================================== */
.form-info-banner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 26px;
    background: rgba(83, 252, 24, 0.04);
    border: 1px solid var(--border-active);
    border-radius: var(--radius);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.form-info-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--primary);
    border-radius: 3px 0 0 3px;
}

.info-banner-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.info-banner-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.info-banner-text strong {
    color: var(--text);
}

/* ========================================
   PORTFOLIO PAGE
   ======================================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.portfolio-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    cursor: pointer;
    transition: all var(--transition);
    border: 1px solid var(--border);
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.05);
}

.portfolio-item--vertical {
    aspect-ratio: 3 / 4;
}

.portfolio-item--large {
    grid-column: span 2;
}

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    transition: all var(--transition);
}

.portfolio-placeholder-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.portfolio-placeholder h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}

.portfolio-placeholder p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 35px;
    opacity: 0;
    transition: opacity var(--transition);
    z-index: 10; /* Ensure overlay is on top of phone */
}

.portfolio-overlay h4 {
    font-size: 1.6rem !important;
    font-weight: 800;
    margin-top: 5px;
}

.portfolio-tag {
    font-size: 0.9rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.portfolio-tag {
    display: inline-block;
    padding: 5px 14px;
    background: var(--primary);
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portfolio-overlay h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

/* ========================================
   ACCESSIBILITY & MISC
   ======================================== */
::selection {
    background: var(--primary);
    color: #000;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Focus visible for keyboard nav */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Social to ROI Transformation Animation (7s Loop) */
.roi-animation-container {
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Phase 1: Social */
.social-phase {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: phase1Fade 7s infinite;
}

.floating-heart {
    font-size: 2.5rem;
    color: #ff0050; /* TikTok Red/Pink */
    filter: drop-shadow(0 0 10px rgba(255,0,80,0.5));
    animation: heartPulse 1.5s infinite ease-in-out;
    margin-bottom: 10px;
}

.follower-count {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    color: #fff;
    letter-spacing: -1px;
}

/* Phase 2: Money */
.money-phase {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: phase2Fade 7s infinite;
}

.floating-money {
    font-size: 3rem;
    color: var(--primary);
    filter: drop-shadow(0 0 15px var(--primary));
    animation: moneyFloat 2s infinite ease-in-out;
    margin-bottom: 10px;
}

.profit-stat {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--primary);
    background: rgba(83, 252, 24, 0.1);
    padding: 5px 15px;
    border-radius: 50px;
    border: 1px solid var(--primary);
}

/* Keyframes */
@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes moneyFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

@keyframes phase1Fade {
    0%, 5% { opacity: 0; transform: scale(0.95); }
    15%, 45% { opacity: 1; transform: scale(1); }
    50%, 100% { opacity: 0; transform: scale(1.1); }
}

@keyframes phase2Fade {
    0%, 50% { opacity: 0; transform: translateY(20px); }
    60%, 85% { opacity: 1; transform: translateY(0); }
    95%, 100% { opacity: 0; transform: translateY(-20px); }
}

.flash-overlay {
    position: absolute;
    inset: 0;
    background: var(--primary);
    opacity: 0;
    z-index: 10;
    animation: flashTrigger 7s infinite;
}

@keyframes flashTrigger {
    0%, 48% { opacity: 0; }
    50% { opacity: 0.4; }
    52%, 100% { opacity: 0; }
}

/* ========================================
   CONTACT PAGE
   ======================================== */
.contact-page-layout {
    max-width: 750px;
    margin: 0 auto;
}

.contact-form-full {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 6px;
}

.form-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}

.form-section-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 18px;
}

/* Contact chips (with icons) */
.contact-chips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.contact-chip {
    position: relative;
    cursor: pointer;
}

.contact-chip input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.contact-chip-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted) !important;
    background: rgba(255,255,255,0.02);
    transition: all var(--transition);
    cursor: pointer;
    user-select: none;
}

.chip-icon {
    font-size: 1.1rem;
    color: inherit !important;
}

.contact-chip input:checked + .contact-chip-label {
    border-color: var(--primary);
    background: var(--primary-subtle);
    color: var(--primary) !important;
    box-shadow: 0 0 15px rgba(83, 252, 24, 0.1);
}

.contact-chip-label:hover {
    border-color: rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
}

/* Package radio buttons */
.package-select-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.package-radio {
    position: relative;
    cursor: pointer;
}

.package-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.package-radio-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    cursor: pointer;
}

.package-radio-label strong {
    font-size: 1.05rem;
    margin-bottom: 4px;
    color: var(--text) !important;
}

.package-radio-label small {
    font-size: 0.78rem;
    color: var(--text-muted) !important;
}

.package-radio input:checked + .package-radio-label {
    border-color: var(--primary);
    background: var(--primary-subtle);
    box-shadow: 0 0 20px rgba(83, 252, 24, 0.1);
}

.package-radio input:checked + .package-radio-label strong {
    color: var(--primary) !important;
}

.package-radio-label:hover {
    border-color: rgba(255,255,255,0.12);
}

/* Budget chips */
.budget-select-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.budget-chip {
    position: relative;
    cursor: pointer;
}

.budget-chip input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.budget-chip-label {
    display: block;
    text-align: center;
    padding: 13px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted) !important;
    transition: all var(--transition);
    cursor: pointer;
}

.budget-chip input:checked + .budget-chip-label {
    border-color: var(--primary);
    background: var(--primary-subtle);
    color: var(--primary) !important;
}

.budget-chip-label:hover {
    border-color: rgba(255,255,255,0.12);
}

/* Form row (2 columns) */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 4px;
}

.form-disclaimer {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 12px;
    opacity: 0.7;
}

/* Contact success */
.contact-success {
    text-align: center;
    max-width: 500px;
    margin: 60px auto;
    padding: 60px 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.success-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background: var(--primary);
    color: #000;
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0 auto 24px;
}

.contact-success h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.contact-success p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* ========================================
   QUIZ — REDESIGNED
   ======================================== */
.quiz-container {
    max-width: 650px;
    margin: 0 auto;
    background: var(--surface);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.quiz-animate {
    animation: quizSlideIn 0.4s ease-out;
}

@keyframes quizSlideIn {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Progress bar */
.quiz-progress {
    max-width: 650px;
    margin: 0 auto 20px;
}

.quiz-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #00e5ff);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.quiz-progress-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Question header */
.quiz-question-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
}

.quiz-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Answer buttons */
.quiz-answers {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-answer-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all var(--transition);
    text-align: left;
}

.quiz-answer-btn:hover {
    border-color: var(--primary);
    background: var(--primary-subtle);
    transform: translateX(4px);
}

.quiz-answer-btn.selected {
    border-color: var(--primary);
    background: var(--primary-subtle);
    color: var(--primary);
}

.quiz-answer-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted) !important;
    transition: all var(--transition);
}

.quiz-answer-btn:hover .quiz-answer-indicator {
    background: var(--primary);
    color: #000 !important;
}

.quiz-answer-btn.selected .quiz-answer-indicator {
    background: var(--primary);
    color: #000 !important;
}

.quiz-answer-text {
    color: inherit !important;
}

/* ========================================
   QUIZ RESULTS
   ======================================== */
.quiz-results {
    text-align: center;
}

.results-header {
    margin-bottom: 30px;
}

.results-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.results-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.results-tier-badge {
    display: inline-block;
    padding: 8px 28px;
    background: linear-gradient(135deg, var(--primary), #00e5ff);
    color: #000 !important;
    font-weight: 800;
    font-size: 1.2rem;
    border-radius: 50px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.results-tier-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 450px;
    margin: 0 auto;
}

.results-section {
    text-align: left;
    margin-bottom: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.results-section h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 14px;
    font-weight: 600;
}

.results-services {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.result-service-tag {
    padding: 8px 18px;
    background: var(--primary-subtle);
    border: 1px solid var(--border-active);
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--primary) !important;
}

/* Score bars */
.score-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.score-bar-item {
    opacity: 0.6;
}

.score-bar-item.top-score {
    opacity: 1;
}

.score-bar-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.score-bar-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text) !important;
}

.score-bar-value {
    font-size: 0.8rem;
    color: var(--text-muted) !important;
    font-weight: 600;
}

.score-bar-track {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    overflow: hidden;
}

.score-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #00e5ff);
    border-radius: 10px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.results-cta {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* ========================================
   CONTACT & QUIZ RESPONSIVE
   ======================================== */
@media (max-width: 992px) {
    .services-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-cards-grid--wide {
        grid-template-columns: repeat(3, 1fr);
    }

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

@media (max-width: 768px) {
    .contact-chips-grid {
        grid-template-columns: 1fr 1fr;
    }

    .package-select-grid {
        grid-template-columns: 1fr;
    }

    .budget-select-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-section {
        padding: 22px 18px;
    }

    .quiz-container {
        padding: 25px 20px;
    }

    .quiz-answer-btn {
        padding: 14px 16px;
        font-size: 0.9rem;
    }

    .results-tier-badge {
        font-size: 1rem;
    }

    /* Services showcase mobile */
    .services-cards-grid {
        grid-template-columns: 1fr;
    }

    .services-category {
        padding: 22px 18px;
    }

    .category-header h3 {
        font-size: 1.2rem;
    }

    .category-badge {
        font-size: 0.82rem;
        padding: 8px 16px;
    }

    /* Info banner mobile */
    .form-info-banner {
        padding: 18px 20px;
        gap: 12px;
    }

    .info-banner-text {
        font-size: 0.85rem;
    }

    /* Services CTA mobile */
    .services-cta .btn {
        display: block;
        width: 100%;
        margin: 0 0 12px 0 !important;
    }

    /* Portfolio mobile */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-item--large {
        grid-column: span 1;
    }
}

@media (max-width: 400px) {
    .contact-chips-grid {
        grid-template-columns: 1fr;
    }

    .quiz-question-header h3 {
        font-size: 1.15rem;
    }
}

/* ========================================
   UTILITIES & ICON COLORIZATION
   ======================================== */
.dx-icon-green {
    /* Filter to shift colors to #53FC18 */
    filter: invert(77%) sepia(85%) saturate(1210%) hue-rotate(58deg) brightness(105%) contrast(105%);
    display: inline-block;
    transition: transform var(--transition);
}

.service-card:hover .dx-icon-green,
.portfolio-item:hover .dx-icon-green {
    transform: scale(1.15);
}

/* Industries Grid Mobile */
@media (max-width: 768px) {
    .industries-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .target-industries {
        padding: 30px 20px !important;
    }
}

/* ========================================
   TRUST & CONVERSION SECTIONS
   ======================================== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.process-step {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    position: relative;
    transition: all var(--transition);
}

.process-step:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.step-number {
    width: 60px;
    height: 60px;
    line-height: 60px;
    margin: 0 auto 20px;
    background: var(--primary-subtle);
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 900;
    border-radius: 50%;
    border: 1px solid rgba(83, 252, 24, 0.3);
}

.process-step h4 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 10px;
}

.process-step p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 30px;
    transition: all var(--transition);
}

.testimonial-card:hover {
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.review-text {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 30px;
    font-style: italic;
}

.reviewer {
    display: flex;
    flex-direction: column;
}

.reviewer strong {
    font-size: 1rem;
    color: var(--primary);
}

.reviewer span {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* About Chat */
.about-chat:hover {
    border-color: var(--primary) !important;
    background: rgba(83, 252, 24, 0.08) !important;
}

/* FAQ */
.faq-list {
    margin-top: 40px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
    background: var(--surface);
    overflow: hidden;
    transition: all var(--transition);
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(83, 252, 24, 0.05);
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
}

.faq-question h4 {
    font-size: 1.05rem;
    margin: 0;
    color: var(--text);
    transition: color var(--transition);
}

.faq-item.active .faq-question h4 {
    color: var(--primary);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    padding: 0 25px 20px 25px;
    max-height: 500px;
}

.faq-answer p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* ========================================
   VIDEO & MOTION SHOWCASE
   ======================================== */
.video-card {
    position: relative;
    background: #000;
    overflow: hidden;
    height: 100%;
    min-height: 480px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 30px 0; /* Reduced top padding to move it higher */
}

.phone-mockup {
    width: 120px; /* Further reduced to avoid any clipping */
    height: 240px; /* Further reduced to avoid any clipping */
    background: #111;
    border: 4px solid #222;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 1;
}

.phone-mockup video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone-screen-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--primary-transparent) 0%, transparent 70%);
    opacity: 0.3;
    z-index: 1;
}

/* SVG Logo Animations */
@keyframes logoPulse {
    0% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.02); filter: brightness(1.2); }
    100% { transform: scale(1); filter: brightness(1); }
}

.portfolio-item:hover .portfolio-placeholder img {
    animation: logoPulse 2s infinite ease-in-out;
}

/* Social to ROI Transformation Animation (7s Loop) */
.roi-animation-container {
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Phase 1: Social */
.social-phase {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: phase1Fade 7s infinite;
}

.floating-heart {
    font-size: 2.5rem;
    color: #ff0050; /* TikTok Red/Pink */
    filter: drop-shadow(0 0 10px rgba(255,0,80,0.5));
    animation: heartPulse 1.5s infinite ease-in-out;
    margin-bottom: 10px;
}

/* 4-Phase Storytelling Animation */
.social-phase, .likes-phase, .followers-phase, .customers-phase {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    text-align: center;
    width: 100%;
    padding: 10px; /* Reduced padding for smaller phone */
}

.phase-1 { animation: phase1Story 12s infinite; }
.phase-2 { animation: phase2Story 12s infinite; }
.phase-3 { animation: phase3Story 12s infinite; }
.phase-4 { animation: phase4Story 12s infinite; }

@keyframes phase1Story {
    0%, 20% { opacity: 1; transform: scale(1); }
    25%, 100% { opacity: 0; transform: scale(1.1); }
}

@keyframes phase2Story {
    0%, 25% { opacity: 0; transform: translateY(10px); }
    30%, 45% { opacity: 1; transform: translateY(0); }
    50%, 100% { opacity: 0; transform: translateY(-10px); }
}

@keyframes phase3Story {
    0%, 50% { opacity: 0; transform: translateY(10px); }
    55%, 70% { opacity: 1; transform: translateY(0); }
    75%, 100% { opacity: 0; transform: translateY(-10px); }
}

@keyframes phase4Story {
    0%, 75% { opacity: 0; transform: translateY(10px); }
    80%, 95% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}

.flash-overlay {
    position: absolute;
    inset: 0;
    background: var(--primary);
    opacity: 0;
    z-index: 10;
    animation: flashStory 12s infinite;
}

@keyframes flashStory {
    0%, 24%, 49%, 74%, 99% { opacity: 0; }
    25%, 50%, 75% { opacity: 0.3; }
}

/* ========================================
   PREMIUM PRELOADER & LOGO FLIGHT
   ======================================== */
#preloader {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

/* Instant Disable to prevent flickering */
.preloader-disabled #preloader,
.preloader-disabled .preloader-logo {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.preloader-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.preloader-logo {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 4rem; /* Big in center */
    letter-spacing: -2px;
    color: var(--text);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
    transition: all 0.7s cubic-bezier(0.85, 0, 0.15, 1);
    white-space: nowrap;
}

.preloader-logo .logo-dx {
    color: var(--primary);
    filter: drop-shadow(0 0 20px rgba(83, 252, 24, 0.5));
}

.preloader-logo .logo-dot {
    color: var(--primary);
}

/* Flight Animation State */
body.site-loaded #preloader {
    opacity: 0;
    pointer-events: none;
}

body.site-loaded .preloader-logo {
    font-size: 1.6rem;
    letter-spacing: -0.5px;
    font-weight: 900;
    line-height: 1.2;
    top: 16px; 
    left: max(5%, calc(50% - 603px));
    transform: translate(0, 0);
    opacity: 0;
    visibility: hidden;
    transition: all 0.7s cubic-bezier(0.85, 0, 0.15, 1), opacity 0.01s 0.7s, visibility 0.01s 0.7s;
}

/* Hide real header logo ONLY when preloader is physically active on the page */
body.preloader-active:not(.site-loaded) header.header .logo {
    opacity: 0;
    visibility: hidden;
}

body.site-loaded header.header .logo {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s 0.7s, visibility 0.3s 0.7s;
}

/* Reveal site content */
.main-content {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

body.site-loaded .main-content {
    opacity: 1;
}

/* ========================================
   HERO DECORATIONS & GROWTH PARTICLES
   ======================================== */
.hero-decorations {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.hero-icon {
    position: absolute;
    color: var(--primary);
    opacity: 0.15;
    filter: drop-shadow(0 0 10px var(--primary));
    animation: floatHero 8s ease-in-out infinite;
}

.hero-icon svg {
    width: 60px;
    height: 60px;
}

/* Specific positions */
.icon-ig { top: 15%; left: 10%; animation-delay: 0s; }
.icon-tt { top: 25%; right: 12%; animation-delay: 2s; }
.icon-fb { bottom: 20%; left: 15%; animation-delay: 4s; opacity: 0.1; }
.icon-yt { bottom: 30%; right: 8%; animation-delay: 1s; opacity: 0.12; }

@keyframes floatHero {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

.growth-particle {
    position: absolute;
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.p-icon {
    font-size: 1.2em;
    filter: drop-shadow(0 0 5px var(--primary));
}

.p-text {
    font-size: 0.9em;
    opacity: 0.8;
}

@keyframes particleFlow {
    0% { transform: translateY(100px) scale(0.5); opacity: 0; }
    20% { opacity: 0.4; }
    80% { opacity: 0.4; }
    100% { transform: translateY(-400px) scale(1.2); opacity: 0; }
}

/* ========================================
   CALLBACK POPUP STYLES
   ======================================== */
.callback-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.callback-overlay.active {
    opacity: 1;
    visibility: visible;
}

.callback-popup {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: var(--radius-lg);
    max-width: 450px;
    width: 90%;
    position: relative;
    text-align: center;
    transform: translateY(30px);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(83, 252, 24, 0.1);
}

.callback-overlay.active .callback-popup {
    transform: translateY(0);
}

.callback-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.callback-close:hover {
    color: var(--primary);
}

.callback-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary);
    filter: drop-shadow(0 0 10px var(--primary));
    display: inline-block;
}

.callback-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #fff;
}

.callback-subtitle {
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.6;
}

.callback-subtitle strong {
    color: var(--primary);
}

.callback-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.callback-input-wrap input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.callback-input-wrap input:focus {
    border-color: var(--primary);
    outline: none;
}

.callback-submit {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
}

.callback-divider {
    margin: 25px 0;
    position: relative;
    text-align: center;
}

.callback-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border);
    z-index: 1;
}

.callback-divider span {
    background: rgba(20, 20, 20, 1);
    padding: 0 15px;
    color: var(--text-muted);
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

.callback-call-link {
    display: block;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: transform 0.3s, color 0.3s;
}

.callback-call-link:hover {
    color: var(--primary);
    transform: scale(1.05);
}

.callback-success {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 20, 0.98);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    border-radius: var(--radius-lg);
    z-index: 5;
}

.callback-success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px var(--primary));
}

@media (max-width: 480px) {
    .callback-popup {
        padding: 30px 20px;
    }
    .callback-title {
        font-size: 1.5rem;
    }
}

/* ========================================
   FLOATING PHONE BUTTON
   ======================================== */
.floating-phone-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.8rem;
    color: var(--primary);
    box-shadow: 0 0 20px rgba(83, 252, 24, 0.2);
    z-index: 9999;
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
    animation: phonePulse 2s infinite;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.floating-phone-btn:hover {
    transform: scale(1.1);
    background: rgba(83, 252, 24, 0.1);
    box-shadow: 0 0 30px rgba(83, 252, 24, 0.4);
}

@keyframes phonePulse {
    0% { box-shadow: 0 0 0 0 rgba(83, 252, 24, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(83, 252, 24, 0); }
    100% { box-shadow: 0 0 0 0 rgba(83, 252, 24, 0); }
}

@media (max-width: 768px) {
    .floating-phone-btn {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
    }
}
