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

/* Root Variables */
:root {
    --primary-color: #0c5a3e;      /* Saudi Green */
    --secondary-color: #d4af37;    /* Gold */
    --accent-color: #8b4513;       /* Desert Brown */
    --text-primary: #333;
    --text-secondary: #666;
    --text-light: #fff;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-white);
    transition: var(--transition);
}

/* Arabic Font Support */
html[lang="ar"] {
    font-family: 'Amiri', serif;
    direction: rtl;
}

html[lang="ar"] * {
    text-align: right;
}

/* Language Toggle */
.language-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 5px;
    background: var(--bg-white);
    border-radius: 25px;
    padding: 5px;
    box-shadow: var(--shadow);
}

html[lang="ar"] .language-toggle {
    right: auto;
    left: 20px;
}

.lang-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 14px;
}

.lang-btn.active {
    background: var(--primary-color);
    color: var(--text-light);
}

.lang-btn:hover {
    background: var(--secondary-color);
    color: var(--text-primary);
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Arabic Typography Adjustments */
html[lang="ar"] h1 {
    font-size: 2.5rem;
}

html[lang="ar"] h2 {
    font-size: 2rem;
}

html[lang="ar"] h3 {
    font-size: 1.3rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.hero-content {
    flex: 1;
    padding: 60px 40px;
    z-index: 2;
}

.hero-image {
    flex: 1;
    height: 100vh;
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.hero h1 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

/* Navigation */
.main-nav {
    background: var(--bg-white);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: var(--transition);
}

.main-nav a:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

/* Arabic Navigation */
html[lang="ar"] .main-nav ul {
    flex-direction: row-reverse;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section:nth-child(even) {
    background: var(--bg-light);
}

/* Content Grids */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

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

/* Arabic Grid Adjustments */
html[lang="ar"] .content-grid {
    grid-template-columns: 1fr 2fr;
}

/* Card Styles */
.culture-item,
.dish-item,
.heritage-item,
.modern-item {
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.culture-item:hover,
.dish-item:hover,
.heritage-item:hover,
.modern-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.culture-item img,
.dish-item img,
.heritage-item img,
.modern-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.culture-item h3,
.dish-item h3,
.heritage-item h3,
.modern-item h3 {
    padding: 1rem 1.5rem 0;
    color: var(--primary-color);
}

.culture-item p,
.dish-item p,
.heritage-item p,
.modern-item p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
}

/* Image Content */
.image-content img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    padding: 40px 0;
}

.footer p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        padding: 40px 20px;
    }
    
    .hero-image {
        height: 300px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .main-nav a {
        font-size: 14px;
    }
    
    .language-toggle {
        top: 10px;
        right: 10px;
    }
    
    html[lang="ar"] .language-toggle {
        right: auto;
        left: 10px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 20px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .culture-grid,
    .cuisine-grid,
    .heritage-grid,
    .modern-grid {
        grid-template-columns: 1fr;
    }
}

/* Arabic Language Specific Styles */
html[lang="ar"] .hero-content {
    text-align: right;
}

html[lang="ar"] .main-nav a {
    font-family: 'Amiri', serif;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3 {
    font-family: 'Amiri', serif;
    font-weight: 700;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
button:focus,
a:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .language-toggle,
    .main-nav {
        display: none;
    }
    
    .hero {
        min-height: auto;
        page-break-inside: avoid;
    }
} 