@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

/* ===== Base ===== */
html { scroll-behavior: smooth; }

/* ===== Hero Background ===== */
.hero-gradient {
    background: linear-gradient(160deg, rgba(26,28,30,0.80) 0%, rgba(0,0,0,0.92) 100%), url('hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-grid {
    background-image: 
        linear-gradient(rgba(212,175,55,0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212,175,55,0.15) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ===== Section Title underline ===== */
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #e8c860);
    margin: 15px auto;
    border-radius: 2px;
}

/* ===== Card Hover ===== */
.card-hover {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.12);
}

/* ===== Navbar States ===== */
#navbar {
    background: transparent;
}
#navbar.scrolled {
    background: rgba(26, 28, 30, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
#navbar.scrolled .container { padding-top: 0.5rem; padding-bottom: 0.5rem; }

/* ===== Nav link underline anim ===== */
.nav-link-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: #d4af37;
    transition: width 0.3s ease;
}
.nav-link-item:hover::after { width: 100%; }

/* ===== Scroll Reveal ===== */
[data-reveal] {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal="up"]    { transform: translateY(50px); }
[data-reveal="left"]  { transform: translateX(50px); }
[data-reveal="right"] { transform: translateX(-50px); }
[data-reveal].revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* ===== Stat counter plus sign ===== */
.stat-item [data-count]::after {
    content: '+';
    font-size: 0.7em;
    margin-right: 2px;
    opacity: 0.7;
}

/* ===== Mobile menu link ===== */
.mobile-nav-link {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.8);
}
.mobile-nav-link:last-of-type { border: none; }

/* ===== Responsive tweaks ===== */
@media (max-width: 768px) {
    .hero-gradient { background-attachment: scroll; }
}

/* ===== Selection color ===== */
::selection {
    background: rgba(212, 175, 55, 0.3);
    color: #1a1c1e;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #1a1c1e; }
::-webkit-scrollbar-thumb { background: #d4af37; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #e8c860; }
