﻿/* הגדרות כלליות ומשתנים */
:root {
    --primary-bg: #0B214F;
    --text-light: #ffffff;
    --accent-blue: #0B214F;
    --bg-light: #f5f7fa;
    --nav-height: 70px;
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Assistant', sans-serif;
    background-color: var(--bg-light);
    color: #333;
    overflow-x: hidden;
}

/* תפריט ניווט */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.school-logo {
    height: 50px;
    width: auto;
}

.logo-text {
    color: var(--accent-blue);
    font-weight: 900;
    font-size: 1.5rem;
}

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

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* אזור Hero */
.hero-section {
    background-color: var(--primary-bg);
    color: var(--text-light);
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: calc(var(--nav-height) + 60px) 20px 60px;
    clip-path: polygon(0 0, 100% 0, 100% 95%, 0% 100%);
}

.main-title {
    font-size: 5rem;
    font-weight: 300;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.title-underline {
    width: 80%;
    height: 1px;
    background-color: rgba(255,255,255,0.4);
    margin: 0 auto 20px;
}

.sub-title {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 30px;
}

.badges {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin-bottom: 40px;
}

.badge {
    font-weight: 300;
}

.badge-pill {
    background-color: #ffffff;
    color: var(--primary-bg);
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 700;
}

/* קרדיטים וקישורים */
.credits {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    font-size: 1.1rem;
    background: rgba(0,0,0,0.2);
    padding: 15px 30px;
    border-radius: 8px;
}

.credit-item i {
    margin-left: 8px;
    color: #ffd700;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-5px);
}

.social-btn.facebook:hover {
    background-color: #1877F2;
}

.social-btn.website:hover {
    background-color: var(--accent-blue);
}

/* מרקר למנהלת ומשפטים מודגשים */
.highlight-marker {
    background: linear-gradient(120deg, rgba(162, 219, 250, 0.7) 0%, rgba(105, 172, 235, 0.5) 100%);
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
    color: var(--accent-blue);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* דבר המנהלת - עיצוב מגזין */
.principal-section {
    padding: 60px 20px;
    background-color: #ffffff;
}

.section-title {
    color: var(--primary-bg);
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
}

.principal-content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    font-size: 1.3rem;
    line-height: 1.9;
    color: #333;
    text-align: justify;
}

.principal-content-wrapper::after {
    content: "";
    display: table;
    clear: both;
}

.principal-img-float {
    float: left;
    width: 45%;
    max-width: 450px;
    margin-right: 40px;
    margin-bottom: 20px;
    border-radius: 20px;
    box-shadow: 15px 15px 0px rgba(32,75,144,0.1);
    border: 3px solid #fff;
    object-fit: cover;
}

/* אזור בחירת אירועים */
.events-hub-section {
    padding: 60px 20px;
}
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}
.event-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(32,75,144,0.15);
}
.event-card-thumb {
    height: 180px;
    width: 100%;
    object-fit: cover;
    background: #000;
}
.event-card-title {
    padding: 20px;
    font-size: 1.3rem;
    color: var(--primary-bg);
    font-weight: 700;
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* אזור תצוגת אירוע */
.event-view-section {
    padding: calc(var(--nav-height) + 40px) 20px 80px;
    min-height: 80vh;
}
.event-nav-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}
.btn-action {
    background: var(--primary-bg);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.1rem;
    font-family: inherit;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}
.btn-action:hover {
    background: var(--accent-blue);
}
.event-nav-arrows {
    display: flex;
    gap: 15px;
}
.btn-arrow {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: #eee;
    color: var(--primary-bg);
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}
.btn-arrow:hover {
    background: var(--accent-blue);
    color: white;
}
.event-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--accent-blue);
    margin-bottom: 20px;
}
.event-full-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #444;
    text-align: justify;
    margin-bottom: 40px;
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-right: 5px solid var(--accent-blue);
}

/* גלריה */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.media-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    background: #000;
    aspect-ratio: 16/9;
}

.media-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.media-item img, .media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.media-item video {
    object-fit: contain;
    background: #000;
}

.media-item:hover img {
    transform: scale(1.05);
}

.video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    opacity: 0.8;
}

.video-icon::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid var(--primary-bg);
    margin-left: 5px;
}

/* אנימציות חשיפה */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    animation: none;
}

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

