/* ----------------------------------------------------
   DESIGN SYSTEM & CUSTOM PROPERTIES
   ---------------------------------------------------- */
:root {
    --primary: #3BB9FF;
    --primary-rgb: 59, 185, 255;
    --primary-light: #8EE0FF;
    --primary-dark: #1E3A4C;
    --accent: #E3DBC6;
    --accent-rgb: 227, 219, 198;
    --accent-dark: #C1B597;
    --accent-light: #F1ECE0;
    --white: #FFFFFF;
    --bg-light: #FAF9F6; /* Soft warm grey/cream background */
    --bg-alt: #F1EFE8;   /* Beautiful alternative warm cream tint */
    --text-dark: #111222;
    --text-muted: #3D4152;
    --font-main: 'Cairo', 'Tajawal', system-ui, -apple-system, sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.03);
    --shadow-medium: 0 16px 45px rgba(59, 185, 255, 0.06);
    --shadow-premium: 0 20px 50px rgba(30, 58, 76, 0.08);
    --shadow-glow: 0 0 20px rgba(227, 219, 198, 0.5);
    
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(227, 219, 198, 0.25);
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
}

/* ----------------------------------------------------
   BASE STYLES & RESET
   ---------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* Custom Selection & Scrollbar */
::selection {
    background-color: var(--accent);
    color: var(--primary-dark);
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-dark);
}

/* ----------------------------------------------------
   REUSABLE LAYOUTS & COMPONENT CLASSES
   ---------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 24px;
    padding-left: 24px;
}

.container-grid {
    display: grid;
    gap: 32px;
}

@media (min-width: 768px) {
    .container-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.section-padding {
    padding: 100px 0;
}

.background-alt {
    background-color: var(--bg-alt);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Section Header Decorator */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .subtitle {
    display: block;
    color: var(--accent-dark);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.section-header .section-title {
    color: var(--primary-dark);
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
}

.decorator-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 150px;
    margin: 0 auto;
}

.decorator-line::before,
.decorator-line::after {
    content: '';
    height: 1.5px;
    flex-grow: 1;
    background: linear-gradient(to var(--direction, left), var(--accent) 0%, rgba(227, 219, 198, 0) 100%);
}

.decorator-line::before {
    --direction: left;
}

.decorator-line::after {
    --direction: right;
}

.line-dot {
    width: 10px;
    height: 10px;
    background-color: var(--accent);
    transform: rotate(45deg);
    border: 2px solid var(--primary);
}

/* Gradient Text Effect */
.text-gradient {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Custom Buttons Styling */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition-bounce);
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--primary-dark);
    box-shadow: 0 8px 25px rgba(227, 219, 198, 0.35);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(227, 219, 198, 0.5), var(--shadow-glow);
}

.btn-outline {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--white);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-dark);
    transform: translateY(-4px);
    border-color: var(--white);
}

.btn-icon {
    transition: var(--transition-smooth);
}

.btn:hover .btn-icon {
    transform: scale(1.15);
}

/* ----------------------------------------------------
   1. HEADER & NAVIGATION STYLES
   ---------------------------------------------------- */
.navbar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: var(--transition-smooth);
}

