/* ============================================
   ZQDev - Premium Software Website
   Purple-Black Theme with Modern Animations
   V2 - Enhanced with all premium features
   ============================================ */

/* === CSS Variables === */
:root {
    --bg-primary: #050508;
    --bg-secondary: #0a0a12;
    --bg-tertiary: #0f0f1a;
    
    --purple-50: #f3e8ff;
    --purple-100: #e9d5ff;
    --purple-200: #d8b4fe;
    --purple-300: #c084fc;
    --purple-400: #a855f7;
    --purple-500: #8b5cf6;
    --purple-600: #7c3aed;
    --purple-700: #6d28d9;
    --purple-800: #5b21b6;
    --purple-900: #4c1d95;
    
    --accent-cyan: #06b6d4;
    --accent-pink: #ec4899;
    
    --text-primary: #f1f0f5;
    --text-secondary: #a5a3b3;
    --text-muted: #6b6980;
    
    --border-color: rgba(139, 92, 246, 0.15);
    --border-hover: rgba(139, 92, 246, 0.35);
    
    --glass-bg: rgba(15, 15, 26, 0.6);
    --glass-border: rgba(139, 92, 246, 0.1);
    
    --gradient-primary: linear-gradient(135deg, var(--purple-500), var(--purple-700));
    --gradient-text: linear-gradient(135deg, var(--purple-300), var(--accent-cyan), var(--purple-400));
    --gradient-glow: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(6, 182, 212, 0.2));
    
    --section-padding: 120px 0;
    --container-width: 1200px;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--purple-700) var(--bg-primary);
}

html::-webkit-scrollbar { width: 8px; }
html::-webkit-scrollbar-track { background: var(--bg-primary); }
html::-webkit-scrollbar-thumb { background: var(--purple-700); border-radius: 4px; }

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

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* =========================================
   PRELOADER
   ========================================= */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    text-align: center;
}

.preloader-logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 3rem;
    font-weight: 800;
    animation: preloaderPulse 1.5s ease-in-out infinite;
}

.preloader-bracket {
    color: var(--purple-500);
}

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

.preloader-highlight {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.preloader-bar {
    width: 200px;
    height: 3px;
    background: rgba(139, 92, 246, 0.15);
    border-radius: 4px;
    margin: 28px auto 0;
    overflow: hidden;
}

.preloader-bar-fill {
    width: 0%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    animation: preloaderFill 1.8s ease-in-out forwards;
}

@keyframes preloaderPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.02); }
}

@keyframes preloaderFill {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* =========================================
   CURSOR GLOW & PARTICLES
   ========================================= */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
}

#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

/* =========================================
   PARALLAX LAYERS
   ========================================= */
.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.parallax-slow {
    background: radial-gradient(ellipse at 20% 50%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(6, 182, 212, 0.04) 0%, transparent 50%);
}

.parallax-medium {
    background: radial-gradient(ellipse at 70% 60%, rgba(139, 92, 246, 0.05) 0%, transparent 45%);
}

.parallax-fast {
    background: radial-gradient(ellipse at 30% 40%, rgba(109, 40, 217, 0.06) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 70%, rgba(6, 182, 212, 0.03) 0%, transparent 40%);
}

/* =========================================
   CONTAINER & GLASS
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

.glass-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.08);
}

/* =========================================
   CARD SPOTLIGHT (mouse-following glow)
   ========================================= */
.card-spotlight {
    position: relative;
    /* Ensure child z-index sorting */
}

.card-spotlight > * {
    position: relative;
    z-index: 2;
}

.spotlight-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    border-radius: inherit;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.spotlight-overlay::before {
    content: '';
    position: absolute;
    top: var(--spotlight-y, 50%);
    left: var(--spotlight-x, 50%);
    width: 350px;
    height: 350px;
    background: radial-gradient(
        circle,
        rgba(139, 92, 246, 0.15) 0%,
        rgba(139, 92, 246, 0.05) 40%,
        transparent 70%
    );
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* =========================================
   ANIMATED GRADIENT BORDER
   ========================================= */
.gradient-border-card {
    position: relative;
    overflow: hidden;
}

.gradient-border-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: conic-gradient(
        from var(--gradient-angle, 0deg),
        transparent 0%,
        var(--purple-500) 10%,
        var(--accent-cyan) 20%,
        transparent 30%,
        transparent 100%
    );
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: rotateGradient 4s linear infinite;
}

