/* 
  Masjid Ghous-e-Azam | Al-Madina Inc. 
  Premium Design System
*/

:root {
    --primary-color: #0A2A1E; /* Deep Emerald */
    --accent-color: #C5A365; /* Elegant Gold */
    --accent-hover: #D8B77A; /* Lighter Gold */
    --text-main: #333333;
    --text-light: #666666;
    --bg-main: #F9F9FA; /* Off White */
    --bg-white: #FFFFFF;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 35px rgba(10, 42, 30, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

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

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

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

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

/* Typography Elements */
.section-title {
    margin-bottom: 4rem;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.15rem;
    letter-spacing: 0.5px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition-fast);
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--bg-white);
    border: 2px solid var(--accent-color);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    background-color: transparent;
    z-index: 1000;
    transition: var(--transition-fast);
}

.navbar.scrolled {
    background-color: var(--primary-color);
    padding: 1rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.logo {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--bg-white);
    letter-spacing: 0.5px;
}

.logo-sub {
    font-size: 0.85rem;
    color: var(--accent-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 2px;
}

.mobile-menu-btn {
    display: none;
    color: var(--bg-white);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1001;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--bg-white);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background: url('hero-image.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient overlay for premium feel */
    background: linear-gradient(135deg, rgba(10, 42, 30, 0.95) 0%, rgba(10, 42, 30, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--bg-white);
    animation: fadeIn 1.5s ease-out;
}

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

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 2px 4px 8px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-inline: auto;
    color: #f0f0f0;
    font-weight: 300;
}

/* About Section */
.about-section {
    padding: 7rem 0;
    background-color: var(--bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.about-text p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.9;
}

.mission-box {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 4rem 3.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

/* Decorative element inside mission box */
.mission-box::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(197, 163, 101, 0.1); /* Subtle gold */
}

.mission-icon {
    font-size: 2.8rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.mission-box h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    color: var(--accent-color);
}

.mission-box p {
    line-height: 1.9;
    color: #e5e5e5;
    font-weight: 300;
    font-size: 1.05rem;
}

/* Prayer Times */
.prayer-section {
    padding: 7rem 0;
    background-color: var(--bg-main);
}

.prayer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    max-width: 950px;
    margin: 0 auto;
}

.prayer-card {
    background: var(--bg-white);
    padding: 3.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border-top: 5px solid var(--primary-color);
    transition: var(--transition-slow);
}

.prayer-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-top: 5px solid var(--accent-color);
}

.prayer-card h3 {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 1.5rem;
}

.prayer-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
    font-size: 1.15rem;
}

.prayer-list li:last-child {
    border-bottom: none;
}

.prayer-list li span:first-child {
    font-weight: 500;
    color: var(--text-main);
}

.prayer-list li span:last-child {
    color: var(--accent-color);
    font-weight: 600;
    background: rgba(197, 163, 101, 0.1);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 1.05rem;
}

/* Programs */
.programs-section {
    padding: 7rem 0;
    background-color: var(--bg-white);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.program-card {
    background: var(--bg-main);
    padding: 3.5rem 2.5rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition-slow);
    border: 1px solid rgba(0,0,0,0.02);
}

.program-card:hover {
    background: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.program-icon {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    transition: var(--transition-fast);
}

.program-card h3 {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

.program-card:hover .program-icon,
.program-card:hover h3 {
    color: var(--accent-color);
}

.program-card ul li {
    margin-bottom: 1.8rem;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    transition: var(--transition-fast);
}

.program-card:hover ul li {
    color: #d0d0d0;
}

.program-card ul li strong {
    display: block;
    color: var(--text-main);
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
    transition: var(--transition-fast);
}

.program-card:hover ul li strong {
    color: var(--bg-white);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 6rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    margin-bottom: 4rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent-color);
    display: inline-block;
    margin-bottom: 1.5rem;
}

.org-name {
    color: #c0c0c0;
    line-height: 1.9;
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}

.org-name strong {
    color: var(--bg-white);
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255,255,255,0.05);
    border-radius: 50%;
    color: var(--accent-color);
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-contact h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    color: #c0c0c0;
    line-height: 1.6;
}

.contact-list li i {
    color: var(--accent-color);
    margin-top: 4px;
    font-size: 1.2rem;
}

.contact-list li strong {
    color: var(--bg-white);
    display: block;
    margin-bottom: 0.2rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #888;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-grid, .footer-grid {
        gap: 3rem;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 900px) {
    .about-grid, .prayer-grid, .programs-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .mission-box {
        order: -1; /* Brings mission box to top on mobile */
    }

    .hero-content h1 {
        font-size: 3rem;
    }
    
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: right 0.4s ease;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 600px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .about-section, .prayer-section, .programs-section, .footer {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    .prayer-card, .program-card {
        padding: 2rem 1.5rem;
    }
    
    .mission-box {
        padding: 3rem 1.5rem;
    }
}
