/* ==========================================================================
   Design System & Variables
   ========================================================================== */
   :root {
    /* Colors - Premium Green and Gold palette */
    --primary-color: #1A5E40; /* Deep Green from logo */
    --primary-light: #2A7A55;
    --secondary-color: #D4AF37; /* Premium Gold from logo */
    --secondary-hover: #C39953;
    
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --text-light: #F8FAFC;
    
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    --bg-dark: #0F172A;
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.mt-4 { margin-top: 1.5rem; }
.text-center { text-align: center; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 50px; /* Pill shape for premium feel */
    cursor: pointer;
    transition: var(--transition-normal);
    font-family: var(--font-primary);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

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

.btn-outline {
    background-color: transparent;
    border-color: var(--bg-white);
    color: var(--bg-white);
}

.btn-outline:hover {
    background-color: var(--bg-white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

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

.navbar.navbar-solid {
    background-color: var(--primary-color);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
}

.navbar.scrolled .logo-text,
.navbar.scrolled .nav-links a {
    color: var(--primary-color);
}

.navbar.scrolled .mobile-menu-btn {
    color: var(--primary-color);
}

.logo-img {
    height: 120px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-normal);
}

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

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

.nav-links a {
    color: var(--bg-white);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

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

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

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

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-color: var(--primary-color);
    /* In the future, we will add a background image here */
    background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--bg-white);
    overflow: hidden;
}

/* Animated background shapes for dynamic feel */
.hero::before, .hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(246, 184, 70, 0.1) 0%, transparent 70%);
    z-index: 1;
}

.hero::before {
    width: 800px;
    height: 800px;
    top: -200px;
    right: -200px;
    animation: pulse 10s infinite alternate;
}

