/*
Theme Name: Egycode Affiliate Theme
Description: قوالب تؤمر بريميم (SaaS & Affiliates) - Neon Cyberpunk Design System الكامل
Author: شركة تؤمر
Version: 1.2.0
Text Domain: egycode-theme
Requires PHP: 7.4
License: GPL v2 or later
*/

/* =============================================================================
   1. CSS VARIABLES
   ============================================================================= */
:root {
    /* Brand Colors - Bold Neon Cyberpunk */
    --c-bg: #05050A; /* Deep Space Void */
    --c-surface: rgba(15, 15, 25, 0.7); /* Translucent surface */
    --c-surface-2: rgba(25, 25, 45, 0.8);
    --c-border: rgba(0, 229, 255, 0.15); /* Subtly glowing border */
    --c-border-hover: rgba(0, 229, 255, 0.4);
    
    /* Primary & Secondary (Electric Cyan & Hot Magenta) */
    --c-primary: #00E5FF;
    --c-primary-dark: #00B3CC;
    --c-primary-soft: rgba(0, 229, 255, 0.15);
    
    --c-secondary: #FF0055;
    --c-secondary-dark: #CC0044;
    --c-secondary-soft: rgba(255, 0, 85, 0.15);

    /* State Colors */
    --c-accent: #FFD700;
    --c-accent-dark: #CCAC00;
    --c-accent-soft: rgba(255, 215, 0, 0.15);
    
    --c-success: #00FF88;
    --c-success-dark: #00CC6A;
    --c-success-soft: rgba(0, 255, 136, 0.15);
    
    --c-danger: #FF3333;
    --c-danger-dark: #CC2929;
    --c-danger-soft: rgba(255, 51, 51, 0.15);

    --c-info: #3388FF;
    --c-info-dark: #296DCC;
    --c-info-soft: rgba(51, 136, 255, 0.15);

    /* Text Colors */
    --c-text: #FFFFFF;
    --c-text-2: #A0A5B5;
    --c-text-3: #6B728E;
    --c-white: #ffffff;

    /* Gradients */
    --g-primary: linear-gradient(135deg, var(--c-primary) 0%, var(--c-secondary) 100%);
    --g-hero: radial-gradient(circle at 50% 50%, #15002e 0%, var(--c-bg) 70%);
    --g-glow: linear-gradient(135deg, var(--c-primary) 0%, var(--c-secondary-dark) 100%);
    
    --g-success: linear-gradient(135deg, var(--c-success) 0%, var(--c-success-dark) 100%);
    --g-accent: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-dark) 100%);
    --g-danger: linear-gradient(135deg, var(--c-danger) 0%, var(--c-danger-dark) 100%);
    --g-info: linear-gradient(135deg, var(--c-info) 0%, var(--c-info-dark) 100%);

    /* Typography */
    --font: 'Alexandria', sans-serif;

    /* Spacing */
    --section-py: 100px;
    --gap-sm: 8px;
    --gap-md: 16px;
    --gap-lg: 24px;
    --gap-xl: 32px;

    /* Misc */
    --radius: 16px;
    --radius-sm: 10px;
    --radius-full: 9999px;
    --shadow: 0 8px 32px rgba(0,0,0,0.3);
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================================================
   1.5 UTILITY CLASSES (Design System)
   ============================================================================= */
.bg-primary { background: var(--c-primary) !important; color: var(--c-white) !important; }
.bg-secondary { background: var(--c-secondary) !important; color: var(--c-white) !important; }
.bg-success { background: var(--c-success) !important; color: var(--c-white) !important; }
.bg-danger { background: var(--c-danger) !important; color: var(--c-white) !important; }
.bg-accent { background: var(--c-accent) !important; color: var(--c-white) !important; }

