:root {
    /* Colors */
    --primary-color: #E63946;
    /* Aspire Red */
    --primary-hover: #C92A37;
    --bg-color: #121212;
    /* Dark Mode Bg */
    --bg-alt: #1e1e1e;
    /* Card/Section Alt Bg */
    --text-color: #f0f0f0;
    --text-muted: #a0a0a0;
    --border-color: #333;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 80px 0;

    /* Fonts */
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Inter', sans-serif;

    /* Transitions */
    --transition: all 0.3s ease;
}

[data-theme="light"] {
    --bg-color: #ffffff;
    --bg-alt: #f8f9fa;
    --text-color: #212529;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    direction: rtl;
    /* Default RTL */
}

/* RTL/LTR Logic will be handled via [dir] attribute styling if needed, 
   but Flexbox/Grid handles most auto-flipping usually. 
   We explicitly set font based on lang.
*/

body {
    font-family: var(--font-ar);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

body[lang="en"] {
    font-family: var(--font-en);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utility */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding);
}

.bg-alt {
    background-color: var(--bg-alt);
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--text-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

.btn-whatsapp {
    background-color: #25D366;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
    margin-top: 20px;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    height: 70px;
    display: flex;
    align-items: center;
}

[data-theme="light"] .navbar {
    background-color: rgba(255, 255, 255, 0.95);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    font-family: var(--font-en);
    /* Always logo in English or distinctive font */
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    border-radius: 4px;
    /* Optional: adds a slight rounded corner if nice, removing if it looks bad with the specific logo */
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a:not(.btn-nav):hover {
    color: var(--primary-color);
}

.btn-nav {
    background: var(--primary-color);
    color: #fff;
    padding: 8px 20px;
    border-radius: 6px;
}

.btn-nav:hover {
    background: var(--primary-hover);
}

.nav-controls {
    display: flex;
    gap: 10px;
}

.nav-controls button {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    /* Hidden on desktop */
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 2px;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1555597673-b21d5c935865?q=80&w=2072&auto=format&fit=crop');
    /* Placeholder Dojo Image */
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9));
    /* Dark overlay always for contrast */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #fff;
    /* Always white on hero */
}

.hero-tagline {
    font-size: 1.25rem;
    color: #e0e0e0;
    margin-bottom: 0.5rem;
}

.hero-desc {
    color: #ccc;
    margin-bottom: 2rem;
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    color: #fff;
}

.trust-badges .badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

/* Titles */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Cards */
.card {
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 12px;
    transition: var(--transition);
}

[data-theme="light"] .card {
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

/* Programs Grid */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.program-card.highlight {
    border: 1px solid var(--primary-color);
    background: rgba(230, 57, 70, 0.1);
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-alt);
    color: var(--text-color);
    font-family: inherit;
}

.form-group row {
    display: flex;
    gap: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        transition: 0.3s;
        border-top: 1px solid var(--border-color);
    }

    [dir="ltr"] .nav-links {
        right: auto;
        left: -100%;
    }

    .nav-links.active {
        right: 0;
    }

    [dir="ltr"] .nav-links.active {
        left: 0;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Premium Touches */
.badge {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary {
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
}

.hero-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(20, 20, 20, 0.95) 100%);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-item {
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}