:root {
    --primary: #6a0dad;
    --primary-light: #9d4edd;
    --primary-dark: #3a0ca3;
    --accent: #ff00ff;
    --accent-glow: rgba(255, 0, 255, 0.5);
    --text-light: #f8f9fa;
    --text-dark: #212529;
    --background: #0f0f1a;
    --transition: all 0.3s ease;
    --glass: rgba(15, 15, 26, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--background);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    perspective: 1000px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* Page content wrapper for content-sized backgrounds */
.page-content {
    position: relative;
    width: 100%;
    min-height: 100vh;
}

/* Festive Background with Parallax Effect (content-sized) */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: visible;
}

/* All background overlays and festive elements now extend to the end of .page-content */
.stars-overlay,
.constellation-layer,
.nebula-overlay,
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.stars-overlay {
    z-index: -3;
    background-color: var(--background);
    background-image: 
        radial-gradient(circle at 70% 20%, var(--accent) 1px, transparent 8px),
        radial-gradient(circle at 30% 50%, var(--primary-light) 1px, transparent 6px),
        radial-gradient(circle at 90% 80%, var(--accent) 2px, transparent 9px),
        radial-gradient(circle at 10% 10%, var(--primary-light) 2px, transparent 7px),
        radial-gradient(circle at 40% 70%, var(--accent) 1px, transparent 5px),
        radial-gradient(circle at 60% 30%, var(--primary-light) 2px, transparent 10px);
    background-size: 300px 300px;
    background-repeat: repeat;
    opacity: 0.6;
    animation: scrollBackground 80s linear infinite;
}


.constellation-layer {
    z-index: -2;
    background-color: transparent;
    background-image: 
        /* Balloons */
        radial-gradient(circle at 20% 30%, var(--primary) 10px, transparent 20px),
        radial-gradient(circle at 80% 40%, var(--accent) 15px, transparent 25px),
        radial-gradient(circle at 40% 80%, var(--primary-light) 12px, transparent 22px),
        radial-gradient(circle at 65% 15%, var(--primary-dark) 8px, transparent 18px),
        radial-gradient(circle at 10% 60%, var(--accent) 13px, transparent 23px);
    background-size: 400px 400px;
    background-repeat: repeat;
    opacity: 0.3;
    animation: scrollBackground 120s linear infinite reverse;
    /* Removed transform: scale for seamless repeat */
}