.bg-primary-soft { background: var(--c-primary-soft) !important; color: var(--c-primary) !important; }
.bg-secondary-soft { background: var(--c-secondary-soft) !important; color: var(--c-secondary) !important; }
.bg-success-soft { background: var(--c-success-soft) !important; color: var(--c-success) !important; }
.bg-danger-soft { background: var(--c-danger-soft) !important; color: var(--c-danger) !important; }
.bg-accent-soft { background: var(--c-accent-soft) !important; color: var(--c-accent) !important; }

.text-primary { color: var(--c-primary) !important; }
.text-success { color: var(--c-success) !important; }
.text-danger { color: var(--c-danger) !important; }
.text-white { color: var(--c-white) !important; }

.bg-grad-primary { background: var(--g-primary) !important; color: var(--c-white) !important; }
.bg-grad-success { background: var(--g-success) !important; color: var(--c-white) !important; }
.bg-grad-warning { background: var(--g-accent) !important; color: var(--c-white) !important; }
.bg-grad-danger { background: var(--g-danger) !important; color: var(--c-white) !important; }
.bg-grad-info { background: var(--g-info) !important; color: var(--c-white) !important; }
.bg-grad-glow { background: var(--g-glow) !important; color: var(--c-white) !important; }

/* Futuristic Glassmorphism Utilities */
.glass-card {
    background: var(--c-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--c-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-radius: var(--radius);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.glass-card:hover {
    border-color: var(--c-border-hover);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 229, 255, 0.15);
}

/* Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    animation: revealUpAnim 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

@keyframes revealUpAnim {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--c-bg);
    color: var(--c-text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.ec-internal-page {
    padding-top: 140px; /* Account for fixed header */
    padding-bottom: var(--section-py);
}

h1,h2,h3,h4,h5,h6 {
    font-family: var(--font);
    font-weight: 800;
    line-height: 1.3;
    color: var(--c-text);
}

p { color: var(--c-text-2); margin-bottom: 1rem; }
a { color: var(--c-primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--c-secondary); }
img { max-width: 100%; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-content { flex: 1; }

/* Gradient text */
.ec-gradient-text {
    background: var(--g-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =============================================================================
   3. NAVBAR
   ============================================================================= */
.ec-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.ec-navbar.scrolled {
    background: rgba(11, 15, 26, 0.85);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid var(--c-border);
    padding: 10px 0;
}

.ec-navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.ec-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.ec-brand-icon {
    width: 44px;
    height: 44px;
    background: rgba(129, 140, 248, 0.1);
    border: 1px solid rgba(129, 140, 248, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ec-brand-text {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--c-text);
}

/* Nav Links */
.ec-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ec-nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--c-text-2);
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
}

.ec-nav-link:hover, .ec-nav-link.active {
    color: var(--c-text);
    background: rgba(255,255,255,0.06);
}

/* Nav Actions */
.ec-nav-actions { display: flex; align-items: center; gap: 10px; }

/* Buttons */
.ec-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.ec-btn-lg { padding: 14px 32px; font-size: 1.05rem; border-radius: 14px; }

.ec-btn-glow {
    background: var(--g-primary);
    color: var(--c-white);
    box-shadow: 0 0 20px rgba(129,140,248,0.3), 0 4px 15px rgba(129,140,248,0.2);
}

.ec-btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(129,140,248,0.5), 0 8px 25px rgba(129,140,248,0.3);
    color: var(--c-white);
}

.ec-btn-glass {
    background: rgba(255,255,255,0.06);
    color: var(--c-text);
    border: 1px solid var(--c-border);
    backdrop-filter: blur(10px);
}

.ec-btn-glass:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--c-border-hover);
    transform: translateY(-2px);
    color: var(--c-text);
}

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

.ec-btn-ghost:hover {
    color: var(--c-text);
    border-color: var(--c-border-hover);
    background: rgba(255,255,255,0.04);
}

/* Mobile Toggle */
.ec-mobile-toggle {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
}

.ec-mobile-toggle span {
    width: 20px;
    height: 2px;
    background: var(--c-text);
    border-radius: 2px;
    transition: var(--transition);
}

