/* 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(74, 20, 140, 0.5); /* Wassiya purple glow */
    --transition-base: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 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(74, 20, 140, 0.25), /* Lueur violette 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(74, 20, 140, 0.2) !important;
    transform: translateY(-2px) scale(0.98); /* Subtle "tightening" effect on scroll */
}

.navbar-scrolled .logo-text {
    color: var(--wassiya-purple, #60187c);
}

.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(--wassiya-purple, #60187c) !important;
    background: rgba(255, 255, 255, 0.2) !important;
}

.navbar-scrolled .active-link {
    color: var(--wassiya-purple, #60187c) !important;
    background: rgba(96, 24, 124, 0.1) !important;
    border-color: rgba(96, 24, 124, 0.2) !important;
}