/* Modern 2025 Website Design for Qahveen */

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Modern Color System */
:root {
    /* Primary Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --bg-glass: rgba(255, 255, 255, 0.05);
    --bg-glass-hover: rgba(255, 255, 255, 0.08);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    /* Accent Colors */
    --accent-primary: #f59e0b;
    --accent-secondary: #d97706;
    --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    
    /* Coffee Theme */
    --coffee-primary: #8b4513;
    --coffee-secondary: #a0522d;
    --coffee-light: #cd853f;
    
    /* Gold and Dark Colors */
    --gold: #b8860b;
    --coffee-gold: #d4af37;
    --dark: #0a0a0a;
    
    /* Borders & Shadows */
    --border-glass: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(245, 158, 11, 0.3);
}

/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Modern Typography Scale */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

/* Glass Morphism Components */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
}

.glass-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-hover:hover {
    background: var(--bg-glass-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* Modern Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.03em;
    transition: all 0.3s ease;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-logo:hover {
    color: var(--accent-primary);
    transform: translateY(-1px);
}

.nav-logo img {
    height: 32px;
    width: auto;
}

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

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

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--dark-primary) 0%, var(--dark-secondary) 100%);
    overflow: hidden;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 100vh;
}

.hero-content {
    z-index: 2;
    max-width: 600px;
}

.hero-image {
    position: relative;
    height: 80vh;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent-primary);
    margin-bottom: 2rem;
    backdrop-filter: blur(20px);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-container {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        gap: 2rem;
        padding: 2rem 1rem;
        text-align: center;
        min-height: auto !important;
    }
    
    .hero-image {
        height: auto !important;
        order: 2 !important;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .hero-content {
        order: 1 !important;
        max-width: 100%;
        width: 100%;
    }
}
}

/* Official Download Button Images */
.download-btn {
    display: inline-block;
    margin: 0 8px;
    transition: transform 0.2s ease;
}

.download-btn:hover {
    transform: scale(1.05);
}

.download-btn img {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(20px);
}

.btn-secondary:hover {
    background: var(--bg-glass-hover);
    transform: translateY(-2px);
}

/* Section Layouts */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-alt {
    background: var(--bg-secondary);
}

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

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

.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    backdrop-filter: blur(20px);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-primary);
    max-width: 600px;
    margin: 0 auto;
}

/* Feature Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    background: var(--bg-glass-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.feature-icon i {
    color: var(--bg-primary);
    font-size: 1.25rem;
    font-weight: 600;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

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

/* Steps Section */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.step-card {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-glow);
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

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

/* Video Section */
.video-container {
    position: relative;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16/9;
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
}

.video-placeholder {
    text-align: center;
    padding: 3rem;
}

.play-button {
    width: 80px;
    height: 80px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glow);
}

.play-button:hover {
    transform: scale(1.1);
}

.play-button::after {
    content: '▶';
    color: white;
    font-size: 1.5rem;
    margin-left: 4px;
}

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

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

.footer-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

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

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Image Styles */
img {
    opacity: 1 !important;
    visibility: visible !important;
    max-width: 100%;
    height: auto;
}

.content-image {
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    margin: 2rem 0;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.coffee-gold {
    background: linear-gradient(135deg, var(--coffee-gold) 0%, #f4d03f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }


/* News-style Article Layout with Modern Design */
.news-article {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin: 4rem 0;
    padding: 3rem 0;
    position: relative;
}

.news-article-reverse {
    flex-direction: row-reverse;
}

/* Varied Layout Styles */
.news-article:nth-child(odd) {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
    border-radius: 20px;
    padding: 3rem 2rem;
}

.news-article:nth-child(even) {
    background: linear-gradient(-135deg, rgba(0, 0, 0, 0.1) 0%, transparent 50%);
    border-radius: 20px;
    padding: 3rem 2rem;
}

.article-content {
    flex: 1;
    max-width: 55%;
    z-index: 2;
}

.article-image {
    flex: 1;
    max-width: 45%;
    position: relative;
}

/* Modern Typography */
.article-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold) 0%, #f4d03f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.2rem;
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.article-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
    text-align: justify;
    font-weight: 400;
    margin-bottom: 0.8rem;
}

/* Enhanced Image Styling with Varied Positioning */
.news-article .content-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease;
    position: relative;
}

.news-article:nth-child(2) .content-image {
    transform: rotate(-2deg);
    border-radius: 25px;
}

.news-article:nth-child(3) .content-image {
    transform: rotate(1deg);
    border-radius: 15px 25px 15px 25px;
}

.news-article:nth-child(4) .content-image {
    transform: rotate(-1deg);
    border-radius: 30px 10px 30px 10px;
}

.news-article:nth-child(5) .content-image {
    transform: rotate(1.5deg);
    border-radius: 20px;
}

.news-article .content-image:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 80px rgba(212, 175, 55, 0.3);
}

.news-article:nth-child(2) .content-image:hover {
    transform: translateY(-10px) scale(1.02) rotate(0deg);
}