.ec-mobile-menu {
    display: none;
    flex-direction: column;
    padding: 16px 24px;
    background: rgba(11, 15, 26, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--c-border);
}

.ec-mobile-menu.open { display: flex; }

.ec-mobile-link {
    padding: 12px 0;
    color: var(--c-text-2);
    font-weight: 600;
    border-bottom: 1px solid var(--c-border);
}

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

/* =============================================================================
   4. HERO SECTION
   ============================================================================= */
.ec-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
    background: var(--g-hero);
}

.ec-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.ec-grid-overlay {
    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: 60px 60px;
}

.ec-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.ec-orb-1 {
    width: 500px; height: 500px;
    background: var(--c-primary);
    top: -10%; right: -5%;
    animation: orbFloat1 12s ease-in-out infinite;
}

.ec-orb-2 {
    width: 400px; height: 400px;
    background: var(--c-secondary);
    bottom: -15%; left: 10%;
    animation: orbFloat2 15s ease-in-out infinite;
}

.ec-orb-3 {
    width: 300px; height: 300px;
    background: var(--c-info);
    top: 40%; left: 50%;
    animation: orbFloat3 10s ease-in-out infinite;
    opacity: 0.2;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, 30px) scale(1.1); }
    66% { transform: translate(20px, -20px) scale(0.9); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1.1); }
    50% { transform: translate(40px, -30px) scale(0.9); }
}

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

.ec-hero > .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.ec-hero-content { max-width: 600px; }

/* Hero Badge */
.ec-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: var(--radius-full);
    color: var(--c-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 10px var(--c-success); }
    50% { opacity: 0.5; transform: scale(1.3); box-shadow: 0 0 20px var(--c-success); }
}

.ec-hero-title {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--c-text);
}

.ec-hero-desc {
    font-size: 1.2rem;
    color: var(--c-text-2);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 500px;
}

.ec-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 40px;
}

/* Avatar Stack */
.ec-hero-proof {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ec-avatar-stack {
    display: flex;
    flex-direction: row-reverse;
}

.ec-avatar-stack img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid var(--c-bg);
    margin-right: -12px;
}

.ec-avatar-stack img:first-child { margin-right: 0; }

.ec-proof-text strong {
    display: block;
    color: var(--c-text);
    font-size: 1rem;
}

.ec-proof-text span {
    font-size: 0.85rem;
    color: var(--c-text-3);
}

/* Hero Visual — Dashboard Card */
.ec-hero-visual { position: relative; }

.ec-dashboard-card {
    background: rgba(15, 15, 25, 0.5); /* Glassmorphism */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--c-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 229, 255, 0.1);
    animation: cardFloat 6s ease-in-out infinite;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 229, 255, 0.1); }
    50% { transform: translateY(-12px); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 60px rgba(0, 229, 255, 0.2); }
}

.ec-dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--c-border);
}

.ec-dash-dots { display: flex; gap: 6px; }
.ec-dash-dots span { width: 10px; height: 10px; border-radius: 50%; }

.ec-dash-title { color: var(--c-text-3); font-size: 0.85rem; font-weight: 600; }

.ec-dash-body { padding: 20px; }

.ec-dash-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.ec-dash-stat {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--c-border);
    border-radius: 12px;
    padding: 16px;
}

.ec-dash-stat-label { display: block; color: var(--c-text-3); font-size: 0.8rem; margin-bottom: 6px; }
.ec-dash-stat-value { font-size: 1.3rem; font-weight: 800; }

.ec-mini-chart {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255,255,255,0.02);
    padding: 10px;
}

.ec-mini-chart svg { width: 100%; height: 80px; display: block; }

.ec-dash-activities { display: flex; flex-direction: column; gap: 12px; }

.ec-dash-activity {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--c-border);
    border-radius: 12px;
}

