/* ============================================
   WAIPRO - Stile Definitivo 2026
   WOW Effects Edition - Huly Style
   ============================================ */

/* ============================================
   PALETTE DEFINITIVA (CSS VARIABLES)
   ============================================ */
:root {
    /* Primary */
    --primary-500: #6366f1;
    --primary-600: #4f46e5;
    --primary-400: #818cf8;

    /* Secondary */
    --secondary-500: #3b82f6;
    --secondary-600: #2563eb;

    /* Accent */
    --accent-500: #06b6d4;
    --accent-400: #22d3ee;

    /* Backgrounds */
    --bg-dark: #0a0a0f;
    --bg-card: #111118;
    --bg-elevated: #1a1a24;

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    /* Status */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    --gradient-hero: linear-gradient(180deg, #0a0a0f 0%, #111118 100%);
    --gradient-text: linear-gradient(90deg, #6366f1, #06b6d4);
    --gradient-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.5) 0%, rgba(6, 182, 212, 0.5) 100%);

    /* Legacy mapping (retrocompatibilita) */
    --bg-primary: var(--bg-dark);
    --bg-secondary: var(--bg-card);
    --bg-tertiary: var(--bg-elevated);
    --text-tertiary: var(--text-muted);
    --accent-purple: var(--primary-500);
    --accent-blue: var(--secondary-500);
    --accent-cyan: var(--accent-500);
    --accent-green: var(--success);
    --accent-pink: #ec4899;
    --accent-yellow: var(--warning);

    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-bg-hover: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.15);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.3);
    --shadow-glow-cyan: 0 0 60px rgba(6, 182, 212, 0.3);

    /* Sizing */
    --nav-height: 72px;
    --panel-width: 100vw;

    /* Animation */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: 150ms var(--ease-out);
    --transition-normal: 300ms var(--ease-out);
    --transition-slow: 500ms var(--ease-out);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

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

::selection {
    background: rgba(99, 102, 241, 0.3);
    color: var(--text-primary);
}

/* ============================================
   RADIAL GLOW BACKGROUNDS - HULY STYLE
   ============================================ */
.radial-glow {
    position: fixed;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.radial-glow.active {
    opacity: 1;
}

.radial-glow-1 {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    filter: blur(80px);
}

.radial-glow-2 {
    background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
    filter: blur(80px);
}

/* ============================================
   CUSTOM CURSOR GLOW
   ============================================ */
.cursor-glow {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient-primary);
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: screen;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease;
}

.cursor-glow::after {
    content: '';
    position: absolute;
    inset: -15px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
    animation: cursor-pulse 2s ease-in-out infinite;
}

@keyframes cursor-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.3; }
}

.cursor-glow.hover {
    width: 40px;
    height: 40px;
}

/* Default cursor for interactive elements */
a, button, input, select, textarea, [role="button"] {
    cursor: none;
}

/* Fallback for mobile */
@media (hover: none) {
    body { cursor: auto; }
    .cursor-glow { display: none; }
    a, button, input, select, textarea, [role="button"] { cursor: pointer; }
}

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

.bg-gradient-orbs {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
    animation: orb-float 20s ease-in-out infinite;
    will-change: transform;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--primary-500);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary-500);
    bottom: -150px;
    left: -150px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--accent-500);
    top: 50%;
    left: 50%;
    animation-delay: -14s;
}

@keyframes orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -50px) scale(1.05); }
    50% { transform: translate(-30px, 30px) scale(0.95); }
    75% { transform: translate(30px, 50px) scale(1.02); }
}

/* ============================================
   HERO CLIP-PATH ANIMATION
   ============================================ */
.hero-clip-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-clip-shape {
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.08) 0%,
        rgba(139, 92, 246, 0.05) 30%,
        rgba(6, 182, 212, 0.08) 60%,
        transparent 100%);
    clip-path: polygon(0% 0%, 100% 0%, 100% 70%, 80% 100%, 0% 100%);
    animation: heroClipMorph 15s ease-in-out infinite;
}

