@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700;900&family=Vazirmatn:wght@100;400;700&display=swap');

:root {
    --primary: #c5a059; /* Gold/Saffron */
    --primary-light: #e0c085;
    --background: #0a0a0a;
    --surface: #121212;
    --text: #ffffff;
    --text-muted: #a0a0a0;
    --accent: #ff4d4d; /* For urgent calls to action */
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

body {
    font-family: 'Vazirmatn', 'Montserrat', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', 'Vazirmatn', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Base Styles */
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Header */
header {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(10,10,10,1)), url('images/hero.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
    transform: scale(1.1);
    animation: zoomOut 20s infinite alternate linear;
}

@keyframes zoomOut {
    from { transform: scale(1.1); }
    to { transform: scale(1); }
}

.hero-content {
    text-align: center;
    max-width: 800px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.5s forwards 0.5s;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--text), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 4px 10px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 300;
}

/* Nav */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--primary);
    letter-spacing: 1px;
}

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

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary);
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #000;
}

/* Mission Section */
.section {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header .line {
    width: 50px;
    height: 3px;
    background: var(--primary);
    margin: 0 auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--surface);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.card h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* Donation Section */
.donation-box {
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    padding: 4rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.donation-box::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.1) 0%, transparent 60%);
    z-index: 0;
}

.donation-content {
    position: relative;
    z-index: 1;
}

.donation-options {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.donate-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    padding: 1rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
}

.donate-btn:hover, .donate-btn.active {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

/* Footer */
footer {
    padding: 4rem 0;
    background: #050505;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 1rem;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.social-link {
    font-size: 1.5rem;
    opacity: 0.6;
}

.social-link:hover {
    opacity: 1;
    color: var(--primary);
}

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

/* RTI Content */
[dir="rtl"] {
    font-family: 'Vazirmatn', sans-serif;
}

.rtl-text {
    direction: rtl;
    text-align: right;
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: var(--surface);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s ease;
        z-index: 999;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        display: flex;
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }

    .section {
        padding: 4rem 0;
    }

    .grid-split {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .donation-box {
        padding: 2rem 1rem;
    }
}
