/* Global Styles */
:root {
    --primary-color: #ff6b00;
    --accent-color: #ff8534;
    --text-color: #ffffff;
    --gradient-1: linear-gradient(135deg, #ff6b00 0%, #ff8534 100%);
    --background-color: #121212;
    --nav-height: 60px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: 'Orbitron', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Navigation */
.nav-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

.auth-btn {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-btn:hover {
    background: var(--accent-color);
    color: var(--background-color);
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

/* Main Content */
main {
    flex: 1 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
    overflow-x: hidden;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: rgba(0, 0, 0, 0.9);
    max-width: 400px;
    margin: 10vh auto;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 107, 0, 0.2);
}

.modal h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.modal form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal input {
    padding: 0.8rem;
    border: 1px solid rgba(255, 107, 0, 0.3);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-color);
    font-family: 'Orbitron', sans-serif;
}

.modal input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.auth-submit-btn {
    padding: 1rem;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    transition: transform 0.3s ease;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--primary-color);
}

/* Message Notifications */
.message {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 2rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.9);
    color: var(--text-color);
    border: 1px solid var(--primary-color);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.message.show {
    transform: translateY(0);
    opacity: 1;
}

.message.success {
    border-color: #4CAF50;
}

.message.error {
    border-color: #f44336;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    position: relative;
}

/* Section Styles */
section {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0;
    padding: 0;
    padding-top: 60px;
}

#heroCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: var(--background-color);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 3rem;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 107, 0, 0.3);
    max-width: 800px;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin: 0 auto;
    box-shadow: 0 0 30px rgba(255, 107, 0, 0.2);
}

.glitch-text {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-transform: uppercase;
    letter-spacing: 8px;
    margin: 0;
    padding: 0;
    line-height: 1.2;
    text-shadow: 0 0 20px rgba(255, 107, 0, 0.5);
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-color);
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 2;
    opacity: 0.9;
}

.hero-cta {
    margin-top: 1rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    position: relative;
    z-index: 2;
}

.cta-btn {
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.cta-btn.primary {
    background: var(--gradient-1);
    color: white;
    border: none;
}

.cta-btn.secondary {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--primary-color);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-wrapper {
        padding: 0 1rem;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: rgba(18, 18, 18, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 2rem;
        transition: right 0.3s ease;
        gap: 1.5rem;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .auth-btn {
        width: 100%;
        padding: 0.8rem;
        text-align: center;
    }

    section {
        padding: 3rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    /* Mobile menu animation */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero-section {
        padding-top: 60px;
        height: calc(100vh - 60px);
    }
    
    .hero-content {
        padding: 2rem;
        gap: 1.5rem;
        width: 95%;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .cta-btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

/* Timer Section */
.timer-section {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.8);
    padding: 3rem 0;
    text-align: center;
    will-change: transform;
}

.timer-section h2 {
    margin-bottom: 2rem;
}

.countdown-section {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-width: 800px;
    will-change: transform;
}

.countdown-box {
    text-align: center;
    min-width: 100px;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(255, 107, 0, 0.2);
    will-change: transform;
}

.countdown-number {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(255, 165, 0, 0.5);
    position: relative;
    display: block;
    margin-bottom: 0.5rem;
    will-change: transform, opacity;
}

.countdown-label {
    font-size: 1rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

.event-started {
    font-size: 2rem;
    color: var(--accent-color);
    text-align: center;
    margin: 0;
    animation: glow 2s ease-in-out infinite alternate;
}

/* Animation for countdown numbers */
.time-update {
    animation: numberUpdate 0.3s ease-out;
}

@keyframes numberUpdate {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive adjustments for countdown */
@media (max-width: 768px) {
    .countdown-box {
        min-width: calc(50% - 1rem);
        padding: 0.8rem;
    }

    .countdown-number {
        font-size: 2.5rem;
    }

    .countdown-label {
        font-size: 0.8rem;
    }

    .event-started {
        font-size: 1.5rem;
    }
}

/* Featured Section */
.featured-section {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.5);
    padding: 5rem 0;
}

.featured-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Highlights Section */
.highlights-section {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.7);
    padding: 5rem 0;
}

.highlights-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

/* Newsletter Section */
.newsletter-section {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.5);
    padding: 5rem 0;
    text-align: center;
}

.newsletter-form {
    position: relative;
    z-index: 2;
    max-width: 500px;
    margin: 2rem auto 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    section {
        padding: 3rem 0;
    }

    .countdown-section {
        padding: 1.5rem;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .countdown-box {
        min-width: calc(50% - 1rem);
    }

    .featured-grid,
    .highlights-container {
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .newsletter-form {
        padding: 0 1rem;
    }
}

/* Update section headings */
section h2 {
    font-size: 2.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 1rem;
}

/* Program Cards */
.program-card {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 107, 0, 0.2);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 107, 0, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.program-card:hover::before {
    opacity: 1;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.3);
}

.program-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Event Cards */
.event-card {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 107, 0, 0.2);
    position: relative;
}

.event-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.8));
    pointer-events: none;
}

.event-image {
    height: 250px;
    width: 100%;
    object-fit: cover;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.event-card:hover .event-image {
    transform: scale(1.05);
}

.card-image {
    position: relative;
    overflow: hidden;
    height: 250px;
    width: 100%;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.featured-card:hover .card-image img {
    transform: scale(1.05);
}

/* Gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 107, 0, 0.2);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 107, 0, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Ticket Cards */
.ticket-card {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 107, 0, 0.2);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.ticket-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.1) 0%, transparent 70%);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.ticket-card:hover::before {
    transform: rotate(225deg);
}

.ticket-card:hover {
    transform: translateY(-10px);
}

/* Floating Shapes Animation */
@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

.floating-shape {
    animation: float 6s ease-in-out infinite;
    will-change: transform;
}

.shape1 { animation-delay: 0s; }
.shape2 { animation-delay: -2s; }
.shape3 { animation-delay: -4s; }

/* Animations */
@keyframes glow {
    from {
        text-shadow: 0 0 20px var(--primary-color),
                     0 0 40px var(--primary-color),
                     0 0 60px var(--primary-color);
    }
    to {
        text-shadow: 0 0 40px var(--primary-color),
                     0 0 60px var(--primary-color),
                     0 0 80px var(--primary-color);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Parallax Effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Mouse Trail Effect */
.mouse-trail {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
}

/* Floating Shapes */
.floating-shape {
    position: absolute;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

.shape1 { top: 10%; left: 10%; }
.shape2 { top: 40%; right: 10%; }
.shape3 { bottom: 20%; left: 20%; }

/* Performance optimizations for animations */
.card-image img,
.event-image {
    will-change: transform;
    transform: translateZ(0);
}

/* Smooth scrolling for iOS */
@supports (-webkit-touch-callout: none) {
    html {
        -webkit-overflow-scrolling: touch;
    }
}

/* Fix for notch devices */
@supports (padding: max(0px)) {
    .nav-wrapper {
        padding-left: max(2rem, env(safe-area-inset-left));
        padding-right: max(2rem, env(safe-area-inset-right));
    }
}

/* Fix for landscape mode */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .nav-links {
        overflow-y: auto;
    }
} 