.reveal {
    animation: revealFallback 0.8s ease-out 6.8s forwards;
}

/* כפתור חזרה למעלה */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: none;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    background-color: var(--primary-bg);
    transform: translateY(-3px);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {transform: scale(0.9); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close-lightbox:hover {
    color: #bbb;
}

@media (max-width: 768px) {
    .main-title {
        font-size: 3.5rem;
    }
    .sub-title {
        font-size: 1.5rem;
    }
    .principal-img-float {
        float: none;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    .credits {
        flex-direction: column;
        gap: 15px;
    }
}
/* Carousel Lightbox Styles */
.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}
.lightbox-prev:hover, .lightbox-next:hover {
    background: var(--accent-blue);
    transform: translateY(-50%) scale(1.1);
}
.lightbox-prev { right: 30px; }
.lightbox-next { left: 30px; }

.lightbox-content-wrapper {
    position: relative;
    max-width: 80%;
    max-height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    animation: zoomIn 0.3s;
    object-fit: contain;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.2rem;
    background: rgba(0,0,0,0.6);
    padding: 5px 20px;
    border-radius: 30px;
    font-weight: 600;
}

/* Video overlay for grid items */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.3s;
    z-index: 10;
    pointer-events: none;
}
.media-item:hover .video-overlay {
    opacity: 1;
}
.video-play-icon {
    font-size: 3rem;
    color: white;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
    transition: 0.3s;
}
.media-item:hover .video-play-icon {
    transform: scale(1.2);
}

/* התאמות נוספות למובייל */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* הסתרת תפריט ניווט כדי לחסוך מקום בנייד */
    }
    .logo-text {
        font-size: 1.2rem;
    }
    .nav-container {
        justify-content: center;
    }
    .hero-section {
        min-height: 50vh;
        padding-top: calc(var(--nav-height) + 20px);
    }
    .main-title {
        font-size: 2.5rem;
    }
    .sub-title {
        font-size: 1.2rem;
    }
    .badges {
        font-size: 1.1rem;
        flex-wrap: wrap;
    }
    .badge-pill {
        padding: 5px 15px;
    }
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    .principal-content-wrapper {
        font-size: 1.1rem;
    }
    .event-title {
        font-size: 1.8rem;
    }
    .event-full-text {
        font-size: 1.1rem;
        padding: 15px;
    }
    .media-grid {
        grid-template-columns: 1fr; /* תמונה אחת בשורה בנייד */
    }
    
    /* קרוסלה במובייל */
    .lightbox-prev, .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .lightbox-prev { right: 10px; }
    .lightbox-next { left: 10px; }
    .lightbox-content-wrapper {
        max-width: 95%;
    }
    .lightbox-counter {
        font-size: 1rem;
        bottom: 10px;
    }
}

/* משפט פתיחה - הרו */
.hero-quote {
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1.5;
    margin: 30px auto;
    max-width: 800px;
    color: #fff;
    font-style: italic;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px 40px;
    border-radius: 15px;
    border-right: 5px solid #ffd700;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* אירועים נבחרים */
.featured-section {
    padding: 60px 20px 20px;
    background-color: var(--bg-light);
}
.featured-carousel-container {
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-bottom: 30px;
    /* Hide scrollbar */
    -ms-overflow-style: none;  
    scrollbar-width: none;  
}
.featured-carousel-container::-webkit-scrollbar { 
    display: none; 
}
.featured-track {
    display: flex;
    gap: 30px;
    width: max-content;
}
.featured-card {
    scroll-snap-align: center;
    flex: 0 0 320px;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 2px solid transparent;
}
.featured-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-blue);
    box-shadow: 0 15px 35px rgba(32,75,144,0.2);
}

/* Footer */
.site-footer {
    background-color: var(--primary-bg);
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-top: 50px;
}
.footer-facebook {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #1877F2;
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4);
}
.footer-facebook:hover {
    background-color: #166fe5;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .hero-quote {
        font-size: 1.2rem;
        padding: 15px;
    }
    .featured-card {
        flex: 0 0 280px;
    }
}

