/* ===== ELEGANT DARK TEXT ON CREAM THEME 2025 ===== */
:root {
    /* === PALETTE PRINCIPALE ÉLÉGANTE === */
    --color-primary: #0F172A;          /* Noir profond élégant */
    --color-primary-dark: #020617;     /* Noir très profond */
    --color-primary-light: #1E293B;    /* Gris ardoise foncé */
    
    --color-secondary: #334155;        /* Bleu-gris foncé pour le texte */
    --color-secondary-dark: #1E293B;   /* Bleu-gris très foncé */
    --color-secondary-light: #475569;  /* Bleu-gris moyen */
    
    --color-accent: #1a3796;           /* Bleu sophistiqué pour les accents */
    --color-accent-dark: #1E3A8A;      /* Version plus foncée */
    --color-accent-light: #24519a;     /* Version plus claire */
    
    /* Fonds thème crème minimaliste */
    --color-bg-primary: #FEFEFE;       /* Blanc cassé principal */
    --color-bg-secondary: #FAF9F7;     /* Crème très subtil */
    --color-bg-light: #F8F6F3;         /* Beige très clair pour sections */
    --color-bg-dark: var(--color-primary);  /* Headers noirs */
    --color-neutral: #F1F0EE;          /* Éléments neutres beiges */
    --color-neutral-alt: #FAF9F7;      /* Alternative crème */
    
    /* Couleurs sémantiques élégantes */
    --color-warning: #D97706;
    --color-success: #059669;
    --color-error: #DC2626;
    --color-info: var(--color-accent);
    
    /* Configuration du thème crème élégant */
    --color-bg-tertiary: rgba(15, 23, 42, 0.02);    /* Overlay ultra subtil noir */
    --color-bg-quaternary: rgba(15, 23, 42, 0.01);  /* Overlay minimal */
    
    /* Glass Morphism style élégant */
    --color-glass: rgba(250, 249, 247, 0.9);
    --color-glass-border: rgba(15, 23, 42, 0.08);
    --color-glass-hover: rgba(15, 23, 42, 0.03);
    
    /* Text Colors thème élégant */
    --color-text-primary: #0F172A;                    /* Texte principal noir profond */
    --color-text-secondary: #1E293B;                  /* Texte secondaire bleu-gris foncé */
    --color-text-tertiary: #475569;                   /* Texte tertiaire bleu-gris */
    --color-text-muted: #64748B;                      /* Texte discret */
    --color-text-light: #FEFEFE;                      /* Texte sur fond sombre */
    
    /* Borders style élégant */
    --color-border: rgba(241, 240, 238, 1);           /* Bordures beiges subtiles */
    --color-border-muted: rgba(248, 246, 243, 1);     /* Bordures très légères */
    --color-border-accent: var(--color-accent);
    
    /* Dégradés élégants */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-light) 100%);
    --gradient-accent: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    --gradient-mesh: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(250, 249, 247, 0.9) 0%, rgba(254, 254, 254, 1) 100%);
    
    /* Ombres élégantes - plus subtiles et raffinées */
    --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -1px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
    --shadow-glow: 0 0 20px rgba(15, 23, 42, 0.1);
    --shadow-glow-secondary: 0 0 20px rgba(30, 64, 175, 0.1);
    --shadow-glow-accent: 0 0 20px rgba(59, 130, 246, 0.15);
    
    /* Typography Scale - Tendances 2025 avec polices expressives */
    --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-family-display: 'Poppins', 'Inter', system-ui, sans-serif;  /* Pour les titres */
    --font-family-serif: 'Playfair Display', Georgia, serif;           /* Sérif pour contraste */
    --font-family-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Fluid Typography */
    --font-size-xs: clamp(0.75rem, 0.8vw, 0.875rem);
    --font-size-sm: clamp(0.875rem, 1vw, 1rem);
    --font-size-base: clamp(1rem, 1.2vw, 1.125rem);
    --font-size-lg: clamp(1.125rem, 1.5vw, 1.25rem);
    --font-size-xl: clamp(1.25rem, 2vw, 1.5rem);
    --font-size-2xl: clamp(1.5rem, 2.5vw, 1.875rem);
    --font-size-3xl: clamp(1.875rem, 3vw, 2.25rem);
    --font-size-4xl: clamp(2.25rem, 4vw, 3rem);
    --font-size-5xl: clamp(3rem, 5vw, 4rem);
    
    /* Spacing Scale */
    --space-xs: 0.25rem;      /* 4px */
    --space-sm: 0.5rem;       /* 8px */
    --space-md: 1rem;         /* 16px */
    --space-lg: 1.5rem;       /* 24px */
    --space-xl: 2rem;         /* 32px */
    --space-2xl: 3rem;        /* 48px */
    --space-3xl: 4rem;        /* 64px */
    --space-4xl: 6rem;        /* 96px */
    --space-5xl: 8rem;        /* 128px */
    --space-6xl: 12rem;       /* 192px */
    
    /* Border Radius */
    --radius-sm: 0.375rem;    /* 6px */
    --radius-md: 0.5rem;      /* 8px */
    --radius-lg: 0.75rem;     /* 12px */
    --radius-xl: 1rem;        /* 16px */
    --radius-2xl: 1.5rem;     /* 24px */
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Layout */
    --container-max-width: 1200px;
    --container-padding: var(--space-lg);
    --nav-height: 80px;
    
    /* Modern Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    --gradient-accent: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%);
    --gradient-mesh: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 50%, var(--color-accent) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    
    /* Animation Properties */
    --animation-duration: 0.6s;
    --animation-easing: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== LOADER =====*/
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease-out;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin: 0 auto var(--space-lg);
    animation: pulse-scale 2s ease-in-out infinite;
}

