/*
Theme Name: Haqqaniyyah
Author: Xyphla Solutions
Author URI: https://www.xyphla.app
Description: A premium, modern WordPress theme for Al Haqqaniyyah Arabic College.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
*/

:root {
    --madrasah-teal: #0f766e;
    --madrasah-teal-light: #14b8a6;
    --madrasah-teal-dark: #0d9488;
    --madrasah-gold: #fbbf24;
    --madrasah-gold-light: #fde68a;
    --madrasah-gold-dark: #d97706;
    --madrasah-dark: #0f172a;
    --madrasah-darker: #020617;
    
    /* Teal Palette (matches Tailwind teal) */
    --teal-50:  #f0fdfa;
    --teal-100: #ccfbf1;
    --teal-200: #99f6e4;
    --teal-300: #5eead4;
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --teal-800: #115e59;
    --teal-900: #134e4a;

    /* Slate Palette */
    --slate-50:  #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --slate-950: #020617;

    /* Gold Palette */
    --gold-400: #d4a853;
    --gold-500: #c9952e;

    --shadow-premium: 0 20px 50px -12px rgba(15, 118, 110, 0.12);
    --shadow-glass: 0 8px 32px 0 rgba(15, 23, 42, 0.1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--slate-50);
    color: var(--slate-800);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
    font-weight: 700;
}

.font-arabic {
    font-family: 'Amiri', serif;
}

.font-display {
    font-family: 'Outfit', sans-serif;
}

/* Premium Gradients */
.gtext-gold {
    background: linear-gradient(135deg, var(--madrasah-gold-light), var(--madrasah-gold), var(--madrasah-gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gtext-teal {
    background: linear-gradient(135deg, var(--madrasah-teal-light), var(--madrasah-teal), var(--madrasah-teal-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Advanced Glassmorphism */
.glass-elegant {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-glass);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(251, 191, 36, 0.1);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.4);
}

/* Premium Cards & Interaction */
.premium-card-3d {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.premium-card-3d:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(2deg);
    box-shadow: 0 20px 40px -15px rgba(15, 118, 110, 0.15);
    border-color: rgba(251, 191, 36, 0.4);
}

.premium-card-3d::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(251, 191, 36, 0.08), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.premium-card-3d:hover::after {
    opacity: 1;
}

/* Bento Grid Helpers */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.bento-item-large {
    grid-row: span 2;
    grid-column: span 2;
}

@media (max-width: 1024px) {
    .bento-item-large {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* Islamic Pattern */
.islamic-pattern-bg {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23fbbf24' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Buttons */
.btn-brand {
    background: linear-gradient(135deg, var(--madrasah-teal), var(--madrasah-teal-dark));
    background-size: 200% 200%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(15, 118, 110, 0.3);
    border: none;
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
}

.btn-brand:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 118, 110, 0.5);
    color: #ffffff;
    text-decoration: none;
}

.btn-outline {
    border: 1px solid rgba(15, 118, 110, 0.4);
    color: var(--madrasah-teal);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    background: transparent;
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
}

.btn-outline:hover {
    border-color: var(--madrasah-teal);
    background: rgba(15, 118, 110, 0.05);
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-gold-solid {
    background: linear-gradient(135deg, var(--madrasah-gold), var(--madrasah-gold-dark));
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-gold-solid:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4);
    color: #fff;
}

/* Links */
.ul-link {
    position: relative;
    text-decoration: none;
}

.ul-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--teal-400);
    transition: width 0.3s ease;
}

.ul-link:hover::after {
    width: 100%;
}

/* Reveal animations — initial state set by GSAP on front-page,
   CSS fallback for other pages without GSAP */
.reveal {
    /* opacity controlled by JS; keep visible as fallback */
}

.reveal.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.reveal-l {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 1s cubic-bezier(.22, 1, .36, 1);
}

.reveal-r {
    opacity: 0;
    transform: translateX(40px);
    transition: all 1s cubic-bezier(.22, 1, .36, 1);
}

.reveal-l.visible,
.reveal-r.visible {
    opacity: 1;
    transform: translateX(0);
}

.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }
.d5 { transition-delay: 0.5s; }
.d6 { transition-delay: 0.6s; }

/* ── Hero Carousel Animations ── */
.hero-slide {
    transition: opacity 0.9s ease-in-out;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.hero-slide.active {
    opacity: 1;
    z-index: 10;
    pointer-events: auto;
    visibility: visible;
}

.hero-slide.inactive {
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    visibility: hidden;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.08);
    transition: transform 9s ease-out;
    z-index: 0;
}

.hero-slide.active .hero-slide-bg {
    animation: heroZoom 10s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0%, 100% { transform: scale(1.08); }
    50% { transform: scale(1.25); }
}

.mandala-spin {
    animation: spin-slow 20s linear infinite;
}

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

.gold-divider-line {
    height: 2px;
    width: 40px;
    background: var(--madrasah-gold);
    border-radius: 2px;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(15, 23, 42, 0.40) 0%,
            rgba(15, 23, 42, 0.55) 50%,
            rgba(15, 23, 42, 0.80) 100%);
    z-index: 1;
}

.slide-content {
    opacity: 0;
    transform: translateY(28px);
    transition: all 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.25s;
    position: relative;
    z-index: 2;
    text-align: center;
    padding-top: clamp(8rem, 14vh, 11rem);
    padding-bottom: clamp(9rem, 16vh, 12rem);
}

@media (min-width: 768px) {
    .slide-content {
        text-align: left;
    }
}

.hero-slide.active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

/* ── Carousel Dots ── */
#carousel-dots {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
}