.ec-activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.ec-activity-info { flex: 1; }
.ec-activity-info span { display: block; color: var(--c-text); font-size: 0.9rem; font-weight: 600; }
.ec-activity-info small { color: var(--c-text-3); font-size: 0.78rem; }

.ec-activity-amount { font-weight: 700; color: var(--c-success); font-size: 0.9rem; }

/* =============================================================================
   5. TRUSTED SECTION
   ============================================================================= */
.ec-trusted {
    padding: 40px 0;
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
    background: rgba(255,255,255,0.01);
    overflow: hidden;
}

.ec-trusted-label {
    text-align: center;
    color: var(--c-text-3);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.ec-marquee-track {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
}

.ec-marquee-content {
    display: flex;
    gap: 60px;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.ec-brand-logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--c-text-3);
    white-space: nowrap;
    opacity: 0.5;
    transition: var(--transition);
}

.ec-brand-logo:hover { opacity: 1; color: var(--c-text); }

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* =============================================================================
   6. STATS
   ============================================================================= */
.ec-stats {
    padding: var(--section-py) 0;
}

.ec-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.ec-stat-card {
    background: var(--c-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
}

.ec-stat-card:hover {
    border-color: var(--c-primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 229, 255, 0.15);
}

.ec-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.ec-stat-number {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--c-text);
    margin-bottom: 6px;
}

.ec-stat-label {
    color: var(--c-text-3);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
}

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

.ec-section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: var(--radius-full);
    color: var(--c-primary);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.ec-section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 12px;
}

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

/* =============================================================================
   8. HOW IT WORKS — STEPS
   ============================================================================= */
.ec-steps {
    padding: var(--section-py) 0;
    background: var(--c-surface);
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
}

.ec-steps-grid {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.ec-step-card {
    flex: 1;
    text-align: center;
    padding: 0 20px;
    position: relative;
}

.ec-step-number {
    font-size: 3rem;
    font-weight: 900;
    background: var(--g-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    margin-bottom: 12px;
}

.ec-step-icon {
    width: 70px;
    height: 70px;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--c-primary);
    margin-bottom: 20px;
    transition: var(--transition);
}

.ec-step-card:hover .ec-step-icon {
    background: var(--g-primary);
    color: var(--c-white);
    border-color: transparent;
    transform: scale(1.1);
}

.ec-step-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.ec-step-card p {
    color: var(--c-text-3);
    font-size: 0.95rem;
    margin: 0;
}

.ec-step-connector {
    width: 80px;
    flex-shrink: 0;
    padding-top: 100px;
}

/* =============================================================================
   9. FEATURES — BENTO GRID
   ============================================================================= */
.ec-features {
    padding: var(--section-py) 0;
}

.ec-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ec-bento-card {
    background: var(--c-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.ec-bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--g-primary);
    opacity: 0;
    transition: var(--transition);
    box-shadow: 0 0 20px var(--c-primary), 0 0 40px var(--c-secondary);
}

.ec-bento-card:hover {
    border-color: var(--c-border-hover);
    transform: translateY(-4px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 0, 85, 0.15);
}

.ec-bento-card:hover::before { opacity: 1; }

.ec-bento-wide {
    grid-column: span 2;
}

.ec-bento-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--c-white);
    margin-bottom: 20px;
}

.ec-bento-card h4 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.ec-bento-card p {
    color: var(--c-text-3);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.7;
}

/* =============================================================================
   10. TESTIMONIALS
   ============================================================================= */
.ec-testimonials {
    padding: var(--section-py) 0;
    background: var(--c-surface);
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
}

.ec-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ec-testimonial-card {
    background: var(--c-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
}

.ec-testimonial-card:hover {
    border-color: var(--c-primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 229, 255, 0.15);
}

.ec-testimonial-stars {
    color: var(--c-accent);
    font-size: 1.1rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.ec-testimonial-card > p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--c-text-2);
    margin-bottom: 20px;
    font-style: italic;
}

.ec-testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ec-testimonial-author img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--c-border);
}

