@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,700;0,800;1,700&display=swap');

:root {
    /* Deep Emerald & Spiritual Dark Palette */
    --emerald-deep: #022c22;
    --emerald-mid: #064e3b;
    --emerald-light: #0d9488;
    --gold: #d4af37;
    --gold-bright: #f4d03f;
    --gold-muted: #b58925;
    --dark-bg: #020304;
    --dark-card: #0a0b0e;
    --text-main: #ffffff;
    --text-dim: #94a3b8;
    
    /* Effects */
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.12);
    --gold-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    --emerald-shadow: 0 0 30px rgba(6, 78, 59, 0.5);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    /* Immersive Fixed Radial Gradient for consistency on long pages */
    background: radial-gradient(circle at 80% 5%, rgba(2, 44, 34, 0.4) 0%, transparent 50%),
                radial-gradient(circle at 20% 95%, rgba(1, 28, 26, 0.3) 0%, transparent 50%),
                var(--dark-bg);
    background-attachment: fixed;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h2 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 36px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-muted) 100%);
    color: #000;
    box-shadow: var(--gold-shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #fff;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

/* Header Overhaul */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 0;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(2, 3, 4, 0.85);
    backdrop-filter: blur(20px);
    padding: 10px 0; /* Reduced padding consistent with mobile */
    border-bottom: 1px solid var(--glass-border);
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
    padding: 0;
    height: 70px; /* Match header height */
    display: flex;
    align-items: center;
    background: linear-gradient(to right, var(--gold), var(--gold-bright));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mobile-toggle {
    display: none; /* Hidden on desktop by default */
    color: var(--gold);
    font-size: 1.8rem;
    cursor: pointer;
    margin: 0;
    padding: 0;
    height: 70px; /* Match header height */
    align-items: center;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    color: var(--text-dim);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--gold);
}

/* Hero Section Rewrite */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px; /* Added desktop top padding as requested to push content down */
    position: relative;
    background: url('https://images.unsplash.com/photo-1519817650390-64a93db51149?auto=format&fit=crop&q=80&w=1920') center/cover no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(2, 3, 4, 0.9) 30%, rgba(2, 3, 4, 0.2) 100%);
}

.hero-content {
    position: relative;
    max-width: 850px;
    z-index: 2;
    text-align: left;
    margin-left: 0;
}

.hero .container {
    margin-left: 0;
    max-width: 100%;
    padding-left: 80px; /* absolute left offset for desktop */
}

@media (max-width: 1280px) {
    .hero .container { padding-left: 40px; }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 130px; /* Offset for fixed header on mobile */
        padding-bottom: 80px;
        min-height: auto;
        display: block; /* Switch to block to respect padding properly */
    }

    .hero .container { 
        padding-left: 20px;
        padding-right: 20px;
        margin: 0 auto;
        text-align: center;
    }

    .hero-content {
        text-align: center;
        margin: 0 auto;
    }
}

.hero h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    color: #fff;
}

.hero span.gold-text {
    background: linear-gradient(to right, var(--gold), var(--gold-bright));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.35rem;
    color: var(--text-dim);
    margin-bottom: 45px;
    max-width: 650px;
}

/* Services (Master-Detail) Overhaul */
.section-padding {
    padding: 140px 0;
}

.services-section {
    margin-top: 25px; /* Increased to 25px gap as requested */
}

/* Global Bottom Spacing Utility */
.footer-spacer {
    margin-bottom: 150px;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.services-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    height: 600px; /* Fixed height for both to be identical */
    margin-bottom: 80px;
}

.services-sidebar {
    background: var(--dark-card);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid var(--glass-border);
    height: 100%; /* Fill the 600px layout */
    overflow-y: auto;
}

/* Custom Premium Scrollbar for Sidebar */
.services-sidebar::-webkit-scrollbar {
    width: 6px;
}

.services-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.services-sidebar::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.2);
    border-radius: 10px;
}

.services-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