.news-article:nth-child(3) .content-image:hover {
    transform: translateY(-10px) scale(1.02) rotate(0deg);
}

.news-article:nth-child(4) .content-image:hover {
    transform: translateY(-10px) scale(1.02) rotate(0deg);
}

.news-article:nth-child(5) .content-image:hover {
    transform: translateY(-10px) scale(1.02) rotate(0deg);
}

/* Decorative Elements */
.news-article::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    border-radius: 25px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-article:hover::before {
    opacity: 1;
}

/* Responsive design for news articles */
@media (max-width: 768px) {
    .news-article,
    .news-article-reverse {
        flex-direction: column;
        gap: 2rem;
        margin: 2.5rem 0;
        padding: 2rem 1rem;
    }
    
    .article-content,
    .article-image {
        max-width: 100%;
    }
    
    .article-title {
        font-size: 1.6rem;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .article-text {
        font-size: 0.95rem;
        text-align: left;
    }
    
    .paragraph-title {
        font-size: 1rem;
        text-align: center;
        margin: 1rem 0 0.5rem 0;
    }
    
    .news-article .content-image {
        height: 250px;
        transform: none !important;
        border-radius: 15px !important;
    }
    
    .news-article .content-image:hover {
        transform: translateY(-5px) scale(1.01) !important;
    }
}


/* Paragraph Title Styling */
.paragraph-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold);
    margin: 1.5rem 0 0.5rem 0;
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.paragraph-title:first-of-type {
    margin-top: 0;
}


/* Feature Highlights Redesign */
.features-highlight {
    margin: 3rem 0;
}

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

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(0, 0, 0, 0.3));
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.highlight-item:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.highlight-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gold), #f4d03f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--dark);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.highlight-content {
    flex: 1;
}

.highlight-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gold);
    margin: 0 0 0.5rem 0;
    font-family: 'Space Grotesk', sans-serif;
}

.highlight-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .highlight-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .highlight-item {
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .highlight-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .highlight-title {
        font-size: 1.1rem;
    }
    
    .highlight-text {
        font-size: 0.9rem;
    }
}


/* Language Selector */
.language-selector {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    font-size: 0.875rem;
    font-weight: 500;
}

.language-btn:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
    border-color: var(--gold);
}

.language-btn.active {
    background: var(--gold);
    color: var(--dark);
    border-color: var(--gold);
}

.flag-icon {
    width: 16px;
    height: 12px;
    border-radius: 2px;
}

/* RTL Support for Persian and Arabic */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .nav-menu {
    flex-direction: row-reverse;
}

[dir="rtl"] .language-selector {
    margin-left: 0;
    margin-right: 1rem;
}

/* Default LTR Hero Section - Text LEFT, Image RIGHT for English */
.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    flex: 1;
    order: 1;
}

.hero-image {
    flex: 1;
    order: 2;
}