/* Scrolled Navbar State */
.navbar-container.scrolled {
    padding: 12px 0;
    background-color: rgba(59, 185, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(227, 219, 198, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.navbar-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--white);
    border: 1.5px solid var(--accent);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: var(--transition-bounce);
}

.navbar-brand:hover .brand-logo {
    transform: scale(1.08);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.navbar-container.scrolled .brand-name {
    color: var(--accent);
}

.brand-sub {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Desktop Nav Lists */
.nav-desktop {
    display: none;
}

@media (min-width: 992px) {
    .nav-desktop {
        display: block;
    }
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    font-weight: 600;
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Navigation Actions / Social Icons */
.nav-actions {
    display: none;
    align-items: center;
    gap: 16px;
}

@media (min-width: 992px) {
    .nav-actions {
        display: flex;
    }
}

.social-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.social-nav-btn:hover {
    background-color: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-3px) rotate(8deg);
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

/* Hamburger button */
.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
}

@media (min-width: 992px) {
    .hamburger-btn {
        display: none;
    }
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
    transition: var(--transition-smooth);
    transform-origin: left;
}

.hamburger-btn.active .hamburger-line:first-child {
    transform: rotate(45deg) translate(-2px, -2px);
    background-color: var(--accent);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .hamburger-line:last-child {
    transform: rotate(-45deg) translate(-2px, 2px);
    background-color: var(--accent);
}

/* Mobile side navigation drawer */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(30, 58, 76, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-drawer {
    position: absolute;
    top: 0;
    right: -320px;
    width: 100%;
    max-width: 320px;
    height: 100%;
    background-color: var(--primary-dark);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.mobile-menu-overlay.active .mobile-menu-drawer {
    right: 0;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 48px;
    border-bottom: 1px solid rgba(227, 219, 198, 0.15);
    padding-bottom: 20px;
}

.close-drawer-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.close-drawer-btn:hover {
    color: var(--accent);
    transform: scale(1.15);
}

.nav-mobile {
    margin-bottom: auto;
}

.mobile-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.25rem;
    font-weight: 600;
    display: block;
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    border-right: 3px solid transparent;
}

.mobile-link:hover, .mobile-link.active {
    color: var(--accent);
    background-color: rgba(255, 255, 255, 0.05);
    border-right-color: var(--accent);
}

.drawer-footer {
    border-top: 1px solid rgba(227, 219, 198, 0.15);
    padding-top: 24px;
}

.drawer-footer-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
}

.drawer-socials {
    display: flex;
    gap: 12px;
}

.social-circle-btn {
    flex-grow: 1;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-dark);
    background-color: var(--accent);
    padding: 10px;
    border-radius: var(--border-radius-sm);
}

.social-circle-btn:hover {
    background-color: var(--accent-dark);
}

/* ----------------------------------------------------
   2. HERO SECTION STYLES
   ---------------------------------------------------- */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    overflow: hidden;
}

.hero-bg-parallax {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero.jpg');
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    z-index: 1;
    transform: scale(1.05);
    transition: transform 0.1s linear;
}

.hero-dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(30, 58, 76, 0.8) 0%, rgba(59, 185, 255, 0.85) 100%);
    z-index: 2;
}

.hero-content-wrapper {
    position: relative;
    z-index: 3;
    text-align: center;
    padding-top: 80px; /* Offset fixed header */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(227, 219, 198, 0.15);
    border: 1px solid rgba(227, 219, 198, 0.3);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent);
    backdrop-filter: blur(6px);
    margin-bottom: 24px;
}

.badge-icon {
    animation: pulse 2.5s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4rem;
        line-height: 1.25;
    }
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin-bottom: 48px;
    line-height: 1.8;
    font-weight: 400;
}

.hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 480px;
}

@media (min-width: 576px) {
    .hero-ctas {
        flex-direction: row;
        justify-content: center;
        width: auto;
    }
}

/* Mouse Scroll Indicator */
.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.8;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; top: 6px; }
    100% { opacity: 0; top: 18px; }
}

.scroll-arrow {
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(255, 255, 255, 0.6);
    border-bottom: 2px solid rgba(255, 255, 255, 0.6);
    transform: rotate(45deg);
    animation: scrollArrow 1.5s infinite;
}

@keyframes scrollArrow {
    0%, 100% { opacity: 0.3; transform: rotate(45deg) translate(0, 0); }
    50% { opacity: 1; transform: rotate(45deg) translate(4px, 4px); }
}

/* ----------------------------------------------------
   3. PRAYER TIMES SECTION
   ---------------------------------------------------- */
.prayers-section {
    position: relative;
    z-index: 5;
    margin-top: -60px; /* Overlap Hero slightly */
    padding-top: 80px;
}

.prayers-dashboard {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-premium);
    padding: 30px;
    border: 1px solid rgba(227, 219, 198, 0.3);
}

.prayers-meta {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--bg-alt);
    padding-bottom: 24px;
    margin-bottom: 30px;
    gap: 20px;
}

@media (min-width: 768px) {
    .prayers-meta {
        flex-direction: row;
    }
}

.meta-date {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--bg-light);
    padding: 10px 18px;
    border-radius: 50px;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
}

.meta-icon {
    color: var(--accent-dark);
}

.meta-date .separator {
    color: rgba(59, 185, 255, 0.2);
}

.next-prayer-countdown {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: rgba(59, 185, 255, 0.05);
    padding: 10px 20px;
    border-radius: 50px;
    border-right: 4px solid var(--accent);
}

.countdown-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
}

.countdown-label strong {
    color: var(--accent-dark);
    font-weight: 700;
}

.countdown-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-dark);
    font-family: var(--font-secondary);
    letter-spacing: 0.5px;
}