@keyframes heroClipMorph {
    0%, 100% {
        clip-path: polygon(0% 0%, 100% 0%, 100% 70%, 80% 100%, 0% 100%);
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        clip-path: polygon(0% 0%, 100% 0%, 100% 80%, 70% 90%, 0% 100%);
        transform: translate(2%, -2%) rotate(1deg);
    }
    50% {
        clip-path: polygon(0% 0%, 100% 0%, 100% 65%, 85% 95%, 0% 100%);
        transform: translate(-1%, 1%) rotate(-0.5deg);
    }
    75% {
        clip-path: polygon(0% 0%, 100% 0%, 100% 75%, 75% 85%, 0% 100%);
        transform: translate(1%, 0%) rotate(0.5deg);
    }
}

/* Hero animated gradient background */
.hero-gradient-animated {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        45deg,
        rgba(99, 102, 241, 0.1) 0%,
        rgba(139, 92, 246, 0.05) 25%,
        rgba(6, 182, 212, 0.08) 50%,
        rgba(99, 102, 241, 0.05) 75%,
        rgba(6, 182, 212, 0.1) 100%
    );
    background-size: 400% 400%;
    animation: heroGradientShift 20s ease infinite;
    z-index: 0;
}

@keyframes heroGradientShift {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

/* ============================================
   TYPOGRAPHY FUTURISTICA
   ============================================ */
.hero-title {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    background: var(--gradient-text);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 5s linear infinite;
    position: relative;
}

.hero-title::after {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    filter: blur(40px);
    opacity: 0.5;
    z-index: -1;
}

@keyframes gradient-shift {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.glow-text {
    transition: text-shadow var(--transition-normal);
}

.glow-text:hover {
    text-shadow:
        0 0 20px rgba(99, 102, 241, 0.8),
        0 0 40px rgba(99, 102, 241, 0.6),
        0 0 60px rgba(99, 102, 241, 0.4);
}

.gradient-text {
    background: var(--gradient-text);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 5s linear infinite;
}

/* Typing Effect */
.typing-effect {
    overflow: hidden;
    border-right: 3px solid var(--primary-500);
    white-space: nowrap;
    animation:
        typing 3.5s steps(40, end),
        blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--primary-500); }
}

/* ============================================
   SCROLL REVEAL ANIMATIONS - ENHANCED
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-80px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(80px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Blur reveal effect */
.reveal-blur {
    opacity: 0;
    filter: blur(20px);
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), filter 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-blur.visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* Staggered children - enhanced */
.stagger-children > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(2) { transition-delay: 80ms; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(3) { transition-delay: 160ms; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(4) { transition-delay: 240ms; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(5) { transition-delay: 320ms; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(6) { transition-delay: 400ms; opacity: 1; transform: translateY(0); }

/* ============================================
   3D TILT CARD EFFECT - HULY STYLE
   ============================================ */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.4s var(--ease-out);
}

.tilt-card-inner {
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.tilt-card:hover .tilt-card-inner {
    transform: translateZ(20px);
}

.tilt-card .tilt-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.03) 45%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.03) 55%,
        transparent 60%
    );
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.tilt-card:hover .tilt-shine {
    opacity: 1;
}

/* Glowing border on hover */
.tilt-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--primary-500), var(--accent-500), var(--primary-500));
    border-radius: inherit;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
    filter: blur(8px);
}

.tilt-card:hover::before {
    opacity: 0.4;
}

/* ============================================
   PARALLAX ELEMENTS
   ============================================ */
.parallax-element {
    will-change: transform;
    transition: transform 0.1s linear;
}

.parallax-slow {
    --parallax-speed: 0.02;
}

.parallax-medium {
    --parallax-speed: 0.05;
}

.parallax-fast {
    --parallax-speed: 0.08;
}

/* ============================================
   BLUR/GLOW EDGE EFFECTS
   ============================================ */
.blur-edge-top {
    position: relative;
}

.blur-edge-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, var(--bg-dark), transparent);
    pointer-events: none;
    z-index: 10;
}

.blur-edge-bottom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--bg-dark), transparent);
    pointer-events: none;
    z-index: 10;
}

/* Glow border effect */
.glow-border {
    position: relative;
}

.glow-border::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.glow-border:hover::after {
    opacity: 1;
}

/* ============================================
   INFINITE CAROUSEL
   ============================================ */
.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 24px;
    animation: carouselScroll 30s linear infinite;
    width: max-content;
}

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

