/* ══════════════════════════════════════════════════════════════
   NFALAMIN MASTER PORTFOLIO & EDM ECOSYSTEM - STANDALONE CSS BUNDLE
   Author / Team: nfalamin
   100% Self-Contained — Zero CDN Dependency — Production Ready
   ══════════════════════════════════════════════════════════════ */

/* ── Reset & Base Typography ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color-scheme: dark;
}

body {
    background-color: #020408 !important;
    color: #e2e8f0 !important;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ── Fonts & Display ── */
.font-display {
    font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif !important;
}
.font-sans {
    font-family: 'Inter', sans-serif !important;
}

/* ── Color System ── */
.text-white { color: #ffffff !important; }
.text-slate-100 { color: #f1f5f9 !important; }
.text-slate-200 { color: #e2e8f0 !important; }
.text-slate-300 { color: #cbd5e1 !important; }
.text-slate-400 { color: #94a3b8 !important; }
.text-slate-500 { color: #64748b !important; }
.text-cyan { color: #06b6d4 !important; }
.text-cyan-light { color: #22d3ee !important; }
.text-gold { color: #f59e0b !important; }
.text-emerald-300 { color: #6ee7b7 !important; }
.text-emerald-400 { color: #34d399 !important; }
.text-amber-400 { color: #fbbf24 !important; }

.bg-navy-950 { background-color: #020408 !important; }
.bg-navy-900 { background-color: #040d1a !important; }
.bg-navy-800 { background-color: #08142d !important; }
.bg-navy-700 { background-color: #111e35 !important; }

/* ── Gradients ── */
.text-gradient-cyan {
    background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 70%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-gold {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Containers & Layout ── */
.max-w-7xl {
    max-width: 80rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.max-w-3xl {
    max-width: 48rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.max-w-xl {
    max-width: 36rem !important;
}

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.w-full { width: 100% !important; }
.h-full { height: 100% !important; }
.w-fit { width: fit-content !important; }
.h-screen { height: 100vh !important; }

.w-8 { width: 2rem !important; }
.h-8 { height: 2rem !important; }
.w-9 { width: 2.25rem !important; }
.h-9 { height: 2.25rem !important; }
.w-14 { width: 3.5rem !important; }
.h-14 { height: 3.5rem !important; }
.w-2 { width: 0.5rem !important; }
.h-2 { height: 0.5rem !important; }

/* ── Flexbox Utilities ── */
.flex { display: flex !important; }
.inline-flex { display: inline-flex !important; }
.flex-col { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.flex-wrap { flex-wrap: wrap !important; }
.items-center { align-items: center !important; }
.items-start { align-items: flex-start !important; }
.items-end { align-items: flex-end !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.justify-start { justify-content: flex-start !important; }

.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem !important; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem !important; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem !important; }
.space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.25rem !important; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem !important; }
.space-y-12 > :not([hidden]) ~ :not([hidden]) { margin-top: 3rem !important; }
.space-x-2 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.5rem !important; }
.space-x-2\.5 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.625rem !important; }
.space-x-3 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.75rem !important; }
.space-x-5 > :not([hidden]) ~ :not([hidden]) { margin-left: 1.25rem !important; }

.gap-1 { gap: 0.25rem !important; }
.gap-1\.5 { gap: 0.375rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 0.75rem !important; }
.gap-4 { gap: 1rem !important; }
.gap-5 { gap: 1.25rem !important; }
.gap-6 { gap: 1.5rem !important; }
.gap-8 { gap: 2rem !important; }
.gap-10 { gap: 2.5rem !important; }
.gap-12 { gap: 3rem !important; }

/* ── Grid Utilities ── */
.grid { display: grid !important; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }

@media (min-width: 640px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
    .sm\:text-3xl { font-size: 1.875rem !important; }
    .sm\:text-4xl { font-size: 2.25rem !important; }
    .sm\:text-base { font-size: 1rem !important; }
    .sm\:p-7 { padding: 1.75rem !important; }
    .sm\:px-6 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .md\:flex-row { flex-direction: row !important; }
    .md\:items-end { align-items: flex-end !important; }
    .md\:text-4xl { font-size: 2.25rem !important; }
    .md\:text-5xl { font-size: 3rem !important; }
    .md\:py-20 { padding-top: 5rem !important; padding-bottom: 5rem !important; }
    .md\:py-28 { padding-top: 7rem !important; padding-bottom: 7rem !important; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)) !important; }
    .lg\:col-span-7 { grid-column: span 7 / span 7 !important; }
    .lg\:col-span-5 { grid-column: span 5 / span 5 !important; }
    .lg\:flex { display: flex !important; }
    .lg\:hidden { display: none !important; }
    .lg\:items-start { align-items: flex-start !important; }
    .lg\:text-left { text-align: left !important; }
    .lg\:text-6xl { font-size: 3.75rem !important; }
    .lg\:pt-16 { padding-top: 4rem !important; }
    .lg\:pb-28 { padding-bottom: 7rem !important; }
    .lg\:gap-12 { gap: 3rem !important; }
}

/* ── Positioning & Display ── */
.relative { position: relative !important; }
.absolute { position: absolute !important; }
.fixed { position: fixed !important; }
.sticky { position: sticky !important; }
.top-0 { top: 0 !important; }
.bottom-0 { bottom: 0 !important; }
.left-0 { left: 0 !important; }
.right-0 { right: 0 !important; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-10 { z-index: 10 !important; }
.z-20 { z-index: 20 !important; }
.z-50 { z-index: 50 !important; }
.-z-10 { z-index: -10 !important; }

.overflow-hidden { overflow: hidden !important; }
.pointer-events-none { pointer-events: none !important; }

/* ── Spacing ── */
.p-1 { padding: 0.25rem !important; }
.p-1\.5 { padding: 0.375rem !important; }
.p-4 { padding: 1rem !important; }
.p-6 { padding: 1.5rem !important; }
.p-8 { padding: 2rem !important; }
.px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-6 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.py-1\.5 { padding-top: 0.375rem !important; padding-bottom: 0.375rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-16 { padding-top: 4rem !important; padding-bottom: 4rem !important; }
.py-20 { padding-top: 5rem !important; padding-bottom: 5rem !important; }
.py-28 { padding-top: 7rem !important; padding-bottom: 7rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.pt-4 { padding-top: 1rem !important; }
.pt-8 { padding-top: 2rem !important; }
.pt-10 { padding-top: 2.5rem !important; }
.pb-16 { padding-bottom: 4rem !important; }

.mt-0\.5 { margin-top: 0.125rem !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 0.75rem !important; }
.mb-4 { margin-bottom: 1rem !important; }

/* ── Borders & Radii ── */
.rounded-lg { border-radius: 0.5rem !important; }
.rounded-xl { border-radius: 0.75rem !important; }
.rounded-2xl { border-radius: 1rem !important; }
.rounded-full { border-radius: 9999px !important; }
.border { border-width: 1px !important; }
.border-t { border-top-width: 1px !important; }
.border-b { border-bottom-width: 1px !important; }
.border-white\/5 { border-color: rgba(255, 255, 255, 0.05) !important; }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.10) !important; }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.20) !important; }
.border-blue-500\/20 { border-color: rgba(59, 130, 246, 0.20) !important; }

/* ── Text Sizes & Weights ── */
.text-\[9px\] { font-size: 9px !important; }
.text-\[10px\] { font-size: 10px !important; }
.text-\[11px\] { font-size: 11px !important; }
.text-xs { font-size: 0.75rem !important; line-height: 1rem !important; }
.text-sm { font-size: 0.875rem !important; line-height: 1.25rem !important; }
.text-base { font-size: 1rem !important; line-height: 1.5rem !important; }
.text-lg { font-size: 1.125rem !important; line-height: 1.75rem !important; }
.text-xl { font-size: 1.25rem !important; line-height: 1.75rem !important; }
.text-2xl { font-size: 1.5rem !important; line-height: 2rem !important; }
.text-3xl { font-size: 1.875rem !important; line-height: 2.25rem !important; }
.text-4xl { font-size: 2.25rem !important; line-height: 2.5rem !important; }
.text-5xl { font-size: 3rem !important; line-height: 1.16 !important; }
.text-6xl { font-size: 3.75rem !important; line-height: 1.1 !important; }

.font-medium { font-weight: 500 !important; }
.font-semibold { font-weight: 600 !important; }
.font-bold { font-weight: 700 !important; }
.font-extrabold { font-weight: 800 !important; }

.uppercase { text-transform: uppercase !important; }
.tracking-wider { letter-spacing: 0.05em !important; }
.tracking-widest { letter-spacing: 0.1em !important; }
.tracking-tight { letter-spacing: -0.025em !important; }
.leading-tight { line-height: 1.25 !important; }
.leading-none { line-height: 1 !important; }
.leading-relaxed { line-height: 1.625 !important; }
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.whitespace-nowrap { white-space: nowrap !important; }
.italic { font-style: italic !important; }

/* ── Shadows & Blur ── */
.shadow { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important; }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5) !important; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.6) !important; }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.7) !important; }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85) !important; }
.backdrop-blur-xl { backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }

/* ══════════════════════════════════════════════════════════════
   PREMIUM GLASS HEADER & NAVIGATION COMPONENTS
   ══════════════════════════════════════════════════════════════ */
.site-header {
    background: rgba(2, 6, 23, 0.78) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 50 !important;
    width: 100% !important;
    transition: all 0.3s ease !important;
}

.nav-link {
    color: #cbd5e1 !important;
    text-decoration: none !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    padding: 0.375rem 0.625rem !important;
    border-radius: 0.375rem !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
}

.nav-link:hover, .nav-link.active {
    color: #06b6d4 !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

/* ── Premium Buttons ── */
.btn-premium {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    padding: 0.625rem 1.25rem !important;
    font-size: 0.8125rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    border-radius: 0.75rem !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer !important;
    user-select: none !important;
}

.btn-premium-primary {
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 4px 18px rgba(6, 182, 212, 0.35) !important;
}

.btn-premium-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 24px rgba(6, 182, 212, 0.55) !important;
    filter: brightness(1.1) !important;
}

.btn-premium-outline {
    background: rgba(15, 23, 42, 0.6) !important;
    color: #e2e8f0 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(12px) !important;
}

.btn-premium-outline:hover {
    background: rgba(30, 41, 59, 0.8) !important;
    border-color: rgba(6, 182, 212, 0.45) !important;
    color: #06b6d4 !important;
    transform: translateY(-2px) !important;
}

/* ── Glass Cards & Panels ── */
.glass-panel {
    background: rgba(8, 20, 45, 0.45) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 1rem !important;
    transition: all 0.3s ease !important;
}

.glass-panel:hover {
    background: rgba(17, 30, 53, 0.65) !important;
    border-color: rgba(6, 182, 212, 0.35) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5) !important;
}

/* ── Hero Badge & Portrait Circle ── */
.hero-badge {
    background: rgba(30, 58, 138, 0.35) !important;
    border: 1px solid rgba(59, 130, 246, 0.25) !important;
    border-radius: 9999px !important;
    padding: 0.25rem 0.875rem !important;
}

.portrait-circle {
    position: relative !important;
    width: 280px !important;
    height: 280px !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    border-radius: 50% !important;
    border: 3px solid rgba(6, 182, 212, 0.45) !important;
    box-shadow: 0 0 50px rgba(6, 182, 212, 0.25), inset 0 0 20px rgba(37, 99, 235, 0.2) !important;
    background: radial-gradient(circle, #08142d 0%, #020408 100%) !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    overflow: visible !important;
}

@media (min-width: 640px) {
    .portrait-circle {
        width: 340px !important;
        height: 340px !important;
    }
}

.portrait-overflow-wrapper {
    position: relative !important;
    z-index: 10 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
}

.portrait-img {
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    width: 115% !important;
    max-width: none !important;
    transform: translateX(-50%) !important;
    object-fit: cover !important;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.6)) !important;
}

/* ── Animation Pulse ── */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.95); }
}
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite !important;
}

/* ══════════════════════════════════════════════════════════════
   HERO ENTRANCE ANIMATIONS & TASTEFUL MOTION
   ══════════════════════════════════════════════════════════════ */
@keyframes heroFadeInUp {
    0% {
        opacity: 0;
        transform: translateY(22px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-fade-in-up {
    animation: heroFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}
.hero-delay-1 { animation-delay: 0.15s !important; }
.hero-delay-2 { animation-delay: 0.3s !important; }
.hero-delay-3 { animation-delay: 0.45s !important; }

/* ── Refined Interactive Hover States ── */
.nav-link {
    position: relative !important;
}
.nav-link::after {
    content: '' !important;
    position: absolute !important;
    bottom: -2px !important;
    left: 50% !important;
    width: 0 !important;
    height: 2px !important;
    background: #06b6d4 !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    transform: translateX(-50%) !important;
    border-radius: 2px !important;
}
.nav-link:hover::after, .nav-link.active::after {
    width: 80% !important;
}

.nav-link-edm:hover {
    box-shadow: 0 0 16px rgba(6, 182, 212, 0.4) !important;
    transform: translateY(-1px) !important;
}

.service-card, .project-card, .stat-card {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.service-card:hover, .project-card:hover, .stat-card:hover {
    transform: translateY(-4px) !important;
    border-color: rgba(6, 182, 212, 0.4) !important;
    box-shadow: 0 12px 32px rgba(2, 6, 23, 0.7), 0 0 20px rgba(6, 182, 212, 0.12) !important;
}

.hero-photo-premium {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease !important;
}
.portrait-circle:hover .hero-photo-premium {
    transform: translateX(-62%) scale(1.03) !important;
    filter: drop-shadow(0 20px 35px rgba(6, 182, 212, 0.3)) !important;
}

/* ══════════════════════════════════════════════════════════════
   ACCESSIBILITY: PREFERS-REDUCED-MOTION
   ══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .hero-fade-in-up, .hero-delay-1, .hero-delay-2, .hero-delay-3, .animate-bounce, .animate-pulse {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