/* Accessibility Classes */
body.high-contrast {
    background-color: #000 !important;
    color: #fff !important;
}
body.high-contrast .hero-section,
body.high-contrast .principal-section,
body.high-contrast .site-footer {
    background: #111 !important;
    color: #fff !important;
}
body.high-contrast .event-card,
body.high-contrast .featured-card {
    background: #222 !important;
    border: 1px solid #444;
}
body.high-contrast .main-title,
body.high-contrast .sub-title,
body.high-contrast h2,
body.high-contrast h3,
body.high-contrast p,
body.high-contrast .event-card-title {
    color: #fff !important;
}
body.high-contrast .hero-quote {
    background: #222 !important;
    border-right: 4px solid #fff;
    color: #fff !important;
}
body.high-contrast .nav-container {
    background: #000 !important;
    border-bottom: 1px solid #333;
}
body.high-contrast .nav-links a, body.high-contrast .logo-text {
    color: #fff !important;
}

body.large-text {
    font-size: 1.2rem;
}
body.large-text h1.main-title { font-size: 3.5rem; }
body.large-text h2.sub-title { font-size: 1.8rem; }
body.large-text .event-card-title { font-size: 1.4rem; }
body.large-text .principal-content p { font-size: 1.3rem; }
body.large-text .event-full-text { font-size: 1.4rem; }

/* UX 10x Upgrades */
:root {
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

body {
    background: linear-gradient(-45deg, #f0f4f8, #e0eaf5, #f5f7fa, #e6f0fa);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

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

.hero-section {
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.9) 0%, rgba(42, 82, 152, 0.9) 100%), url('assets/image1.png') center/cover;
    box-shadow: inset 0 -10px 20px rgba(0,0,0,0.1);
}

.hero-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.event-card, .featured-card {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.event-card:hover, .featured-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
}

.event-card::before, .featured-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.nav-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.ux-marker {
    background: linear-gradient(120deg, #ff9d00 0%, #ffc800 100%);
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(255, 157, 0, 0.4);
}

/* Nav Dropdowns */
.dropdown-nav {
    position: relative;
    display: inline-block;
}

.dropdown-nav-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 8px;
    overflow: hidden;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
}

.dropdown-nav-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    transition: background 0.3s;
}

.dropdown-nav-content a:hover {
    background-color: #f1f1f1;
    color: var(--accent-blue);
}

.dropdown-nav:hover .dropdown-nav-content {
    display: block;
}

/* Fix high contrast for dropdown */
body.high-contrast .dropdown-nav-content {
    background-color: #222;
    border: 1px solid #444;
}
body.high-contrast .dropdown-nav-content a {
    color: #fff;
}
body.high-contrast .dropdown-nav-content a:hover {
    background-color: #444;
}

/* Split Entrance Animation */

/* CRAZY TITLE IN CAROUSEL */
.crazy-title {
    font-size: 2rem !important; /* Huge text */
    line-height: 1.2 !important;
    font-weight: 900 !important;
    text-shadow: 0 5px 15px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.6) !important;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 100%);
    padding: 20px;
    margin: -20px -20px -20px; /* offset the overlay padding */
}

@media (max-width: 768px) {
    .cinematic-word-new { font-size: 3.5rem; letter-spacing: 5px; }
    .crazy-title { font-size: 1.5rem !important; }
}

}

/* 2. Hero Section & Atara Hook */
.atara-hook-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}

.atara-logo-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #fff;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
}

.atara-logo-img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.atara-hook-title {
    font-size: 3rem; font-weight: 600;
    font-weight: 800;
    line-height: 1.3;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    max-width: 600px;
    margin: 0 auto 10px;
}

.atara-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffd700;
    margin-bottom: 20px;
}

.btn-read-more {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-blue);
    background: #fff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255,255,255,0.2);
}

.btn-read-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.4);
}

/* 3. Atara Modal */
.atara-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 100000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.atara-modal.show {
    opacity: 1;
}

