@layer utilities {
    .text-gradient {
        background: linear-gradient(135deg, #ffffff 0%, #a78bfa 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .text-glow {
        text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
    }
}

/* Scrollbar Customization - RESTORED */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #030304;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8b5cf6;
}

/* Core Settings */
:root {
    --cursor-size: 20px;
    --cursor-outline-size: 60px;
}

body {
    /* cursor: none; - REMOVED per user request for better navigation */
    cursor: default;
    background-color: #030304;
    /* Deep Void */
    overflow-x: hidden;
}

/* Noise Texture */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Custom Cursor - DISABLED */
#cursor-dot,
#cursor-outline {
    display: none;
}

#cursor-dot {
    width: var(--cursor-size);
    height: var(--cursor-size);
    background-color: white;
}

#cursor-outline {
    width: var(--cursor-outline-size);
    height: var(--cursor-outline-size);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: width 0.3s, height 0.3s, transform 0.15s ease-out;
    /* Smooth follow delay handled in JS usually, but here just sizing */
}

/* Interactive Elements Hover State for Cursor */
body.hovering #cursor-dot {
    width: 50px;
    height: 50px;
    background-color: rgba(139, 92, 246, 0.2);
    backdrop-filter: blur(2px);
    mix-blend-mode: exclusion;
}

body.hovering #cursor-outline {
    width: 0;
    height: 0;
    opacity: 0;
}

/* Premium Card - Intelligence Style */
.data-card {
    background: rgba(10, 10, 12, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.data-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(139, 92, 246, 0.15), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 0;
}

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

.data-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}

/* Animated Grid Background */
.perspective-grid {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    animation: grid-move 20s linear infinite;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 1) 100%);
    pointer-events: none;
    z-index: 0;
}

@keyframes grid-move {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px);
    }
}

/* Typography Utils */
.hero-title {
    font-size: clamp(2.5rem, 5vw, 5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* Reveal Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
    /* Custom easeOutExpo-ish */
}

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

/* Magnetic Button helper */
.magnetic-wrap {
    display: inline-block;
}

.magnetic-area {
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Data Particles (Canvas placeholder style) */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.6;
}

/* Stagger delays */
.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.delay-500 {
    transition-delay: 500ms;
}

.delay-700 {
    transition-delay: 700ms;
}

/* --- New Visual Persuasion Elements --- */

/* 3D ROI Dashboard Card */
.roi-card {
    background: linear-gradient(180deg, rgba(20, 20, 25, 0.9) 0%, rgba(10, 10, 12, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.5),
        0 20px 50px -10px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(139, 92, 246, 0.1);
    /* Glow */
    transform-style: preserve-3d;
    backface-visibility: hidden;
    animation: float-3d 6s ease-in-out infinite;
}

@keyframes float-3d {

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

    50% {
        transform: translateY(-15px) rotateX(2deg) rotateY(-2deg);
    }
}

/* Animated Graph Line */
.graph-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw-graph 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes draw-graph {
    to {
        stroke-dashoffset: 0;
    }
}

/* Live Notification Pills */
.live-notification {
    position: absolute;
    padding: 10px 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 99px;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #34d399;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: pop-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes pop-in {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Success Pulse */
.success-dot {
    width: 8px;
    height: 8px;
    background-color: #34d399;
    border-radius: 50%;
    position: relative;
}

.success-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background-color: rgba(52, 211, 153, 0.4);
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Gradient Badge */
.gradient-badge {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.2);
}

/* Shimmer Effect for CTA */
.btn-shimmer {
    position: relative;
    overflow: hidden;
}

.btn-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    transform: translateX(-100%) skewX(-15deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%) skewX(-15deg);
    }
}

/* --- "Surreal" Authority Section Styles --- */

.surreal-container {
    perspective: 1500px;
}