.gradient-border-card:hover::before {
    opacity: 1;
}

.gradient-border-card::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    bottom: 1px;
    background: var(--glass-bg);
    border-radius: calc(var(--radius-lg) - 1px);
    z-index: -1;
}

@property --gradient-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes rotateGradient {
    to { --gradient-angle: 360deg; }
}

/* =========================================
   3D TILT CARD (base styles, JS drives transform)
   ========================================= */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.15s ease-out;
}

.tilt-card > * {
    position: relative;
    z-index: 2;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-icon {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-base);
}

.btn:hover .btn-icon { transform: translateX(4px); }

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before { left: 100%; }

.btn-primary:hover {
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

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

.btn-ghost:hover {
    border-color: var(--purple-500);
    background: rgba(139, 92, 246, 0.08);
}

.btn-full { width: 100%; justify-content: center; }

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition-base);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: -0.5px;
}

.logo-bracket { color: var(--purple-500); }

.logo-highlight {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-base);
}

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

.nav-link.active {
    color: var(--purple-400);
    background: rgba(139, 92, 246, 0.1);
}

.nav-actions { display: flex; align-items: center; gap: 12px; }

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    position: relative;
    padding: 4px;
    border-radius: var(--radius-full);
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition-base);
    gap: 0;
}

.lang-toggle:hover {
    border-color: var(--purple-500);
    background: rgba(139, 92, 246, 0.15);
}

.lang-option {
    position: relative;
    z-index: 2;
    padding: 5px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: color var(--transition-base);
    user-select: none;
}

.lang-option.active { color: white; }

.lang-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: transform var(--transition-base);
    z-index: 1;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

.lang-slider.en { transform: translateX(100%); }

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-base);
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active .hamburger-line:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

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

.hero-bg-grid {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, rgba(109, 40, 217, 0.05) 40%, transparent 70%);
    pointer-events: none;
    animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--purple-300);
    margin-bottom: 32px;
}

.badge-icon { width: 16px; height: 16px; color: var(--purple-400); }

.hero-title {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradientShift 4s ease-in-out infinite;
}

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

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

/* =========================================
   CODE EDITOR ANIMATION
   ========================================= */