.atara-modal-content {
    background: #fff;
    color: #333;
    width: 90%;
    max-width: 700px;
    padding: 40px;
    border-radius: 20px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.atara-modal.show .atara-modal-content {
    transform: translateY(0);
}

.close-atara-modal {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 30px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    transition: color 0.3s;
}

.close-atara-modal:hover {
    color: #333;
}

.atara-modal-title {
    font-size: 2rem;
    color: var(--accent-blue);
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.atara-modal-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* 4. Swiper 3D Carousel */
.events-swiper {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
}

.event-slide {
    background-position: center;
    background-size: cover;
    width: 320px; /* Base width */
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    /* The swiper shadow works automatically */
}

/* Make center slide larger */
.swiper-slide-active {
    transform: scale(1.1) !important;
    z-index: 10;
}

.event-slide-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.event-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.event-slide-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    padding: 40px 20px 20px;
}

.event-slide-title {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    text-align: right;
    line-height: 1.3;
}

.event-heart-btn {
    position: absolute;
    top: 15px;
    left: 15px; /* RTL - left is left */
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 5;
}

.event-heart-btn:hover {
    background: rgba(255,255,255,0.4);
    transform: scale(1.1);
}

.event-heart-btn.active {
    background: rgba(255, 255, 255, 0.9);
}

/* Swiper navigation */
.swiper-button-next, .swiper-button-prev {
    color: var(--accent-blue) !important;
    background: rgba(255,255,255,0.8);
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 20px !important;
    font-weight: bold;
}

@media (max-width: 768px) {
    .event-slide {
        width: 260px;
        height: 380px;
    }
    .cinematic-word-new { font-size: 3rem; }
    .atara-hook-title { font-size: 1.6rem; }
    .swiper-button-next, .swiper-button-prev { display: none; } /* Hide arrows on mobile, they can swipe */
}

/* --- Floating Sidebar --- */
.floating-tools-sidebar {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}
.tool-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    color: var(--accent-blue, #204b90);
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}
.tool-btn:hover {
    background: var(--accent-blue, #204b90);
    color: #fff;
    transform: scale(1.1);
}
@media (max-width: 768px) {
    .floating-tools-sidebar {
        top: 20px;
        right: 20px;
        flex-direction: row;
        transform: none;
    }
    .tool-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* SCATTERED EMPTY FRAMES */
.empty-frame {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(0, 229, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 229, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.swiper-slide-active .empty-frame {
    border-color: rgba(0, 229, 255, 0.8);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), inset 0 0 40px rgba(0, 229, 255, 0.2);
}

.event-slide-overlay.centered {
    position: relative;
    background: none;
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.event-slide-overlay.centered .crazy-title {
    text-align: center;
    background: none;
    margin: 0;
    padding: 0;
    font-size: 2.2rem !important;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.8), 0 0 20px rgba(0, 229, 255, 0.4) !important;
}

/* NEW INTRO SCREEN */
.intro-screen {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: radial-gradient(circle at center, #050b14 0%, #000 100%);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.intro-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.intro-icon {
    font-size: 5rem;
    color: #00e5ff;
    text-shadow: 0 0 20px #00e5ff;
    margin-bottom: 20px;
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.intro-title-1, .intro-title-2 {
    font-size: 3rem;
    font-weight: 900;
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.intro-countdown {
    font-size: 8rem;
    font-weight: 900;
    color: #00e5ff;
    text-shadow: 0 0 50px #00e5ff, 0 0 100px #204b90;
    line-height: 1;
    margin: 20px 0;
}

.intro-btn {
    margin-top: 40px;
    padding: 15px 40px;
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(45deg, #00e5ff, #007bff);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
    transition: transform 0.3s, box-shadow 0.3s;
}

.intro-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.8);
}

.hidden {
    display: none !important;
}

.intro-fade-in {
    animation: fadeInIntro 1s forwards;
}

.intro-scale-up {
    animation: scaleUpIntro 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

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

@keyframes scaleUpIntro {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

/* SCREEN 2 STYLES */
.school-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff; text-shadow: 0 0 15px rgba(0,229,255,0.8);
    margin-bottom: 30px;
    text-align: center;
}

.circular-logo-wrapper {
    width: 250px;
    height: 250px;
    margin: 0 auto 40px;
    border-radius: 50%;
    padding: 10px;
    background: rgba(255,255,255,0.05);
    border: 3px solid rgba(0, 229, 255, 0.5);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.3), inset 0 0 20px rgba(0, 229, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.circular-logo {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Keeps logo aspect ratio within the circle */
    border-radius: 50%;
    background: white; /* Make sure transparent logos are visible */
}

.crazy-principal-container {
    text-align: center;
    margin-bottom: 60px;
}

.crazy-principal-title {
    font-size: 4rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
    background: linear-gradient(90deg, #00e5ff, #a0c4ff, #ffffff);
    -webkit-background-clip: text;
    text-shadow: 0 0 30px rgba(0, 229, 255, 0.4);
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.crazy-principal-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 4px;
    background: linear-gradient(90deg, transparent, #00e5ff, transparent);
    border-radius: 2px;
    box-shadow: 0 0 10px #00e5ff;
}

/* FLOATING SIDEBAR */
.floating-tools-sidebar.right {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.tool-item {
    position: relative;
}

.tool-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 229, 255, 0.3);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.3s;
}

.tool-btn:hover {
    background: rgba(0, 229, 255, 0.2);
    border-color: #00e5ff;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
}

.lang-select {
    appearance: none;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 229, 255, 0.3);
    color: white;
    padding: 10px;
    border-radius: 20px;
    font-family: 'Assistant', sans-serif;
    cursor: pointer;
}

@media (max-width: 768px) {
    .intro-title-1, .intro-title-2 { font-size: 2rem; }
    .intro-countdown { font-size: 6rem; }
    .crazy-principal-title { font-size: 2.5rem; }
    .circular-logo-wrapper { width: 180px; height: 180px; }
    .floating-tools-sidebar.right { right: 10px; transform: scale(0.9) translateY(-50%); }
}


.principal-text-box {
    max-width: 800px;
    margin: 30px auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 20px rgba(0, 229, 255, 0.05);
    backdrop-filter: blur(10px);
    text-align: center;
}

.principal-quote {
    font-size: 1.5rem;
    font-weight: 300;
    font-style: italic;
    color: #a0c4ff;
    line-height: 1.6;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(160, 196, 255, 0.3);
}

.principal-body { font-size: 1.05rem;
    font-size: 1.2rem;
    color: #ffffff;
    line-height: 1.8;
    margin: 0;
}

@media (max-width: 768px) {
    .principal-quote { font-size: 1.2rem; }
    .principal-body { font-size: 1rem; }
    .principal-text-box { padding: 20px; margin: 20px 15px; }
}

/* FOMO SECTION */
.fomo-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.fomo-subtitle {
    font-size: 1.5rem;
    color: #a0c4ff;
    margin-bottom: 30px;
}

.fomo-btn {
    font-size: 1.8rem;
    font-weight: 900;
    padding: 20px 50px;
    background: linear-gradient(45deg, #001f3f, #0077ff);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 30px rgba(0, 119, 255, 0.6), inset 0 0 10px rgba(255, 255, 255, 0.3);
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
    animation: fomoPulse 2s infinite;
}

.fomo-btn:hover {
    transform: scale(1.1) rotate(-2deg);
    box-shadow: 0 0 50px rgba(0, 119, 255, 0.9), inset 0 0 20px rgba(255, 255, 255, 0.5);
    animation: none;
}

@keyframes fomoPulse {
    0% { transform: scale(1); box-shadow: 0 0 30px rgba(0, 119, 255, 0.6); }
    50% { transform: scale(1.05); box-shadow: 0 0 50px rgba(0, 119, 255, 0.8); }
    100% { transform: scale(1); box-shadow: 0 0 30px rgba(0, 119, 255, 0.6); }
}

@media (max-width: 768px) {
    .fomo-title { font-size: 2rem; }
    .fomo-subtitle { font-size: 1.2rem; }
    .fomo-btn { font-size: 1.4rem; padding: 15px 30px; }
}

/* ABSTRACT INTRO BACKGROUND */
#intro-screen {
    background: #050a1f; /* Deep elegant dark blue */
    overflow: hidden;
}

.abstract-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    animation: shapeFloat 15s infinite alternate ease-in-out;
}

.shape1 {
    width: 600px;
    height: 600px;
    background: rgba(0, 150, 255, 0.3);
    top: -100px;
    left: -100px;
}

.shape2 {
    width: 800px;
    height: 800px;
    background: rgba(0, 50, 255, 0.2);
    bottom: -200px;
    right: -200px;
    animation-delay: -5s;
}

@keyframes shapeFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 100px) scale(1.2); }
}

.intro-text, .intro-subtext {
    font-family: 'Assistant', sans-serif !important;
    font-weight: 800;
    letter-spacing: 2px;
}

.intro-btn {
    font-family: 'Assistant', sans-serif !important;
    background: linear-gradient(135deg, #0077ff, #00d4ff);
    box-shadow: 0 10px 20px rgba(0, 119, 255, 0.4);
    border-radius: 5px; /* sharp elegant edges instead of pill */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.intro-btn:hover {
    box-shadow: 0 15px 30px rgba(0, 119, 255, 0.6);
    transform: translateY(-2px);
}

/* PRINCIPAL BOX WITH IMAGE */
.principal-text-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
}

@media(min-width: 768px) {
    .principal-text-box {
        flex-direction: row;
        text-align: right;
    }
}

.principal-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(0, 229, 255, 0.5);
    box-shadow: 0 0 20px rgba(0,229,255,0.2);
    margin-bottom: 20px;
}

@media(min-width: 768px) {
    .principal-img {
        margin-bottom: 0;
        margin-left: 30px;
        width: 200px;
        height: 200px;
    }
}

.principal-content-inner {
    flex: 1;
}

.principal-quote {
    font-family: 'Assistant', sans-serif;
    font-weight: 400;
    text-shadow: none;
}

.principal-body {
    font-family: 'Assistant', sans-serif;
    font-weight: 300;
}

/* CAROUSEL FULL SCREEN TRANSITION */
#events-hub {
    display: none; /* Hidden initially */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

#events-hub.active {
    display: flex;
    opacity: 1;
}

/* CAROUSEL ARROWS */
.custom-nav-arrow {
    color: white !important;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
    width: 60px !important;
    height: 60px !important;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    backdrop-filter: blur(5px);
    transition: background 0.3s, transform 0.3s;
}

.custom-nav-arrow:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.custom-nav-arrow::after {
    font-size: 24px !important;
    font-weight: bold;
}


/* --- NEW PRINCIPAL ANIMATION STYLES --- */
.principal-animation-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    width: 100%;
    position: relative;
    padding: 2rem;
}

.principal-countdown {
    font-size: 8rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 30px rgba(0, 119, 255, 0.8);
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.principal-countdown.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.principal-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    background: rgba(0, 15, 40, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 119, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 0 20px rgba(0, 119, 255, 0.1);
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.principal-content-wrapper.show {
    opacity: 1;
    transform: translateY(0);
}

.principal-image-large {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 30px;
    border: 4px solid #fff;
    box-shadow: 0 0 30px rgba(0, 119, 255, 0.6);
    opacity: 0;
    transform: scale(0.8);
    transition: all 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.principal-image-large.show {
    opacity: 1;
    transform: scale(1);
}

.principal-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.principal-text-sections {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    width: 100%;
    text-align: right;
    color: #fff;
    font-family: 'Assistant', sans-serif;
}

.typewriter-section {
    min-height: 80px;
    margin-bottom: 30px;
    text-align: center;
}

.typewriter-text { font-size: 3rem; text-align: center; line-height: 1.6; margin-bottom: 30px;
    font-size: 2rem;
    font-weight: 700;
    color: #4db8ff;
    text-shadow: 0 0 10px rgba(77, 184, 255, 0.5);
    margin: 0;
    border-right: 3px solid #fff;
    padding-right: 5px;
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    animation: blinkCursor 0.75s step-end infinite;
}

@keyframes blinkCursor {
    from, to { border-color: transparent }
    50% { border-color: #fff; }
}

.text-part {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 25px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.8s ease;
}

.text-part.show {
    opacity: 1;
    transform: translateX(0);
}

.text-part .highlight {
    color: #4db8ff;
    font-weight: 700;
    font-size: 1.3rem;
}

.signature-part {
    margin-top: 50px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease;
}

.signature-part.show {
    opacity: 1;
    transform: translateY(0);
}

.signature-name {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 119, 255, 0.8);
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.signature-title {
    font-size: 1.5rem;
    color: #4db8ff;
    font-weight: 600;
    letter-spacing: 1px;
}


/* --- VERTICAL PRINCIPAL SWIPER --- */
#main-content {
    height: 100vh;
    overflow: hidden;
}

.principal-swiper {
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #001f3f, #000814);
}

.principal-slide {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5%;
    box-sizing: border-box;
    opacity: 0 !important;
    transition: opacity 1s ease-in-out;
}

.principal-slide.swiper-slide-active {
    opacity: 1 !important;
}

.principal-slide .slide-content {
    max-width: 1200px;
    text-align: right;
    font-size: 3rem; font-weight: 600; /* MUCH LARGER TEXT */
    line-height: 1.6;
    color: #fff;
    text-shadow: 0px 4px 15px rgba(0,0,0,0.8);
    font-family: 'Assistant', sans-serif;
    transform: translateY(50px);
    opacity: 0;
    transition: all 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.5s;
}

.principal-slide.swiper-slide-active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.principal-slide.center-content .slide-content {
    text-align: center;
}

.huge-text {
    font-size: 4.5rem !important; line-height: 1.4;
    font-weight: 800;
}

.principal-slide .highlight {
    color: #4db8ff;
    font-weight: 800;
}

.principal-countdown-slide {
    font-size: 15rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 50px rgba(0, 119, 255, 0.8);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

.principal-countdown-slide.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.intro-content {
    transition: opacity 1s ease;
}

.slide-img {
    width: 450px;
    height: 450px;
    border: 5px solid #fff;
    box-shadow: 0 0 50px rgba(0, 119, 255, 0.8);
}

.signature-part-slide {
    margin-top: 60px;
    text-align: center;
}

.principal-pagination .swiper-pagination-bullet {
    background: #fff;
    width: 12px;
    height: 12px;
    opacity: 0.5;
}

.principal-pagination .swiper-pagination-bullet-active {
    background: #4db8ff;
    box-shadow: 0 0 10px #4db8ff;
    opacity: 1;
}

.scroll-indicator {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #4db8ff;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

.arrow-down {
    width: 20px;
    height: 20px;
    border-right: 3px solid #4db8ff;
    border-bottom: 3px solid #4db8ff;
    transform: rotate(45deg);
    margin-top: 10px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}


/* --- NEW INTRO SEQUENCE --- */
#intro-sequence {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #00152e, #004d99);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.intro-bg {
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
    animation: rotateBg 20s linear infinite;
    z-index: 1;
}

@keyframes rotateBg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.intro-content-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.intro-logo {
    width: 150px;
    height: 150px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 1s ease;
    margin-bottom: 30px;
}

.intro-text {
    font-family: 'Assistant', sans-serif;
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

#intro-text1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 30px;
}

#intro-countdown {
    font-size: 15rem;
    font-weight: 900;
    color: #4db8ff;
    text-shadow: 0 0 30px rgba(77, 184, 255, 0.6);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 20px 0;
    font-family: 'Assistant', sans-serif;
}

#intro-text2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #e6f5ff;
    margin-top: 30px;
    margin-bottom: 40px;
}

.intro-btn {
    opacity: 0;
    transform: translateY(20px);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid #fff;
    color: #fff;
    padding: 15px 40px;
    font-size: 1.8rem;
    font-family: 'Assistant', sans-serif;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.intro-btn:hover {
    background: #fff;
    color: #004d99;
    box-shadow: 0 10px 40px rgba(255,255,255,0.4);
    transform: translateY(-5px);
}

.intro-show {
    opacity: 1 !important;
    transform: scale(1) translateY(0) !important;
}


/* --- NATIVE SCROLL SNAP --- */
.principal-scroll-container {
    width: 100vw;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    background: linear-gradient(135deg, #001f3f, #000814);
    scroll-behavior: smooth;
}

.scroll-section {
    width: 100vw;
    min-height: 100vh;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5%;
    box-sizing: border-box;
}

.scroll-section .slide-content {
    max-width: 1200px;
    text-align: right;
    font-size: 3rem; font-weight: 600;
    line-height: 1.6;
    color: #fff;
    text-shadow: 0px 4px 15px rgba(0,0,0,0.8);
    font-family: 'Assistant', sans-serif;
}

.scroll-section.center-content .slide-content {
    text-align: center;
}

.skip-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-family: 'Assistant', sans-serif;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: none; /* hidden until main content shows */
}

.skip-btn:hover {
    background: #4db8ff;
    color: #00152e;
    transform: scale(1.05);
}


/* --- EVENT CAROUSEL OVERLAY & HEART --- */
.event-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background: #000;
}

.event-card-inner img, .event-card-inner video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.swiper-slide-active .event-card-inner img {
    transform: scale(1.05);
}

.event-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: #fff;
    text-align: center;
}

.event-title {
    font-size: 2rem;
    font-family: 'Assistant', sans-serif;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.heart-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    font-size: 2.2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.heart-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.heart-btn.liked {
    color: #ff3366;
    border-color: #ff3366;
    background: rgba(255, 51, 102, 0.1);
}

.heart-btn.pop {
    animation: heartPop 0.3s ease-out;
}

@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}