.fusion-card-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fusion-glass {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

/* The Duality Split */
.duality-split {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .duality-split {
        flex-direction: row;
    }
}

.split-left,
.split-right {
    width: 100%;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {

    .split-left,
    .split-right {
        width: 50%;
    }
}

.split-left {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.05) 0%, transparent 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Separator on mobile */
}

@media (min-width: 768px) {
    .split-left {
        border-bottom: none;
    }
}

.split-right {
    background: linear-gradient(135deg, transparent 0%, rgba(59, 130, 246, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

/* Surreal Divider */
.fusion-core {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    /* Smaller on mobile */
    background: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    box-shadow:
        0 0 30px rgba(139, 92, 246, 0.3),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .fusion-core {
        width: 120px;
        height: 120px;
        box-shadow:
            0 0 50px rgba(139, 92, 246, 0.3),
            inset 0 0 20px rgba(255, 255, 255, 0.1);
    }
}

.core-icon {
    animation: spin-slow 10s linear infinite;
    mix-blend-mode: difference;
}

@keyframes spin-slow {
    to {
        transform: rotate(360deg);
    }
}

/* Graphic Ornaments */
.ornament-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: radial-gradient(circle, black 30%, transparent 70%);
}

.ornament-swirl {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.1), transparent 50%);
    animation: swirl 15s linear infinite;
}

@keyframes swirl {
    to {
        transform: rotate(360deg) scale(1.2);
    }
}

/* Methodology Steps (Holographic Pills) */
.method-pill {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 99px;
    padding: 8px 16px;
    /* Smaller padding on mobile */
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    width: 100%;
    /* Full width on mobile */
    justify-content: center;
    /* Center content mobile */
}

@media (min-width: 768px) {
    .method-pill {
        padding: 10px 24px;
        gap: 12px;
        width: auto;
    }
}



.method-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.2), transparent);
    margin: 0 auto;
}

/* Glitch Text Effect for "Publicist" */
.glitch-text {
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    background: #0a0a0c;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(10px, 9999px, 30px, 0);
    }

    20% {
        clip: rect(80px, 9999px, 100px, 0);
    }

    40% {
        clip: rect(10px, 9999px, 50px, 0);
    }

    100% {
        clip: rect(60px, 9999px, 80px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(50px, 9999px, 70px, 0);
    }

    20% {
        clip: rect(10px, 9999px, 30px, 0);
    }

    100% {
        clip: rect(90px, 9999px, 100px, 0);
    }
}

/* Code Typing Effect for "Developer" */
.code-typing {
    font-family: monospace;
    overflow: hidden;
    border-right: 2px solid white;
    white-space: nowrap;
    animation: typing 3.5s steps(30, end), blink-caret .75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: white;
    }
}

/* Floating Tech Icons */
.floating-icon {
    position: absolute;
    opacity: 0.2;
    animation: float-icon 5s ease-in-out infinite;
}

@keyframes float-icon {

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

    50% {
        transform: translateY(-20px);
    }
}

/* --- Final CTA "Warp Core" Styles --- */
.warp-section {
    position: relative;
    background: radial-gradient(circle at center, #1a1a2e 0%, #000 70%);
    overflow: hidden;
}

/* The Vortex */
.cta-vortex {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200vw;
    height: 200vw;
    background: repeating-conic-gradient(from 0deg,
            rgba(139, 92, 246, 0.03) 0deg 20deg,
            transparent 20deg 40deg);
    animation: vortex-spin 60s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes vortex-spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* The Portal Core */
.portal-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    filter: blur(60px);
    animation: portal-pulse 4s ease-in-out infinite alternate;
}

@keyframes portal-pulse {
    0% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Giant Launch Buttton */
/* Giant Launch Buttton */
.launch-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    /* Smaller gap on mobile */
    padding: 1.25rem 2rem;
    /* Reduced padding for mobile */
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 99px;
    color: white;
    font-size: 0.875rem;
    /* Smaller font for mobile (14px) */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    /* Reduced spacing */
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(10px);
    width: 90%;
    /* Responsive width */
    max-width: 320px;
    white-space: nowrap;
    /* Force single line */
}

@media (min-width: 768px) {
    .launch-btn {
        padding: 2rem 5rem;
        gap: 1.5rem;
        font-size: 1.5rem;
        width: auto;
        max-width: none;
        letter-spacing: 0.1em;
    }
}

.launch-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #8b5cf6, #3b82f6);
    opacity: 0.1;
    transition: opacity 0.5s;
    z-index: -1;
}

.launch-btn:hover {
    border-color: rgba(139, 92, 246, 0.8);
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.4);
}

.launch-btn:hover::before {
    opacity: 0.2;
}

.launch-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.8), transparent);
    transform: skewX(-20deg) translateX(-150%);
    transition: transform 0.5s;
}

.launch-btn:hover .launch-shimmer {
    transform: skewX(-20deg) translateX(150%);
    transition: transform 0.7s;
}

