/* Custom styles for professional look */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

/* --- COOKIE BANNER STYLES ADDED --- */
.cookie-hidden {
    display: none !important;
}

/* Optional: smooth fade-in */
#cookie-banner {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

:root {
    --primary-color: #1a365d; /* Dark Blue/Navy */
    --accent-color: #ffc107; /* Amber/Gold */
    --text-light: #f3f4f6;
    --text-dark: #1f2937;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f9fafb;
    color: var(--text-dark);
}

.primary-bg {
    background-color: var(--primary-color);
}

.accent-text {
    color: var(--accent-color);
}

.accent-bg {
    background-color: var(--accent-color);
}

.shadow-custom {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Styling for RTL languages (Farsi and Arabic) */
[dir="rtl"] body {
    text-align: right;
}

[dir="rtl"] #language-switcher-container {
    margin-left: 20px;
}

[dir="rtl"] .md\:flex-row {
    flex-direction: row-reverse;
}

/* Fix spacing for RTL navigation links */
[dir="rtl"] nav a {
    margin-left: 1.5rem;
    margin-right: 0;
}

[dir="rtl"] nav {
    direction: rtl;
}

/* Mobile Menu Styling */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu links */
#mobile-menu a {
    display: block;
    transition: all 0.2s ease;
}

#mobile-menu a:active {
    background-color: rgba(252, 211, 77, 0.1);
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    /* Ensure mobile menu is properly styled */
    #mobile-menu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    
    #mobile-menu:not(.hidden) {
        max-height: 500px;
    }
    
    /* Better touch targets on mobile */
    button, a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Improve form inputs on mobile */
    input, select, textarea {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
    
    /* Better spacing on mobile */
    .primary-bg section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Tablet optimizations */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Adjust hero section for tablets */
    [data-i18n="heroTitle"] {
        font-size: 2.5rem;
    }
    
    [data-i18n="heroBody"] {
        font-size: 1.125rem;
    }
}

/* Desktop optimizations */
@media (min-width: 1024px) {
    /* Slightly larger hero on big screens */
    [data-i18n="heroTitle"] {
        font-size: 3.75rem;
    }
}

/* Accessibility improvements */
*:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

/* Loading state for buttons */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Improve readability */
p, li {
    line-height: 1.7;
}

/* Better link styling */
a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* Print styles */
@media print {
    header, footer, #mobile-menu-button, #language-switcher-container {
        display: none;
    }
    
    body {
        background-color: white;
        color: black;
    }
}