/* ── Marquee ── */
.marquee-outer {
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px dashed rgba(37, 99, 235, 0.15);
    border-bottom: 1px dashed rgba(37, 99, 235, 0.15);
    background: var(--slate-50);
}

.marquee-inner {
    display: inline-flex;
    align-items: center;
    animation: marquee-scroll 40s linear infinite;
}

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.marquee-logo {
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--slate-400);
    padding: 0 4rem;
    text-transform: uppercase;
}

.marquee-logo:hover {
    color: var(--teal-500);
}

/* Main Container */
.max-w-7xl {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1 {
    font-size: 3.5rem;
    margin: 1.5rem 0;
    line-height: 1.1;
}

h2 {
    font-size: 2.5rem;
    margin: 1.5rem 0;
    line-height: 1.1;
}

h3 {
    font-size: 2rem;
    margin: 1.2rem 0;
    line-height: 1.1;
}

h4 {
    font-size: 1.5rem;
    margin: 1rem 0;
}

p {
    margin-bottom: 1rem;
    color: var(--slate-600);
    font-weight: 300;
}

a {
    color: var(--teal-500);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--teal-600);
}

/* WordPress defaults */
.wp-caption { max-width: 100%; }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Posts & Content */
article {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--slate-200);
}

article:last-child {
    border-bottom: none;
}

/* ── Navbar ── */
#navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

#navbar.nav-scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: var(--slate-200);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* ── Service Cards — Light ── */
.service-card {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.35s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--teal-300) !important;
}

/* ── Service Chips — Light ── */
.service-chip-light {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    border-radius: 999px;
    border: 1px solid var(--slate-200);
    background: var(--slate-50);
    color: var(--slate-700);
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    cursor: default;
}

.service-chip-light:hover {
    border-color: var(--teal-300);
    background: var(--teal-50);
    color: var(--teal-700);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.1);
}

/* ── Gold Accent Divider ── */
.gold-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #c9952e, #d4a853, #c9952e);
    border-radius: 2px;
}

/* ── Bismillah Banner ── */
.bismillah-text {
    font-family: 'Amiri', serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--gold-400);
    text-align: center;
    letter-spacing: 0.05em;
    line-height: 1.8;
}

/* Footer */
footer {
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0;
}

footer a {
    color: var(--teal-400);
}

footer a:hover {
    color: var(--teal-300);
}

/* Custom logo WordPress class fix */
.custom-logo-link img {
    max-height: 48px;
    width: auto;
}