/* Starfield Particles (Simple CSS implementation) */
.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: star-fly 3s linear infinite;
}

@keyframes star-fly {
    from {
        transform: translateZ(0) scale(0);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    to {
        transform: translateZ(200px) scale(2);
        opacity: 0;
    }
}


/* Metric Cards Container */
.metric-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .metric-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Base Metric Card */
.metric-card {
    position: relative;
    padding: 1.5rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.metric-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(139, 92, 246, 0.2);
    transform: translateY(-2px);
}

/* "25 Years" Special Styling */
.metric-years {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 215, 0, 0.15);
    /* Gold tint */
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.05);
}

.text-gold-gradient {
    background: linear-gradient(to bottom, #FFF 0%, #FCD34D 50%, #B45309 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.badge-seal {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    z-index: 0;
}

/* "ROI" Styling */
.metric-roi .value {
    color: #34D399;
    text-shadow: 0 0 15px rgba(52, 211, 153, 0.4);
}

/* "24/7" Styling */
.pulse-ring {
    position: relative;
}

.pulse-ring::before,
.pulse-ring::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(139, 92, 246, 0.5);
    width: 100%;
    height: 100%;
    animation: ripple 2s infinite linear;
}

.pulse-ring::after {
    animation-delay: 1s;
}

@keyframes ripple {
    0% {
        width: 100%;
        height: 100%;
        opacity: 0.8;
    }

    100% {
        width: 200%;
        height: 200%;
        opacity: 0;
    }
}

/* Decorative Line element inside cards */
.decor-line {
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.decor-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: currentColor;
    transform: translateX(-100%);
    animation: load-line 2s infinite ease-in-out;
}

@keyframes load-line {
    50% {
        transform: translateX(100%);
    }

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

@keyframes load-line-vertical {
    50% {
        transform: translateY(100%);
    }

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

/* --- Mobile Menu & Header Fixes (Restored) --- */

/* Scrolled Header State */
header.scrolled {
    background: rgba(3, 3, 4, 0.8) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Hamburger Button */
.hamburger-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    z-index: 60;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-btn span {
    width: 20px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

/* Hamburger Active State */
.hamburger-btn.active {
    background: #fff;
    border-color: #fff;
}

.hamburger-btn.active span {
    background: #000;
}

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

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

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

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: #030304;
    z-index: 55;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.7, 0, 0.3, 1);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-menu.open {
    transform: translateY(0);
    pointer-events: auto;
}

.mobile-menu::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.15), transparent 70%);
    pointer-events: none;
}

.mobile-link {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    text-decoration: none;
    margin: 1rem 0;
    position: relative;
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(50px);
}

.mobile-menu.open .mobile-link {
    animation: menu-reveal 0.5s ease forwards;
}

/* Stagger Animations for Links */
.mobile-menu.open .mobile-link:nth-child(1) {
    animation-delay: 0.1s;
}

.mobile-menu.open .mobile-link:nth-child(2) {
    animation-delay: 0.2s;
}

.mobile-menu.open .mobile-link:nth-child(3) {
    animation-delay: 0.3s;
}

.mobile-menu.open .mobile-link:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes menu-reveal {
    to {
        opacity: 1;
        transform: translateY(0);
        color: white;
        -webkit-text-stroke: 0;
    }
}

.mobile-link:hover {
    color: #8b5cf6;
    -webkit-text-stroke: 0;
    transform: scale(1.1) !important;
}

.mobile-link::after {
    content: attr(data-text);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.5);
    color: rgba(139, 92, 246, 0.1);
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
    display: none;
    /* Hide ghost text on mobile to prevent overflow */
}

/* --- Lead Qualification Modal --- */

.service-select-card {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Default border */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-select-card .icon-box {
    background-color: rgba(255, 255, 255, 0.05);
    /* Default grayscale */
    color: #a1a1aa;
    /* zinc-400 */
    transition: all 0.3s ease;
}

.service-select-card:hover .tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(10px);
    pointer-events: auto;
}

/* Tooltip Logic */
.tooltip {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%) translateX(20px);
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 50;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    display: none;
    /* Hidden on mobile by default */
}

