/* =============================================
   ZIMANGO - Main Stylesheet
   v.1.0.0
   ============================================= */
:root {
    --primary-gold: #a97d36;
    --gold-light: #d9b36a;
    --gold-dark: #6e4b1f;
    --obsidian: #0b0d10;
    --stone-dark: #15100c;
    --text-light: #f0e6d2;
    --text-secondary: #e6d7b3;
    --gradient-primary: linear-gradient(135deg, var(--primary-gold), var(--gold-light));
    --gradient-dark: linear-gradient(180deg, var(--obsidian), var(--stone-dark));
    --shadow-gold: rgba(169, 125, 54, 0.3);
    --border-gold: rgba(214, 183, 112, 0.6);
    --overhang: clamp(400px, 14svh, 200px);
}

/* tablets */
@media (max-width: 900px) {
    :root {
        --overhang: clamp(700px, 18svh, 260px);
    }
}

/* phones */
@media (max-width: 600px) {
    :root {
        --overhang: clamp(800px, 24svh, 320px);
    }
}

/* tiny phones */
@media (max-width: 380px) {
    :root {
        --overhang: clamp(800px, 28svh, 380px);
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gradient-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Kurdish/Arabic text support */
.rtl-text {
    font-family: 'Noto Sans Arabic', 'Inter', sans-serif;
    direction: rtl;
    text-align: right;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(11, 13, 16, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-gold);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(11, 13, 16, 0.98);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-light);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--obsidian);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link:hover {
    color: var(--gold-light);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
}

.language-selector {
    position: relative;
}

.language-btn {
    background: rgba(169, 125, 54, 0.1);
    border: 1px solid var(--border-gold);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.language-btn:hover {
    background: rgba(169, 125, 54, 0.2);
    border-color: var(--primary-gold);
}

/* Mobile menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    /* card sits at the bottom of the hero */
    justify-content: center;
    padding: 6rem 2rem 0;
    /* top padding for fixed header overlap */
    overflow: visible;
    /* ⬅️ allow the card to hang out of the hero */
}


.heroContent {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    min-height: auto;
    z-index: 2;
    width: min(800px, 100%);

    /* Make the card hang below the hero */
    margin-bottom: calc(var(--overhang) * -1);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(11, 13, 16, 0.4),
            rgba(11, 13, 16, 0.6));
}

.kurdish-map-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.kurdish-map-frame {
    width: 100%;
    height: 100%;
    border: none;
    opacity: 0.8;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
    background: rgba(11, 13, 16, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid var(--border-gold);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.7;
}

/* Download Buttons */
.download-section {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: var(--obsidian);
    text-decoration: none;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-gold);
    box-shadow: 0 8px 32px var(--shadow-gold);
    min-width: 200px;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px var(--shadow-gold);
    filter: brightness(1.1);
}

.download-btn:active {
    transform: translateY(0);
}

.download-icon {
    width: 24px;
    height: 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-gold);
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-light);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}


.features-preview {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    margin-top: 0;
    /* remove the 30rem hack */
    padding-top: calc(var(--overhang) + 2rem);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.feature-card {
    background: rgba(21, 16, 12, 0.8);
    border: 1px solid var(--border-gold);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-gold);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gold-light);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--stone-dark);
    border-top: 1px solid var(--border-gold);
    padding: 3rem 2rem 1rem;
    margin-top: 6rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--gold-light);
}

.footer-bottom {
    border-top: 1px solid var(--border-gold);
    padding-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-content {
        margin: 1rem;
        padding: 1.5rem;
    }

    .download-section {
        flex-direction: column;
        align-items: center;
    }

    .download-btn {
        width: 100%;
        max-width: 280px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .nav-container {
        padding: 1rem;
    }
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Scroll Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}