.ec-testimonial-author strong {
    display: block;
    color: var(--c-text);
    font-size: 0.95rem;
}

.ec-testimonial-author span {
    color: var(--c-text-3);
    font-size: 0.82rem;
}

/* =============================================================================
   11. CTA SECTION
   ============================================================================= */
.ec-cta {
    position: relative;
    padding: var(--section-py) 0;
    overflow: hidden;
}

.ec-cta-bg {
    position: absolute;
    inset: 0;
}

.ec-cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
}

.ec-cta-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 16px;
}

.ec-cta-content p {
    font-size: 1.1rem;
    color: var(--c-text-2);
    margin-bottom: 32px;
}

.ec-cta .ec-hero-actions { justify-content: center; }

/* =============================================================================
   12. FOOTER
   ============================================================================= */
.ec-footer {
    position: relative;
    background: var(--c-surface);
    border-top: 1px solid var(--c-border);
    padding: 80px 0 30px;
}

.ec-footer-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 2px;
    background: var(--g-primary);
    filter: blur(4px);
    opacity: 0.6;
}

.ec-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.ec-footer-brand p {
    color: var(--c-text-3);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.ec-social-links { display: flex; gap: 10px; }

.ec-social-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--c-border);
    color: var(--c-text-3);
    font-size: 0.95rem;
    transition: var(--transition);
}

.ec-social-btn:hover {
    background: rgba(129, 140, 248, 0.1);
    border-color: rgba(129, 140, 248, 0.3);
    color: var(--c-primary);
    transform: translateY(-2px);
}

.ec-footer-col h5 {
    color: var(--c-text);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.ec-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ec-footer-col ul li { margin-bottom: 12px; }

.ec-footer-col ul li a {
    color: var(--c-text-3);
    font-size: 0.95rem;
    transition: var(--transition);
}

.ec-footer-col ul li a:hover {
    color: var(--c-primary);
    padding-right: 4px;
}

.ec-contact-list li {
    color: var(--c-text-3);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ec-contact-list li i {
    color: var(--c-primary);
    width: 18px;
    font-size: 0.85rem;
}

.ec-footer-bottom {
    border-top: 1px solid var(--c-border);
    padding-top: 24px;
    text-align: center;
}

.ec-footer-bottom p {
    color: var(--c-text-3);
    font-size: 0.9rem;
    margin: 0;
}

.ec-footer-bottom strong {
    color: var(--c-text);
}

/* =============================================================================
   13. ANIMATIONS
   ============================================================================= */
[data-animate] {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    /* Instead of transition, we use animation to get the bouncy curve */
}

[data-animate].animated {
    animation: revealUpAnim 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Data delays dynamically applied by JS or inline HTML */
[data-delay="100"] { animation-delay: 100ms; }
[data-delay="150"] { animation-delay: 150ms; }
[data-delay="200"] { animation-delay: 200ms; }
[data-delay="300"] { animation-delay: 300ms; }
[data-delay="400"] { animation-delay: 400ms; }
[data-delay="500"] { animation-delay: 500ms; }

/* =============================================================================
   14. RESPONSIVE
   ============================================================================= */
@media (max-width: 1024px) {
    .ec-hero > .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .ec-hero-content { max-width: 100%; }
    .ec-hero-desc { margin-inline: auto; }
    .ec-hero-actions { justify-content: center; }
    .ec-hero-proof { justify-content: center; }
    .ec-hero-visual { display: none; }
    .ec-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .ec-steps-grid { flex-direction: column; gap: 30px; }
    .ec-step-connector { display: none; }
    .ec-bento-grid { grid-template-columns: repeat(2, 1fr); }
    .ec-bento-wide { grid-column: span 2; }
    .ec-testimonials-grid { grid-template-columns: 1fr; }
    .ec-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    :root { --section-py: 60px; }
    .ec-hero { padding: 100px 0 60px; min-height: auto; }
    .ec-hero-title { font-size: 2rem; }
    .ec-stats-grid { grid-template-columns: 1fr 1fr; }
    .ec-bento-grid { grid-template-columns: 1fr; }
    .ec-bento-wide { grid-column: span 1; }
    .ec-footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .ec-hero-actions { flex-direction: column; align-items: stretch; }
    .ec-btn-lg { text-align: center; }
}

@media (max-width: 480px) {
    .ec-hero-title { font-size: 1.7rem; }
    .ec-stat-number { font-size: 1.6rem; }
    .container { padding: 0 16px; }
}

/* =============================================================================
   15. ERROR 404 PAGE
   ============================================================================= */
.ec-error-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    overflow: hidden;
    background: var(--g-hero);
}

.ec-error-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.ec-error-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.ec-error-icon {
    margin-bottom: 30px;
    animation: cardFloat 6s ease-in-out infinite;
}

.ec-error-icon svg {
    filter: drop-shadow(0 0 30px rgba(129, 140, 248, 0.3));
}

.ec-error-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    margin-bottom: 16px;
    color: var(--c-text);
}

.ec-error-desc {
    font-size: 1.15rem;
    color: var(--c-text-2);
    line-height: 1.9;
    margin-bottom: 36px;
}

.ec-error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-bottom: 50px;
}