@keyframes carouselScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.carousel-item {
    flex-shrink: 0;
    padding: 24px 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.carousel-item:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-4px);
}

/* Gradient fade edges for carousel */
.carousel-container::before,
.carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.carousel-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-dark), transparent);
}

.carousel-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-dark), transparent);
}

/* ============================================
   FLOATING ELEMENTS
   ============================================ */
.float {
    animation: float 6s ease-in-out infinite;
}

.float-delayed {
    animation: float 6s ease-in-out infinite;
    animation-delay: -3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.float-rotate {
    animation: float-rotate 8s ease-in-out infinite;
}

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

/* ============================================
   PROGRESS INDICATOR
   ============================================ */
.progress-wrapper {
    position: fixed;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.progress-bar {
    width: 3px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: height 0.3s var(--ease-out);
}

.progress-dots {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    position: relative;
}

.dot::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: border-color 0.3s var(--ease-out);
}

.dot.active {
    background: var(--primary-500);
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.dot.active::before {
    border-color: rgba(99, 102, 241, 0.3);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.4);
}

.dot-label {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-out);
}

.dot:hover .dot-label {
    opacity: 1;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition: all var(--transition-normal);
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.nav.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    color: white;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-logo:hover .logo-icon {
    transform: scale(1.05) rotate(5deg);
    box-shadow: var(--shadow-glow);
}

.nav-logo:hover .logo-icon::before {
    opacity: 1;
}

.logo-icon.small {
    width: 32px;
    height: 32px;
    font-size: 14px;
    border-radius: 8px;
}

.logo-text {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--glass-bg);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    transform: scaleX(1);
}

.nav-link.nav-cta {
    background: var(--gradient-primary);
    color: white;
    margin-left: 8px;
    position: relative;
    overflow: hidden;
}

.nav-link.nav-cta::after {
    display: none;
}

.nav-link.nav-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: none;
}

.nav-link.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.nav-link.nav-cta:hover::before {
    animation: buttonShine 0.6s ease;
}

@keyframes buttonShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    top: var(--nav-height);
    background: var(--bg-dark);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease-out);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-link {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.mobile-link:hover {
    color: var(--text-primary);
}

.mobile-cta {
    padding: 16px 32px;
    background: var(--gradient-primary);
    border-radius: 14px;
    color: white !important;
    margin-top: 16px;
}

/* ============================================
   HORIZONTAL SCROLL CONTAINER
   ============================================ */
.horizontal-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.horizontal-container {
    display: flex;
    width: fit-content;
    will-change: transform;
}

.panel {
    width: 100vw;
    min-height: 100vh;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 60px 60px;
}

.panel-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ============================================
   GLASS CARD BASE - ENHANCED
   ============================================ */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.05) 0%,
        transparent 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.glass-card:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-md), 0 0 40px rgba(99, 102, 241, 0.1);
    transform: translateY(-4px);
}

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

/* ============================================
   SECTION STYLES
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 8px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   BUTTONS - ENHANCED WITH GLOW
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: none;
}

.btn:hover::before {
    animation: buttonShine 0.6s ease;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-glow {
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    animation: buttonPulse 2s ease-in-out infinite;
}

.btn-glow:hover {
    box-shadow: 0 8px 40px rgba(99, 102, 241, 0.5);
    animation: none;
}

@keyframes buttonPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3); }
    50% { box-shadow: 0 4px 30px rgba(99, 102, 241, 0.5); }
}

.btn-glass {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-glass:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.btn-full {
    width: 100%;
}

/* ============================================
   PANEL 0: HERO - ENHANCED
   ============================================ */
.panel-hero {
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.15), transparent);
    position: relative;
    overflow: hidden;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 28px;
    animation: badgeGlow 3s ease-in-out infinite;
}

@keyframes badgeGlow {
    0%, 100% { box-shadow: 0 0 0 rgba(16, 185, 129, 0); }
    50% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.3); }
}

