:root {
    /* Refined Color Palette */
    --primary: #008080; /* Elegant Teal */
    --primary-light: #00a3a3;
    --primary-dark: #006666;
    --secondary: #001529; /* Deeper Navy */
    --accent: #d4af37; /* Subtle Gold for accents */
    
    --surface: #ffffff;
    --background: #fdfdf5; /* Warmer, softer beige */
    --light-bg: #f8f8f0;
    
    --text-main: #1a202c;
    --text-muted: #4a5568;
    --text-light: #718096;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Borders */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --container-width: 1200px;
    
    /* Effects */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px rgba(0, 21, 41, 0.08);
    --shadow-lg: 0 20px 50px rgba(0, 21, 41, 0.12);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --glass: rgba(255, 255, 255, 0.85);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-main);
    background-color: var(--background);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* RTL Support */
html[dir="rtl"] {
    text-align: right;
}

html[dir="rtl"] .nav-links a::after {
    left: auto;
    right: 0;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--secondary);
    line-height: 1.25;
    font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); }
h3 { font-size: 1.75rem; }

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Navigation */
header {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

.logo img {
    height: 65px;
    transition: transform 0.5s var(--transition);
}

.logo img:hover {
    transform: rotate(-2deg) scale(1.05);
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.btn-donate {
    background: var(--primary);
    color: white !important;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 128, 128, 0.3);
}

.btn-donate:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 128, 128, 0.4);
}

/* Hero Section */
.hero {
    height: 90vh;
    background: linear-gradient(135deg, rgba(0, 21, 41, 0.9), rgba(0, 128, 128, 0.4)), url('../images/hero_bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 80px;
}

.hero-content {
    max-width: 900px;
    padding: 0 2rem;
}

.hero-content h1 {
    color: white;
    margin-bottom: 2rem;
    letter-spacing: -1px;
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    font-weight: 300;
    line-height: 1.8;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
    margin-left: 1rem;
}

.btn-secondary:hover {
    background: white;
    color: var(--secondary);
}

/* Sections */
section {
    padding: 8rem 0;
}

.bg-light { background-color: var(--light-bg); }

.section-title {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

/* Cards System */
.card {
    background: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0, 21, 41, 0.05);
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}

.card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.8s var(--transition);
}

.card:hover img {
    transform: scale(1.08);
}

.card-body {
    padding: 2.25rem;
}

.card-body h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.team-card {
    background: var(--surface);
    padding: 3rem 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-md);
    border-top: 5px solid var(--primary);
}

.member-avatar {
    width: 110px;
    height: 110px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: white;
    font-family: var(--font-heading);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.team-card .role {
    display: block;
    margin-top: 0.5rem;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Form Styles */
input, textarea, select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background: #f8fafc;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 128, 128, 0.1);
}

label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--secondary);
}

/* Footer */
footer {
    background: var(--secondary);
    color: white;
    padding-top: 6rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
}

.footer-col h3 {
    color: var(--primary-light);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.footer-bottom {
    margin-top: 6rem;
    padding: 2rem 0;
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 3rem 2rem;
        flex-direction: column;
        gap: 2rem;
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active { display: flex; }

    .menu-toggle {
        display: block;
        font-size: 1.8rem;
        color: var(--secondary);
        cursor: pointer;
    }

    section { padding: 5rem 0; }
    
    .hero-content h1 { font-size: 2.75rem; }
    
    .btn-secondary {
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
    }
}
