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

:root {
    /* Tunisian Brand Colors */
    --primary-red: rgb(190, 49, 49);
    --primary-blue: rgb(70, 100, 150);
    --accent-orange: rgb(240, 180, 60);
    --background: rgb(255, 255, 255);
    --foreground: rgb(30, 30, 30);
    --muted: rgb(245, 245, 245);
    --border: rgb(230, 230, 230);
}

html, body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--foreground);
    background: var(--background);
    overflow-x: hidden;
}

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

[dir="ltr"] {
    direction: ltr;
    text-align: left;
}

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

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-blue) 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-text h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.logo-text p {
    font-size: 14px;
    opacity: 0.95;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 10px;
}

.lang-btn {
    padding: 8px 16px;
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.3);
}

.lang-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.lang-btn.active {
    background: white;
    color: var(--primary-red);
}

/* Hero Section */
.hero {
    background: linear-gradient(to bottom right, rgba(190, 49, 49, 0.05), rgba(70, 100, 150, 0.05));
    padding: 60px 20px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text h2 {
    font-size: 48px;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text .subtitle {
    font-size: 24px;
    color: var(--primary-red);
    font-weight: 600;
    margin-bottom: 15px;
}

.hero-text .campaign-name {
    font-size: 32px;
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 25px;
}

.hero-text .description {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    display: block;
    margin: 0 auto;
}

/* Construction Message */
.construction-message {
    background: var(--muted);
    border-left: 4px solid var(--primary-red);
    padding: 30px;
    border-radius: 8px;
    margin: 40px 0;
}

[dir="rtl"] .construction-message {
    border-left: none;
    border-right: 4px solid var(--primary-red);
}

.construction-message h3 {
    font-size: 24px;
    color: var(--primary-red);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.construction-message p {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

/* Contact Section */
.contact-section {
    background: white;
    padding: 60px 20px;
}

.contact-section h3 {
    font-size: 32px;
    color: var(--foreground);
    margin-bottom: 40px;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-card {
    background: var(--muted);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: var(--primary-red);
}

.contact-card h4 {
    font-size: 20px;
    color: var(--primary-red);
    margin-bottom: 15px;
}

.contact-card p {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.contact-card a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--foreground) 0%, rgb(50, 50, 50) 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

footer p {
    margin-bottom: 15px;
}

footer a {
    color: var(--accent-orange);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Icon Emoji Styles */
.icon {
    font-size: 24px;
    display: inline-block;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-text h2 {
        font-size: 36px;
    }
    
    .hero-text .subtitle {
        font-size: 20px;
    }
    
    .hero-text .campaign-name {
        font-size: 26px;
    }
    
    .hero-text .description {
        font-size: 16px;
    }
    
    .hero-image img {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-text h1 {
        font-size: 20px;
    }
    
    .hero-text h2 {
        font-size: 28px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(190, 49, 49, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-red);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