.badge-pulse {
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
}

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

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--glass-border);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Hero visual glow */
.hero-visual::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: heroGlow 4s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.ai-card {
    width: 100%;
    max-width: 400px;
    padding: 24px;
    animation: float 6s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.ai-card-header {
    margin-bottom: 20px;
}

.ai-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.ai-card-body {
    text-align: center;
}

.voice-wave {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 20px;
    height: 40px;
    align-items: center;
}

.voice-wave span {
    width: 4px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: wave 1s ease-in-out infinite;
}

.voice-wave span:nth-child(1) { animation-delay: 0s; }
.voice-wave span:nth-child(2) { animation-delay: 0.1s; }
.voice-wave span:nth-child(3) { animation-delay: 0.2s; }
.voice-wave span:nth-child(4) { animation-delay: 0.3s; }
.voice-wave span:nth-child(5) { animation-delay: 0.4s; }
.voice-wave span:nth-child(6) { animation-delay: 0.5s; }
.voice-wave span:nth-child(7) { animation-delay: 0.6s; }
.voice-wave span:nth-child(8) { animation-delay: 0.7s; }
.voice-wave span:nth-child(9) { animation-delay: 0.8s; }
.voice-wave span:nth-child(10) { animation-delay: 0.9s; }

@keyframes wave {
    0%, 100% { height: 20px; }
    50% { height: 40px; }
}

.ai-message {
    font-size: 16px;
    color: var(--text-secondary);
    font-style: italic;
}

.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 14px;
    animation: bounce-right 2s ease-in-out infinite;
}

@keyframes bounce-right {
    0%, 100% { transform: translateX(-50%); }
    50% { transform: translateX(-40%); }
}

/* ============================================
   CLIENTS CAROUSEL SECTION
   ============================================ */
.clients-carousel {
    padding: 40px 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.clients-track {
    display: flex;
    gap: 60px;
    animation: clientsScroll 25s linear infinite;
    width: max-content;
}

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

@keyframes clientsScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.client-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
    transition: color 0.3s ease;
    opacity: 0.6;
}

.client-logo:hover {
    color: var(--text-primary);
    opacity: 1;
}

/* Fade edges */
.clients-carousel::before,
.clients-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.clients-carousel::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-dark), transparent);
}

.clients-carousel::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-dark), transparent);
}

/* ============================================
   PANEL 1: SERVICES - ENHANCED
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    padding: 40px;
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-500), transparent);
    transform: translateX(-50%) scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
    position: relative;
    transition: transform 0.3s ease;
}

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

.service-icon::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 30px;
    background: inherit;
    opacity: 0.3;
    filter: blur(15px);
}

.gradient-bg-1 { background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%); }
.gradient-bg-2 { background: linear-gradient(135deg, var(--secondary-500) 0%, var(--accent-500) 100%); }
.gradient-bg-3 { background: linear-gradient(135deg, var(--success) 0%, #059669 100%); }

.service-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-desc {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    text-align: left;
}

.service-features li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary-500);
    border-radius: 50%;
}

/* ============================================
   PANEL 2: HOW IT WORKS - ENHANCED
   ============================================ */
.steps-container {
    display: flex;
    gap: 32px;
    position: relative;
}

.steps-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--glass-border);
    z-index: 0;
}

.steps-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    transition: width 1s ease;
}

.steps-container.visible .steps-line::after {
    width: 100%;
}

.step-card {
    flex: 1;
    padding: 40px;
    position: relative;
    z-index: 1;
    text-align: center;
}

.step-number {
    font-size: 64px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 20px;
    transition: opacity 0.3s ease;
}

.step-card:hover .step-number {
    opacity: 0.6;
}

.step-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

.step-icon {
    margin-top: 24px;
    color: var(--text-muted);
    transition: transform 0.3s ease, color 0.3s ease;
}

.step-card:hover .step-icon {
    transform: scale(1.1);
    color: var(--primary-500);
}

/* ============================================
   PANEL 3: PORTFOLIO - ENHANCED WITH 3D TILT
   ============================================ */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.portfolio-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-normal);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.portfolio-card:hover {
    box-shadow: var(--shadow-glow), 0 20px 40px rgba(0, 0, 0, 0.3);
}

.portfolio-visual {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.portfolio-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-visual::before {
    opacity: 1;
}

.portfolio-logo {
    font-size: 32px;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-logo {
    transform: scale(1.1);
}

.portfolio-info {
    padding: 28px;
}

.portfolio-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-500);
    margin-bottom: 8px;
}

.portfolio-info h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.portfolio-info p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.portfolio-metrics {
    display: flex;
    gap: 32px;
}

.metric {
    text-align: left;
}

