/* animations.css - Animation Styles & Effects */

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-screen.fade-out {
    opacity: 0;
}

.loading-content {
    text-align: center;
}

.loading-logo img {
    width: 150px;
    height: auto;
    margin-bottom: 2rem;
    animation: pulse 2s infinite;
}

.loading-text {
    display: flex;
    justify-content: center;
    gap: 0.2rem;
    margin-bottom: 2rem;
}

.loading-letter {
    font-size: 2rem;
    font-family: var(--font-display);
    color: var(--primary-color);
    animation: letterBounce 1.5s ease infinite;
}

.loading-space {
    width: 1rem;
}

@keyframes letterBounce {
    0%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-progress {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 2px;
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Text Reveal Animation */
.text-reveal {
    opacity: 0;
    transform: translateY(100px);
    animation: textReveal 1s ease forwards;
}

@keyframes textReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typewriter Effect */
.typewriter {
    border-right: 2px solid var(--primary-color);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% {
        border-color: var(--primary-color);
    }
    51%, 100% {
        border-color: transparent;
    }
}

/* Booking Modal */
.booking-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.booking-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: var(--bg-section);
    border-radius: var(--border-radius);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid rgba(0, 212, 170, 0.2);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.booking-modal.show .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.modal-price {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-color);
    font-family: var(--font-display);
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

.total-section {
    padding: 1.5rem;
    background: rgba(0, 212, 170, 0.1);
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid rgba(0, 212, 170, 0.2);
}

.total-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-display);
}

.booking-submit {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 1rem;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.show {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.lightbox.show .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: var(--primary-color);
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.1s ease;
    mix-blend-mode: difference;
}

.cursor-dot {
    position: fixed;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.1s ease;
}

.custom-cursor.cursor-hover {
    transform: scale(1.5);
    background: rgba(0, 212, 170, 0.1);
}

.cursor-dot.cursor-hover {
    transform: scale(2);
}

/* Countdown Timer */
.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem 1rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 100px;
}

.countdown-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    font-family: var(--font-display);
    color: var(--primary-color);
    line-height: 1;
}

.countdown-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Instagram Post Overlay */
.instagram-post {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.instagram-post:hover {
    transform: scale(1.05);
}

.post-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gradient-overlay);
    color: var(--text-primary);
    padding: 1rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.instagram-post:hover .post-overlay {
    transform: translateY(0);
}

.post-overlay p {
    margin: 0;
    font-size: 0.9rem;
}

/* Image Reveal Animation */
.reveal-image {
    opacity: 0;
    transition: opacity 1s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transform: translateX(0);
    transition: transform 1s ease;
    z-index: 2;
}

/* Counter Animation */
.counter {
    font-size: 3rem;
    font-weight: 900;
    font-family: var(--font-display);
    color: var(--primary-color);
}

/* Floating Elements */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* Shake Animation for CTAs */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* Gradient Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-animate {
    background: linear-gradient(-45deg, #00d4aa, #00b393, #1a1a1a, #00d4aa);
    background-size: 400% 400%;
    animation: gradientShift 3s ease infinite;
}

/* Neon Glow Effect */
.neon-glow {
    text-shadow: 
        0 0 5px var(--primary-color),
        0 0 10px var(--primary-color),
        0 0 15px var(--primary-color),
        0 0 20px var(--primary-color);
    animation: neonFlicker 2s infinite alternate;
}

@keyframes neonFlicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        text-shadow: 
            0 0 5px var(--primary-color),
            0 0 10px var(--primary-color),
            0 0 15px var(--primary-color),
            0 0 20px var(--primary-color);
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

/* Particle Canvas */
.particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Button Ripple Effect */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

/* Stagger Animation */
.stagger-child {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.stagger-child.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Hover Grow Effect */
.hover-grow {
    transition: transform 0.3s ease;
}

.hover-grow:hover {
    transform: scale(1.05);
}

/* Slide In Animations */
.slide-in-left {
    transform: translateX(-100px);
    opacity: 0;
    transition: all 0.8s ease;
}

.slide-in-right {
    transform: translateX(100px);
    opacity: 0;
    transition: all 0.8s ease;
}

.slide-in-up {
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.8s ease;
}

.slide-in-down {
    transform: translateY(-100px);
    opacity: 0;
    transition: all 0.8s ease;
}

.slide-in-left.animate-in,
.slide-in-right.animate-in,
.slide-in-up.animate-in,
.slide-in-down.animate-in {
    transform: translate(0, 0);
    opacity: 1;
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transition: opacity 1s ease;
}

.fade-in.animate-in {
    opacity: 1;
}

/* Scale Animation */
.scale-in {
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.8s ease;
}

.scale-in.animate-in {
    transform: scale(1);
    opacity: 1;
}

/* Rotate Animation */
.rotate-in {
    transform: rotate(-180deg);
    opacity: 0;
    transition: all 0.8s ease;
}

.rotate-in.animate-in {
    transform: rotate(0deg);
    opacity: 1;
}

/* Ticket Card Selection State */
.ticket-card.selected {
    border-color: var(--primary-color);
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.ticket-card.selected::before {
    content: '✓ Selected';
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--primary-color);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .custom-cursor,
    .cursor-dot {
        display: none;
    }
    
    .countdown-timer {
        gap: 1rem;
    }
    
    .countdown-item {
        min-width: 80px;
        padding: 1rem 0.5rem;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .loading-logo img {
        width: 100px;
    }
    
    .loading-text {
        gap: 0.1rem;
    }
    
    .loading-letter {
        font-size: 1.5rem;
    }
    
    .loading-bar {
        width: 250px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .particles-canvas {
        display: none;
    }
    
    .custom-cursor,
    .cursor-dot {
        display: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #00ff00;
        --text-primary: #ffffff;
        --text-secondary: #cccccc;
        --bg-dark: #000000;
        --bg-section: #111111;
    }
    
    .btn-outline {
        border-width: 3px;
    }
    
    .ticket-card,
    .feature-item,
    .artist-card {
        border-width: 2px;
    }
}

/* Focus Indicators for Accessibility */
.btn:focus,
.nav-link:focus,
input:focus,
select:focus,
button:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar,
    .hamburger,
    .video-background,
    .particles-canvas,
    .custom-cursor,
    .cursor-dot,
    .loading-screen,
    .booking-modal,
    .lightbox {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .hero {
        height: auto !important;
        background: white !important;
    }
    
    .section-title,
    .hero-title {
        color: black !important;
    }
}