/* --- Tijani.site Premium Styles (2025 Rebuild) --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #020617;
    /* Deepest Slate */
    --primary: #8b5cf6;
    /* Violet 500 */
    --secondary: #3b82f6;
    /* Blue 500 */
    --accent: #ec4899;
    /* Pink 500 */
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-shine: rgba(255, 255, 255, 0.05);

    /* Responsive Typography Scale */
    --h1-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
    --h2-size: clamp(2rem, 4vw + 1rem, 3.5rem);
    --p-size: clamp(1rem, 2vw, 1.25rem);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: #f8fafc;
    overflow-x: hidden;
    line-height: 1.6;
    /* Safe Area for Mobile Notches */
    padding-bottom: env(safe-area-inset-bottom);
}

/* --- Premium Backgrounds (Aurora) --- */
.bg-aurora-container {
    background-color: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.bg-aurora-blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.4;
    border-radius: 50%;
    animation: float 10s infinite ease-in-out alternate;
    z-index: 0;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: #8b5cf6;
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: #3b82f6;
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: #ec4899;
    animation-delay: -2s;
    opacity: 0.2;
}

.bg-noise {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.bg-premium-grid {
    background-size: 60px 60px;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
    mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* --- Glassmorphism 2.0 --- */
.glass {
    background: rgba(255, 255, 255, 0.03);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (hover: hover) {
    .glass-card:hover {
        transform: translateY(-8px) scale(1.02);
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%);
        border-color: rgba(255, 255, 255, 0.2);
        box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.4), 0 0 30px rgba(139, 92, 246, 0.3);
    }
}

/* --- Typography (Massive) --- */
.font-massive {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 0.9;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, #a78bfa 0%, #60a5fa 50%, #f472b6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Navigation --- */
nav {
    transition: all 0.4s ease;
}

nav.scrolled {
    background: rgba(2, 6, 23, 0.85);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* --- Language Selector --- */
.lang-btn i {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.lang-btn.active i {
    opacity: 1;
    transform: scale(1);
}

.lang-btn:not(.active) i {
    opacity: 0;
    transform: scale(0.5);
}

/* --- Mobile Menu Drawer --- */
#mobile-menu-drawer {
    background: rgba(2, 6, 23, 0.98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    /* Expo Ease */
}

#mobile-menu-drawer.open {
    transform: translateX(0) !important;
}

/* --- Scrollbar Utilities --- */
.hidden-scrollbar::-webkit-scrollbar {
    display: none;
}

.hidden-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* --- Interactive Elements --- */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.6);
    transform: translateY(-2px);
}

/* --- Animations --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}

/* Rotations for elements */
.rotate-slow {
    animation: spin 20s linear infinite;
}

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

/* --- RTL Utilities (Logical Properties) --- */
.start-0 {
    inset-inline-start: 0;
}

.end-0 {
    inset-inline-end: 0;
}

.ms-2 {
    margin-inline-start: 0.5rem;
}

.me-2 {
    margin-inline-end: 0.5rem;
}

.text-start {
    text-align: start;
}

/* Icons Flip in RTL */
[dir="rtl"] .fa-arrow-right,
[dir="rtl"] .fa-chevron-right {
    transform: scaleX(-1);
}

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

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

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* --- Utilities --- */
.h-120-px {
    height: 120px;
}

/* --- Dropdown Z-Index Fix --- */
.group:hover .absolute {
    z-index: 100 !important;
}

/* Ensure body doesn't overlap */
body {
    position: relative;
    z-index: 1;
}