.hero::after {
    width: 600px;
    height: 600px;
    bottom: -100px;
    left: -100px;
    animation: pulse 8s infinite alternate-reverse;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 1; }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 37, 64, 0.4);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
    animation: fadeUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-title .highlight {
    color: var(--secondary-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-inline: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

.scroll-down a {
    color: var(--bg-white);
    font-size: 1.5rem;
    opacity: 0.7;
}

.scroll-down a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}

/* ==========================================================================
   Sections General
   ========================================================================== */
.section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.divider {
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

.section-description {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.about-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    /* Removed aspect-ratio: 4/3 to allow vertical images to display fully */
    background-color: #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain; /* Ensures the whole image is visible */
}

.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #94A3B8;
    gap: 1rem;
}

/* ==========================================================================
   Members Section
   ========================================================================== */
.section-alt {
    background-color: var(--bg-white);
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.member-card {
    background: var(--bg-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    text-align: center;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.member-image {
    width: 100%;
    aspect-ratio: 1;
    background-color: #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info {
    padding: 1.5rem;
}

.member-name {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.member-role {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   Contact Form Styles
   ========================================================================== */
.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(26, 94, 64, 0.1);
}

.phone-input-wrapper {
    position: relative;
}

.phone-input-icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    font-size: 1rem;
    pointer-events: none;
}

.phone-input-wrapper input {
    padding: 0.85rem 1.2rem 0.85rem 2.8rem;
}

body.rtl .phone-input-icon {
    left: auto;
    right: 1.1rem;
}

body.rtl .phone-input-wrapper input {
    padding: 0.85rem 2.8rem 0.85rem 1.2rem;
}


/* ==========================================================================
   Other Members List
   ========================================================================== */
.other-members-list {
    columns: 2;
    column-gap: 3rem;
    padding-left: 1.5rem;
    line-height: 2.5;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.other-members-list li {
    break-inside: avoid-column;
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

body.rtl .other-members-list {
    padding-left: 0;
    padding-right: 2rem;
}

body.rtl .other-members-list li {
    padding-left: 0;
    padding-right: 0.5rem;
}

/* ==========================================================================
   Page Headers and Custom Layout Cards
   ========================================================================== */
.page-header {
    padding-top: 150px;
    padding-bottom: 50px;
    background-color: var(--bg-light);
    text-align: center;
}

.contact-form-card {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.members-list-card {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    max-width: 800px;
    margin: 0 auto;
}

.navbar.scrolled .logo-img {
    height: 60px !important;
}

.navbar-solid .logo-img {
    height: 75px;
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    .page-header {
        padding-top: 110px;
        padding-bottom: 35px;
    }

    .contact-form-card,
    .members-list-card {
        padding: 1.5rem;
    }

    .navbar {
        padding: 0.8rem 0;
    }
    
    .navbar.scrolled {
        padding: 0.5rem 0;
    }

    .logo-img {
        height: 60px !important;
    }

    .other-members-list {
        columns: 1;
        column-gap: 0;
    }

    /* Mobile drawer navigation links */
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background-color: var(--primary-color);
        padding: 6rem 2rem 2rem;
        gap: 1.2rem;
        /* GPU-accelerated: transform is composited, no layout recalc */
        transform: translateX(100%);
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.18);
        z-index: 999;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    body.rtl .nav-links {
        right: auto;
        left: 0;
        transform: translateX(-100%);
        box-shadow: 5px 0 20px rgba(0, 0, 0, 0.18);
    }

    body.rtl .nav-links.active {
        transform: translateX(0);
    }

    /* Overlay backdrop for tap-to-close */
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 998;
        opacity: 0;
        transition: opacity 0.28s ease;
    }
    .nav-overlay.active {
        display: block;
        opacity: 1;
    }

    .nav-links a {
        font-size: 1.1rem;
        color: var(--bg-white);
        display: block;
        width: 100%;
        padding: 0.55rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .nav-links a::after {
        display: none;
    }
    
    /* Keep "Donate Now" button on mobile */
    .nav-actions .btn {
        display: inline-flex;
        padding: 0.45rem 1rem;
        font-size: 0.85rem;
        margin-right: 0.25rem;
    }
    
    body.rtl .nav-actions .btn {
        margin-right: 0;
        margin-left: 0.25rem;
    }

    .nav-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 0.5rem;
    }

    .mobile-menu-btn {
        display: block;
        position: relative;
        z-index: 1001;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 50px !important;
    }
    
    .nav-actions .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    #lang-toggle span {
        display: none; /* Hide language code text to save space */
    }
}

/* ==========================================================================
   Language & RTL Support
   ========================================================================== */
.btn-icon {
    background: transparent;
    border: 1px solid var(--bg-white);
    color: var(--bg-white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

.navbar.scrolled .btn-icon {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.navbar.scrolled .btn-icon:hover {
    background: rgba(10, 37, 64, 0.05);
}

/* Right-to-Left (RTL) adjustments for Urdu */
body.rtl {
    direction: rtl;
    text-align: right;
    font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', serif;
    font-size: 1.1rem;
    line-height: 2.2;
}

body.rtl h1, body.rtl h2, body.rtl h3, body.rtl h4, body.rtl h5, body.rtl h6,
body.rtl .btn, body.rtl .nav-links a {
    font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', serif;
    font-weight: 700;
}

@media (min-width: 769px) {
    body.rtl .nav-links {
        flex-direction: row-reverse;
    }
}

body.rtl .hero-title,
body.rtl .hero-subtitle {
    text-align: right;
}

body.rtl .btn i {
    margin-left: 0.5rem;
    margin-right: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.9);
    padding: 2.5rem 1.5rem;
    text-align: center;
    border-top: 4px solid var(--secondary-color);
    font-family: var(--font-heading);
    font-size: 0.95rem;
}
.site-footer p {
    margin: 0;
    line-height: 1.6;
}
.site-footer a {
    color: var(--secondary-color);
    font-weight: 600;
    transition: var(--transition-fast);
}
.site-footer a:hover {
    color: var(--text-light);
    text-decoration: underline;
}
@media (max-width: 768px) {
    .site-footer {
        font-size: 0.85rem;
        padding: 2rem 1rem;
    }
}

