/* synthocode/assets/css/custom.css - PREMIUM DESIGN */

/* ============================================
   VARIABLES & DESIGN SYSTEM
============================================ */
:root {
    /* Primary Colors */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #f59e0b;
    --accent-glow: rgba(245, 158, 11, 0.4);

    /* Neutral Colors */
    --dark: #0f0f1a;
    --dark-soft: #1a1a2e;
    --dark-card: #16162a;
    --light: #f8fafc;
    /* color-scheme removed */
    --gray: #64748b;
    --gray-light: rgba(255, 255, 255, 0.1);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --gradient-dark: linear-gradient(180deg, #0f0f1a 0%, #1a1a2e 100%);
    --gradient-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    --gradient-text: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);

    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(20px);

    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 25px 80px rgba(99, 102, 241, 0.15);
    --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.3);

    /* Spacing */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

/* Premium Selection */
::selection {
    background: rgba(99, 102, 241, 0.3);
    color: #fff;
    text-shadow: 0 0 5px rgba(99, 102, 241, 0.5);
}

/* Premium Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--dark-soft);
    border-radius: 5px;
    border: 1px solid var(--glass-border);
}

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

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: var(--dark);
    color: #e2e8f0;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

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

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

/* ============================================
   TYPOGRAPHY
============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    line-height: 1.1;
    color: white;
    letter-spacing: -0.02em;
}

.display-1 {
    font-size: clamp(3rem, 8vw, 5rem);
}

.display-2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
}

.display-3 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.display-4 {
    font-size: clamp(1.75rem, 4vw, 3rem);
}

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

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: #94a3b8;
    line-height: 1.8;
}

/* ============================================
   ANIMATED BACKGROUND
============================================ */
.animated-bg {
    position: sticky !important;
    top: 0 !important;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: var(--dark);
}

.animated-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(168, 85, 247, 0.1) 0%, transparent 40%);
    animation: floatBg 20s ease-in-out infinite;
}

@keyframes floatBg {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(5deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }
}

/* Floating Particles */
.particles {
    position: sticky !important;
    top: 0 !important;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 15s infinite;
}

@keyframes float {

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

    10% {
        opacity: 0.5;
    }

    90% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

/* ============================================
   NAVIGATION - PREMIUM
============================================ */
.navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1030;
    padding: 1rem 0;
    background: transparent;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(15, 15, 26, 0.85);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    color: white !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.8rem;
}

.navbar-brand span:last-child {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    color: #94a3b8 !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-fast);
    transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
    color: white !important;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-spacer {
    height: 80px;
}

/* Réduction de l'espace navbar en mode portrait */
@media (max-width: 767.98px) {
    .nav-spacer {
        height: 30px;
    }

    /* Réduire le padding top des sections en mobile */
    section.py-5 {
        padding-top: 1rem !important;
    }
}

/* ============================================
   BUTTONS - UIVERSE.IO INSPIRED MODERN DESIGN
============================================ */
.btn {
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    isolation: isolate;
    z-index: 1;
}

/* Icon animations in buttons */
.btn i,
.btn svg {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn:hover i,
.btn:hover svg {
    transform: translateX(4px) scale(1.1);
}

/* Primary Button - Glow Effect */
.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    background-size: 200% 200%;
    color: white;
    box-shadow:
        0 4px 15px rgba(99, 102, 241, 0.4),
        0 0 0 0 rgba(99, 102, 241, 0);
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0 !important;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent,
            rgba(255, 255, 255, 0.1),
            transparent 30%);
    animation: rotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

    to {
        transform: rotate(360deg);
    }
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 10px 40px rgba(99, 102, 241, 0.5),
        0 0 30px rgba(139, 92, 246, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-primary:active {
    transform: translateY(-2px) scale(0.98);
}

/* Outline Button - Border Animation */
.btn-outline-primary {
    background: transparent;
    color: white;
    border: 2px solid transparent;
    position: relative;
    z-index: 1;
}

.btn-outline-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
    border-radius: 12px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    transition: all 0.4s ease;
}

.btn-outline-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    border-radius: 10px;
    opacity: 0;
    z-index: -1;
    transition: all 0.4s ease;
}

.btn-outline-primary:hover {
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn-outline-primary:hover::after {
    opacity: 1;
}

.btn-outline-primary:hover::before {
    opacity: 0;
}

/* Light Button - Clean Style */
.btn-light {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-weight: 700;
}

.btn-light:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    background: white;
    color: #4f46e5;
}

.btn-light:hover i {
    color: #4f46e5;
}

/* Light Outline Button - High Contrast for CTA */
.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: white;
    background: transparent;
    backdrop-filter: blur(5px);
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary);
    border-color: white;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-outline-light:hover i {
    transform: rotate(15deg) scale(1.1);
}

/* White Glow Effect */
.btn-glow-white {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    animation: glowWhite 3s infinite;
}

