/* ===== ROOT VARIABLES ===== */
:root {
    --gold: #c9a84c;
    --gold-light: #f0d080;
    --green: #1a6b3c;
    --green-light: #2d9e5f;
    --dark: #0d1117;
    --dark2: #161b22;
    --dark3: #1e2530;
    --white: #ffffff;
    --text: #e0e0e0;
    --text-muted: #9ca3af;
    --radius: 16px;
    --shadow: 0 8px 32px rgba(0,0,0,0.3);
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark);
    color: var(--text);
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 18px 0;
    transition: all 0.4s ease;
    background: rgba(255,255,255,0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(201,168,76,0.3);
}
.navbar.scrolled {
    background: rgba(255,255,255,0.98);
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
    border-bottom: 1px solid rgba(201,168,76,0.3);
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; }
.nav-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: brightness(1.05) drop-shadow(0 0 6px rgba(201,168,76,0.2));
    transition: opacity 0.3s;
}
.nav-logo:hover { opacity: 0.85; }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
    font-size: 0.9rem; font-weight: 500; color: #333;
    transition: color 0.3s; position: relative; padding-bottom: 4px;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 2px; background: var(--gold);
    transition: width 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span {
    display: block; width: 25px; height: 2px;
    background: #333; transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0f0a 0%, #0d1f12 40%, #0a1628 100%);
    display: flex; align-items: center; justify-content: center;
    text-align: center; position: relative; overflow: hidden;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, rgba(201,168,76,0.08) 0%, transparent 70%);
}
.hero-particles { position: absolute; inset: 0; pointer-events: none; }
.particle {
    position: absolute;
    animation: floatParticle linear infinite;
    color: var(--gold);
}
@keyframes floatParticle {
    0% { transform: translateY(0) rotate(0deg); opacity: 0.15; }
    50% { opacity: 0.3; }
    100% { transform: translateY(-80px) rotate(360deg); opacity: 0.1; }
}
.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 0 24px; }
.bismillah {
    font-family: 'Amiri', serif;
    font-size: 2rem; color: var(--gold);
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(201,168,76,0.4);
    animation: fadeDown 1s ease;
}
.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700; color: var(--white);
    line-height: 1.2; margin-bottom: 16px;
    animation: fadeDown 1s ease 0.2s both;
}
.hero-title span { color: var(--gold); }
.hero-subtitle {
    font-size: 1.1rem; color: var(--text-muted);
    margin-bottom: 24px;
    animation: fadeDown 1s ease 0.4s both;
}
.hero-ayah {
    font-family: 'Amiri', serif;
    font-size: 1.4rem; color: var(--gold-light);
    margin-bottom: 8px;
    animation: fadeDown 1s ease 0.5s both;
}
.ayah-translation {
    font-size: 0.85rem; color: var(--text-muted);
    font-style: italic; margin-bottom: 36px;
    animation: fadeDown 1s ease 0.6s both;
}
.hero-btns {
    display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
    margin-bottom: 48px;
    animation: fadeDown 1s ease 0.7s both;
}
.hero-stats {
    display: flex; align-items: center; justify-content: center; gap: 24px;
    animation: fadeDown 1s ease 0.9s both;
}
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 1.8rem; font-weight: 700; color: var(--gold); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); }
.stat-divider { width: 1px; height: 40px; background: rgba(201,168,76,0.3); }
.scroll-down {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    color: var(--gold); font-size: 1.2rem; cursor: pointer;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: 50px;
    font-size: 0.95rem; font-weight: 600;
    transition: all 0.3s ease; cursor: pointer; border: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--gold), #a07830);
    color: var(--dark);
    box-shadow: 0 4px 20px rgba(201,168,76,0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201,168,76,0.5);
}
.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}
.btn-outline:hover {
    background: var(--gold);
    color: var(--dark);
    transform: translateY(-2px);
}
.full-width { width: 100%; justify-content: center; }