/* RTL Hero Section - Image LEFT, Text RIGHT for Persian and Arabic */
[dir="rtl"] .hero-content {
    order: 2 !important;
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .hero-image {
    order: 1 !important;
}

[dir="rtl"] .hero-buttons {
    justify-content: flex-end;
    direction: rtl;
}

/* RTL News Articles */
[dir="rtl"] .news-article {
    flex-direction: row;
}

[dir="rtl"] .news-article-reverse {
    flex-direction: row-reverse;
}

[dir="rtl"] .article-content {
    text-align: right;
}

[dir="rtl"] .highlight-item {
    flex-direction: row-reverse;
}

/* Persian Font Support */
[dir="rtl"][lang="fa"] body {
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
}

[dir="rtl"][lang="fa"] h1, [dir="rtl"][lang="fa"] h2, [dir="rtl"][lang="fa"] h3, [dir="rtl"][lang="fa"] h4, [dir="rtl"][lang="fa"] h5, [dir="rtl"][lang="fa"] h6 {
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
}

/* Arabic Font Support */
[dir="rtl"][lang="ar"] body {
    font-family: 'Noto Sans Arabic', 'Arial', sans-serif;
}

[dir="rtl"][lang="ar"] h1, [dir="rtl"][lang="ar"] h2, [dir="rtl"][lang="ar"] h3, [dir="rtl"][lang="ar"] h4, [dir="rtl"][lang="ar"] h5, [dir="rtl"][lang="ar"] h6 {
    font-family: 'Noto Sans Arabic', 'Arial', sans-serif;
}

/* General RTL font fallback for both Persian and Arabic */
[dir="rtl"]:not([lang="fa"]):not([lang="ar"]) body {
    font-family: 'Vazirmatn', 'Noto Sans Arabic', 'Tahoma', 'Arial', sans-serif;
}

[dir="rtl"]:not([lang="fa"]):not([lang="ar"]) h1, [dir="rtl"]:not([lang="fa"]):not([lang="ar"]) h2, [dir="rtl"]:not([lang="fa"]):not([lang="ar"]) h3, [dir="rtl"]:not([lang="fa"]):not([lang="ar"]) h4, [dir="rtl"]:not([lang="fa"]):not([lang="ar"]) h5, [dir="rtl"]:not([lang="fa"]):not([lang="ar"]) h6 {
    font-family: 'Vazirmatn', 'Noto Sans Arabic', 'Tahoma', 'Arial', sans-serif;
}

@media (max-width: 768px) {
    .language-selector {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    [dir="rtl"] .language-selector {
        margin-right: 0;
        margin-top: 1rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}



/* ========================================
   MOBILE RESPONSIVE IMPROVEMENTS
   ======================================== */

/* Mobile Navigation Improvements */
@media (max-width: 768px) {
    /* Navigation Mobile Fixes - Prevent Overlap */
    .navbar {
        position: relative !important;
        padding: 1rem;
        height: auto;
        min-height: auto;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border-glass);
    }
    
    .nav-container {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
    
    .nav-brand {
        width: 100%;
        justify-content: center;
        margin-bottom: 0.5rem;
    }
    
    .nav-brand .logo {
        font-size: 1.5rem;
    }
    
    .nav-menu {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        width: 100%;
        justify-content: center;
    }
    
    .nav-menu a {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        border-radius: 6px;
        background: var(--bg-glass);
        border: 1px solid var(--border-glass);
        transition: all 0.3s ease;
        white-space: nowrap;
    }
    
    .nav-menu a:hover {
        background: var(--bg-glass-hover);
        transform: none;
    }
    
    /* Language Switcher Mobile */
    .language-switcher {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }
    
    .language-switcher button {
        min-width: 40px;
        min-height: 40px;
        font-size: 0.8rem;
        padding: 0.4rem;
    }
    
    /* Hero Section Mobile Improvements - Fix Layout */
    .hero {
        padding: 2rem 0 4rem !important;
        min-height: auto;
    }
    
    .hero-content {
        display: flex !important;
        flex-direction: column !important;
        text-align: center;
        gap: 2rem;
        align-items: center;
    }
    
    .hero-text {
        order: 1;
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }
    
    .hero-image {
        order: 2;
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }
    
    .hero-image img {
        width: 100%;
        height: auto;
        max-width: 300px;
        margin: 0 auto;
        display: block;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem) !important;
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 2rem;
    }
    
    /* Download Buttons Mobile */
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .hero-buttons .btn {
        width: 100%;
        min-height: 50px;
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
        justify-content: center;
        border-radius: 12px;
    }
    
    .hero-buttons .btn i {
        margin-right: 0.5rem;
    }
    
    /* Coffee Cup Reading Gold Text Mobile */
    .coffee-gold {
        font-size: inherit;
        line-height: inherit;
    }
    
    /* Section Headers Mobile */
    .section-header {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .section-badge {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
        line-height: 1.6;
        max-width: 100%;
    }
    
    /* Container Mobile */
    .container {
        padding: 0 1rem;
        max-width: 100%;
    }
    
    /* Section Spacing Mobile */
    .section {
        padding: 3rem 0;
    }
    
    /* News Articles Mobile */
    .news-article {
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .article-content {
        order: 1;
        text-align: center;
    }
    
    .article-image {
        order: 2;
        max-width: 100%;
    }
    
    .article-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .paragraph-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .article-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    /* Features Grid Mobile */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
        text-align: center;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        margin: 0 auto 1rem;
    }
    
    .feature-title {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .feature-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* Steps Mobile */
    .steps-container {
        gap: 2rem;
    }
    
    /* Highlight Grid Mobile */
    .highlight-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .highlight-item {
        padding: 1rem;
        text-align: center;
    }
    
    .highlight-icon {
        margin: 0 auto 0.75rem;
    }
    
    .highlight-title {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    .highlight-text {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    /* Video Section Mobile */
    .video-container {
        max-width: 100%;
        margin: 2rem auto;
    }
    
    .video-placeholder {
        height: 200px;
        border-radius: 12px;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 2rem 0;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Touch Improvements */
    button, .btn, a {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Prevent horizontal scroll */
    body, html {
        overflow-x: hidden;
    }
    
    /* Improve text readability */
    p, .article-text, .feature-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    /* Mobile-specific animations */
    .scroll-animate {
        animation-duration: 0.6s;
    }
}

/* Small Mobile Devices (iPhone SE, etc.) */
@media (max-width: 375px) {
    .hero-title {
        font-size: clamp(1.5rem, 7vw, 2rem) !important;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-buttons .btn {
        font-size: 0.85rem;
        padding: 0.65rem 1rem;
    }
    
    .section-title {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
    }
}

/* Tablet Portrait */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: clamp(2.2rem, 6vw, 3rem);
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        flex: 1;
        max-width: 200px;
    }
}


/* Video Section Styles */
.video-container {
    max-width: 900px;
    margin: 0 auto;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

/* Video Section Mobile Responsiveness */
@media (max-width: 768px) {
    .video-container {
        padding: 0 1rem;
        max-width: 100%;
    }
    
    .video-wrapper {
        border-radius: 16px;
    }
    
    .video-wrapper iframe {
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .video-wrapper {
        border-radius: 12px;
    }
    
    .video-wrapper iframe {
        border-radius: 12px;
    }
}

