/* assets/css/style.css */

/* --- VARIABLES & DESIGN TOKENS --- */
:root {
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-surface: rgba(255, 255, 255, 0.7);
    /* high blur background */
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);

    --primary-glow: rgba(26, 54, 93, 0.5); /* Wassiya blue glow */
    --gold-accent: #C5A059;
    --navy-base: #1A365D;
    --navy-light: #2A4A7D;
    --gold-shimmer: linear-gradient(135deg, #C5A059 0%, #E2C28C 50%, #C5A059 100%);
    --blue-premium: linear-gradient(135deg, #1A365D 0%, #2A4A7D 100%);
    --transition-base: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- PREMIUM GRADIENTS --- */
.text-gradient-gold {
    background: var(--gold-shimmer);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.text-gradient-blue {
    background: var(--blue-premium);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.bg-premium-blue {
    background: var(--blue-premium);
}

.btn-premium {
    background: linear-gradient(135deg, #1A365D 0%, #3B82F6 100%);
    color: white;
    font-weight: 800;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px -5px rgba(26, 54, 93, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-premium:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 15px 30px -10px rgba(59, 130, 246, 0.5);
    filter: brightness(1.1);
}

/* --- GLOBAL UTILITIES --- */
body {
    font-family: 'Inter', sans-serif;
    /* Mesh Background Animation étendu pour faire ressortir l'Apple Glass */
    background-color: var(--bg-color, #f8fafc);
    background-image:
        radial-gradient(at 0% 0%, var(--mesh-color-1, rgba(139, 92, 246, 0.3)) 0px, transparent 65%),
        radial-gradient(at 100% 0%, var(--mesh-color-2, rgba(14, 165, 233, 0.3)) 0px, transparent 60%),
        radial-gradient(at 100% 100%, var(--mesh-color-3, rgba(244, 63, 94, 0.3)) 0px, transparent 75%),
        radial-gradient(at 0% 100%, var(--mesh-color-1, rgba(139, 92, 246, 0.3)) 0px, transparent 60%);
    background-attachment: fixed;
    background-size: 150% 150%;
    animation: meshMove 20s infinite alternate ease-in-out;
}

@keyframes meshMove {
    0% {
        background-position: 0% 0%;
    }

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

/* --- GLASSMORPHISM HELPERS --- */

/* The Standard Glass Tile - Extreme Apple / Liquid Glass */
.glass-card {
    background: rgba(255, 255, 255, 0.02); /* Quasi transparent */
    backdrop-filter: blur(60px); /* Flou énorme */
    -webkit-backdrop-filter: blur(60px);
    border: 1px solid rgba(255, 255, 255, 0.4); /* Bordure marquée reflet */
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.05),
        inset 0 0 0 1px rgba(255,255,255,0.2), /* Reflet interne */
        inset 0 0 20px rgba(255,255,255,0.5); /* Lueur interne type verre */
    transition: var(--transition-base);
    border-radius: 1.5rem; /* Arrondis très doux Apple */
}

.glass-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.05); /* S'opacifie très légèrement */
    border: 1px solid rgba(255, 255, 255, 0.8); /* Brille fort au survol */
    box-shadow: 
        0 20px 40px -5px rgba(26, 54, 93, 0.2), /* Lueur bleue projetée */
        0 10px 20px -5px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255,255,255,0.3),
        inset 0 0 20px rgba(255,255,255,0.6);
}

/* Alias for legacy compatibility */
.apple-glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    transition: var(--transition-base);
}

.apple-glass:hover {
    transform: translateY(-4px);
    /* No background change on hover */
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1), 0 10px 20px -5px rgba(0, 0, 0, 0.05);
}

/* Shine Effect Removed as per user request */
/* Shine animation css removed */

/* Typography Overrides */
h1,
h2,
h3,
h4,
.font-heading {
    font-family: 'Outfit', sans-serif;
}

/* --- ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: 1s cubic-bezier(0.5, 0, 0, 1);
}

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

/* Mobile Menu Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.mobile-nav-item {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

.mobile-nav-item:nth-child(1) {
    animation-delay: 0.1s;
}

.mobile-nav-item:nth-child(2) {
    animation-delay: 0.2s;
}

.mobile-nav-item:nth-child(3) {
    animation-delay: 0.3s;
}

.mobile-nav-item:nth-child(4) {
    animation-delay: 0.4s;
}

.mobile-nav-item:nth-child(5) {
    animation-delay: 0.5s;
}

.mobile-nav-item:nth-child(6) {
    animation-delay: 0.6s;
}

/* Hamburger Animation classes */
.hamburger-active .ph-list {
    display: none;
}

.hamburger-active .ph-x {
    display: block;
}

/* NAVBAR SCROLLED STATE */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(60px) !important; /* Extremely high blur for visibility over images */
    -webkit-backdrop-filter: blur(60px) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 10px 40px -10px rgba(26, 54, 93, 0.15) !important;
    transform: translateY(-2px) scale(0.98); /* Subtle "tightening" effect on scroll */
}

.navbar-scrolled .logo-text {
    color: var(--navy-base, #1A365D);
}

.navbar-scrolled .nav-links-container {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.navbar-scrolled .nav-link {
    color: #374151 !important; /* gray-700 for better contrast on blurred backgrounds */
}

.navbar-scrolled .nav-link:hover {
    color: var(--navy-base, #1A365D) !important;
    background: rgba(255, 255, 255, 0.2) !important;
}

.navbar-scrolled .active-link {
    color: var(--navy-base, #1A365D) !important;
    background: rgba(26, 54, 93, 0.05) !important;
    border-color: rgba(26, 54, 93, 0.1) !important;
}