:root {
    /* Couleurs extraites de l'affiche - Dominante Bleu Ciel */
    --primary: #00ADEF;
    /* Cyan vibrant */
    --primary-light: #70E1FF;
    --primary-dark: #0087BA;
    --primary-glow: rgba(0, 173, 239, 0.5);

    --accent-red: #ff0055;
    /* Rose vibrant pour Miss Médias */
    --accent-gold: #FFD700;

    --bg-dark: #05070a;
    /* Fond ultra sombre profondeur */
    --bg-card: rgba(15, 23, 42, 0.6);
    /* Glassmorphism */
    --bg-navbar: rgba(5, 7, 10, 0.8);

    --text-white: #f1f5f9;
    --text-gray: #94a3b8;
    --text-muted: #64748b;

    --transition: cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
    --font-main: 'Inter', sans-serif;
    --font-display: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 173, 239, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 173, 239, 0.08) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

/* --- TYPOGRAPHY SCALE INCREASE --- */
html {
    font-size: 18px;
    /* Was 16px or default, bumped for visibility */
}

h1 {
    font-size: 4.5rem;
}

h2 {
    font-size: 3.5rem;
}

h3 {
    font-size: 2rem;
}

p {
    font-size: 1.15rem;
    line-height: 1.8;
    text-align: justify;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.03em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 5rem 0;
}

/* --- GLITCH EFFECT (SKY BLUE FOCUSED) --- */
.glitch-text {
    position: relative;
    color: white;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 var(--primary);
    clip: rect(24px, 9999px, 90px, 0);
    animation: glitch-anim-1 3s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: 2px 0 var(--accent-red);
    clip: rect(85px, 9999px, 140px, 0);
    animation: glitch-anim-2 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% {
        clip: rect(10px, 9999px, 30px, 0);
    }

    20% {
        clip: rect(80px, 9999px, 100px, 0);
    }

    40% {
        clip: rect(10px, 9999px, 110px, 0);
    }

    60% {
        clip: rect(50px, 9999px, 70px, 0);
    }

    80% {
        clip: rect(90px, 9999px, 40px, 0);
    }

    100% {
        clip: rect(20px, 9999px, 60px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(23px, 9999px, 99px, 0);
    }

    100% {
        clip: rect(85px, 9999px, 11px, 0);
    }
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 10px 20px rgba(0, 173, 239, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 173, 239, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 20px rgba(0, 173, 239, 0.3);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-red), #d40046);
    color: white;
    box-shadow: 0 10px 20px rgba(255, 0, 85, 0.2);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 0, 85, 0.4);
}

/* --- HEADER & NAVIGATION --- */
header {
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: transparent;
}

header.scrolled {
    background: var(--bg-navbar);
    backdrop-filter: blur(20px);
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.logo img {
    height: 72px;
    width: auto;
    transition: var(--transition);
}

header.scrolled .logo img {
    height: 54px;
}

nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

nav a {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-white);
    opacity: 0.7;
    position: relative;
    padding: 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

nav a:hover {
    opacity: 1;
    color: var(--primary);
}

nav a:hover::after {
    width: 100%;
}

/* --- DROPDOWN MENU --- */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-navbar);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 0;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    list-style: none;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.dropdown:hover>.dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
    margin: 0;
    width: 100%;
    display: block;
}

.dropdown-menu a {
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-transform: none;
    opacity: 0.8;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    opacity: 1;
    padding-left: 1.8rem;
}

/* NEW MENU STYLES */
.dropdown-menu .divider {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: 5px 0;
}

.dropdown-item-icon {
    width: 20px;
    text-align: center;
    margin-right: 10px;
    opacity: 0.7;
}

.nav-highlight {
    background: rgba(255, 255, 255, 0.03);
    display: flex !important;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.nav-highlight:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

/* Submenu Styles */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: -5px;
    left: 100%;
    margin-left: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
}

.dropdown-submenu:hover>.dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* End Submenu Styles */

/* END NEW MENU STYLES */

.dropdown-menu a::after {
    display: none;
}

.dropdown-icon {
    font-size: 0.7rem;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

/* --- LEVEL UP CHALLENGE SPECIFICS --- */
.level-up-tag {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    background: var(--primary);
    color: white;
}

/* --- HERO --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at 70% 50%, rgba(0, 173, 239, 0.15), transparent 50%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-visual {
    position: relative;
}

.hero-visual img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: rotate(2deg);
    transition: var(--transition);
}

.hero-visual:hover img {
    transform: rotate(0deg) scale(1.02);
}

/* --- EBU CARD STYLE (REFINED GLASS) --- */
.ebu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.ebu-card {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.ebu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ebu-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 173, 239, 0.2);
}

.ebu-card:hover::before {
    opacity: 1;
}

.ebu-card-img {
    height: 240px;
    background: #1e293b;
    position: relative;
    overflow: hidden;
}

.ebu-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.ebu-card:hover .ebu-card-img img {
    transform: scale(1.1);
}

/* --- LIVE TICKER BAND --- */
.news-ticker {
    background: var(--bg-card);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.8rem 0;
    overflow: hidden;
    position: relative;
    z-index: 100;
}