/* ── Hamburger Animation ── */
.nav-open span:first-child {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-open span:nth-child(2) {
    opacity: 0;
}

.nav-open span:last-child {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
}

/* ── Animate slow-spin ── */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ── Float animation ── */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ── Animate ping ── */
@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* ── Program tabs ── */
.program-tab {
    padding: 12px 24px;
    border: 1px solid var(--slate-200);
    background: white;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--slate-500);
    cursor: pointer;
    transition: all 0.3s ease;
}

.program-tab:hover,
.program-tab.active {
    background: var(--teal-500);
    color: white;
    border-color: var(--teal-500);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

/* ── Timeline ── */
.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--teal-200), var(--teal-500), var(--teal-200));
}

/* ── Testimonial Card ── */
.testimonial-card {
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    border-color: var(--teal-300);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px);
}

/* ══════════════════════════════════════════
   FLOATING GEOMETRIC SHAPES
══════════════════════════════════════════ */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    animation: shapeFloat 8s ease-in-out infinite, shapeFadeIn 1s ease forwards;
}

.floating-shape.diamond {
    border-radius: 4px;
    transform: rotate(45deg);
}

.floating-shape.ring {
    background: transparent !important;
    border: 2px solid currentColor;
}

@keyframes shapeFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(90deg); }
    50% { transform: translateY(-10px) rotate(180deg); }
    75% { transform: translateY(-25px) rotate(270deg); }
}

@keyframes shapeFadeIn {
    to { opacity: 1; }
}

/* ══════════════════════════════════════════
   GRADIENT BORDER GLOW
══════════════════════════════════════════ */
.glow-border {
    position: relative;
    overflow: hidden;
}

.glow-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
        transparent 0%,
        rgba(37, 99, 235, 0) 40%,
        rgba(37, 99, 235, 0.6) 50%,
        rgba(37, 99, 235, 0) 60%,
        transparent 100%);
    background-size: 400% 400%;
    animation: glowSweep 4s ease-in-out infinite;
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.glow-border:hover::before {
    opacity: 1;
}

@keyframes glowSweep {
    0%, 100% { background-position: 200% 200%; }
    50% { background-position: 0% 0%; }
}

/* ══════════════════════════════════════════
   TEXT SHIMMER / SHINE EFFECT
══════════════════════════════════════════ */
.text-shimmer {
    background: linear-gradient(
        110deg,
        var(--teal-400) 0%,
        var(--teal-300) 20%,
        #ffffff 35%,
        var(--teal-300) 50%,
        var(--teal-400) 100%
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShimmer 4s ease-in-out infinite;
}

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

/* ══════════════════════════════════════════
   PARALLAX DEPTH LAYERS
══════════════════════════════════════════ */
.parallax-layer {
    transition: transform 0.3s ease-out;
    will-change: transform;
}

.parallax-slow { --parallax-speed: 0.03; }
.parallax-medium { --parallax-speed: 0.06; }
.parallax-fast { --parallax-speed: 0.1; }

/* ══════════════════════════════════════════
   ANIMATED PARTICLE DOTS
══════════════════════════════════════════ */
.particle-field {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.25);
    animation: particleDrift linear infinite;
}

@keyframes particleDrift {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-800px) translateX(100px); opacity: 0; }
}

/* ══════════════════════════════════════════
   MAGNETIC TILT CARD (CSS base, JS enhances)
══════════════════════════════════════════ */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.15s ease-out, box-shadow 0.3s ease;
}

.tilt-card:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.tilt-card .tilt-inner {
    transform: translateZ(30px);
    transition: transform 0.3s ease;
}

/* ══════════════════════════════════════════
   PULSING RING EFFECT (CTA buttons)
══════════════════════════════════════════ */
.pulse-ring {
    position: relative;
}

.pulse-ring::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 2px solid;
    border-color: inherit;
    opacity: 0;
    animation: pulseRing 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulseRing {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.08); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