.nebula-overlay {
    z-index: -1;
    background: 
        /* Candy and confetti */
        radial-gradient(circle at 25% 35%, transparent 0%, rgba(255, 0, 255, 0.1) 40%, transparent 70%),
        radial-gradient(circle at 75% 65%, transparent 0%, rgba(106, 13, 173, 0.1) 40%, transparent 70%),
        /* Colorful confetti dots */
        radial-gradient(circle at 15% 25%, #ff6b6b 1px, transparent 4px),
        radial-gradient(circle at 35% 85%, #48dbfb 1px, transparent 3px),
        radial-gradient(circle at 85% 25%, #feca57 1px, transparent 4px),
        radial-gradient(circle at 65% 65%, #1dd1a1 1px, transparent 3px),
        radial-gradient(circle at 45% 55%, #ff9ff3 1px, transparent 3px),
        radial-gradient(circle at 25% 75%, #00d2d3 1px, transparent 4px),
        radial-gradient(circle at 85% 85%, #ff9f43 1px, transparent 3px);
    background-size: 300px 300px;
    background-repeat: repeat;
    mix-blend-mode: screen;
    animation: pulseNebula 15s ease-in-out infinite, scrollBackground 100s linear infinite;
}


/* Seamless scrolling background animation for overlays */
@keyframes scrollBackground {
    from { background-position: 0 0; }
    to { background-position: 300px 300px; }
}

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

/* Floating festive elements (scoped to .about-features, will not extend past last section) */

/* Remove extra space below last section */
.section:last-of-type {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.balloon {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
    opacity: 0.8;
    z-index: 0;
}

.balloon-1 {
    top: 15%;
    left: 10%;
    background: linear-gradient(45deg, #ff6b6b, #ee5253);
    animation-delay: 0s;
}

.balloon-2 {
    top: 25%;
    right: 15%;
    background: linear-gradient(45deg, #48dbfb, #0abde3);
    animation-delay: 1s;
}

.balloon-3 {
    top: 60%;
    left: 20%;
    background: linear-gradient(45deg, #1dd1a1, #10ac84);
    animation-delay: 2s;
}

.balloon-4 {
    top: 70%;
    right: 20%;
    background: linear-gradient(45deg, #feca57, #ff9f43);
    animation-delay: 3s;
}

.balloon-5 {
    top: 40%;
    left: 30%;
    background: linear-gradient(45deg, #ff9ff3, #f368e0);
    animation-delay: 4s;
}

.balloon-6 {
    top: 30%;
    right: 30%;
    background: linear-gradient(45deg, #00d2d3, #01a3a4);
    animation-delay: 5s;
}

/* Middle section balloons */
.balloon-7 {
    top: 45%;
    left: 5%;
    background: linear-gradient(45deg, #ff9ff3, #f368e0);
    animation-delay: 1.5s;
}

.balloon-8 {
    top: 55%;
    right: 8%;
    background: linear-gradient(45deg, #feca57, #ff9f43);
    animation-delay: 2.5s;
}

.balloon-9 {
    top: 65%;
    left: 15%;
    background: linear-gradient(45deg, #54a0ff, #2e86de);
    animation-delay: 3.5s;
}

.balloon-10 {
    top: 75%;
    right: 12%;
    background: linear-gradient(45deg, #5f27cd, #341f97);
    animation-delay: 4.5s;
}

.balloon-11 {
    top: 85%;
    left: 25%;
    background: linear-gradient(45deg, #ee5253, #ff6b6b);
    animation-delay: 5.5s;
}

.balloon-12 {
    top: 90%;
    right: 25%;
    background: linear-gradient(45deg, #2ed573, #7bed9f);
    animation-delay: 0.5s;
}

/* Bottom section balloons */
.balloon-13 {
    top: 110%;
    left: 10%;
    background: linear-gradient(45deg, #ff9ff3, #f368e0);
    animation-delay: 1.2s;
}

.balloon-14 {
    top: 95%;
    right: 15%;
    background: linear-gradient(45deg, #ff6348, #ff7f50);
    animation-delay: 2.2s;
}

.balloon-15 {
    top: 95%;
    left: 20%;
    background: linear-gradient(45deg, #5f27cd, #341f97);
    animation-delay: 3.2s;
}

.balloon-16 {
    top: 95%;
    right: 20%;
    background: linear-gradient(45deg, #ff9f43, #feca57);
    animation-delay: 4.2s;
}

.balloon-17 {
    top: 95%;
    left: 30%;
    background: linear-gradient(45deg, #1dd1a1, #10ac84);
    animation-delay: 5.2s;
}

.balloon-18 {
    top: 95%;
    right: 30%;
    background: linear-gradient(45deg, #00d2d3, #01a3a4);
    animation-delay: 0.2s;
}

/* Confetti elements */
.confetti {
    position: fixed;
    width: 15px;
    height: 15px;
    opacity: 0.7;
    animation: confettiFall 10s linear infinite;
}

.confetti-1 {
    top: -5%;
    left: 10%;
    background: #ff6b6b;
    transform: rotate(15deg);
    animation-delay: 0s;
}

.confetti-2 {
    top: -10%;
    left: 20%;
    background: #48dbfb;
    transform: rotate(30deg);
    animation-delay: 1s;
}

.confetti-3 {
    top: -7%;
    left: 30%;
    background: #feca57;
    transform: rotate(45deg);
    animation-delay: 2s;
}

.confetti-4 {
    top: -12%;
    left: 40%;
    background: #1dd1a1;
    transform: rotate(60deg);
    animation-delay: 3s;
}

.confetti-5 {
    top: -9%;
    left: 50%;
    background: #ff9ff3;
    transform: rotate(75deg);
    animation-delay: 4s;
}

.confetti-6 {
    top: -6%;
    left: 60%;
    background: #00d2d3;
    transform: rotate(90deg);
    animation-delay: 5s;
}

.confetti-7 {
    top: -8%;
    left: 70%;
    background: #54a0ff;
    transform: rotate(105deg);
    animation-delay: 6s;
}

.confetti-8 {
    top: -11%;
    left: 80%;
    background: #5f27cd;
    transform: rotate(120deg);
    animation-delay: 7s;
}

.confetti-9 {
    top: -5%;
    left: 90%;
    background: #ff6348;
    transform: rotate(135deg);
    animation-delay: 8s;
}

.confetti-10 {
    top: 0%;
    left: 95%;
    background: #ff9f43;
    transform: rotate(150deg);
    animation-delay: 9s;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(200vh) rotate(360deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(5deg);
    }
    50% {
        transform: translateY(-25px) rotate(0deg);
    }
    75% {
        transform: translateY(-15px) rotate(-5deg);
    }
}

@keyframes pulseNebula {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.1); }
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    background: rgba(15, 15, 26, 0.8);
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    padding: 0.8rem 5%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    background: rgba(15, 15, 26, 0.95);
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-light);
    position: relative;
    animation: textGlow 3s infinite;
}

@keyframes textGlow {
    0% {
        text-shadow: 0 0 5px var(--accent-glow);
        color: var(--primary-light);
    }
    50% {
        text-shadow: 0 0 20px var(--accent), 0 0 30px var(--accent);
        color: #ffffff;
    }
    100% {
        text-shadow: 0 0 5px var(--accent-glow);
        color: var(--primary-light);
    }
}

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

.nav-links li {
    margin-left: 2.5rem;
    position: relative;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

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

.nav-links a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-image: linear-gradient(to right, var(--primary), var(--accent));
    transition: var(--transition);
}

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

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    margin: 5px 0;
    transition: var(--transition);
}

/* Sections */
.section {
    padding: 8rem 10% 4rem;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(106, 13, 173, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.content {
    background: rgba(15, 15, 26, 0.3);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform-style: preserve-3d;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin-bottom: 2rem;
}

.content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(157, 78, 221, 0.1) 0%, transparent 70%);
    transform: rotate(45deg);
    pointer-events: none;
    z-index: -1;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-light);
    text-align: center;
    font-weight: 800;
    letter-spacing: 2px;
    text-shadow: 0 0 15px var(--accent-glow);
    position: relative;
    z-index: 1;
}

.section-title span {
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.section-title span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 5px;
    bottom: 5px;
    left: 0;
    background-image: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.8;
}

/* Poster Section */
.poster-container {
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--glass-border);
}

.poster-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(106, 13, 173, 0.4);
    border-color: var(--primary-light);
}

.poster-image {
    max-width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.poster-container:hover .poster-image {
    transform: scale(1.02);
}

.poster-info {
    text-align: center;
    margin-top: 1.5rem;
    font-style: italic;
    opacity: 0.7;
}

/* About Section */
.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    background: rgba(15, 15, 26, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(106, 13, 173, 0.3);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary-dark), var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.feature-icon i {
    font-size: 2rem;
    color: var(--text-light);
}

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-light);
}

/* Goals Section */
.goals-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.goal {
    background: rgba(15, 15, 26, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
    transition: var(--transition);
}

.goal:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(106, 13, 173, 0.3);
    border-color: var(--primary-light);
}

.goal-progress {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.goal-bar {
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--accent));
    border-radius: 10px;
    transition: width 1s ease;
}

.goal-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-light);
}

/* Schedule Section */
.schedule-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.schedule-item {
    display: flex;
    background: rgba(15, 15, 26, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
}

.schedule-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(106, 13, 173, 0.3);
    border-color: var(--primary-light);
}

.schedule-time {
    background: linear-gradient(to bottom, var(--primary-dark), var(--primary));
    color: var(--text-light);
    padding: 2rem;
    min-width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    text-align: center;
}

.schedule-content {
    padding: 2rem;
    flex: 1;
}

.schedule-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-light);
}

/* Footer */
.footer {
    position: relative;
    z-index: 1;
    background: rgba(15, 15, 26, 0.5);
    backdrop-filter: blur(10px);
    padding: 4rem 5% 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    list-style: none;
    margin: 1.5rem 0;
}

.social-icons li {
    margin: 0 0.5rem;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-dark);
    color: var(--text-light);
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 0, 255, 0.3);
}

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

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Modal for Poster Zoom */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    overflow: hidden;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    background: rgba(15, 15, 26, 0.8);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--accent);
}

.modal-body {
    padding: 2rem;
    overflow: hidden;
}

.zoom-container {
    width: 100%;
    height: 70vh;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#zoomPoster {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform-origin: center;
    transition: transform 0.3s ease;
}

.zoom-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.zoom-controls button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(15, 15, 26, 0.5);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-controls button:hover {
    background: rgba(106, 13, 173, 0.3);
    border-color: var(--primary-light);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Responsive Design */
@media (max-width: 992px) {
    html {
        font-size: 14px;
    }
    
    .section {
        padding: 6rem 8%;
    }
    
    .schedule-item {
        flex-direction: column;
    }
    
    .schedule-time {
        width: 100%;
        min-width: auto;
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 12px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(15, 15, 26, 0.95);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 1.5rem 0;
    }
    
    .section {
        padding: 6rem 5%;
    }
    
    .content {
        padding: 2rem;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .zoom-controls {
        flex-wrap: wrap;
    }
}