@keyframes glowWhite {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(255, 255, 255, 0.6), 0 0 10px rgba(255, 255, 255, 0.8);
    }
}

/* Size Variants */
.btn-lg {
    padding: 1.1rem 2.8rem;
    font-size: 1.05rem;
    border-radius: 14px;
}

.btn-sm {
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
    border-radius: 10px;
}

/* Special Animated Buttons */
.btn-glow {
    animation: buttonGlow 2s ease-in-out infinite;
}

@keyframes buttonGlow {

    0%,
    100% {
        box-shadow:
            0 4px 15px rgba(99, 102, 241, 0.4),
            0 0 20px rgba(99, 102, 241, 0.2);
    }

    50% {
        box-shadow:
            0 4px 20px rgba(99, 102, 241, 0.6),
            0 0 40px rgba(139, 92, 246, 0.4);
    }
}

/* Pulse Effect Button */
.btn-pulse::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: inherit;
    border-radius: inherit;
    animation: pulse-ring 2s ease-out infinite;
    z-index: -1;
}

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

    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

/* Magnetic Effect (add via JS) */
.btn-magnetic {
    transition: transform 0.2s ease-out;
}

/* Icon Only Button */
.btn-icon {
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.btn-icon:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* ============================================
   ANIMATED ICONS
============================================ */
/* Bounce on hover */
.icon-bounce:hover {
    animation: iconBounce 0.5s ease;
}

@keyframes iconBounce {

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

    25% {
        transform: translateY(-6px);
    }

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

    75% {
        transform: translateY(-5px);
    }
}

/* Rotate on hover */
.icon-rotate:hover {
    animation: iconRotate 0.6s ease;
}

@keyframes iconRotate {
    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Pulse on hover */
.icon-pulse:hover {
    animation: iconPulse 0.5s ease infinite;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* Shake on hover */
.icon-shake:hover {
    animation: iconShake 0.5s ease;
}

@keyframes iconShake {

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

    25% {
        transform: translateX(-4px) rotate(-5deg);
    }

    75% {
        transform: translateX(4px) rotate(5deg);
    }
}

/* Float animation for decorative icons */
.icon-float {
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {

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

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

/* Glow on hover */
.icon-glow:hover {
    filter: drop-shadow(0 0 10px currentColor);
}

/* Scale up smoothly */
.icon-scale {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.icon-scale:hover {
    transform: scale(1.3);
}

/* ============================================
   PHOSPHOR ICONS - BRIGHT HIGH-CONTRAST STYLE
============================================ */
/* Base Phosphor Icon - BRIGHT WHITE on colored background */
.phosphor-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    margin-bottom: 1.25rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 8px 25px rgba(99, 102, 241, 0.4),
        0 4px 15px rgba(139, 92, 246, 0.3);
}

.phosphor-icon i {
    font-size: 2.5rem;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: all 0.4s ease;
}

.phosphor-icon:hover {
    transform: translateY(-8px) scale(1.1) rotate(5deg);
    box-shadow:
        0 15px 40px rgba(99, 102, 241, 0.5),
        0 0 40px rgba(139, 92, 246, 0.4),
        0 0 60px rgba(168, 85, 247, 0.3);
}

.phosphor-icon:hover i {
    transform: scale(1.2);
}

/* Stat Icon - Different colors for each */
.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
}

.stat-icon i {
    font-size: 2.25rem;
}

/* Color variations for stats - VIBRANT COLORS */
.stat-card:nth-child(1) .phosphor-icon {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.stat-card:nth-child(2) .phosphor-icon {
    background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.stat-card:nth-child(3) .phosphor-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.stat-card:nth-child(4) .phosphor-icon {
    background: linear-gradient(135deg, #ec4899 0%, #f472b6 100%);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.4);
}

/* Service Icon - Larger */
.service-icon {
    width: 90px;
    height: 90px;
    border-radius: 24px;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 3rem;
}

/* Service Cards Color variations */
.service-card:nth-child(1) .phosphor-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.service-card.featured .phosphor-icon {
    background: linear-gradient(135deg, #a855f7 0%, #c084fc 100%);
    box-shadow:
        0 8px 25px rgba(168, 85, 247, 0.4),
        0 0 30px rgba(168, 85, 247, 0.3);
    animation: pulseGlow 2s ease-in-out infinite;
}

.service-card:nth-child(3) .phosphor-icon {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow:
            0 8px 25px rgba(168, 85, 247, 0.4),
            0 0 30px rgba(168, 85, 247, 0.3);
    }

    50% {
        box-shadow:
            0 8px 30px rgba(168, 85, 247, 0.6),
            0 0 50px rgba(192, 132, 252, 0.5);
    }
}

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

.hero-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {

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

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--primary-light);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease;
}

.hero-badge i {
    color: var(--accent);
    animation: pulseIcon 2s infinite;
}

@keyframes pulseIcon {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.hero-title {
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-description {
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-buttons {
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Code Snippet - Premium */
.code-snippet {
    background: var(--dark-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: fadeInRight 1s ease 0.4s backwards;
}

.code-snippet::before {
    content: '';
    position: absolute;
    top: 0 !important;
    left: 0;
    right: 0;
    height: 40px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--glass-border);
}

.code-snippet::after {
    content: '  ';
    position: absolute;
    top: 12px;
    left: 16px;
    font-size: 10px;
    letter-spacing: 4px;
    color: #64748b;
}

.code-snippet pre {
    margin: 0;
    padding-top: 1.5rem;
    color: #e2e8f0;
    font-family: 'Fira Code', 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
    overflow-x: auto;
}

.code-snippet code {
    color: #a5b4fc;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

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

.floating-element {
    animation: floatElement 6s ease-in-out infinite;
}

@keyframes floatElement {

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

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

/* ============================================
   GLASS CARDS - PREMIUM
============================================ */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

/* ============================================
   STATS SECTION - PREMIUM
============================================ */
.stats-section {
    padding: 80px 0;
    position: relative;
}

.stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0 !important;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

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

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

/* 3D Icons from 3dicons.co style */
.stat-icon-3d {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.stat-icon-3d img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 25px rgba(99, 102, 241, 0.3));
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat-card:hover .stat-icon-3d img {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 15px 35px rgba(99, 102, 241, 0.5));
}

/* Service 3D Icons */
.service-icon-3d {
    width: 100px;
    height: 100px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon-3d img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 25px rgba(99, 102, 241, 0.25));
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card:hover .service-icon-3d img {
    transform: scale(1.2) translateY(-10px) rotate(8deg);
    filter: drop-shadow(0 20px 40px rgba(99, 102, 241, 0.4));
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #94a3b8;
    font-size: 1rem;
}

/* ============================================
   SERVICE CARDS - PREMIUM
============================================ */
.service-card {
    background: var(--dark-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    height: 100%;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0 !important;
    left: 0;
    right: 0;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-slow);
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

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

.service-card>* {
    position: relative;
    z-index: 1;
}

.service-card.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    /* Gold/Amber Gradient */
    color: #1e1e2f;
    /* Dark text for contrast */
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
    z-index: 2;
}

.service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    color: white;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    transition: var(--transition-normal);
}

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

.service-card h4 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.service-card p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.service-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.service-card ul li {
    padding: 0.5rem 0;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.service-card ul li i {
    color: #22c55e;
    font-size: 0.9rem;
}

.service-card .btn {
    margin-top: auto;
    width: 100%;
}

/* ============================================
   PRICING CARDS - PREMIUM
============================================ */
.pricing-card {
    background: var(--dark-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: 100%;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

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

.pricing-header {
    background: var(--gradient-primary);
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pricing-header h4 {
    min-height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.pricing-card:not(.featured) .pricing-header {
    background: rgba(255, 255, 255, 0.03);
}

.pricing-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin: 0 auto 1rem;
    font-size: 2rem;
}

.pricing-card:not(.featured) .pricing-icon {
    background: var(--gradient-primary);
}

.pricing-icon i {
    color: white;
}

.price-display {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.pricing-card:not(.featured) .price-display {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pricing-body {
    padding: 2rem;
    flex-grow: 1;
}

.pricing-footer {
    padding: 0 2rem 2rem;
    margin-top: auto;
    display: flex;
    justify-content: center;
}

.pricing-footer .btn {
    width: 100%;
}

/* ============================================
   PORTFOLIO CARDS - PREMIUM
============================================ */
.portfolio-card {
    background: var(--dark-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.portfolio-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.portfolio-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.portfolio-hover {
    position: absolute;
    top: 0 !important;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 15, 26, 0.9) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition-normal);
}

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

.hover-content {
    text-align: center;
    transform: translateY(20px);
    transition: var(--transition-normal);
}

.portfolio-card:hover .hover-content {
    transform: translateY(0);
}

.portfolio-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-info h5 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.portfolio-info p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.portfolio-info .d-flex {
    margin-top: auto;
}

/* ============================================
   FILTERS - PREMIUM
============================================ */
.filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: #94a3b8;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-normal);
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* ============================================
   TIMELINE - PREMIUM
============================================ */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.3;
}

.timeline-item {
    display: flex;
    margin-bottom: 4rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-date {
    flex: 0 0 140px;
    width: 140px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    margin: 0 2rem;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.timeline-content {
    flex: 1;
    background: var(--dark-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition-normal);
}

.timeline-content:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

/* ============================================
   PROCESS TIMELINE - PREMIUM
============================================ */
.process-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 4rem 0;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 60px;
    right: 60px;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0.3;
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
    transition: var(--transition-normal);
}

.process-step:hover .step-number {
    transform: scale(1.1);
}

.step-content h5 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.step-content p {
    color: #94a3b8;
    font-size: 0.9rem;
    padding: 0 1rem;
}

/* ============================================
   FORMS - PREMIUM
============================================ */
.form-control,
.form-select {
    background: var(--dark-card);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.form-control:focus,
.form-select:focus {
    background: var(--dark-card);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    color: white;
}

.form-control::placeholder {
    color: #64748b;
}

.form-label {
    color: #e2e8f0;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* ============================================
   CTA SECTION - PREMIUM
============================================ */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(-45deg, #6366f1, #8b5cf6, #ec4899, #6366f1);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    position: relative;
    overflow: hidden;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0 !important;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Decorative shapes for CTA */
.cta-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l30 30-30 30L0 30z' fill='%23ffffff' fill-opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.5;
    animation: rotate 60s linear infinite;
    pointer-events: none;
}

/* CTA Buttons alignment */
.cta-section .btn {
    height: 60px;
    /* Fixed height for consistency */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-glow-white {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.btn-glow-white:hover {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

/* ============================================
   FOOTER - PREMIUM
============================================ */
.footer {
    background: var(--dark-soft);
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 30px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0 !important;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
}

.footer h4,
.footer h5 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer p,
.footer a,
.footer li {
    color: #94a3b8;
    transition: all 0.3s ease;
}

.footer a:hover,
.footer li:hover {
    color: white !important;
}

.footer a:hover i,
.footer li:hover i {
    color: var(--primary-light) !important;
    transform: translateX(3px);
}

.footer li {
    transition: transform 0.3s ease;
}

.footer li:hover {
    transform: translateX(5px);
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: #94a3b8 !important;
    margin-right: 0.75rem;
    transition: var(--transition-normal);
}

.social-icons a:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white !important;
    transform: translateY(-3px);
}

/* ============================================
   MODALS - PREMIUM
============================================ */
.modal-content {
    background: #0f0f1a;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    border-radius: var(--radius-xl);
}

.modal-header,
.modal-footer {
    border: none;
    padding: 1.5rem 2rem;
}

.project-image {
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 16px;
}

/* Crop capture artifacts (white lines) */
.project-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transform: scale(1.02);
    /* Slight zoom to hide edges */
}

.modal-title {
    color: white;
}

.modal-body {
    padding: 2rem;
}

.btn-close {
    filter: invert(1);
}

/* ============================================
   ALERTS - PREMIUM
============================================ */
.alert {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: white;
}

.alert-info {
    border-left: 4px solid var(--primary);
}

.alert-success {
    border-left: 4px solid #22c55e;
}

/* ============================================
   BADGES - PREMIUM
============================================ */
.badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
}

.badge.bg-primary {
    background: var(--gradient-primary) !important;
}

.badge.bg-light {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

/* ============================================
   SECTION TITLES
============================================ */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ============================================
   ANIMATIONS & UTILITIES
============================================ */
[data-aos] {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.min-vh-80 {
    min-height: 80vh;
}

.text-muted {
    color: #94a3b8 !important;
}

.bg-light {
    background: var(--dark-soft) !important;
}

/* Glow animation */
@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(99, 102, 241, 0.5);
    }
}

.glow {
    animation: glow 3s infinite;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 992px) {
    .hero-section {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: column;
        margin-left: 60px;
    }

    .timeline-date {
        position: absolute;
        left: -85px;
        top: -15px;
        width: 110px;
        height: 45px;
        font-size: 0.9rem;
        margin: 0;
    }

    .process-timeline {
        flex-direction: column;
        gap: 3rem;
    }

    .process-timeline::before {
        display: none;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .hero-section {
        text-align: center;
        padding: 80px 0 40px;
    }

    .hero-badge {
        font-size: 0.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-lg {
        width: 100%;
    }

    .code-snippet {
        display: none;
    }

    .filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-btn {
        text-align: center;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* Standardized Mobile Navbar Fix - PINNED LOGO & BURGER */
    .navbar>.container {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        position: relative !important;
        min-height: 60px !important;
        /* Ensure stable height */
    }

    .navbar-brand {
        flex: 0 0 auto !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 10 !important;
    }

    .navbar-brand img {
        height: 85px !important;
        /* Larger logo for mobile as requested */
        width: auto !important;
        margin: -15px 0 -15px -10px !important;
        /* Negative margin to keep header compact */
    }

    .navbar-toggler {
        flex: 0 0 auto !important;
        order: 2 !important;
        z-index: 10 !important;
        border-radius: 12px;
        padding: 0.4rem;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        position: relative !important;
        /* Fix its position */
    }

    /* Dropdown menu - Detached from flow */
    .navbar-collapse {
        position: absolute !important;
        top: calc(100% + 10px) !important;
        left: 15px !important;
        right: 15px !important;
        width: auto !important;
        background: rgba(20, 20, 35, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 20px !important;
        padding: 1.5rem !important;
        margin: 0 !important;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6) !important;
        z-index: 1000 !important;
    }

    .nav-link {
        padding: 1rem !important;
        border-radius: 12px;
        margin-bottom: 0.5rem;
        text-align: center;
    }

    .nav-link.active {
        background: rgba(99, 102, 241, 0.1);
        color: var(--primary-light) !important;
    }

    /* FOOTER MOBILE CENTERING */
    .footer .col-lg-4,
    .footer .col-lg-2,
    .footer .col-lg-3,
    .footer .col-12 {
        text-align: center !important;
        align-items: center !important;
    }

    .footer ul li {
        justify-content: center !important;
        /* Stack icon and text vertically for better centering on mobile */
        flex-direction: column !important;
        gap: 0.5rem !important;
    }

    .footer ul li i {
        /* Remove the right margin causing off-center look */
        margin-right: 0 !important;
        margin-bottom: 0.2rem !important;
    }

    .footer ul li a,
    .footer ul li span {
        text-align: center !important;
    }

    .social-container-uiverse {
        justify-content: center !important;
        margin: 0 auto;
    }
}

/* ============================================
   STATS - SIMPLE & CLEAN (REVERTED)
 ============================================ */
.stats-section {
    padding: 60px 0;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    height: 100%;
    transition: var(--transition-normal);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   LOADING ANIMATION
 ============================================ */
.page-loader {
    position: sticky !important;
    top: 0 !important;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.page-loader.loaded {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 60px;
    height: 60px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ============================================
   TOGGLE SWITCH - CUSTOM
============================================ */
.toggle-input {
    display: none;
}

.toggle-switch {
    display: flex;
    align-items: center;
    position: relative;
    width: 48px;
    /* More compact width */
    height: 26px;
    /* Slightly thinner */
    background-color: rgba(255, 255, 255, 0.15);
    /* More subtle background */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    flex-shrink: 0;
    margin-right: 14px;
    /* Optimized spacing */
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-switch::after {
    content: "";
    position: absolute;
    height: 20px;
    /* Adjusted knob size */
    width: 20px;
    left: 2px;
    background: white;
    /* Clean white knob */
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-input:checked+.toggle-switch::after {
    transform: translateX(22px);
    /* Adjusted slide distance */
}

.toggle-input:checked+.toggle-switch {
    background-color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(111, 66, 193, 0.4);
    /* Glow effect when active */
}

/* Custom Select Styling */
.cursor-pointer {
    cursor: pointer;
}

.custom-options {
    background-color: #1e1e2f !important;
    /* Force opaque background */
    max-height: 300px;
    overflow-y: auto;
    z-index: 9999 !important;
    /* Ensure it stays on top */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    /* Strong shadow */
}

.custom-option {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.custom-option:last-child {
    border-bottom: none;
}

.custom-option:hover {
    background-color: var(--primary);
    color: white;
    padding-left: 1.5rem !important;
    /* Slight slide effect */
}

/* Portfolio Filtering Animations - Simplified for AJAX */
.portfolio-grid {
    min-height: 400px;
    position: relative;
    transition: opacity 0.3s ease;
}

.portfolio-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    margin: 0 0.5rem 0.5rem 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* Rotate arrow when open - Restored */
.rotate-180 {
    transform: rotate(180deg);
}

.fa-chevron-down {
    transition: transform 0.3s ease;
}

/* ============================================
   DEFINITIVE MOBILE FIX & ALIGNMENT
============================================ */
@media (max-width: 768px) {

    html,
    body {
        overflow-x: hidden !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        position: relative !important;
    }

    .container,
    .container-fluid {
        padding-left: 20px !important;
        padding-right: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }
}

/* Mobile experience cleaned up */

@media (max-width: 768px) {
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        display: flex !important;
        flex-wrap: wrap !important;
    }

    /* Fix stats/cards cutting */
    .col-6,
    .col-12,
    [class*="col-"] {
        padding-left: 10px !important;
        padding-right: 10px !important;
        width: 100% !important;
        /* Force full width on mobile */
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    /* Keep 2 columns for small stats if specifically col-6 */
    .col-6 {
        width: 50% !important;
        max-width: 50% !important;
        flex: 0 0 50% !important;
    }

    /* Centering everything */
    .hero-section,
    .about-section,
    .contact-section,
    .stats-section,
    .services-section {
        text-align: center !important;
    }

    /* Fixed Contact & Footer icons stacking and centering */
    .contact-section .d-flex,
    .glass-card .d-flex,
    .footer .d-flex,
    [class*="col-"] .d-flex {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .contact-section .d-flex>div[style*="width"],
    .glass-card .d-flex>div[style*="width"],
    .footer .d-flex>div[style*="width"] {
        margin-right: 0 !important;
        margin-bottom: 1rem !important;
        flex-shrink: 0 !important;
    }

    .hero-buttons {
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
        justify-content: center !important;
    }

    .section-title,
    .lead,
    h1,
    h2,
    h3,
    h4,
    h5,
    p,
    .footer,
    .footer p {
        text-align: center !important;
    }

    .section-title::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .navbar-brand {
        margin-left: 0 !important;
        padding-left: 0 !important;
        font-size: 1.15rem !important;
        display: flex !important;
        align-items: center !important;
        width: auto !important;
        /* Allow room for burger */
    }

    .navbar>.container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .navbar-toggler {
        margin-right: 0 !important;
        order: 1;
        /* Ensure it stays right */
    }

    .social-icons {
        display: flex !important;
        justify-content: center !important;
        margin-top: 1rem !important;
        width: 100% !important;
    }

    /* Fix estimation card padding and button on mobile */
    .glass-card.p-5,
    div[style*="padding: 3rem"],
    div[style*="p-5"] {
        padding: 2rem 1.5rem !important;
    }

    .btn-lg {
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        text-align: center !important;
        padding: 1.2rem 1rem !important;
        font-size: 1.1rem !important;
        line-height: 1.2;
    }

    .btn-lg i {
        margin-right: 12px !important;
        flex-shrink: 0;
    }

    /* Timeline Definitive Centering on Mobile - TOTAL RESET */
    .timeline {
        padding: 1rem 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        display: block !important;
    }

    .timeline::before {
        display: none !important;
    }

    .timeline-item,
    .timeline-item:nth-child(odd) {
        display: block !important;
        /* Switch to block for absolute margin control */
        width: 100% !important;
        margin: 0 0 3.5rem 0 !important;
        padding: 0 !important;
        text-align: center !important;
        float: none !important;
    }

    .timeline-date {
        display: inline-flex !important;
        margin: 0 auto 1.5rem auto !important;
        width: 150px !important;
        height: 38px !important;
        min-width: 150px !important;
        float: none !important;
        position: relative !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
    }

    .timeline-content {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 2rem 1.5rem !important;
        text-align: center !important;
        float: none !important;
        border-radius: 20px !important;
        flex: none !important;
    }

    .timeline-content h5 {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
    }

    .timeline-content i {
        margin: 0 10px 0 0 !important;
    }

    /* Ensure all glass-cards are centered */
    .glass-card {
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
    }

}

/* ==========================================================================
   GLOBAL FIXES - APPLIES EVERYWHERE
   ========================================================================== */

/* THE HAMMER FIX: FORCE PHOSPHOR & FONTAWESOME VISIBILITY TO WHITE */
.phosphor-icon i,
.phosphor-icon svg,
.featured-icon i,
i[class^="ph-"],
i[class*=" ph-"] {
    font-family: 'Phosphor', sans-serif !important;
    color: #ffffff !important;
    fill: #ffffff !important;
    stroke: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
    /* Removed drop-shadow to prevent blurring details */
    filter: none !important;
}

/* Base style for stat icons to ensure white color without forcing font-family */
.stat-icon i,
.stat-icon svg {
    color: #ffffff !important;
    fill: #ffffff !important;
    opacity: 1 !important;
    /* Removed drop-shadow to prevent blurring details */
    filter: none !important;
}

/* Force Duotone inner paths to be visible and white */
.ph-duotone,
.ph-duotone *,
.ph-duotone>*,
.ph-duotone path {
    color: #ffffff !important;
    fill: #ffffff !important;
    opacity: 1 !important;
}

/* ==========================================================================
   MOBILE SPECIFIC OVERRIDES
   ========================================================================== */

@media (max-width: 768px) {

    /* Reinforce white color on mobile for all known icon containers */
    .stat-icon i,
    .stat-icon svg,
    .phosphor-icon i,
    .phosphor-icon svg,
    .glass-card i,
    .glass-card svg {
        font-size: 2.5rem !important;
        color: #ffffff !important;
        fill: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
        opacity: 1 !important;
    }

    .stat-icon.mx-auto i {
        font-size: 2.2rem !important;
    }

    /* ========================================================================
       FOOTER - CENTRAGE VERTICAL ICÔNES EN MODE PORTRAIT
       ======================================================================== */

    /* Footer Services & Navigation - Icônes centrées au-dessus du texte */
    footer .list-unstyled li a {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
    }

    footer .list-unstyled li a i {
        margin-right: 0 !important;
        margin-left: 0 !important;
        margin-bottom: 6px !important;
        font-size: 1.3rem !important;
        display: block !important;
        text-align: center !important;
    }

    /* Footer list items - Centrage complet */
    footer .list-unstyled li,
    footer h5 {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
    }

    /* Footer Contact section - Flex column */
    footer .list-unstyled li.d-flex {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    footer .list-unstyled li.d-flex i {
        margin-right: 0 !important;
        margin-left: 0 !important;
        margin-bottom: 8px !important;
        display: block !important;
    }

    /* Center footer column headers */
    footer h5 {
        text-align: center !important;
    }

    /* Footer columns - Centrage */
    footer .col-md-4,
    footer .col-lg-4,
    footer .col-6 {
        text-align: center !important;
    }

    /* ========================================================================
       GLOBAL - ICÔNES CHECK COULEUR INDIGO ET CENTRAGE PORTRAIT
       ======================================================================== */

    /* Force couleur indigo sur TOUTES les icônes check */
    .fa-check-circle,
    .fa-check,
    .text-success.fa-check-circle,
    .text-success.fa-check {
        color: #6366f1 !important;
        -webkit-text-fill-color: #6366f1 !important;
    }

    /* Glass cards - Centrage listes avec icônes en portrait */
    .glass-card .list-unstyled li,
    .glass-card ul li {
        flex-direction: column !important;
        text-align: center !important;
        display: flex !important;
        align-items: center !important;
        margin-bottom: 1rem !important;
    }

    .glass-card .list-unstyled li i,
    .glass-card ul li i {
        margin-right: 0 !important;
        margin-bottom: 8px !important;
        font-size: 1.4rem !important;
        color: #6366f1 !important;
        -webkit-text-fill-color: #6366f1 !important;
    }

    /* Pricing cards - Centrage listes */
    .pricing-card .list-unstyled li {
        flex-direction: column !important;
        text-align: center !important;
        display: flex !important;
        align-items: center !important;
    }

    .pricing-card .list-unstyled li i {
        margin-right: 0 !important;
        margin-bottom: 6px !important;
    }

    /* Badge-icon sections - Centrage vertical */
    .d-flex.align-items-start {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .d-flex.align-items-start .badge-icon {
        margin-right: 0 !important;
        margin-bottom: 12px !important;
    }

    /* FIX: Forcer couleur indigo sur .badge-icon en mobile */
    .badge-icon i {
        color: #6366f1 !important;
        -webkit-text-fill-color: #6366f1 !important;
    }

    .d-flex.align-items-start>div {
        text-align: center !important;
    }

    /* Icon boxes premium - Centrage ET couleur indigo */
    .icon-box-premium {
        margin: 0 auto 1rem auto !important;
    }

    .icon-box-premium i {
        color: #6366f1 !important;
        -webkit-text-fill-color: #6366f1 !important;
    }

    /* Border-hover cards - Centrage du contenu */
    .border-hover {
        text-align: center !important;
    }

    .border-hover .list-unstyled {
        text-align: center !important;
    }

    /* ========================================================================
       SEO PAGE & CARTES - CENTRAGE BOUTONS ET GRAPHIQUES
       ======================================================================== */

    /* Centrer les boutons dans les cartes */
    .bg-white-05 {
        text-align: center !important;
    }

    .bg-white-05 h4 {
        justify-content: center !important;
        display: flex !important;
        flex-wrap: wrap !important;
    }

    .bg-white-05 .btn,
    .btn-indigo-soft {
        display: block !important;
        margin: 1rem auto 0 auto !important;
        width: fit-content !important;
    }

    /* Graphique "Croissance du trafic" - Amélioration portrait */
    .performance-chart {
        margin-top: 1.5rem !important;
    }

    .performance-chart .bar {
        min-width: 20px !important;
    }

    /* SEO UI Card - Centrage en portrait */
    .seo-ui-card {
        text-align: center !important;
    }

    .seo-viz-container {
        margin-top: 2rem !important;
    }

    /* Sections avec rounded-4 et border - Centrage contenu */
    .rounded-4.border {
        text-align: center !important;
    }

    .rounded-4.border .btn {
        display: block !important;
        margin: 1rem auto 0 auto !important;
        width: fit-content !important;
    }

    /* ========================================================================
       ACCORDION SEO - CENTRAGE BADGES ET TITRES
       ======================================================================== */

    /* Centrer les boutons accordion */
    .accordion-button {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 8px !important;
    }

    .accordion-button .badge {
        margin-right: 0 !important;
        margin-bottom: 8px !important;
    }

    .accordion-button strong {
        text-align: center !important;
    }

    /* Accordion body centré */
    .accordion-body {
        text-align: center !important;
    }

    /* Accordion item centré */
    .accordion-item {
        text-align: center !important;
    }

    /* Centrer le titre "Une stratégie SEO en 3 piliers" */
    .h3,
    h3 {
        text-align: center !important;
    }

    /* ========================================================================
       GRAPHIQUE TRAFIC - CACHER EN PORTRAIT (NE S'ADAPTE PAS BIEN)
       ======================================================================== */

    /* Cacher le graphique de trafic en portrait - affiche mal */
    .performance-chart {
        display: none !important;
    }

    /* SEO Viz Container - Garder visible et centré */
    .seo-viz-container {
        width: 100% !important;
    }

    /* SEO UI Card - Visible et centré */
    .seo-ui-card {
        width: 100% !important;
        padding: 1rem !important;
        text-align: center !important;
    }

    /* SEO UI Card header - Centrage vertical */
    .seo-ui-card .d-flex.justify-content-between {
        flex-direction: column !important;
        align-items: center !important;
        gap: 8px !important;
    }

    /* ========================================================================
       VITRINE PAGE - CENTRAGE NUMÉROS D'ÉTAPES EN PORTRAIT
       ======================================================================== */

    /* Conteneurs d'étapes (01, 02, 03) - Flex colonne centrée */
    .d-flex.mb-4:has(.step-num),
    .col-lg-6>.d-flex.mb-4 {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    /* Numéros d'étapes - Centrés au-dessus */
    .step-num {
        margin-right: 0 !important;
        margin-bottom: 12px !important;
        text-align: center !important;
    }

    /* Contenu des étapes - Centré */
    .d-flex.mb-4>div:not(.step-num) {
        text-align: center !important;
    }

    .d-flex.mb-4 h5 {
        text-align: center !important;
    }

    /* ========================================================================
       E-COMMERCE - CACHER GRAPHIQUE EN PORTRAIT (NE S'ADAPTE PAS)
       ======================================================================== */

    /* Cacher le graphique mini e-commerce en portrait */
    .chart-mini-placeholder {
        display: none !important;
    }

    /* Dashboard mockup - Améliorer l'affichage */
    .dashboard-mockup {
        width: 100% !important;
    }

    .stat-mini-card {
        text-align: center !important;
    }

    /* ========================================================================
       APP-WEB - CENTRAGE ICÔNES ET ALIGNEMENT CARTES
       ======================================================================== */

    /* Cartes tech (Backend PHP, Frontend JS, etc.) - Structure .p-3.border.rounded-3 */
    .col-6>.p-3.border.rounded-3,
    .col-6>div.border {
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        height: 100% !important;
    }

    .col-6>.p-3.border.rounded-3 i,
    .col-6>div.border i {
        display: block !important;
        margin: 0 auto 10px auto !important;
        text-align: center !important;
        width: 100% !important;
    }

    .col-6>.p-3.border.rounded-3 h6,
    .col-6>div.border h6 {
        text-align: center !important;
        width: 100% !important;
    }

    .col-6>.p-3.border.rounded-3 p,
    .col-6>div.border p {
        text-align: center !important;
    }

    /* Process cards (1. Analyse, 2. Conception, etc.) */
    .process-card {
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }

    .process-card i,
    .process-card i.ph,
    .process-card i[class*="ph"] {
        display: block !important;
        margin: 0 auto 10px auto !important;
        text-align: center !important;
        width: 100% !important;
    }

    .process-card h5 {
        text-align: center !important;
        width: 100% !important;
    }

    /* ========================================================================
       MOBILE - AJUSTEMENTS SPÉCIFIQUES PROCESS CARDS
       ======================================================================== */

    /* Réduire le padding des process-cards sur mobile pour qu'elles tiennent mieux */
    .process-card {
        padding: 1rem !important;
    }

    /* Réduire le padding des cartes tech */
    .col-6>.p-3.border,
    .col-6>div.border {
        padding: 0.5rem !important;
    }

    /* Réduire la taille des titres dans les process-cards */
    .process-card h5 {
        font-size: 0.9rem !important;
    }

    /* Réduire la taille du texte */
    .process-card p {
        font-size: 0.75rem !important;
    }

    /* Cartes row - Alignement (SAUF Lighthouse) */
    .row.g-4>.col-6:not(:has(.lighthouse-circle)),
    .row.g-4>.col-md-3:not(:has(.lighthouse-circle)) {
        display: flex !important;
    }

    .row.g-4>.col-6:not(:has(.lighthouse-circle))>div,
    .row.g-4>.col-md-3:not(:has(.lighthouse-circle))>div {
        flex: 1 !important;
    }

    /* ========================================================================
       LIGHTHOUSE SCORES - PRÉSERVER LE LAYOUT VERTICAL
       ======================================================================== */

    /* Forcer le centrage vertical pour Lighthouse */
    .col-6:has(.lighthouse-circle),
    .col-md-3:has(.lighthouse-circle) {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    /* Le cercle doit être centré */
    .lighthouse-circle {
        margin: 0 auto !important;
    }

    /* Le label doit être centré sous le cercle */
    .col-6:has(.lighthouse-circle) .mt-2.fw-bold,
    .col-md-3:has(.lighthouse-circle) .mt-2.fw-bold {
        text-align: center !important;
        width: 100% !important;
    }
}