.service-tab {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 30px;
    margin-bottom: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-tab i {
    font-size: 1.4rem;
    color: var(--text-dim);
}

.service-tab span {
    font-weight: 500;
    font-size: 1.1rem;
}

.service-tab:hover {
    background: rgba(255, 255, 255, 0.03);
}

.service-tab.active {
    background: rgba(212, 175, 55, 0.08);
    border-color: rgba(212, 175, 55, 0.3);
}

.service-tab.active i, .service-tab.active span {
    color: var(--gold);
}

.services-display {
    background: var(--dark-card);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    padding: 40px 60px; /* Reduced from 80px to pull content higher */
    background-image: radial-gradient(circle at top right, rgba(6, 78, 59, 0.1) 0%, transparent 50%);
}

.service-content {
    display: none;
    animation: slideIn 0.5s ease forwards;
}

.service-content.active {
    display: block;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.service-content h3 {
    font-size: 3.2rem;
    color: var(--gold);
    margin-bottom: 30px;
}

.service-content p.desc {
    font-size: 1.25rem;
    color: var(--text-dim);
    margin-bottom: 40px;
    line-height: 1.8;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.feature-item {
    background: var(--glass-bg);
    padding: 20px 25px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-item i {
    color: var(--gold);
}

/* Glass Cards & Animations */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px; /* Default desktop padding */
}

@media (max-width: 768px) {
    .glass-card {
        padding: 25px; /* Tighter padding for mobile to prevent overflow */
    }
}

/* WhatsApp Floating Tooltip */
.whatsapp-float {
    position: fixed;
    bottom: 50px;
    right: 50px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
}

/* Testimonial Slider System */
.slider-section {
    padding: 100px 0;
    overflow: hidden;
    background: rgba(2, 3, 4, 0.4);
}

.slider-container {
    width: 100%;
    margin-top: 50px;
    position: relative;
    overflow: hidden;
}

.slider-track {
    display: flex;
    gap: 30px;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.slider-item {
    flex: 0 0 calc(25% - 22.5px); /* 4 items per row (gap adjustment) */
    aspect-ratio: 9/16; /* WhatsApp screenshot format */
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    box-shadow: var(--emerald-shadow);
    background: var(--dark-card);
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: var(--transition);
}

.slider-item:hover img {
    opacity: 1;
    transform: scale(1.05);
}

@media (max-width: 1024px) {
    .slider-item { flex: 0 0 calc(50% - 15px); } /* 2 items per row */
}

@media (max-width: 768px) {
    .slider-item { flex: 0 0 100%; } /* 1 item per row */
}

/* Premium Mobile Dropdown (Header Slide-Down) */
.mobile-nav {
    display: none;
    position: fixed;
    top: 70px; /* Right below the header */
    left: 0;
    width: 100%;
    height: auto;
    max-height: 60vh; 
    background: rgba(2, 3, 4, 0.98);
    backdrop-filter: blur(25px);
    z-index: 2000;
    padding: 15px 0; /* Minimalist padding */
    flex-direction: column;
    align-items: center;
    gap: 5px; /* Tightest gap */
    text-align: center;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(-20px);
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    overflow-y: auto;
}

.mobile-nav.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav a {
    font-family: 'Playfair Display', serif;
    font-size: 1rem; /* Standard text size */
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    padding: 8px 0; /* Tightened padding for separators */
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03); 
}

.mobile-nav a:last-of-type {
    border-bottom: none; /* No line after last link */
}

.mobile-nav a:hover, .mobile-nav a.active {
    color: var(--gold);
    background: rgba(255, 255, 255, 0.02);
}

/* Accent lines for menu */
.mobile-nav a::after {
    display: none; /* Removed for minimalist look */
}

.mobile-close-btn {
    display: none; /* Explicitly removed */
}

/* WhatsApp Button in Mobile Nav */
.mobile-nav .btn {
    width: auto;
    min-width: 180px; 
    padding: 8px 20px;
    font-size: 0.75rem;
    margin-top: 10px;
}

/* Media Queries Overhaul */
@media (max-width: 1280px) {
    .hero h1 { font-size: 4rem; }
    .services-layout { grid-template-columns: 300px 1fr; }
    .container { padding: 0 30px; }
}

@media (max-width: 1024px) {
    .services-layout { grid-template-columns: 1fr; gap: 15px; height: auto !important; } /* Reset fixed height for mobile stacking */

    .services-sidebar { 
        grid-row: 1; 
        display: flex; 
        overflow-x: auto; 
        padding: 15px; 
        gap: 10px; 
        height: auto !important; /* Reset fixed height for mobile stacking */
        scrollbar-width: thin;
        scrollbar-color: var(--gold) transparent;
    }

    .service-tab { white-space: nowrap; margin-bottom: 0; padding: 12px 20px; }

    /* Custom Scrollbar for Chrome/Safari/Edge */
    .services-sidebar::-webkit-scrollbar {
        height: 4px; /* Reduced height */
    }

    .services-sidebar::-webkit-scrollbar-track {
        background: transparent; /* Transparent background */
    }

    .services-sidebar::-webkit-scrollbar-thumb {
        background: rgba(212, 175, 55, 0.3); /* Gold with transparency */
        border-radius: 10px;
    }

    .services-sidebar::-webkit-scrollbar-thumb:hover {
        background: var(--gold);
    }
    .services-display { padding: 40px 30px; }
    .footer-grid { gap: 40px; }
}

@media (max-width: 768px) {
    header {
        background: rgba(2, 3, 4, 0.95); /* Fixed color for mobile header */
        backdrop-filter: blur(15px);
        padding: 0;
        border-bottom: 1px solid var(--glass-border);
    }
    
    .section-title h2 { font-size: 2.2rem; } /* Shrunk title for mobile */
    .section-title p { font-size: 1rem; padding: 0 20px; }
    
    .responsive-h2 { font-size: 2.2rem !important; }
    .responsive-p { font-size: 1.05rem !important; line-height: 1.6 !important; }

    .nav-links, .hide-mobile { display: none; }
    .mobile-toggle { display: flex; } /* Changed from block to flex for alignment */
    
    .nav-wrap {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 70px; 
    }

    .logo {
        transform: translateY(12px); /* Lower only the text as requested */
    }

    header, header.scrolled {
        padding: 0; /* Clear padding that causes jumps */
    }
    
    .section-padding { padding: 80px 0; }
    .footer-spacer { margin-bottom: 80px; }
    
    h2, .section-title h2, .responsive-h2 { 
        font-size: 2.2rem !important; 
        line-height: 1.2;
        overflow-wrap: break-word; /* Prevent long words/short containers from horizontal overflow */
    }

    .hero h1 { font-size: 3rem; }
    .hero p { font-size: 1.1rem; }
    
    .footer-grid { grid-template-columns: 1fr !important; gap: 40px; text-align: center; }
    .footer-grid div { display: flex; flex-direction: column; align-items: center; }
    .logo { margin: 0 auto 30px; }

    .about-grid, .contact-grid { display: block !important; width: 100% !important; overflow: hidden; }
    .glass-card, .contact-form-card { padding: 25px; width: 100% !important; max-width: 100% !important; margin-bottom: 30px; box-sizing: border-box !important; }
    .info-card { padding: 20px; gap: 15px; width: 100% !important; max-width: 100% !important; margin-bottom: 25px; box-sizing: border-box !important; }
    .info-card i { width: 50px; height: 50px; min-width: 50px; font-size: 1.4rem; } 
    
    .service-content h3 { font-size: 2.2rem; }
    .services-display { padding: 30px 20px; }
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.4rem; }
    .btn { width: 100%; }
    .container { padding: 0 20px; }
    .stat-block { grid-template-columns: 1fr; padding: 30px 20px; }
}

[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s cubic-bezier(0.16, 1, 0.3, 1);
}


[data-reveal].active {
    opacity: 1;
    transform: translateY(0);
}

/* Contact Page Specifics */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 60px;
}

.contact-form-card {
    background: var(--dark-card);
    padding: 60px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-dim);
}