@media (min-width: 1024px) {
    .tooltip {
        display: block;
    }

    .tooltip::before {
        content: '';
        position: absolute;
        left: -4px;
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
        width: 8px;
        height: 8px;
        background: rgba(0, 0, 0, 0.9);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Modal Animation */
#contact-modal.flex {
    display: flex !important;
}

/* --- Card Variants (Grayscale to Color) --- */

/* BI (Primary/Purple) */
.service-select-card.variant-bi:hover,
.service-select-card.variant-bi.selected {
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.05);
}

.service-select-card.variant-bi:hover .icon-box,
.service-select-card.variant-bi.selected .icon-box {
    background-color: #8b5cf6 !important;
    color: white !important;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

/* Marketing (Green) */
.service-select-card.variant-marketing:hover,
.service-select-card.variant-marketing.selected {
    border-color: rgba(34, 197, 94, 0.5);
    background: rgba(34, 197, 94, 0.05);
}

.service-select-card.variant-marketing:hover .icon-box,
.service-select-card.variant-marketing.selected .icon-box {
    background-color: #22c55e !important;
    color: white !important;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

/* ERP (Blue) */
.service-select-card.variant-erp:hover,
.service-select-card.variant-erp.selected {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.05);
}

.service-select-card.variant-erp:hover .icon-box,
.service-select-card.variant-erp.selected .icon-box {
    background-color: #3b82f6 !important;
    color: white !important;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

/* IA (Fuchsia/Pink) */
.service-select-card.variant-ia:hover,
.service-select-card.variant-ia.selected {
    border-color: rgba(168, 85, 247, 0.5);
    background: rgba(168, 85, 247, 0.05);
}

.service-select-card.variant-ia:hover .icon-box,
.service-select-card.variant-ia.selected .icon-box {
    background-color: #a855f7 !important;
    color: white !important;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

/* ===== ROTATING SERVICE CHARTS ===== */

/* Dashboard Container */
#rotating-dashboard {
    position: relative;
    min-height: 400px;
    /* Ensure container has height for absolute positioning */
}

/* Chart Container */
.service-chart {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.service-chart.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* Funnel Bar Animation (E-commerce) */
.funnel-bar {
    transform-origin: bottom;
    animation: pulse-bar 2s ease-in-out infinite;
}

@keyframes pulse-bar {

    0%,
    100% {
        opacity: 0.8;
        transform: scaleY(0.95);
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* Metric Progress Bar Animation (Dashboard BI) */
.metric-progress {
    animation: progress-pulse 3s ease-in-out infinite;
}

@keyframes progress-pulse {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

/* Bot Pulse Animation (IA Automation) */
.bot-pulse {
    transform-origin: bottom;
    animation: bot-breathe 2s ease-in-out infinite;
}

@keyframes bot-breathe {

    0%,
    100% {
        opacity: 0.6;
        transform: scaleY(0.95);
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* ROI Bar Animation (Marketing) */
.roi-bar {
    transform-origin: bottom;
    animation: roi-pulse 2.5s ease-in-out infinite;
}

@keyframes roi-pulse {

    0%,
    100% {
        opacity: 0.8;
        transform: scaleY(0.98);
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* Timeline Progress Animation (Consultoria) */
.timeline-progress {
    animation: timeline-shimmer 3s ease-in-out infinite;
}

@keyframes timeline-shimmer {

    0%,
    100% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }
}

/* Timeline Pulse Animation */
.timeline-pulse {
    animation: timeline-pulse-anim 2s ease-in-out infinite;
}

@keyframes timeline-pulse-anim {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.7);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(234, 179, 8, 0);
    }
}

/* Graph Path Continuous Animation */
.graph-path {
    stroke-dasharray: 1000;
    animation: graph-pulse 4s ease-in-out infinite;
}

@keyframes graph-pulse {

    0%,
    100% {
        stroke-dashoffset: 0;
        opacity: 0.8;
    }

    50% {
        stroke-dashoffset: -50;
        opacity: 1;
    }
}

/* Restart animations when chart becomes active */
.service-chart.active .funnel-bar,
.service-chart.active .metric-progress,
.service-chart.active .bot-pulse,
.service-chart.active .roi-bar,
.service-chart.active .timeline-progress {
    animation-play-state: running;
}

/* Pause animations when chart is not active */
.service-chart:not(.active) .funnel-bar,
.service-chart:not(.active) .metric-progress,
.service-chart:not(.active) .bot-pulse,
.service-chart:not(.active) .roi-bar,
.service-chart:not(.active) .timeline-progress {
    animation-play-state: paused;
}