/* ============================================
   GLOBAL STYLES & RESET
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #1a1a1a;
    background-color: #f5f5f5;
    line-height: 1.6;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    font-size: 1rem;
    color: #555;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: transparent;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(20, 60, 60, 0.95);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.navbar-logo {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

.navbar.scrolled .navbar-logo {
    opacity: 0;
    visibility: hidden;
}

.navbar-logo-light {
    height: 50px;
    width: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.navbar.scrolled .navbar-logo-light {
    opacity: 1;
    visibility: visible;
}

/* Date Widget */
.date-widget {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: white;
    font-size: 0.9rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.navbar.scrolled .date-widget {
    opacity: 1;
    visibility: visible;
}

.date-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-label {
    color: #d4a574;
    font-weight: 600;
}

.date-separator {
    color: rgba(255, 255, 255, 0.3);
}

.date-value {
    color: white;
}

.navbar-collapse {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
    margin: 0 40px;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.navbar-menu a {
    color: #143c3c;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.navbar.scrolled .navbar-menu a {
    color: white;
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: #d4a574;
    transition: width 0.3s ease;
}

.navbar-menu a:hover::after {
    width: 100%;
}

.navbar-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #143c3c;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.navbar.scrolled .navbar-toggle {
    color: white;
}

.btn-login {
    background-color: #d4a574;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background-color: #c9965f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 165, 116, 0.3);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    height: 100vh;
    background-image: url('../../img/landing_new/quran_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    /* Subtle background glow for better readability on busy backgrounds */
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 20px;
    border-radius: 10px;
}


/* ============================================
   BUTTONS
   ============================================ */

.btn-primary {
    background-color: #d4a574;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #c9965f;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 165, 116, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: #d4a574;
    border: 2px solid #d4a574;
    padding: 12px 35px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: #d4a574;
    color: white;
    transform: translateY(-3px);
}

/* ============================================
   SECTION STYLES
   ============================================ */

section {
    padding: 80px 0;
}

.section-label {
    display: inline-block;
    color: #d4a574;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    color: #1a1a1a;
    margin-bottom: 30px;
    line-height: 1.4;
}

.text-gold {
    color: #d4a574;
}

.section-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

.section-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.section-image:hover {
    transform: scale(1.05);
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
    background-color: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    order: 2;
}

.about-content {
    order: 1;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat {
    text-align: center;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.stat:hover {
    background-color: #e8e8e8;
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #d4a574;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features {
    background-color: #f5f5f5;
}

.features-header {
    text-align: center;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.feature-card {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    color: #1a1a1a;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.feature-card p {
    font-size: 0.95rem;
    color: #999;
}

.features-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   SUPPORT SECTION
   ============================================ */

.support {
    background-color: white;
}

.support-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.support-image {
    order: 1;
}

.support-content {
    order: 2;
}

.support-badge {
    display: inline-block;
    background-color: #d4a574;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.support-title {
    margin-bottom: 20px;
}

.support-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 40px;
}

.support-buttons {
    display: flex;
    gap: 20px;
}

.support-img {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 4px solid rgba(255, 255, 255, 0.1);
}

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

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: #143c3c;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: #d4a574;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.1);
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.awqaf-logo {
    height: 80px;
    width: auto;
    transition: all 0.3s ease;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

.awqaf-logo:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 8px 20px rgba(212, 165, 116, 0.3));
}

.payment-methods {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.payment-icon {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

.payment-icon:hover {
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .navbar-toggle {
        display: block;
    }

    .navbar-collapse {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 30px 20px;
        gap: 25px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        z-index: 999;
        max-height: 80vh;
        overflow-y: auto;
    }

    .navbar.scrolled .navbar-collapse {
        background-color: rgba(20, 60, 60, 0.98);
    }

    .navbar-collapse.active {
        display: flex;
    }

    .navbar-menu {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        align-items: center;
    }

    .navbar-menu a {
        color: #143c3c !important;
        font-size: 1.1rem;
        display: block;
        padding: 5px 0;
    }

    .navbar.scrolled .navbar-menu a {
        color: white !important;
    }

    .navbar-right {
        flex-direction: column;
        gap: 20px;
        width: 100%;
        align-items: center;
        padding-top: 20px;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .navbar.scrolled .navbar-right {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .lang-selector {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .btn-login {
        width: 100%;
        max-width: 250px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .about-grid,
    .features-grid,
    .support-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: 1;
    }

    .about-content {
        order: 2;
    }

    .support-image {
        order: 2;
    }

    .support-content {
        order: 1;
    }

    .features-list {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .support-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .date-widget {
        display: none;
    }

    .navbar-left {
        gap: 15px;
    }

    .navbar-logo {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    section {
        padding: 40px 0;
    }
}