/* CSS Reset & Variables */
:root {
    --primary-color: #d4af37; /* Metallic Gold */
    --primary-dark: #b5952f;
    --bg-color: #050505; /* Deep Black */
    --bg-light: #151515; /* Dark Gray */
    --text-main: #f0f0f0;
    --text-muted: #aaaaaa;
    --font-arabic: 'Cairo', sans-serif;
    --font-french: 'Playfair Display', serif;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
    /*! Custom Cursor needs hiding the default */
    cursor: none; 
}

body {
    font-family: var(--font-arabic);
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    transition: opacity 0.4s ease;
}

/* Dynamic Font Overrides */
html[lang="en"] body, html[lang="fr"] body {
    font-family: 'Outfit', 'Cairo', sans-serif;
}
html[lang="en"] h1, html[lang="fr"] h1,
html[lang="en"] h2, html[lang="fr"] h2,
html[lang="en"] h3, html[lang="fr"] h3 {
    font-family: 'Outfit', 'Cairo', sans-serif;
    letter-spacing: 1px;
}

/* Custom Cursor */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Premium Splash Screen */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #030303; /* Extremely deep black */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1), opacity 1s ease;
}

#splash-screen.open {
    opacity: 0;
    pointer-events: none;
    background-color: transparent;
    transition: opacity 0.8s ease;
}

#splash-screen.open .splash-logo {
    transform: translate(45vw, -45vh) scale(0);
    opacity: 0;
}

#splash-screen.open .splash-logo-wrapper::after {
    opacity: 0;
}

.splash-content {
    position: relative;
    z-index: 2;
    animation: epicZoomOut 1.5s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}

.splash-logo-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* The Hollywood 'Jamda' Laser Shine overlay */
.splash-logo-wrapper::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(100deg, transparent 0%, transparent 40%, rgba(255, 255, 255, 0.9) 50%, rgba(255, 215, 0, 0.8) 55%, transparent 60%, transparent 100%);
    background-size: 200% 100%;
    -webkit-mask-image: url('../assets/images/logo.png');
    mask-image: url('../assets/images/logo.png');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    mix-blend-mode: color-dodge; 
    animation: goldLaserShine 2.5s infinite;
    animation-delay: 1s;
    z-index: 10;
    pointer-events: none;
}

.splash-logo {
    max-width: 600px;
    width: 80vw;
    display: block;
    filter: drop-shadow(0 10px 40px rgba(212, 175, 55, 0.3));
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1), opacity 1s ease;
}

@keyframes epicZoomOut {
    0% { transform: scale(2); opacity: 0; filter: blur(20px); }
    100% { transform: scale(1.1); opacity: 1; filter: blur(0); }
}

@keyframes goldLaserShine {
    0% { background-position: -200% 0; }
    50% { background-position: 200% 0; }
    100% { background-position: 200% 0; }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 180px; /* Massively increased size */
    object-fit: contain;
    transition: var(--transition);
}