/* ===== MARQUEE ===== */
.marquee-bar {
    background: linear-gradient(90deg, var(--green), #0f4a28, var(--green));
    padding: 14px 0; overflow: hidden;
    border-top: 1px solid rgba(201,168,76,0.2);
    border-bottom: 1px solid rgba(201,168,76,0.2);
}
.marquee-track {
    display: flex; white-space: nowrap;
    animation: marquee 25s linear infinite;
}
.marquee-track span { font-size: 0.9rem; color: var(--gold-light); font-weight: 500; }
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== SECTION COMMON ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 90px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
    display: inline-block;
    background: rgba(201,168,76,0.1);
    color: var(--gold);
    border: 1px solid rgba(201,168,76,0.3);
    padding: 6px 20px; border-radius: 50px;
    font-size: 0.8rem; font-weight: 600;
    letter-spacing: 1px; text-transform: uppercase;
    margin-bottom: 12px;
}
.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700; color: var(--white);
    margin-bottom: 12px;
}
.section-header p { color: var(--text-muted); max-width: 500px; margin: 0 auto; }
.divider {
    display: flex; align-items: center; justify-content: center;
    gap: 12px; margin: 12px 0;
}
.divider::before, .divider::after {
    content: ''; flex: 1; max-width: 80px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
}
.divider::after { background: linear-gradient(90deg, var(--gold), transparent); }
.divider span { color: var(--gold); font-size: 1.2rem; }
.section-header.light h2 { color: var(--white); }
.divider.light::before { background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4)); }
.divider.light::after { background: linear-gradient(90deg, rgba(255,255,255,0.4), transparent); }
.divider.light span { color: var(--white); }

/* ===== ABOUT ===== */
.about { background: var(--dark2); }
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 60px; align-items: center;
}
.about-img-box {
    aspect-ratio: 707 / 353;
    border-radius: var(--radius);
    background: #ffffff;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
    border: 1px solid rgba(201,168,76,0.25);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    padding: 40px;
}
.about-logo {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    position: relative; z-index: 1;
}
.about-image { position: relative; }
.about-badge {
    position: absolute; bottom: -16px; right: -16px;
    background: linear-gradient(135deg, var(--gold), #a07830);
    color: var(--dark); padding: 12px 20px;
    border-radius: 12px; font-weight: 700; font-size: 0.9rem;
    box-shadow: var(--shadow);
}
.about-content h3 {
    font-size: 1.8rem; font-weight: 700;
    color: var(--white); margin-bottom: 16px;
}
.about-content p { color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; }
.about-content strong { color: var(--gold); }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.af-item { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--text); }
.af-item i { color: var(--gold); }

/* ===== COURSES ===== */
.courses { background: var(--dark); }
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.course-card {
    background: var(--dark2);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 32px 24px;
    transition: all 0.3s ease;
    position: relative; overflow: hidden;
}
.course-card::before {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--green-light));
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.3s ease;
}
.course-card:hover { transform: translateY(-6px); border-color: rgba(201,168,76,0.3); box-shadow: var(--shadow); }
.course-card:hover::before { transform: scaleX(1); }
.course-icon {
    width: 56px; height: 56px; border-radius: 14px;
    background: rgba(201,168,76,0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: var(--gold);
    margin-bottom: 20px;
    transition: all 0.3s;
}
.course-card:hover .course-icon { background: var(--gold); color: var(--dark); }
.course-card h3 { font-size: 1.1rem; font-weight: 600; color: var(--white); margin-bottom: 10px; }
.course-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
.course-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--gold); font-size: 0.875rem; font-weight: 600;
    transition: gap 0.3s;
}
.course-link:hover { gap: 10px; }

/* ===== FEATURES ===== */
.features { position: relative; padding: 90px 0; }
.features-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #0a1f0f 0%, #0a1628 100%);
}
.features .container { position: relative; z-index: 1; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.feature-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 36px 28px; text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}
.feature-card:hover {
    background: rgba(201,168,76,0.08);
    border-color: rgba(201,168,76,0.3);
    transform: translateY(-4px);
}
.feature-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), #a07830);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--dark);
    margin: 0 auto 20px;
}
.feature-card h3 { font-size: 1.1rem; font-weight: 600; color: var(--white); margin-bottom: 10px; }
.feature-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }

/* ===== TESTIMONIALS ===== */
.testimonials { background: var(--dark2); }
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.testi-card {
    background: var(--dark3);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 32px;
    transition: all 0.3s;
}
.testi-card:hover { border-color: rgba(201,168,76,0.3); transform: translateY(-4px); }
.testi-stars { color: var(--gold); font-size: 1.1rem; margin-bottom: 16px; }
.testi-card p { color: var(--text-muted); line-height: 1.8; font-style: italic; margin-bottom: 24px; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), #a07830);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: var(--dark); font-size: 1.1rem;
}
.testi-author strong { display: block; color: var(--white); font-size: 0.9rem; }
.testi-author span { font-size: 0.8rem; color: var(--text-muted); }