/* Prayers Grid */
.prayers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 576px) {
    .prayers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .prayers-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.prayer-card {
    position: relative;
    background-color: var(--bg-light);
    border: 1px solid rgba(227, 219, 198, 0.15);
    border-radius: var(--border-radius-md);
    padding: 24px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition-bounce);
    overflow: hidden;
}

/* Islamic Geometric Pattern Subtle BG overlay */
.prayer-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--accent-light) 0.5px, transparent 0.5px);
    background-size: 8px 8px;
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
}

.prayer-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: var(--shadow-medium);
}

.prayer-arabic {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 12px;
    z-index: 2;
}

.prayer-time {
    font-size: 1.45rem;
    font-weight: 800;
    color: #111222;
    z-index: 2;
}

.prayer-status {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-top: 8px;
    z-index: 2;
}

/* Outstanding active state */
.prayer-card.active {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #111e29 100%);
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.prayer-card.active .prayer-arabic {
    color: var(--accent);
}

.prayer-card.active .prayer-time {
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.prayer-card.active .prayer-status {
    color: var(--accent);
    background-color: rgba(227, 219, 198, 0.15);
    padding: 2px 10px;
    border-radius: 20px;
}

.prayer-card.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-dark) 100%);
}

.prayer-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 24px;
    font-weight: 500;
}

/* ----------------------------------------------------
   4. QURANIC SCHOOL SECTION
   ---------------------------------------------------- */
.school-info-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.school-heading {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
}

.school-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    text-align: justify;
}

.school-features-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: var(--white);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(227, 219, 198, 0.25);
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 6px;
}

.feature-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.school-media-col {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.school-image-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--white);
}

.school-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.school-image-card:hover .school-image {
    transform: scale(1.05);
}

.img-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--accent);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--accent);
}

.levels-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 576px) {
    .levels-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

.level-card {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    padding: 24px 16px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(227, 219, 198, 0.15);
    transition: var(--transition-bounce);
}

.level-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: var(--shadow-medium);
}

.level-num {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-dark);
    margin-bottom: 12px;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 2px;
}

.level-card h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.level-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ----------------------------------------------------
   5. SERVICES & GALLERY SECTION (الأنشطة والفعاليات)
   ---------------------------------------------------- */
.filter-tabs-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 48px;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    background-color: var(--bg-alt);
    padding: 8px;
    border-radius: 50px;
    border: 1px solid rgba(227, 219, 198, 0.2);
}

.filter-tab {
    font-family: var(--font-main);
    background: none;
    border: none;
    padding: 10px 22px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-dark);
    opacity: 0.7;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-tab:hover {
    opacity: 1;
}

.filter-tab.active {
    background-color: var(--primary-dark);
    color: var(--accent);
    opacity: 1;
    box-shadow: 0 4px 15px rgba(30, 58, 76, 0.2);
    border: 1px solid rgba(227, 219, 198, 0.25);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 576px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gallery-card {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background-color: var(--white);
    border: 1px solid var(--white);
    transition: var(--transition-smooth);
}

.gallery-card.hidden {
    display: none;
}

.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
}

.gallery-img-container {
    position: relative;
    overflow: hidden;
    height: 260px;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-card:hover .gallery-img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(30, 58, 76, 0.9) 0%, rgba(59, 185, 255, 0.4) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
    display: flex;
    align-items: flex-end;
    padding: 24px;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    color: var(--white);
    width: 100%;
    position: relative;
}

.gallery-tag {
    display: inline-block;
    background-color: var(--accent);
    color: var(--primary-dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.gallery-info h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--white);
}

.gallery-info p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 16px;
    line-height: 1.5;
}

.btn-view-image {
    background-color: var(--accent);
    color: var(--primary-dark);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: var(--transition-bounce);
}

.btn-view-image:hover {
    transform: scale(1.15) rotate(90deg);
    background-color: var(--white);
}

/* ----------------------------------------------------
   6. CONTACT US SECTION (إتصل بنا)
   ---------------------------------------------------- */
.contact-layout {
    align-items: start;
}