.navbar.scrolled .nav-logo img {
    height: 120px; /* Larger even when scrolled */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-social a {
    color: var(--text-main);
    font-size: 1.2rem;
    transition: var(--transition);
}

.nav-social a:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

.lang-dropdown {
    position: relative;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-family: var(--font-arabic);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.lang-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.lang-menu {
    position: absolute;
    top: 40px;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    list-style: none;
    padding: 10px 0;
    width: 120px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.lang-dropdown:hover .lang-menu {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.lang-menu li a {
    display: block;
    padding: 8px 20px;
    color: #fff;
    text-decoration: none;
    font-family: var(--font-arabic);
    font-size: 0.9rem;
    transition: var(--transition);
}

.lang-menu li a:hover, .lang-menu li a.active {
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.hamburger span {
    width: 30px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('../assets/images/dr_yasser_hero.jpg') center/cover no-repeat fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(5,5,5,0.3) 0%, rgba(5,5,5,0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-subtitle {
    color: var(--primary-color);
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-arabic);
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.2;
    text-shadow: 2px 4px 10px rgba(0,0,0,0.5);
}

.hero-french {
    font-family: var(--font-french);
    font-size: 2rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 30px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--primary-color);
    z-index: -1;
    transition: var(--transition);
}

.btn-primary:hover {
    color: var(--bg-color);
}

.btn-primary:hover::before {
    width: 100%;
}

/* General Layout Options */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* President Section */
.president-section {
    padding: 120px 0;
    background-color: var(--bg-color);
}

.president-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.president-frame {
    position: relative;
    padding: 20px;
    transition: var(--transition);
}

.president-frame:hover {
    transform: translateY(-10px);
}

.president-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    transition: var(--transition);
}

.president-frame:hover .president-img {
    box-shadow: 0 25px 60px rgba(212, 175, 55, 0.2);
}

.frame-border {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    z-index: 1;
    transform: translate(-20px, 20px);
    transition: var(--transition);
}

.president-frame:hover .frame-border {
    transform: translate(-10px, 10px);
}

.section-tag {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.section-subtitle {
    font-family: var(--font-french);
    font-size: 1.8rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 30px;
}

.section-text {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 20px;
    text-align: justify;
}

.president-signature {
    margin-top: 40px;
}

.sig-text {
    font-family: var(--font-french);
    font-size: 2.5rem;
    color: var(--primary-color);
    font-style: italic;
    opacity: 0.9;
}

/* Quote Section */
.quote-section {
    padding: 100px 0;
    background: url('../assets/images/audience_1.jpg') center/cover fixed;
    position: relative;
    text-align: center;
}

.quote-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
}

.quote-container {
    position: relative;
    z-index: 2;
}

.quote-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.quote-section blockquote {
    font-family: var(--font-french);
    font-size: 2.5rem;
    font-style: italic;
    line-height: 1.4;
    color: var(--text-main);
}

/* Countdown Timer */
.countdown-wrapper {
    margin-top: 50px;
}

.countdown-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.time-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    padding: 15px 20px;
    min-width: 100px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.time-box span {
    display: block;
    font-family: var(--font-french);
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
}

.time-box p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 5px;
    text-transform: uppercase;
}

/* About Section - Glass Cards */
.about-section {
    padding: 100px 0;
    background-color: var(--bg-color);
    position: relative;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.glass-card {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    cursor: none;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.glass-card:hover {
    transform: translateY(-15px);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.1);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.glass-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.glass-card p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* Awards / Competitions Section */
.awards-section {
    padding: 100px 0;
    background-color: #030303;
    position: relative;
    border-top: 1px solid rgba(212, 175, 55, 0.05);
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.award-card {
    background: linear-gradient(145deg, rgba(20,20,20,1) 0%, rgba(5,5,5,1) 100%);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.award-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 3px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.5s ease;
    transform-origin: right;
}

.award-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.1);
}

.award-card:hover::before {
    transform: scaleX(1);
}

.award-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.award-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #fff;
    font-family: var(--font-arabic);
}

.award-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Sponsors Marquee */
.sponsors-section {
    padding: 80px 0;
    background-color: var(--bg-color);
    overflow: hidden;
    position: relative;
}

.text-center {
    text-align: center;
}

.text-center .section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 30px 0;
    direction: ltr; /* Ensure predictable scroll direction */
}

.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-color), transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-color), transparent);
}

.marquee-track {
    display: inline-block;
    animation: scrollMarquee 20s linear infinite;
}

.sponsor-item {
    display: inline-block;
    font-size: 1.8rem;
    font-weight: bold;
    color: rgba(255,255,255,0.2);
    margin: 0 40px;
    font-family: var(--font-french);
    letter-spacing: 2px;
    transition: var(--transition);
    cursor: default;
}

.sponsor-item:hover {
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(212,175,55,0.4);
}

@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

/* Newsletter CTA */
.newsletter-section {
    padding: 120px 0;
    background: url('../assets/images/festival.jpg') center/cover fixed;
    position: relative;
    text-align: center;
}

.newsletter-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(5,5,5,0.95), rgba(5,5,5,0.8));
}

.newsletter-container {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.newsletter-container h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.newsletter-container p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.newsletter-form input {
    padding: 15px 25px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 1rem;
    font-family: var(--font-arabic);
    flex-grow: 1;
    max-width: 400px;
    outline: none;
    transition: var(--transition);
}

.newsletter-form input:focus {
    border-color: var(--primary-color);
    background: rgba(255,255,255,0.1);
}

.newsletter-form button {
    border-radius: 30px;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column;
    }
    .countdown {
        gap: 10px;
    }
    .time-box {
        min-width: 70px;
        padding: 10px;
    }
    .time-box span {
        font-size: 1.8rem;
    }
}


/* Gallery Section */
.gallery-section {
    padding: 120px 0;
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

/* Premium Gallery Layout */
.gallery-premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: center;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    opacity: 0;
    transition: var(--transition);
    padding-bottom: 30px;
}

.overlay-content {
    text-align: center;
    color: #fff;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.overlay-content i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    display: block;
}