.metric-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--success);
}

.metric-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   PANEL 4: TEAM - ENHANCED
   ============================================ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.team-card {
    padding: 32px 24px;
    text-align: center;
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
    position: relative;
    transition: transform 0.3s ease;
}

.team-card:hover .team-avatar {
    transform: scale(1.1);
}

.team-avatar.ai {
    position: relative;
}

.ai-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    opacity: 0.5;
    animation: ring-pulse 2s ease-out infinite;
}

@keyframes ring-pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.3); opacity: 0; }
}

.avatar-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--accent), transparent, var(--accent));
    animation: rotate 4s linear infinite;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.team-card:hover .avatar-ring {
    opacity: 0.6;
}

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

.team-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.badge-human {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-500);
}

.badge-ai {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.team-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.team-role {
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 12px;
}

.team-bio {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============================================
   PANEL 5: PRICING - ENHANCED
   ============================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    padding: 40px;
    text-align: center;
    position: relative;
    transition: all 0.4s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-card.featured {
    border-color: var(--primary-500);
    transform: scale(1.05);
    box-shadow: 0 0 60px rgba(99, 102, 241, 0.2);
}

.pricing-card.featured:hover {
    transform: scale(1.08) translateY(-5px);
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 20px;
    background: var(--gradient-primary);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 rgba(99, 102, 241, 0); }
    50% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.4); }
}

.pricing-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.pricing-amount {
    margin-bottom: 32px;
}

.currency {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
    vertical-align: top;
}

.price {
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.period {
    font-size: 16px;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 32px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
    font-size: 14px;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features svg {
    color: var(--success);
    flex-shrink: 0;
}

/* ============================================
   PANEL 6: CONTACT - ENHANCED
   ============================================ */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 80px;
}

.contact-info .section-tag {
    margin-bottom: 16px;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 16px;
}

.contact-desc {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 40px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-normal);
}

.contact-method:hover {
    transform: translateX(8px);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.15);
}

.contact-method.whatsapp .method-icon {
    color: #25D366;
}

.contact-method.whatsapp:hover {
    box-shadow: 0 0 30px rgba(37, 211, 102, 0.15);
}

.method-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-elevated);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.contact-method:hover .method-icon {
    transform: scale(1.1);
}

.method-text {
    display: flex;
    flex-direction: column;
}

.method-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.method-value {
    font-size: 16px;
    font-weight: 600;
}

/* Contact Form - Enhanced */
.contact-form {
    padding: 40px;
    position: relative;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-500), transparent);
    transform: translateX(-50%);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15), 0 0 20px rgba(99, 102, 241, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 44px;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Footer */
.panel-footer {
    border-top: 1px solid var(--glass-border);
    padding-top: 40px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--transition-fast);
}

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

.footer-copy {
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================
   VIDEO SHOWCASE SECTION - ENHANCED
   ============================================ */
.panel-video {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0f0f18 100%);
}

.video-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.video-player {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.video-frame {
    background: var(--bg-elevated);
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16/9;
    position: relative;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.1),
        0 20px 50px rgba(0,0,0,0.5),
        0 0 100px rgba(99,102,241,0.2);
}

.video-placeholder {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(99,102,241,0.05) 0%, transparent 70%);
}

/* Animazione agenti al lavoro */
.video-animation {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 40px;
}

.agent-work {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: agentFloat 3s ease-in-out infinite;
}

.agent-work:nth-child(2) { animation-delay: 0.5s; }
.agent-work:nth-child(3) { animation-delay: 1s; }
.agent-work:nth-child(4) { animation-delay: 1.5s; }
.agent-work:nth-child(5) { animation-delay: 2s; }

@keyframes agentFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.agent-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 24px;
    color: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.agent-work:hover .agent-avatar {
    transform: scale(1.15);
}