.contact-info-col {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.info-intro h3 {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
}

.info-intro p {
    font-size: 1.05rem;
    color: var(--text-muted);
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(227, 219, 198, 0.2);
    transition: var(--transition-bounce);
}

.contact-info-card:hover {
    transform: translateX(-5px);
    border-color: var(--accent);
    box-shadow: var(--shadow-medium);
}

.info-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background-color: rgba(59, 185, 255, 0.05);
    color: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.info-card-text h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.info-card-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Custom form wrapper */
.contact-form-col {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
    padding: 40px 30px;
    border: 1px solid rgba(227, 219, 198, 0.3);
}

.custom-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 576px) {
    .form-group-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
}

.form-group input,
.form-group textarea {
    font-family: var(--font-main);
    font-size: 0.95rem;
    padding: 12px 16px;
    background-color: var(--bg-light);
    border: 1.5px solid rgba(59, 185, 255, 0.15);
    border-radius: var(--border-radius-sm);
    color: var(--text-dark);
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-dark);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(227, 219, 198, 0.15);
}

.btn-submit {
    align-self: flex-start;
    padding: 14px 32px;
}

/* Feedback Box */
.form-feedback-message {
    padding: 0;
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
    font-weight: 700;
    transition: var(--transition-smooth);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.form-feedback-message.active {
    padding: 14px;
    max-height: 80px;
    opacity: 1;
    margin-bottom: 12px;
}

.form-feedback-message.success {
    background-color: #E6F4EA;
    color: #137333;
    border: 1px solid #A3E2B7;
}

.form-feedback-message.error {
    background-color: #FCE8E6;
    color: #C5221F;
    border: 1px solid #F5B4AD;
}

/* ----------------------------------------------------
   7. FOOTER SECTION
   ---------------------------------------------------- */
.main-footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 80px 0 30px 0;
    border-top: 4px solid var(--accent);
}

.footer-quote-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.quote-decorator {
    margin-bottom: 20px;
}

.quran-quote {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: 'Amiri', 'Cairo', serif;
    color: var(--accent);
    line-height: 1.6;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.quran-cite {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

/* Footer links grid */
.footer-links-grid {
    grid-template-columns: 1fr;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 48px;
}

@media (min-width: 768px) {
    .footer-links-grid {
        grid-template-columns: 2fr 1fr 2fr;
    }
}

.footer-about {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.justify-right {
    justify-content: flex-start;
}

.footer-about-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-nav h4,
.footer-social-channels h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 8px;
}

.footer-nav h4::after,
.footer-social-channels h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent);
}

.footer-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav-list a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    font-weight: 600;
}

.footer-nav-list a:hover {
    color: var(--accent);
    padding-right: 6px;
}

.footer-social-channels {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-social-channels p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-social-btns {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 20px;
    border-radius: var(--border-radius-sm);
    color: var(--white);
}

.footer-social-link:hover {
    background-color: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent);
}

.footer-social-link svg {
    flex-shrink: 0;
}

/* Footer Bottom row */
.footer-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.05);
    margin: 30px 0;
}

.footer-bottom-row {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

@media (min-width: 768px) {
    .footer-bottom-row {
        flex-direction: row;
    }
}

.design-credit {
    color: var(--accent-dark);
}

/* ----------------------------------------------------
   8. PURE VANILLA LIGHTBOX MODAL
   ---------------------------------------------------- */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 19, 32, 0.95);
    backdrop-filter: blur(12px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    left: 24px;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition-bounce);
    z-index: 2002;
}

.lightbox-close:hover {
    transform: scale(1.15) rotate(90deg);
    color: var(--accent);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-bounce);
    z-index: 2002;
}

.lightbox-nav:hover {
    background-color: var(--accent);
    color: var(--primary-dark);
    border-color: var(--accent);
}

.lightbox-prev {
    right: 24px;
}

.lightbox-next {
    left: 24px;
}

.lightbox-content-box {
    position: relative;
    max-width: 85%;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2001;
    transform: scale(0.9);
    transition: var(--transition-smooth);
}

.lightbox-modal.active .lightbox-content-box {
    transform: scale(1);
}

.lightbox-img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: var(--border-radius-md);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.08);
}

.lightbox-caption {
    margin-top: 16px;
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 700;
    text-align: center;
    background-color: rgba(59, 185, 255, 0.5);
    padding: 8px 24px;
    border-radius: 50px;
    border: 1px solid rgba(227, 219, 198, 0.15);
}

/* ----------------------------------------------------
   9. SCROLL TRIGGER ANIMATIONS CLASSES
   ---------------------------------------------------- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(5px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1),
                filter 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.animate-on-scroll.appear {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Hero Section Specific Staggered Entrance */
.animate-fade-up {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