.code-editor {
    max-width: 520px;
    margin: 0 auto 48px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    text-align: left;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.code-editor-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(20, 20, 35, 0.9);
    border-bottom: 1px solid var(--border-color);
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dot.red { background: #ff5f57; }
.code-dot.yellow { background: #febc2e; }
.code-dot.green { background: #28c840; }

.code-filename {
    margin-left: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.code-editor-body {
    padding: 20px;
    background: rgba(10, 10, 18, 0.95);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    line-height: 1.8;
}

.code-line {
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateX(-10px);
    animation: codeLineAppear 0.4s ease-out forwards;
}

.code-line:nth-child(1) { animation-delay: 0.8s; }
.code-line:nth-child(2) { animation-delay: 1.2s; }
.code-line:nth-child(3) { animation-delay: 1.6s; }
.code-line:nth-child(4) { animation-delay: 2.0s; }
.code-line:nth-child(5) { animation-delay: 2.4s; }
.code-line:nth-child(6) { animation-delay: 2.8s; }

@keyframes codeLineAppear {
    to { opacity: 1; transform: translateX(0); }
}

.code-line-number {
    width: 28px;
    color: var(--text-muted);
    opacity: 0.4;
    font-size: 0.7rem;
    flex-shrink: 0;
    user-select: none;
}

.code-keyword { color: var(--purple-400); }
.code-variable { color: var(--accent-cyan); }
.code-operator { color: var(--text-muted); margin: 0 4px; }
.code-function { color: #e2b714; }
.code-punctuation { color: var(--text-muted); }
.code-string { color: #a3e635; }
.code-property { color: var(--purple-300); }
.code-comment { color: var(--text-muted); opacity: 0.5; font-style: italic; }

.code-cursor {
    color: var(--purple-400);
    animation: cursorBlink 1s step-end infinite;
    font-weight: 300;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* =========================================
   STATS
   ========================================= */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

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

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--purple-400);
    font-family: 'JetBrains Mono', monospace;
}

.stat-suffix { font-size: 1.6rem; font-weight: 700; color: var(--purple-400); }

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

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

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: fadeInUp 1s ease-out 1.5s both;
}

.scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-dot {
    width: 4px;
    height: 8px;
    background: var(--purple-500);
    border-radius: 4px;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(12px); opacity: 0.3; }
}

/* =========================================
   TECH MARQUEE
   ========================================= */
.tech-marquee-section {
    padding: 48px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.marquee-label {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.marquee-wrapper {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
}

.marquee-track {
    display: flex;
    gap: 48px;
    width: max-content;
    animation: marqueeScroll 30s linear infinite;
}

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

.marquee-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: color var(--transition-fast);
    padding: 8px 16px;
    border-radius: var(--radius-md);
}

.marquee-item:hover {
    color: var(--purple-400);
}

.marquee-item svg {
    width: 20px;
    height: 20px;
    color: var(--purple-500);
    opacity: 0.7;
}

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

/* =========================================
   SECTIONS
   ========================================= */
.section {
    position: relative;
    padding: var(--section-padding);
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--purple-400);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.about-card {
    padding: 40px 32px;
    text-align: center;
    position: relative;
}

.about-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.1);
    border-radius: var(--radius-lg);
    color: var(--purple-400);
    transition: var(--transition-base);
}

.about-card-icon svg { width: 28px; height: 28px; }

.about-card:hover .about-card-icon {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

.about-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.about-card p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7; }

/* =========================================
   SERVICES
   ========================================= */
.services { background: var(--bg-secondary); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    padding: 36px 28px;
    position: relative;
    transition: var(--transition-base);
}

.service-card:hover { transform: translateY(-4px); }

.service-icon-wrap {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.1);
    border-radius: var(--radius-md);
    color: var(--purple-400);
    margin-bottom: 20px;
    transition: var(--transition-base);
}

.service-icon-wrap svg { width: 24px; height: 24px; }

.service-card:hover .service-icon-wrap {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.service-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.service-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }

.service-tags { display: flex; gap: 8px; flex-wrap: wrap; }

.service-tag {
    padding: 4px 12px;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--purple-300);
}

/* =========================================
   TESTIMONIALS
   ========================================= */
.testimonials {
    background: var(--bg-primary);
}

.testimonials-carousel {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.testimonials-viewport {
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.testimonial-card {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    padding: 40px;
    text-align: center;
    flex-shrink: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-sizing: border-box;
}

.testimonial-stars {
    color: #fbbf24;
    font-size: 1.3rem;
    margin-bottom: 20px;
    letter-spacing: 4px;
}

.testimonial-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 28px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: white;
    flex-shrink: 0;
}

.testimonial-name {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.testimonial-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.testimonials-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 32px;
}

.testimonial-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.testimonial-nav-btn:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

.testimonial-nav-btn svg { width: 20px; height: 20px; }

.testimonial-dots {
    display: flex;
    gap: 8px;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.2);
    cursor: pointer;
    transition: var(--transition-base);
}

.testimonial-dot.active {
    background: var(--purple-500);
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.5);
}

/* =========================================
   STORE SECTION
   ========================================= */
.store { background: var(--bg-secondary); }

.store-coming-soon {
    max-width: 680px;
    margin: 0 auto;
}

.coming-soon-card {
    padding: 60px 48px;
    text-align: center;
    position: relative;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(139, 92, 246, 0.1);
    animation: pulseRing 3s ease-out infinite;
}

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

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

@keyframes pulseRing {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(3); opacity: 0; }
}

.coming-soon-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    color: white;
    position: relative;
    z-index: 2;
    animation: float 4s ease-in-out infinite;
}

.coming-soon-icon svg { width: 36px; height: 36px; }

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

.coming-soon-card h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.coming-soon-card > p {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 460px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.coming-soon-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 36px;
    position: relative;
    z-index: 2;
}

.cs-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: rgba(139, 92, 246, 0.06);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-base);
}

.cs-feature:hover {
    background: rgba(139, 92, 246, 0.12);
    border-color: var(--purple-500);
    color: var(--text-primary);
}

.cs-feature svg { width: 18px; height: 18px; color: var(--purple-400); }

.notify-form {
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.notify-input {
    flex: 1;
    padding: 14px 20px;
    background: rgba(139, 92, 246, 0.06);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-base);
}

.notify-input::placeholder { color: var(--text-muted); }