.ticker-wrapper {
    display: flex;
    white-space: nowrap;
    animation: ticker 40s linear infinite;
}

.ticker-item {
    padding: 0 2rem;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ticker-item::before {
    content: '★';
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- COUNTDOWN --- */
.countdown-container {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin: 2rem 0;
}

.countdown-box {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 12px;
    min-width: 90px;
    text-align: center;
}

.countdown-value {
    display: block;
    font-size: 2.2rem;
    font-weight: 900;
    font-family: var(--font-display);
    line-height: 1;
    color: var(--primary);
}

.countdown-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
}

/* --- FLOATING CONTROLS --- */
.floating-controls {
    position: fixed;
    bottom: 105px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9995;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.floating-btn:hover {
    transform: translateY(-5px) scale(1.1);
}

.floating-btn.whatsapp {
    background: #25D366;
}

.floating-btn.facebook {
    background: #1877F2;
}

/* --- FOOTER GRID --- */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    text-align: left;
}

.footer-brand .logo {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.social-links i {
    font-size: 1.4rem;
    color: var(--text-gray);
    transition: var(--transition);
}

.social-links i:hover {
    color: var(--primary);
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* --- MOBILE TOGGLE --- */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 1024px) {
    #main-nav {
        display: none;
    }

    #main-nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-navbar);
        padding: 2rem;
    }

    .mobile-toggle {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.ebu-card-body {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ebu-cat {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: block;
}

.ebu-title {
    font-size: 1.6rem;
    line-height: 1.3;
    margin-bottom: 1.2rem;
    color: white;
    font-family: var(--font-display);
}

.ebu-desc {
    color: var(--text-gray);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.ebu-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.arrow-icon {
    font-size: 1.4rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.ebu-card:hover .arrow-icon {
    transform: translateX(8px);
}

/* --- PARTNERS LOGO GRID --- */
.partners-grid {
    display: none;
    /* Hidden in favor of slider */
}

/* 1. PARTNER SWIPER */
.partners-swiper {
    padding: 2rem 0;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.partner-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    transition: var(--transition);
}

.partner-placeholder {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-gray);
    opacity: 0.5;
    transition: var(--transition);
    white-space: nowrap;
}

.partner-slide:hover .partner-placeholder {
    color: white;
    opacity: 1;
    transform: scale(1.1);
    text-shadow: 0 0 10px var(--primary);
}

/* 2. CANDIDATE MODAL */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.open {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #181a20;
    width: 90%;
    max-width: 800px;
    border-radius: 20px;
    border: 1px solid var(--primary);
    box-shadow: 0 0 50px rgba(0, 173, 239, 0.2);
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.open .modal-content {
    transform: scale(1);
}

.modal-image {
    background: #0f1014;
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-image-placeholder {
    font-size: 5rem;
    opacity: 0.2;
}

.modal-body {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
}

.close-modal:hover {
    color: var(--primary);
}

.modal-tag {
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}

.modal-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: white;
    font-family: var(--font-display);
}

.modal-org {
    color: var(--text-gray);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.modal-bio {
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 2rem;
    flex-grow: 1;
    overflow-y: auto;
    max-height: 200px;
    padding-right: 1rem;
}

.modal-bio::-webkit-scrollbar {
    width: 5px;
}

.modal-bio::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.modal-bio::-webkit-scrollbar-track {
    background: #222;
}

/* RESPONSIVE MODAL */
@media (max-width: 768px) {
    .modal-content {
        grid-template-columns: 1fr;
        max-height: 90vh;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    .modal-image {
        height: 250px;
        min-height: auto;
        flex-shrink: 0;
    }
}

/* --- TABS --- */
.tab-btn {
    padding: 0.8rem 2rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-gray);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 173, 239, 0.4);
}

/* --- FORMS --- */
.form-box {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-input {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-family: var(--font-main);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* --- FOOTER --- */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 0;
    margin-top: 4rem;
    background: #050505;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        display: none;
    }

    nav {
        display: none;
    }
}

/* HERO SWIPER STYLES */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    padding: 0;
    overflow: hidden;
    background: #000;
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 30%;
    filter: brightness(0.4);
    transform: scale(1.1);
    transition: transform 8s ease;
}

.swiper-slide-active .slide-bg img {
    transform: scale(1);
}

.slide-content-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    padding: 0 2rem;
    box-sizing: border-box;
}

.slide-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    padding: 2rem;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0.5s;
    color: white;
}

.swiper-slide-active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

.slide-subtitle {
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: block;
    font-size: 1rem;
    animation: fadeInDown 0.8s both 0.2s;
    color: var(--primary);
}

.slide-content h1 {
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-size: 3rem;
    color: white;
}

.slide-content p {
    color: #e0e0e0;
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Ticker on the side of hero slide */
.slide-ticker {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 173, 239, 0.2) 100%);
    padding: 1.5rem 1rem;
    box-sizing: border-box;
    border-left: 2px solid var(--primary);
}

.ticker-header {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ticker-list {
    list-style: none;
    margin: 0;
    padding: 0;
    animation: tickerScroll 25s linear infinite;
    flex: 1;
}

.ticker-list li {
    margin-bottom: 1.2rem;
}

.ticker-list li a {
    color: #e0e0e0;
    font-size: 0.85rem;
    line-height: 1.4;
    display: block;
    padding: 0.6rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.ticker-list li a:hover {
    background: var(--primary);
    color: white;
    transform: translateX(-5px);
}

@keyframes tickerScroll {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

/* Hide ticker on mobile */
@media (max-width: 768px) {
    .slide-ticker {
        display: none;
    }
}


.btn-group {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Swiper Controls Customization */
.swiper-pagination-bullet {
    background: white;
    opacity: 0.5;
    width: 12px;
    height: 12px;
}

.swiper-pagination-bullet-active {
    background: var(--primary);
    opacity: 1;
    width: 30px;
    border-radius: 6px;
}

.swiper-button-next,
.swiper-button-prev {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    transition: var(--transition);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.5rem;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--primary);
    transform: scale(1.1);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Adjustments for Slider */
@media (max-width: 768px) {
    .slide-content {
        text-align: center;
        margin: 0 auto;
    }

    .slide-content h1 {
        font-size: 3rem;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
}

/* --- DYNAMIC BACKGROUND VECTOR --- */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background-image: url('../images/tech-bg.png');
    background-size: 800px;
    background-repeat: repeat;
    opacity: 0.08;
    /* Extremely subtle */
    z-index: -1;
    animation: panBackground 120s linear infinite;
    /* Slower animation */
    pointer-events: none;
    mix-blend-mode: screen;
    filter: opacity(0.5);
}

@keyframes panBackground {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-10%, -10%);
    }
}

/* Enhancements for readability over pattern with Homogeneous Design */
.ebu-card,
.form-box,
.modal-content,
.kp-card {
    background: rgba(2, 6, 12, 0.6);
    /* Very subtle dark glass */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.03);
    /* Almost invisible border */
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.4);
    /* Softer shadow */
}

/* Hover effect to make them pop only when needed */
.ebu-card:hover {
    background: rgba(5, 15, 30, 0.7);
    border-color: rgba(0, 173, 239, 0.3);
    transform: translateY(-5px);
}

header {
    background: rgba(2, 4, 8, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

footer {
    background: rgba(2, 4, 8, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

/* Fix header logo size */
.logo img {
    height: 72px;
    width: auto;
    display: block;
}

.vote-option {
    position: relative;
    cursor: pointer;
}

.vote-option input {
    position: absolute;
    opacity: 0;
}

.vote-option span {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 600;
}

.vote-option input:checked+span {
    background: rgba(0, 173, 239, 0.1);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 173, 239, 0.2);
}

.vote-option small {
    font-weight: normal;
    opacity: 0.6;
    margin-top: 2px;
}

/* Modal bio scroller */
.modal-bio {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 10px;
    margin: 1.5rem 0;
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

.modal-bio::-webkit-scrollbar {
    width: 4px;
}

.modal-bio::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* ==========================================================================
   FIMA ANIMATED SPLASH PRELOADER (2020 -> 2026 LOGO INTRO)
   ========================================================================== */
.fima-splash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, #0e1726 0%, #03060c 100%);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s ease;
    will-change: opacity, transform;
}

.fima-splash-overlay.fima-splash-hidden {
    opacity: 0;
    transform: scale(1.06);
    visibility: hidden;
    pointer-events: none;
}

.fima-splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 50px rgba(0, 173, 239, 0.15);
}

.fima-splash-logo-wrapper {
    position: relative;
    width: 130px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.fima-splash-glow {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--primary), var(--accent-gold), var(--accent-red), var(--primary));
    filter: blur(25px);
    opacity: 0.6;
    animation: fimaSpinGlow 4s linear infinite;
}

@keyframes fimaSpinGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fima-splash-logo {
    position: relative;
    z-index: 2;
    max-width: 100px;
    max-height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.5));
    animation: fimaPulseLogo 2s ease-in-out infinite alternate;
}

@keyframes fimaPulseLogo {
    0% { transform: scale(0.96); filter: drop-shadow(0 2px 10px rgba(0, 173, 239, 0.3)); }
    100% { transform: scale(1.04); filter: drop-shadow(0 8px 25px rgba(255, 215, 0, 0.6)); }
}

.fima-splash-year-container {
    margin: 1rem 0;
}

.fima-splash-edition-tag {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary-light);
    margin-bottom: 0.4rem;
    opacity: 0.9;
}

.fima-splash-year-counter {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 4.2rem);
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-gold) 50%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 35px rgba(255, 215, 0, 0.4);
    transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    letter-spacing: -1px;
}

.fima-splash-year-counter.pop {
    transform: scale(1.15);
}

.fima-splash-year-counter.fima-highlight-2026 {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #00ADEF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: scale(1.2);
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
}

.fima-splash-progress-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 1.2rem;
}

.fima-splash-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent-gold));
    box-shadow: 0 0 12px var(--primary);
    transition: width 0.2s linear;
}