.loader-progress {
    width: 200px;
    height: 4px;
    background: var(--color-border);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 0 auto;
}

.loader-progress::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    animation: loader-fill 2s ease-in-out infinite;
}

@keyframes pulse-scale {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 0 20px rgba(108, 92, 231, 0.3); 
    }
    50% { 
        transform: scale(1.1); 
        box-shadow: 0 0 40px rgba(108, 92, 231, 0.6); 
    }
}

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

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    font-size: var(--font-size-base);
    overflow-x: hidden;
    transition: all 0.3s ease-out;
    min-height: 100vh;
    position: relative;
}

/* Motif de fond élégant */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(30, 64, 175, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 40% 60%, rgba(15, 23, 42, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 70% 30%, rgba(30, 64, 175, 0.06) 0%, transparent 35%),
        linear-gradient(135deg, rgba(30, 64, 175, 0.03) 0%, transparent 50%),
        repeating-linear-gradient(
            45deg,
            transparent 0px,
            rgba(30, 64, 175, 0.02) 1px,
            rgba(30, 64, 175, 0.02) 2px,
            transparent 3px,
            transparent 50px
        );
    pointer-events: none;
    z-index: -1;
}

/* Motif géométrique supplémentaire */
body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(30, 64, 175, 0.08) 4px, transparent 4px),
        radial-gradient(circle at 75% 75%, rgba(59, 130, 246, 0.06) 3px, transparent 3px),
        radial-gradient(circle at 50% 10%, rgba(30, 64, 175, 0.04) 2px, transparent 2px);
    background-size: 100px 100px, 60px 60px, 80px 80px;
    background-position: 0 0, 30px 30px, 15px 45px;
    pointer-events: none;
    z-index: -1;
    animation: float-pattern 80s ease-in-out infinite;
    opacity: 1;
}

@keyframes float-pattern {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(-10px, -10px) rotate(1deg);
    }
    50% {
        transform: translate(10px, -5px) rotate(-1deg);
    }
    75% {
        transform: translate(-5px, 10px) rotate(0.5deg);
    }
}

body.loaded {
    opacity: 1;
}

/* Fallback pour l'affichage sans JavaScript */
.page-content {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease-out;
}

/* Modern Scrollbar thème crème */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: var(--radius-full);
    border: 2px solid var(--color-bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-light);
}

/* Selection */
::selection {
    background: var(--color-primary);
    color: var(--color-text-light);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--color-text-primary);
}

h1 { 
    font-size: var(--font-size-5xl);
    font-weight: 800;
}

h2 { 
    font-size: var(--font-size-4xl);
    font-weight: 700;
}

h3 { 
    font-size: var(--font-size-3xl);
    font-weight: 600;
}

h4 { 
    font-size: var(--font-size-2xl);
    font-weight: 600;
}

h5 { 
    font-size: var(--font-size-xl);
    font-weight: 600;
}