.notify-input:focus {
    border-color: var(--purple-500);
    background: rgba(139, 92, 246, 0.1);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.notify-btn { white-space: nowrap; }

/* =========================================
   CONTACT
   ========================================= */
.contact { background: var(--bg-primary); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 32px;
    align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 24px; }

.contact-info-card { padding: 32px; }

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
}

.contact-item:not(:last-child) { border-bottom: 1px solid var(--border-color); }

.contact-item-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.1);
    border-radius: var(--radius-md);
    color: var(--purple-400);
    flex-shrink: 0;
}

.contact-item-icon svg { width: 20px; height: 20px; }

.contact-item h4 { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); margin-bottom: 2px; }
.contact-item p { font-size: 0.95rem; font-weight: 500; }

.social-links {
    display: flex;
    gap: 12px;
    padding: 20px;
    justify-content: center;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: var(--transition-base);
}

.social-link:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.social-link svg { width: 20px; height: 20px; }

.contact-form { padding: 40px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(139, 92, 246, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-base);
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--purple-500);
    background: rgba(139, 92, 246, 0.08);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.08);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background: var(--bg-tertiary);
    padding: 64px 0 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--purple-700), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border-color);
}

.footer-brand .nav-logo { display: inline-block; margin-bottom: 16px; }

.footer-desc { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; max-width: 320px; }

.footer-links-group h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 20px; }

.footer-links-group a {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 6px 0;
    transition: var(--transition-fast);
}

.footer-links-group a:hover {
    color: var(--purple-400);
    transform: translateX(4px);
}

.footer-bottom { padding: 24px 0; text-align: center; }
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }

/* =========================================
   BACK TO TOP BUTTON
   ========================================= */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.6);
}

.back-to-top svg { width: 22px; height: 22px; }

/* =========================================
   TOAST
   ========================================= */
.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    padding: 14px 28px;
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--purple-500);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 9999;
    transition: bottom 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.show { bottom: 32px; }

.toast-icon { color: var(--purple-400); }

/* =========================================
   SCROLL ANIMATIONS
   ========================================= */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Staggered delays */
.about-grid .about-card:nth-child(1) { transition-delay: 0.1s; }
.about-grid .about-card:nth-child(2) { transition-delay: 0.2s; }
.about-grid .about-card:nth-child(3) { transition-delay: 0.3s; }

.services-grid .service-card:nth-child(1) { transition-delay: 0.05s; }
.services-grid .service-card:nth-child(2) { transition-delay: 0.1s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.15s; }
.services-grid .service-card:nth-child(4) { transition-delay: 0.2s; }
.services-grid .service-card:nth-child(5) { transition-delay: 0.25s; }
.services-grid .service-card:nth-child(6) { transition-delay: 0.3s; }

/* Page load hero animation */
body.loaded .hero-content > * {
    animation: fadeInUp 0.8s ease-out both;
}

body.loaded .hero-content > *:nth-child(1) { animation-delay: 0.1s; }
body.loaded .hero-content > *:nth-child(2) { animation-delay: 0.2s; }
body.loaded .hero-content > *:nth-child(3) { animation-delay: 0.3s; }
body.loaded .hero-content > *:nth-child(4) { animation-delay: 0.4s; }
body.loaded .hero-content > *:nth-child(5) { animation-delay: 0.5s; }
body.loaded .hero-content > *:nth-child(6) { animation-delay: 0.6s; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    :root { --section-padding: 80px 0; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(5, 5, 8, 0.97);
        backdrop-filter: blur(30px);
        flex-direction: column;
        padding: 100px 32px 32px;
        gap: 4px;
        transition: right var(--transition-base);
        border-left: 1px solid var(--border-color);
    }

    .nav-links.open { right: 0; }
    .nav-link { width: 100%; padding: 14px 20px; font-size: 1rem; }
    .mobile-menu-btn { display: flex; }

    .hero-title { letter-spacing: -1px; }
    .hero-actions { flex-direction: column; }
    .hero-stats { flex-wrap: wrap; gap: 24px; }
    .stat-divider { display: none; }

    .about-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .coming-soon-features { grid-template-columns: 1fr; }
    .notify-form { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    
    .code-editor { margin: 0 -8px 48px; }
}

@media (max-width: 480px) {
    .coming-soon-card { padding: 40px 24px; }
    .contact-form { padding: 28px; }
    .testimonial-card { padding: 28px 20px; }
}