.form-control {
    width: 100%;
    padding: 18px 25px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: #fff;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
}

.info-card {
    background: var(--dark-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    display: flex;
    gap: 25px;
    align-items: center;
    margin-bottom: 25px;
    transition: var(--transition);
}

.info-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
}

.info-card i {
    font-size: 2rem;
    color: var(--gold);
    width: 70px;
    height: 70px;
    background: rgba(212, 175, 55, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.map-frame {
    margin-top: 80px;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}
@media (max-width: 768px) { .lightbox-close { top: 20px; right: 20px; font-size: 2rem; } .lightbox-content { max-width: 95%; max-height: 80vh; } } 
/* Premium Lightbox Modal */
.lightbox { position: fixed; inset: 0; background: rgba(2, 3, 4, 0.95); backdrop-filter: blur(10px); z-index: 10000; display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; cursor: zoom-out; }
.lightbox.active { display: flex; opacity: 1; }
.lightbox-content { max-width: 90%; max-height: 90vh; border-radius: 12px; border: 2px solid var(--gold); box-shadow: var(--gold-shadow); transform: scale(0.9); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.lightbox.active .lightbox-content { transform: scale(1); }
.lightbox-close { position: absolute; top: 30px; right: 30px; font-size: 2.5rem; color: #fff; cursor: pointer; transition: var(--transition); }
.lightbox-close:hover { color: var(--gold); transform: rotate(90deg); }

/* Yusuf Hoca Name Tag Position */
.hoca-name-tag {
    position: absolute;
    bottom: 40px;
    left: 40px;
    background: var(--dark-card);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--gold);
    box-shadow: var(--gold-shadow);
    z-index: 2;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .hoca-name-tag {
        bottom: 15px;
        left: auto;
        right: 15px;
        padding: 15px 20px;
        border-radius: 12px;
    }
    .hoca-name-tag h4 {
        font-size: 1rem;
    }
    .hoca-name-tag p {
        font-size: 0.75rem;
    }
}

/* 48-Hour Guarantee Badge */
.guarantee-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(212, 175, 55, 0.3);
    margin-top: 0; /* Reduced to zero to pull content up */
    margin-bottom: 5px;
}

.guarantee-badge i {
    font-size: 1rem;
}
