/* ==========================================================================
   RESET & VARIABLES
   ========================================================================== */
:root {
    /* Colors */
    --bg-dark: #050505;
    --bg-darker: #000000;
    --text-main: #f5f5f5;
    --text-muted: #a0a0a0;
    --accent-gold: #c5a059;
    --accent-gold-hover: #e0b665;
    
    /* Typography */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --container-width: 1200px;
    --container-padding: 2rem;
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Classes */
.cinzel {
    font-family: var(--font-heading);
}

h1, h2, h3, h4 {
    font-weight: 400;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

.text-center { text-align: center; }
.mb-2 { margin-bottom: 1rem; }

/* Layout Grid */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.container-narrow {
    max-width: 800px;
}

section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--accent-gold);
    letter-spacing: 2px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-primary, .btn-secondary, .btn-primary-outline {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background-color: var(--accent-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-secondary:hover {
    border-color: var(--text-main);
    background-color: rgba(255,255,255,0.05);
}

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

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

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background-color var(--transition-fast), padding var(--transition-fast);
}

.navbar.scrolled {
    background-color: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 4rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
    display: flex;
    align-items: center;
}

.logo-svg {
    height: 45px;
    width: auto;
    display: block;
    fill: var(--text-main);
    transition: var(--transition-fast);
}

.navbar.scrolled .logo-svg {
    height: 35px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:not(.btn-primary-outline):hover {
    color: var(--accent-gold);
}

.lang-switcher {
    display: flex;
    gap: 5px;
    margin-left: 1rem;
    border-left: 1px solid rgba(255,255,255,0.2);
    padding-left: 1rem;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.lang-btn:hover, .lang-btn.active {
    color: var(--accent-gold);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition-fast);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4; /* Dark Cinematic Effect */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(5,5,5,1) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1.2s var(--transition-slow) forwards;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-weight: 300;
}

.hero-tagline {
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-bottom: 3rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.mini-tagline {
    font-size: 0.9rem;
    letter-spacing: 5px;
    color: var(--text-main);
    font-family: var(--font-body);
    display: block;
    margin-top: 0.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   MISSION & LATEST REVEALS
   ========================================================================== */
.mission-section {
    padding-top: 4rem;
}

.about-text {
    font-size: 1.2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-muted);
    font-weight: 300;
}

.about-text strong {
    color: var(--text-main);
    font-weight: 500;
}

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

.video-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-fast);
}

.thumbnail {
    position: relative;
    aspect-ratio: 16/9;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(197, 160, 89, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-fast);
}

.play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid var(--bg-dark);
    margin-left: 5px;
}

.video-card:hover .thumbnail img {
    transform: scale(1.05);
}

.video-card:hover .play-btn {
    opacity: 1;
}

/* ==========================================================================
   ABOUT (L'ADN)
   ========================================================================== */
.about-section {
    background-color: var(--bg-darker);
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--accent-gold));
}

.about-block {
    text-align: center;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-slow);
}

.about-block.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-block h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.about-block p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   GALLERY / EPISODES
   ========================================================================== */
.category-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-body);
}

.filter-btn:hover, .filter-btn.active {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

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

.gallery-grid .video-card {
    display: none;
}

.gallery-grid .video-card.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.overlay-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    transform: translateY(10px);
    transition: var(--transition-fast);
}

.overlay-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.overlay-info span {
    font-size: 0.8rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   CONFESSIONAL (WIZARD)
   ========================================================================== */
.confessional-section {
    background-image: linear-gradient(to bottom, var(--bg-dark), var(--bg-darker));
    padding: 8rem 0;
}

.wizard-container {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(25, 25, 25, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.wizard-intro {
    color: var(--text-muted);
    margin: 1rem 0 2rem;
}

/* Steps Indicator */
.wizard-steps-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.step-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
    transition: var(--transition-fast);
}

.step-dot::after {
    content: attr(data-step);
}

.step-dot.active {
    background-color: var(--accent-gold);
    color: var(--bg-dark);
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.4);
}

.step-dot.completed {
    background-color: var(--accent-gold);
    color: transparent;
}

.step-dot.completed::before {
    content: '✓';
    position: absolute;
    color: var(--bg-dark);
}

.step-line {
    flex-grow: 1;
    height: 2px;
    background-color: #333;
    margin: 0 10px;
    transition: var(--transition-fast);
}

.step-line.active {
    background-color: var(--accent-gold);
}

/* Step Content */
.step-content {
    display: none;
    animation: fadeSlideUp 0.4s ease forwards;
}

.step-content.active {
    display: block;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-content h3 {
    margin-bottom: 2rem;
    color: var(--accent-gold);
    font-size: 1.5rem;
}

/* Forms Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 1rem;
    background-color: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-main);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 1px var(--accent-gold);
}

/* Radio Cards */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.radio-card {
    position: relative;
    cursor: pointer;
}

.radio-card input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-content {
    display: block;
    padding: 1.2rem;
    background-color: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    transition: var(--transition-fast);
}

.radio-card:hover .radio-content {
    border-color: rgba(197, 160, 89, 0.5);
}

.radio-card input:checked ~ .radio-content {
    border-color: var(--accent-gold);
    background-color: rgba(197, 160, 89, 0.1);
}

/* Guarantee Box */
.guarantee-box {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--accent-gold);
    border-radius: 4px;
    margin-bottom: 2rem;
}

.guarantee-box svg {
    color: var(--accent-gold);
    flex-shrink: 0;
}

.guarantee-box p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.form-actions {
    display: flex;
    margin-top: 2rem;
}

.form-actions.right {
    justify-content: flex-end;
}

.form-actions.between {
    justify-content: space-between;
}

.success-message {
    text-align: center;
    padding: 3rem 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    background-color: #27ae60;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 2rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: var(--bg-darker);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand h2 {
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-link:hover {
    color: var(--accent-gold);
}

.contact-email {
    font-size: 1.2rem;
    border-bottom: 1px solid var(--accent-gold);
    padding-bottom: 5px;
}

.contact-email:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
    color: rgba(255,255,255,0.3);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

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

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
    .hero-title { font-size: 3rem; }
    .navbar { padding: 1.5rem 2rem; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-darker);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .menu-toggle.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .hero-buttons {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ==========================================================================
   RTL SUPPORT (ARABIC)
   ========================================================================== */
html[dir="rtl"] body {
    font-family: 'Cairo', sans-serif;
}

html[dir="rtl"] .cinzel {
    /* Optional: fallback font if Cinzel isn't suited for Arabic headings */
    font-family: 'Cairo', sans-serif; 
    font-weight: 700;
}

html[dir="rtl"] .navbar .logo {
    flex-direction: row-reverse;
}

html[dir="rtl"] .lang-switcher {
    margin-left: 0;
    margin-right: 1rem;
    border-left: none;
    border-right: 1px solid rgba(255,255,255,0.2);
    padding-left: 0;
    padding-right: 1rem;
}

html[dir="rtl"] .form-actions.right {
    justify-content: flex-start;
}

html[dir="rtl"] .guarantee-box {
    border-left: none;
    border-right: 3px solid var(--accent-gold);
}

html[dir="rtl"] .play-btn::after {
    border-left: none;
    border-right: 15px solid var(--bg-dark);
    margin-left: 0;
    margin-right: 5px;
}