.overlay-content span {
    font-family: var(--font-arabic);
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .overlay-content {
    transform: translateY(0);
}

/* Films Section (Official Selection) */
.films-section {
    padding: 100px 0;
    background: url('https://images.unsplash.com/photo-1440404653325-ab127d49abc1?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover fixed;
    position: relative;
}

.films-section::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(5,5,5,1) 0%, rgba(5,5,5,0.85) 50%, rgba(5,5,5,1) 100%);
}

.films-section .container {
    position: relative; z-index: 2;
}

.films-carousel-wrapper {
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    padding: 20px 0 40px;
    cursor: grab; /* Indicate draggable */
}

.films-carousel-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.films-carousel-wrapper:active {
    cursor: grabbing;
}

.films-carousel {
    display: flex;
    gap: 30px;
    width: max-content;
}

.film-card {
    width: 320px;
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.film-card:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.15);
}

.film-poster {
    position: relative;
    height: 480px;
    overflow: hidden;
}

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

.play-btn-overlay {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 65px; height: 65px;
    background: rgba(212, 175, 55, 0.9);
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    color: #000;
    font-size: 1.5rem;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding-left: 5px; /* Visual center for play icon */
}

.film-card:hover .play-btn-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.film-card:hover .film-poster img {
    transform: scale(1.08);
}

.film-info {
    padding: 25px 20px;
    position: relative;
}

.film-info::before {
    content: ''; position: absolute; top: 0; left: 20px; right: 20px; height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    opacity: 0.3;
}

.film-genre {
    color: var(--primary-color);
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 8px; 
    display: block;
}

.film-title {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-family: var(--font-arabic);
}

.film-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.film-meta span i {
    color: var(--primary-color);
    margin-left: 5px;
}

/* --- Custom Cinematic Cursor --- */
.cursor-dot {
    width: 8px; height: 8px;
    background-color: var(--primary-color);
}

.cursor-outline {
    width: 40px; height: 40px;
    border: 2px solid rgba(212, 175, 55, 0.5);
}

.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0; left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
}

body:hover .cursor-dot { opacity: 1; }
body:hover .cursor-outline { opacity: 1; }

.cursor-hover .cursor-outline {
    width: 60px; height: 60px;
    background-color: rgba(212, 175, 55, 0.1);
    border-color: var(--primary-color);
}
.cursor-hover .cursor-dot {
    transform: translate(-50%, -50%) scale(1.5);
}

/* --- Schedule Accordion Section --- */
.schedule-section {
    padding: 120px 0;
    background-color: var(--bg-color);
    position: relative;
}

