/* File: css/style.css */
/* AFBLAB Bilingual Styles */

:root {
    /* Color palette */
    --primary: #2d5a27;
    --primary-dark: #1e3d1b;
    --primary-light: #4CAF50;
    --accent: #FFD700;
    --light: #f9f9f9;
    --dark: #333333;
    --gray: #666666;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 5px 20px rgba(0,0,0,0.15);
    --border-radius: 8px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    transition: all 0.3s ease;
}

/* RTL Support */
body[dir="rtl"] {
    font-family: 'Segoe UI', 'Arial', sans-serif;
}

body[dir="rtl"] .container {
    text-align: right;
}

body[dir="rtl"] .nav-links {
    direction: rtl;
}

body[dir="rtl"] .about-content,
body[dir="rtl"] .footer-content {
    direction: rtl;
}

body[dir="rtl"] .view-details i {
    transform: rotate(180deg);
}

body[dir="rtl"] .back-link i {
    transform: rotate(180deg);
}

body[dir="rtl"] .experiment-meta-info .meta-item i {
    margin-right: 0;
    margin-left: 5px;
}

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

/* Language Switcher */
.lang-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    display: flex;
    gap: 10px;
}

.lang-btn {
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--primary);
    border-radius: var(--border-radius);
    color: var(--primary);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

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

.lang-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 0;
    position: relative;
}

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

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

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

/* Hero Section */
.hero {
    background: linear-gradient(rgba(45, 90, 39, 0.9), rgba(76, 175, 80, 0.9)), 
                url('https://images.unsplash.com/photo-1556761175-b413da4baf72?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 10rem 0 6rem;
    text-align: center;
    margin-top: 60px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.hero-name {
    color: var(--accent);
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--accent);
    color: var(--primary);
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--primary);
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--primary-light);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

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

.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

/* Purpose Section */
.purpose {
    background: #f0f7f0;
}

.purpose-content {
    max-width: 800px;
    margin: 0 auto;
}

.purpose-content p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.purpose-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.stat i {
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Experiments Section */
.experiment-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: white;
    border: 2px solid var(--primary-light);
    color: var(--primary-light);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-light);
    color: white;
}

.experiments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.experiment-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.experiment-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.experiment-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.experiment-header h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.experiment-status {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-current {
    background: rgba(255, 255, 255, 0.2);
}

.status-ongoing {
    background: rgba(255, 215, 0, 0.3);
    color: var(--accent);
}

.status-past {
    background: rgba(255, 255, 255, 0.1);
}

.experiment-body {
    padding: 1.5rem;
}

.experiment-body p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.tags {
    margin-bottom: 1.5rem;
}

.tag {
    display: inline-block;
    padding: 5px 15px;
    background: #e8f5e9;
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.9rem;
    margin: 0 5px 10px 0;
}

.experiment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.view-details {
    color: var(--primary-light);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.view-details:hover {
    gap: 10px;
    color: var(--primary);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo span {
    color: var(--accent);
}

.footer-about p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-3px);
}

.footer-links h3,
.footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-contact p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Experiment Detail Page */
.experiment-detail {
    padding: 8rem 0 5rem;
    margin-top: 60px;
}

.experiment-hero {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
}

.experiment-meta-info {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.content-section {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.content-section h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8f5e9;
}

.objectives-list,
.actions-list,
.lessons-list {
    list-style: none;
    padding-left: 1.5rem;
}

.objectives-list li,
.actions-list li,
.lessons-list li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.objectives-list li:before,
.actions-list li:before,
.lessons-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-light);
    font-weight: bold;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tech-item {
    padding: 8px 20px;
    background: #e8f5e9;
    color: var(--primary);
    border-radius: 20px;
    font-weight: 600;
}

.experiment-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    margin-top: 2rem;
}

.back-link:hover {
    gap: 15px;
    color: var(--primary);
}

/* Responsive */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .purpose-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
    }
    
    .experiments-grid {
        grid-template-columns: 1fr;
    }
    
    .purpose-stats {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
    
    .lang-switcher {
        top: 70px;
        right: 10px;
    }
}