.ec-error-links {
    border-top: 1px solid var(--c-border);
    padding-top: 30px;
}

.ec-error-links > p {
    color: var(--c-text-3);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.ec-error-links-grid {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.ec-error-links-grid a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    color: var(--c-text-2);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.ec-error-links-grid a:hover {
    background: rgba(129, 140, 248, 0.1);
    border-color: rgba(129, 140, 248, 0.3);
    color: var(--c-primary);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .ec-error-page { padding: 100px 0 60px; }
    .ec-error-actions { flex-direction: column; align-items: stretch; }
    .ec-error-links-grid { flex-direction: column; }
}

/* =============================================================================
   16. PAGE & SINGLE TEMPLATES
   ============================================================================= */
.page-template-default .site-content,
.single .site-content {
    padding-top: 100px;
    padding-bottom: 60px;
}

.page-template-default .content-area,
.single .content-area {
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin-bottom: 24px;
    background: var(--g-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.entry-content {
    color: var(--c-text-2);
    line-height: 1.9;
    font-size: 1.05rem;
}

.entry-content h2, .entry-content h3, .entry-content h4 {
    color: var(--c-text);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.entry-content a {
    color: var(--c-primary);
    border-bottom: 1px solid rgba(129, 140, 248, 0.3);
}

.entry-content a:hover {
    color: var(--c-secondary);
    border-color: var(--c-secondary);
}

.entry-content img {
    border-radius: var(--radius);
    margin: 1.5rem 0;
}

.post-thumbnail {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 30px;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.breadcrumbs {
    padding: 16px 0;
    color: var(--c-text-3);
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--c-primary);
}

/* =============================================================================
   17. HAMBURGER ANIMATION
   ============================================================================= */
.ec-mobile-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

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

/* Mobile menu slide-in animation */
.ec-mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ec-mobile-menu.open {
    display: flex;
    max-height: 500px;
}

/* =============================================================================
   18. CSS AVATARS — Replace External Service
   ============================================================================= */
.ec-css-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    color: var(--c-white);
    border: 3px solid var(--c-bg);
    flex-shrink: 0;
}

/* =============================================================================
   19. SCROLL TO TOP
   ============================================================================= */
.ec-scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 46px;
    height: 46px;
    background: var(--g-primary);
    border: none;
    border-radius: 50%;
    color: var(--c-white);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(129, 140, 248, 0.3);
    z-index: 999;
}

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

.ec-scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(129, 140, 248, 0.5);
}

/* =============================================================================
   20. COUNTER ANIMATION
   ============================================================================= */
.ec-stat-number {
    font-variant-numeric: tabular-nums;
}