h6 { 
    font-size: var(--font-size-lg);
    font-weight: 600;
}

p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent-light);
}

/* ===== LAYOUT COMPONENTS ===== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Navigation styles */
.navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(250, 249, 247, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navigation .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    color: var(--color-text-secondary);
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    font-size: var(--font-size-sm);
}

.nav-link:hover {
    color: var(--color-accent);
    background: rgba(30, 64, 175, 0.05);
}

.nav-link.active {
    color: var(--color-accent);
    background: rgba(30, 64, 175, 0.1);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--color-accent);
    border-radius: 1px;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--color-text-primary);
}

.brand-logo {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: white;
    font-size: 1.2rem;
}

.brand-text {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Navigation mobile */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    gap: 0.25rem;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--color-text-primary);
    transition: all 0.3s ease;
    transform-origin: center;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(250, 249, 247, 0.98);
        backdrop-filter: blur(20px);
        border-top: 1px solid var(--color-border);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        padding: 1rem 1.5rem;
        width: 100%;
        text-align: left;
        border-radius: 0;
    }
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.section {
    flex: 1;
    padding: var(--space-4xl) 0;
    position: relative;
    overflow: hidden;
}

/* Motifs spéciaux pour sections alternées */
.section:nth-child(even) {
    background: var(--color-bg-secondary);
}

.section:nth-child(even)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 90% 10%, rgba(30, 64, 175, 0.05) 0%, transparent 50%),
        linear-gradient(45deg, transparent 40%, rgba(59, 130, 246, 0.03) 50%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.section .container {
    position: relative;
    z-index: 1;
}

/* ===== MODERN ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(108, 92, 231, 0.4);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(108, 92, 231, 0);
    }
}

/* ===== ANIMATIONS CONFORMES DA 2025 ===== */
/* Respect des préférences utilisateur */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Classes d'animation pour JavaScript */
.animate-on-load {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-load.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.animate-fade-in.animate-in {
    opacity: 1;
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-slide-up.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.animate-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.animate-scale.animate-in {
    opacity: 1;
    transform: scale(1);
}

/* Animation des compteurs */
.counter-animate {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 2.5rem;
    transition: all 0.3s ease;
}

/* Mode développeur (Easter Egg) */
.developer-mode {
    border: 3px dashed var(--accent-color);
    position: relative;
}

.developer-mode::before {
    content: "🚀 MODE DÉVELOPPEUR ACTIVÉ";
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10000;
    animation: pulse 2s infinite;
}

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

/* ===== PAGE PLATFORM - STYLES SPÉCIFIQUES ===== */
.architecture-diagram {
    margin: 4rem 0;
}

.diagram-container {
    background: var(--surface-color);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
}

.layer-group {
    margin-bottom: 3rem;
}

.layer-group:last-child {
    margin-bottom: 0;
}

.layer-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent-color);
}

.layer-title i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.services-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.hub-card .service-icon {
    background: var(--gradient-primary);
}

.app-card .service-icon {
    background: var(--gradient-accent);
}

.infra-card .service-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.site-card .service-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.service-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.service-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(249, 132, 74, 0.3);
}

/* Spécifications techniques */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.spec-card {
    background: var(--surface-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

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

.spec-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.spec-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1.5rem;
}

.spec-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.spec-value {
    color: var(--accent-color);
    font-weight: 600;
}

/* Code showcase */
.code-showcase {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.code-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    font-weight: 600;
}

.code-lang {
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

.code-content {
    padding: 0;
}

.code-content pre {
    margin: 0;
    padding: 2rem;
    overflow-x: auto;
    background: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.code-content code {
    color: rgba(255, 255, 255, 0.9);
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    margin-top: 4rem;
}

.cta-content {
    padding: 4rem 2rem;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .diagram-container {
        padding: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .layer-title {
        font-size: 1.3rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-gradient {
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-100 { opacity: 1; }

.animate-fade-in {
    animation: fadeInUp var(--animation-duration) var(--animation-easing) both;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    :root {
        --container-padding: var(--space-md);
        --space-4xl: var(--space-3xl);
        --space-5xl: var(--space-4xl);
    }
    
    .container {
        padding: 0 var(--space-md);
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: var(--space-sm);
    }
}

/* ===== DARK THEME OPTIMIZATIONS ===== */
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
    }
}