.schedule-wrapper {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.schedule-item {
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.schedule-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
}

.schedule-header {
    padding: 25px 30px;
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.day-badge {
    background: var(--primary-color);
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-left: 20px;
}

.schedule-header h3 {
    flex-grow: 1;
    font-size: 1.4rem;
    margin: 0;
    color: #fff;
    font-family: var(--font-arabic);
}

.toggle-icon {
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.schedule-item.active .toggle-icon {
    transform: rotate(180deg);
}

.schedule-body {
    padding: 0 30px 25px;
    display: none;
}

.schedule-item.active .schedule-body {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.schedule-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.schedule-list li {
    display: flex;
    gap: 30px;
    padding: 20px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
}

.schedule-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.schedule-list .time {
    color: var(--primary-color);
    font-family: var(--font-arabic);
    font-size: 1.2rem;
    font-weight: bold;
    min-width: 80px;
}

.event-details h4 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 5px;
}

.event-details p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* --- Press & Media Section --- */
.press-section {
    padding: 100px 0;
    background-color: #030303;
    border-top: 1px solid rgba(212, 175, 55, 0.05);
}

.press-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.press-card {
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.press-card:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 15px 40px rgba(0,0,0,0.8);
}

.press-image {
    height: 220px;
    overflow: hidden;
}

.press-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.press-card:hover .press-image img {
    transform: scale(1.1);
}

.press-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.press-date {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.press-content h3 {
    color: #fff;
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 15px;
    font-family: var(--font-arabic);
}

.press-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    color: #fff;
    font-weight: bold;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.read-more i {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.press-card:hover .read-more {
    color: var(--primary-color);
}

.press-card:hover .read-more i {
    transform: translateX(-5px);
}

@media (max-width: 768px) {
    .schedule-header {
        flex-wrap: wrap;
        gap: 10px;
    }
    .day-badge {
        margin-left: 0;
        margin-bottom: 10px;
        width: 100%;
        text-align: center;
    }
    .schedule-list li {
        flex-direction: column;
        gap: 10px;
    }
}

/* --- Article Modal (Professional News Reader) --- */
.article-modal {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.article-modal.active {
    opacity: 1;
    pointer-events: all;
}

.article-modal-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

.article-modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background: #111;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    overflow-y: auto;
    z-index: 2;
    transform: translateY(50px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.article-modal.active .article-modal-content {
    transform: translateY(0) scale(1);
}

.close-article {
    position: absolute;
    top: 15px; left: 15px;
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 5;
    transition: background 0.3s, color 0.3s;
}

.close-article:hover {
    background: var(--primary-color);
    color: #000;
}

.article-modal-image {
    width: 100%;
    height: 350px;
    flex-shrink: 0;
}

.article-modal-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-bottom: 3px solid var(--primary-color);
}

.article-modal-body {
    padding: 30px;
}

.article-modal-body h3 {
    font-family: var(--font-arabic);
    font-size: 1.8rem;
    color: #fff;
    margin: 10px 0 20px;
}

.article-text {
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-share {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.article-share span {
    color: var(--primary-color);
    font-weight: bold;
}

.article-share a {
    color: #fff;
    font-size: 1.2rem;
    width: 35px; height: 35px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.article-share a:hover {
    background: var(--primary-color);
    color: #000;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .article-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    .article-modal-image {
        height: 250px;
    }
    .article-modal-body h3 {
        font-size: 1.4rem;
    }
}

/* Footer Section */
.footer {
    background: #000;
    padding: 60px 0 20px;
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-logo img {
    height: 80px;
    margin-bottom: 20px;
}

.footer-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 30px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.footer-social a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #000;
    transform: translateY(-5px);
}

.footer-copy {
    color: #555;
    font-size: 0.9rem;
    padding-top: 20px;
    border-top: 1px solid #111;
}

/* Animations - Reveal Classes */
.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal-left {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.reveal-right {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.reveal-up.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0, 0);
}

.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 2.5s; /* Wait for splash screen */
    opacity: 0;
    transform: translateY(30px);
}

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

/* --- AI Chat Widget --- */
.chat-widget-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9000;
}

.chat-fab {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #aa8529 100%);
    color: #000;
    font-size: 1.8rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-fab:hover {
    transform: scale(1.1);
}

.fab-pulse {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 50%;
    background-color: var(--primary-color);
    z-index: -1;
    animation: fabPulse 2s infinite;
}

@keyframes fabPulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.6); opacity: 0; }
}

.chat-window {
    position: absolute;
    bottom: 85px;
    right: 0;
    width: 380px;
    height: 550px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 1;
    transform: scale(1);
}

.chat-window.d-none {
    opacity: 0;
    transform: scale(0);
    pointer-events: none;
}

.chat-header {
    padding: 20px;
    background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(20,20,20,0.9));
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    color: var(--primary-color);
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.status {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.status .dot {
    width: 8px;
    height: 8px;
    background-color: #28a745;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 5px #28a745;
}

.close-chat {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
}

.close-chat:hover {
    color: #fff;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

.chat-messages::-webkit-scrollbar { width: 6px; }
.chat-messages::-webkit-scrollbar-thumb { background-color: rgba(212, 175, 55, 0.5); border-radius: 5px; }

.message {
    max-width: 85%;
    display: flex;
    flex-direction: column;
}

.message-content {
    padding: 12px 18px;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
}

.ai-message { align-self: flex-start; }
.ai-message .message-content {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 15px 15px 0 15px;
    border-left: 3px solid var(--primary-color);
}

.user-message { align-self: flex-end; }
.user-message .message-content {
    background: linear-gradient(135deg, var(--primary-color) 0%, #8c6a1e 100%);
    color: #000;
    border-radius: 15px 15px 15px 0;
    font-weight: 500;
}

.chat-input-area {
    padding: 15px;
    background: rgba(5,5,5,0.9);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    display: flex;
    gap: 10px;
}

.chat-input-area input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 25px;
    padding: 10px 20px;
    font-family: var(--font-arabic);
    outline: none;
    transition: 0.3s;
}

.chat-input-area input:focus { border-color: rgba(212, 175, 55, 0.5); }

.chat-input-area button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
}

.chat-input-area button:hover {
    background: var(--primary-color);
    color: #000;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 5px;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
    animation: typing 1s infinite alternate;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0% { transform: translateY(0); opacity: 0.5; }
    100% { transform: translateY(-5px); opacity: 1; }
}

@media (max-width: 500px) {
    .chat-window {
        width: calc(100vw - 40px);
        height: 60vh;
        right: -10px;
        bottom: 80px;
    }
}

/* --- Cinematic Upgrades (Video, Lightbox, Form) --- */
.hero-actions {
    display: flex;
    gap: 20px;
    align-items: center;
    position: relative;
    z-index: 20;
}
.btn-play {
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--primary-color);
    border-radius: 30px;
    padding: 12px 30px;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}
.btn-play i {
    width: 35px;
    height: 35px;
    background: var(--primary-color);
    color: var(--bg-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    padding-left: 2px;
}
.btn-play:hover {
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}
.video-modal-overlay, .lightbox-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.video-modal-overlay.active, .lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}
.video-modal-content {
    width: 90%;
    max-width: 1000px;
    background: #000;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    position: relative;
    transform: translateY(50px);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.video-modal-overlay.active .video-modal-content {
    transform: translateY(0);
}
.iframe-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
}
.iframe-container iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 12px;
}
.close-modal-btn {
    position: absolute;
    top: -40px; right: 0; /* Changed dynamically to Left in RTL via JS later or fixed css */
    background: transparent;
    color: #fff;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}
html[dir="rtl"] .close-modal-btn { right: auto; left: 0; }
.close-modal-btn:hover { color: var(--primary-color); transform: rotate(90deg); }

/* Lightbox Specifics */
#lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(212, 175, 55, 0.3);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.lightbox-overlay.active #lightbox-img {
    transform: scale(1);
}
.gallery-premium-grid img { cursor: zoom-in; }

/* Subscription Form */
.footer-subscription {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.footer-subscription h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 5px;
}
.newsletter-form {
    display: flex;
    height: 45px;
}
.newsletter-form input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 0 6px 6px 0;
    padding: 0 15px;
    color: #fff;
    font-family: inherit;
    outline: none;
    transition: 0.3s;
}
html[dir="rtl"] .newsletter-form input { border-radius: 0 6px 6px 0; border-left: none; }
html[dir="ltr"] .newsletter-form input { border-radius: 6px 0 0 6px; border-right: none; }
.newsletter-form input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}
.btn-gold {
    background: var(--primary-color);
    color: var(--bg-color);
    border: none;
    padding: 0 25px;
    border-radius: 6px 0 0 6px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: 0.3s;
}
html[dir="ltr"] .btn-gold { border-radius: 0 6px 6px 0; }
.btn-gold:hover { background: #E1C154; box-shadow: 0 0 15px rgba(212, 175, 55, 0.6); }

/* Responsive */
@media (max-width: 992px) {
    .president-grid {
        grid-template-columns: 1fr;
    }
    .frame-border {
        transform: translate(-10px, 10px);
    }
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100vw;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        z-index: 99;
    }
    .nav-links.active {
        right: 0;
    }
    .nav-links li {
        margin: 20px 0;
    }
    .nav-links a {
        font-size: 1.8rem;
    }
    .nav-social { display: none; }
    .hamburger { 
        display: flex; 
        z-index: 100;
    }
    .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    .hero {
        padding-top: 100px; /* Offset for the header on mobile to prevent overlapping */
        height: auto;
        min-height: 100vh;
        padding-bottom: 50px;
    }
    .hero-title {
        font-size: 2.1rem;
        line-height: 1.3;
        margin-bottom: 12px;
    }
    .hero-french {
        font-size: 1.3rem;
        margin-bottom: 25px;
    }
    .section-title {
        font-size: 2.2rem;
    }
    
    /* Mobile Polish Fixes */
    .nav-logo img {
        height: 80px; /* Prevent huge logo from crushing the mobile navbar */
    }
    .navbar.scrolled .nav-logo img {
        height: 60px;
    }
    .countdown {
        gap: 8px; /* Slightly tighter gap to fit all 4 boxes */
    }
    .time-box {
        min-width: 55px; /* Thinner bounding box */
        padding: 8px 5px;
    }
    .time-box span {
        font-size: 1.6rem;
    }
    .time-box p {
        font-size: 0.85rem;
        margin-top: 5px;
    }
    .chat-fab {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 15px;
        font-size: 1.3rem;
        z-index: 1000;
    }
    .press-grid, .gallery-premium-grid {
        grid-template-columns: 1fr;
    }
    .schedule-header {
        padding: 15px;
        font-size: 1rem;
    }
}

/* Disable Custom Cursor on Touch Devices (Mobile/Tablet) */
@media (pointer: coarse) {
    .cursor-dot, .cursor-outline {
        display: none !important;
    }
}

/* --- Golden Scroll Progress Bar --- */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #f3e5ab, #d4af37);
    z-index: 100000;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.8), 0 0 20px rgba(212, 175, 55, 0.4);
    transition: width 0.1s ease;
}

/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px; /* On the very left side */
    width: 50px;
    height: 50px;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.back-to-top.show {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-color);
    color: #000;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.6);
}