.agent-work.marco .agent-avatar { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.agent-work.claudio .agent-avatar { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.agent-work.giulia .agent-avatar { background: linear-gradient(135deg, #ec4899, #db2777); }
.agent-work.aurora .agent-avatar { background: linear-gradient(135deg, #f59e0b, #d97706); }
.agent-work.luca .agent-avatar { background: linear-gradient(135deg, #10b981, #059669); }

.work-bubble {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    opacity: 0;
    animation: bubbleIn 3s ease-in-out infinite;
    border: 1px solid rgba(255,255,255,0.08);
}

.agent-work:nth-child(1) .work-bubble { animation-delay: 0.2s; }
.agent-work:nth-child(2) .work-bubble { animation-delay: 0.7s; }
.agent-work:nth-child(3) .work-bubble { animation-delay: 1.2s; }
.agent-work:nth-child(4) .work-bubble { animation-delay: 1.7s; }
.agent-work:nth-child(5) .work-bubble { animation-delay: 2.2s; }

@keyframes bubbleIn {
    0%, 100% { opacity: 0; transform: translateY(10px); }
    20%, 80% { opacity: 1; transform: translateY(0); }
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn:hover {
    background: var(--gradient-primary);
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    transform: translate(-50%, -50%) scale(1.1);
    border-color: transparent;
    box-shadow: 0 0 40px rgba(99,102,241,0.4);
}

.play-btn svg {
    width: 32px;
    height: 32px;
    margin-left: 4px;
}

.video-controls {
    margin-top: 16px;
    padding: 0 20px;
}

.video-progress-bar {
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}

.video-progress-fill {
    width: 35%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
    0%, 100% { width: 35%; }
    50% { width: 45%; }
}

/* Video Stats */
.video-stats {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-top: 60px;
}

.vstat {
    text-align: center;
}

.vstat-number {
    display: block;
    font-size: 48px;
    font-weight: 800;
    background: var(--gradient-text);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 5s linear infinite;
}

.vstat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
    display: block;
}

/* ============================================
   SMOOTH SCROLL SECTIONS
   ============================================ */
html {
    scroll-behavior: smooth;
}

/* ============================================
   RESPONSIVE - MOBILE FIRST
   ============================================ */
@media (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

@media (max-width: 1024px) {
    .panel {
        padding: 100px 40px 60px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

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

    .steps-container {
        flex-direction: column;
    }

    .steps-line {
        display: none;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .pricing-card.featured {
        transform: none;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-info .section-title {
        text-align: center;
    }

    .contact-desc {
        text-align: center;
    }

    .progress-wrapper {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

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

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

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

    .panel {
        padding: 100px 24px 60px;
    }

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

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

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .stat-divider {
        display: none;
    }

    .hero-stats {
        gap: 24px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .video-animation {
        gap: 20px;
        padding: 20px;
    }

    .agent-avatar {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .work-bubble {
        font-size: 10px;
        padding: 6px 12px;
    }

    .play-btn {
        width: 60px;
        height: 60px;
    }

    .play-btn svg {
        width: 24px;
        height: 24px;
    }

    .video-stats {
        gap: 40px;
    }

    .vstat-number {
        font-size: 36px;
    }

    .vstat-label {
        font-size: 12px;
    }

    .clients-carousel {
        margin-top: 40px;
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .video-animation {
        flex-wrap: wrap;
        gap: 15px;
    }

    .agent-avatar {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .work-bubble {
        display: none;
    }

    .video-stats {
        flex-direction: column;
        gap: 24px;
    }

    .vstat-number {
        font-size: 32px;
    }
}

/* Min width 320px */
@media (max-width: 320px) {
    html {
        font-size: 14px;
    }

    .panel {
        padding: 80px 16px 40px;
    }

    .nav-container {
        padding: 0 16px;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .cursor-glow {
        display: none;
    }

    body {
        cursor: auto;
    }

    a, button, input, select, textarea, [role="button"] {
        cursor: pointer;
    }

    .carousel-track,
    .clients-track {
        animation: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --glass-bg: rgba(0, 0, 0, 0.8);
        --glass-border: rgba(255, 255, 255, 0.3);
        --text-secondary: #d4d4d8;
        --text-muted: #a1a1aa;
    }

    .glass-card {
        border-width: 2px;
    }
}

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

/* Skip link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-500);
    color: white;
    padding: 8px 16px;
    z-index: 10000;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    body {
        background: white;
        color: black;
    }

    .nav,
    .progress-wrapper,
    .cursor-glow,
    .bg-noise,
    .bg-gradient-orbs {
        display: none !important;
    }

    .glass-card {
        background: white;
        border: 1px solid #ccc;
    }

    a {
        text-decoration: underline;
    }
}
