/* --- CSS VARIABLES & TOKENS (DARK THEME) --- */
:root {
    /* Color Palette - Dark & Elegant */
    --color-bg-main: #0b1120; /* Deep navy/black */
    --color-bg-darker: #060b14;
    --color-bg-alt: #0d1425;
    
    --color-primary: #0f4c3a; /* Islamic green */
    --color-primary-light: #166e54;
    --color-primary-dark: #082a20;
    
    --color-gold: #d4af37; /* Elegant Gold */
    --color-gold-light: #f3d573;
    --color-gold-dark: #b5952f;
    
    --color-text-main: #f8fafc;
    --color-text-muted: #cbd5e1;
    --color-text-light: #ffffff;
    
    --color-whatsapp: #25D366;
    
    /* Glassmorphism / Cards */
    --glass-bg: rgba(15, 76, 58, 0.15);
    --glass-border: rgba(212, 175, 55, 0.2);
    --card-bg: rgba(11, 17, 32, 0.8);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --card-shadow-hover: 0 10px 40px 0 rgba(0, 0, 0, 0.5);
    
    /* Typography */
    --font-main: 'Poppins', sans-serif;
    
    /* Spacing & Layout */
    --section-pad: 5rem 0;
    --container-width: 1200px;
    --border-radius: 16px;
    --border-radius-lg: 24px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg-main);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: var(--section-pad);
}

.bg-darker {
    background-color: var(--color-bg-darker);
}

.bg-alt {
    background-color: var(--color-bg-alt);
}

.text-gold {
    color: var(--color-gold);
}

.text-primary {
    color: var(--color-primary-light);
}

.text-muted {
    color: var(--color-text-muted);
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-text-main);
}

h2 {
    font-size: 2.5rem;
    color: var(--color-gold);
}

p {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.section-title {
    margin-bottom: 3rem;
}

.section-title.center {
    text-align: center;
}

.section-title .subtitle {
    color: var(--color-primary-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
    font-family: var(--font-main);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: white;
    box-shadow: 0 4px 15px rgba(15, 76, 58, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 76, 58, 0.6);
    color: white;
}

.btn-gold {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    color: var(--color-bg-main);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    color: var(--color-bg-main);
}

.btn-whatsapp {
    background-color: var(--color-whatsapp);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: #20b858;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-gold);
    color: var(--color-gold);
}

.btn-outline:hover {
    background: var(--color-gold);
    color: var(--color-bg-main);
}

/* --- CARDS & GLASSMORPHISM --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.25rem 0;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(11, 17, 32, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn) {
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
    color: var(--color-text-main);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: var(--transition-smooth);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.nav-links a:not(.btn):hover {
    color: var(--color-gold);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-gold);
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    text-align: center;
    background: url('assets/images/hero-bg.png') center/cover no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(11, 17, 32, 0.7), var(--color-bg-main));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero h2 {
    font-size: 1.8rem;
    color: var(--color-gold-light);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    color: #e2e8f0;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- ABOUT SECTION --- */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.about-features {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--glass-bg);
    color: var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    border: 1px solid var(--glass-border);
}

.feature-item h4 {
    margin-bottom: 0.25rem;
    color: var(--color-text-main);
}

.feature-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.about-image {
    position: relative;
}

.image-wrapper {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(11, 17, 32, 0.7), rgba(15, 76, 58, 0.7)), url('assets/images/about-img.png') center/cover no-repeat;
    border-radius: var(--border-radius-lg);
}

/* --- COURSES SECTION --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--glass-border);
    background: linear-gradient(to bottom, var(--card-bg), rgba(15, 76, 58, 0.1));
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    color: var(--color-gold-light);
}

.service-card h3 {
    font-size: 1.25rem;
    color: white;
}

.course-list {
    margin-top: 1rem;
    text-align: left;
}

.course-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.course-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-gold);
    font-weight: bold;
}

/* --- WHY CHOOSE US / STATS --- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.why-item {
    padding: 2rem;
    background: var(--glass-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
    transition: var(--transition-fast);
}

.why-item:hover {
    transform: translateY(-5px);
    background: rgba(212, 175, 55, 0.1);
}

.why-icon {
    font-size: 2.5rem;
    color: var(--color-gold);
    margin-bottom: 1rem;
}

/* --- SPECIAL FOCUS SECTION --- */
.special-focus {
    background: linear-gradient(135deg, #6ee7b7, #fef08a); /* Pastel bright green to pastel yellow */
    padding: 4rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px 0 rgba(110, 231, 183, 0.2);
}

.special-focus h2, .special-focus p, .special-focus .course-list li {
    color: #064e3b; /* Deep green text for readability */
}

.special-focus p {
    font-size: 1.1rem;
    font-weight: 500;
}

.special-focus h2 {
    color: #022c22;
    font-weight: 800;
    margin-bottom: 1rem;
}

.special-focus .course-list {
    display: inline-block;
    text-align: left;
    margin-top: 1.5rem;
}

.special-focus .course-list li {
    font-weight: 600;
}

.special-focus .course-list li::before {
    color: #059669; /* Solid green checkmarks */
}

/* --- FEE SECTION --- */
.fee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.fee-card {
    text-align: center;
    padding: 3rem 2rem;
    border: 1px solid var(--color-gold);
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    transition: var(--transition-fast);
}

.fee-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
    background: linear-gradient(to bottom, var(--card-bg), rgba(212, 175, 55, 0.1));
}

.price-highlight {
    margin: 1.5rem 0;
    color: white;
}

.price-highlight .amount {
    font-size: 3rem;
    font-weight: 800;
}

.price-highlight .duration {
    font-size: 1rem;
    color: var(--color-text-muted);
}

/* --- GALLERY SECTION --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    height: 250px;
    border-radius: var(--border-radius);
    background-color: var(--color-bg-darker);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* --- FLOATING WHATSAPP --- */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--color-whatsapp);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition-fast);
}

.floating-wa:hover {
    transform: scale(1.1);
    background-color: #20b858;
    color: white;
}

/* --- FOOTER & COMMUNITY --- */
.footer {
    background: #040810;
    color: white;
    padding-top: 5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer h2, .footer p {
    color: white;
}

.footer h2 {
    color: var(--color-gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-info {
    margin: 1.5rem 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.contact-item i {
    color: var(--color-gold);
    font-size: 1.5rem;
}

.community-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.9rem;
}

/* Hide SociableKit Branding (CSS Fallback) */
a.tutorial_link.--custom-branding,
a[href*="sociablekit.com"] {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* --- ANIMATIONS & RESPONSIVE --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.is-visible {
    opacity: 1;
    transform: translate(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%; /* Changed to slide from right side! */
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(11, 17, 32, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        transition: 0.3s ease;
        border-top: 1px solid rgba(255,255,255,0.05);
        z-index: 999;
    }
    
    .nav-links.active { right: 0; }
    .mobile-menu-btn { display: block; }
    
    .hero h1 { font-size: 2.2rem; }
    .hero h2 { font-size: 1.3rem; }
    
    .floating-wa {
        width: 50px; height: 50px;
        font-size: 1.5rem;
        bottom: 20px; right: 20px;
    }
}
