/* =========================================
   CSS Reset and Variables
   ========================================= */
:root {
    --bg-dark: #0a0a0c;
    --bg-card: #141417;
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1aa;
    --accent-red: #e11d48;
    --accent-green: #10b981;
    --glass-bg: rgba(20, 20, 23, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* =========================================
   Navigation
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
}

.flag-colors {
    position: relative;
    width: 24px;
    height: 16px;
    display: flex;
    flex-direction: column;
    border-radius: 2px;
    overflow: hidden;
}

.flag-colors .black { background: #000; flex: 1; }
.flag-colors .white { background: #fff; flex: 1; }
.flag-colors .green { background: #007a3d; flex: 1; }
.flag-colors .red-triangle {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 10px solid #ce1126;
}

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

.nav-links a:not(.btn-primary-outline) {
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: var(--transition);
    font-weight: 500;
}

.nav-links a:not(.btn-primary-outline):hover {
    color: white;
}

.lang-selector {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    outline: none;
}
.lang-selector option {
    background: var(--bg-dark);
    color: white;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: var(--text-primary);
    color: var(--bg-dark);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary:hover {
    background: transparent;
    color: white;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.btn-primary-outline {
    display: inline-block;
    background: transparent;
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary-outline:hover {
    background: white;
    color: var(--bg-dark);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('img/war_torn_road_1776876267988.png');
    background-size: cover;
    background-position: center;
    padding: 0 1rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10,10,12,0.8) 0%, rgba(10,10,12,0.95) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero-content h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   Reality Section
   ========================================= */
.reality-section {
    padding: 8rem 0;
    background: var(--bg-dark);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    font-size: 1.1rem;
}

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

.reality-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
}

.reality-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.card-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.reality-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 2rem;
}

.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: white;
}

.card-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* =========================================
   Donate Section
   ========================================= */
.donate-section {
    padding: 8rem 0;
    background: radial-gradient(circle at center, #1a1a24 0%, var(--bg-dark) 100%);
    border-top: 1px solid var(--glass-border);
}

.donate-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.donate-text {
    max-width: 700px;
    text-align: center;
}

.donate-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.donate-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.crypto-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: left;
    position: relative;
}

.crypto-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
}

.sol-logo {
    width: 32px;
    height: 32px;
}

.crypto-address-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

code {
    font-family: monospace;
    font-size: 1.1rem;
    color: var(--accent-green);
    word-break: break-all;
}

.copy-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    padding: 0.5rem;
    border-radius: 8px;
}

.copy-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.copy-feedback {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-green);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.copy-feedback.show {
    opacity: 1;
}

/* =========================================
   Footer
   ========================================= */
footer {
    padding: 2rem 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    background: var(--bg-dark);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
}

footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* =========================================
   RTL (Right-to-Left) for Arabic
   ========================================= */
html[dir="rtl"] {
    direction: rtl;
    text-align: right;
}
html[dir="rtl"] .crypto-header {
    flex-direction: row-reverse;
}
html[dir="rtl"] .crypto-address-container {
    flex-direction: row-reverse;
}
html[dir="rtl"] .logo {
    flex-direction: row-reverse;
}
html[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .crypto-address-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