/* ══════════════════════════════════════════
   STAGGERED CASCADE ENTRANCE
══════════════════════════════════════════ */
.cascade-enter > * {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.cascade-enter.visible > *:nth-child(1) { transition-delay: 0.05s; }
.cascade-enter.visible > *:nth-child(2) { transition-delay: 0.1s; }
.cascade-enter.visible > *:nth-child(3) { transition-delay: 0.15s; }
.cascade-enter.visible > *:nth-child(4) { transition-delay: 0.2s; }
.cascade-enter.visible > *:nth-child(5) { transition-delay: 0.25s; }
.cascade-enter.visible > *:nth-child(6) { transition-delay: 0.3s; }
.cascade-enter.visible > *:nth-child(7) { transition-delay: 0.35s; }
.cascade-enter.visible > *:nth-child(8) { transition-delay: 0.4s; }
.cascade-enter.visible > *:nth-child(9) { transition-delay: 0.45s; }
.cascade-enter.visible > *:nth-child(10) { transition-delay: 0.5s; }
.cascade-enter.visible > *:nth-child(11) { transition-delay: 0.55s; }
.cascade-enter.visible > *:nth-child(12) { transition-delay: 0.6s; }

.cascade-enter.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* ══════════════════════════════════════════
   HOVER LIFT MICRO-INTERACTIONS
══════════════════════════════════════════ */
.hover-lift {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

/* ══════════════════════════════════════════
   TYPING CURSOR BLINK
══════════════════════════════════════════ */
.typing-cursor::after {
    content: '|';
    display: inline-block;
    color: var(--teal-400);
    animation: cursorBlink 0.8s step-end infinite;
    margin-left: 2px;
    font-weight: 300;
}

@keyframes cursorBlink {
    50% { opacity: 0; }
}

/* ══════════════════════════════════════════
   SCROLL-PROGRESS BAR
══════════════════════════════════════════ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--teal-500), var(--gold-400), var(--teal-500));
    z-index: 9999;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}

/* ══════════════════════════════════════════
   MOUSE FOLLOW GLOW CURSOR
══════════════════════════════════════════ */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    mix-blend-mode: screen;
}

/* ══════════════════════════════════════════
   COUNTER FLIP STYLE
══════════════════════════════════════════ */
.num-animate {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.num-animate.counting {
    animation: numBounce 0.3s ease;
}

@keyframes numBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* ══════════════════════════════════════════
   SECTION DIVIDER WAVE
══════════════════════════════════════════ */
.wave-divider {
    position: relative;
    overflow: hidden;
}

.wave-divider::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%23f8fafc' d='M0,20 C480,60 960,0 1440,20 L1440,60 L0,60 Z'/%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
}

/* ══════════════════════════════════════════
   GOLD SHIMMER LINE
══════════════════════════════════════════ */
.gold-line-animated {
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4a853, transparent);
    background-size: 200% 100%;
    animation: goldLineShift 3s ease-in-out infinite;
}

@keyframes goldLineShift {
    0%, 100% { background-position: -200% 0; }
    50% { background-position: 200% 0; }
}

/* ══════════════════════════════════════════
   ARABIC TEXT FLOAT
══════════════════════════════════════════ */
.arabic-float {
    animation: arabicFloat 6s ease-in-out infinite;
}

@keyframes arabicFloat {
    0%, 100% { transform: translateY(0); opacity: 0.7; }
    50% { transform: translateY(-8px); opacity: 1; }
}

/* ══════════════════════════════════════════
   ICON SPIN ON HOVER
══════════════════════════════════════════ */
.icon-spin-hover {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.group:hover .icon-spin-hover {
    transform: rotateY(180deg);
}

/* ══════════════════════════════════════════
   CARD SHINE SWEEP
══════════════════════════════════════════ */
.shine-sweep {
    position: relative;
    overflow: hidden;
}

.shine-sweep::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0) 40%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0) 60%,
        transparent 100%
    );
    transform: rotate(25deg) translateX(-100%);
    transition: transform 0.7s ease;
    pointer-events: none;
}

.shine-sweep:hover::after {
    transform: rotate(25deg) translateX(100%);
}