/* ===== CONTACT ===== */
.contact { background: var(--dark); }
.contact-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 60px; align-items: start;
}
.contact-info h3 { font-size: 1.6rem; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.contact-info > p { color: var(--text-muted); line-height: 1.8; margin-bottom: 32px; }
.contact-items { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.contact-item {
    display: flex; align-items: center; gap: 16px;
    padding: 16px; border-radius: 12px;
    background: var(--dark2);
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.3s;
}
.contact-item:hover { border-color: rgba(201,168,76,0.3); transform: translateX(4px); }
.ci-icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: rgba(201,168,76,0.1);
    display: flex; align-items: center; justify-content: center;
    color: var(--gold); font-size: 1rem; flex-shrink: 0;
}
.contact-item strong { display: block; color: var(--white); font-size: 0.85rem; }
.contact-item span { font-size: 0.875rem; color: var(--text-muted); }
.whatsapp-btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: #25D366; color: white;
    padding: 14px 28px; border-radius: 50px;
    font-weight: 600; font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(37,211,102,0.3);
}
.whatsapp-btn:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37,211,102,0.5);
}
.whatsapp-btn i { font-size: 1.3rem; }
.contact-form-box {
    background: var(--dark2);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 36px;
}
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%; padding: 14px 18px;
    background: var(--dark3);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: var(--white); font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    transition: border-color 0.3s;
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group select option { background: var(--dark3); }
.form-group textarea { resize: vertical; }
.success-msg {
    margin-top: 16px; padding: 14px 18px;
    background: rgba(37,211,102,0.1);
    border: 1px solid rgba(37,211,102,0.3);
    border-radius: 10px; color: #25D366;
    display: flex; align-items: center; gap: 8px;
}

/* ===== FOOTER ===== */
.footer { background: #080c10; }
.footer-top { padding: 60px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}
.footer-logo { margin-bottom: 20px; }
.footer-logo-img {
    height: 64px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: brightness(1.05) drop-shadow(0 0 8px rgba(201,168,76,0.15));
}
.footer-brand p { color: var(--text-muted); font-size: 0.875rem; line-height: 1.8; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,0.06);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 0.9rem;
    transition: all 0.3s;
}
.footer-social a:hover { background: var(--gold); color: var(--dark); }
.footer-links h4, .footer-contact h4 {
    color: var(--white); font-size: 1rem;
    font-weight: 600; margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(201,168,76,0.2);
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--text-muted); font-size: 0.875rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--gold); padding-left: 4px; }
.footer-contact p {
    display: flex; align-items: center; gap: 10px;
    color: var(--text-muted); font-size: 0.875rem;
    margin-bottom: 12px;
}
.footer-contact i { color: var(--gold); width: 16px; }
.footer-bottom {
    padding: 20px 0; text-align: center;
    color: var(--text-muted); font-size: 0.8rem;
}
.footer-bottom span { font-family: 'Amiri', serif; color: var(--gold); font-size: 1rem; }

/* ===== FLOATING WHATSAPP ===== */
.float-whatsapp {
    position: fixed; bottom: 28px; right: 28px; z-index: 999;
    width: 58px; height: 58px; border-radius: 50%;
    background: #25D366;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: white;
    box-shadow: 0 4px 20px rgba(37,211,102,0.5);
    transition: all 0.3s;
    animation: waPulse 2s infinite;
}
.float-whatsapp:hover { transform: scale(1.1); background: #1ebe5d; }
.wa-tooltip {
    position: absolute; right: 68px;
    background: var(--dark2); color: var(--white);
    padding: 6px 14px; border-radius: 8px;
    font-size: 0.8rem; white-space: nowrap;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}
.float-whatsapp:hover .wa-tooltip { opacity: 1; }
@keyframes waPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.5); }
    50% { box-shadow: 0 4px 40px rgba(37,211,102,0.8); }
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .about-image { max-width: 400px; margin: 0 auto; }
}
@media (max-width: 768px) {
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 260px; height: 100vh;
        background: var(--dark2); flex-direction: column;
        padding: 80px 32px 32px; gap: 24px;
        transition: right 0.3s ease;
        border-left: 1px solid rgba(201,168,76,0.2);
    }
    .nav-links.open { right: 0; }
    .hamburger { display: flex; }
    .nav-logo { height: 40px; }
    .hero-stats { gap: 16px; }
    .stat-num { font-size: 1.4rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .about-features { grid-template-columns: 1fr; }
    .contact-form-box { padding: 24px; }
}
@media (max-width: 480px) {
    .hero-btns { flex-direction: column; align-items: center; }
    .bismillah { font-size: 1.4rem; }
    section { padding: 60px 0; }
}
