/* Homepage Specific Styles */

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    z-index: -2;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url('../events/folk2023.jpg'),
        url('../assets/slides/photo1.jpg'),
        url('../assets/slides/photo2.jpg'),
        url('../assets/slides/photo3.jpg'),
        url('../assets/slides/Photo4.jpg');
    background-size: contain;
    background-position: center;
    background-color: #0a0a0a;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: -1;
    animation: heroImageRotation 20s infinite;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at top, rgba(247, 148, 28, 0.3), transparent 70%),
        radial-gradient(ellipse at bottom, rgba(255, 215, 0, 0.2), transparent 70%),
        linear-gradient(
            135deg,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(10, 10, 10, 0.4) 30%,
            rgba(247, 148, 28, 0.1) 50%,
            rgba(10, 10, 10, 0.4) 70%,
            rgba(0, 0, 0, 0.9) 100%
        );
    z-index: 1;
    animation: overlayPulse 8s ease-in-out infinite;
}

@keyframes heroImageRotation {
    0%, 20% { 
        background-image: url('../events/folk2023.jpg');
        opacity: 1;
        transform: scale(1);
    }
    21%, 40% { 
        background-image: url('../assets/slides/photo1.jpg');
        opacity: 1;
        transform: scale(1.02);
    }
    41%, 60% { 
        background-image: url('../assets/slides/photo2.jpg');
        opacity: 1;
        transform: scale(1);
    }
    61%, 80% { 
        background-image: url('../assets/slides/photo3.jpg');
        opacity: 1;
        transform: scale(1.01);
    }
    81%, 100% { 
        background-image: url('../assets/slides/Photo4.jpg');
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes overlayPulse {
    0%, 100% { 
        background: 
            radial-gradient(ellipse at top, rgba(247, 148, 28, 0.3), transparent 70%),
            radial-gradient(ellipse at bottom, rgba(255, 215, 0, 0.2), transparent 70%),
            linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(10, 10, 10, 0.4), rgba(247, 148, 28, 0.1), rgba(10, 10, 10, 0.4), rgba(0, 0, 0, 0.9));
    }
    50% { 
        background: 
            radial-gradient(ellipse at top, rgba(247, 148, 28, 0.4), transparent 60%),
            radial-gradient(ellipse at bottom, rgba(255, 215, 0, 0.3), transparent 60%),
            linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(10, 10, 10, 0.3), rgba(247, 148, 28, 0.2), rgba(10, 10, 10, 0.3), rgba(0, 0, 0, 0.8));
    }
}

.hero-content {
    text-align: center;
    z-index: 10;
    max-width: 1000px;
    padding: 2rem;
    position: relative;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-advanced.magnetic {
    transition: all 0.3s ease;
    cursor: pointer;
    transform: translateZ(0);
}

.btn-advanced.magnetic:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 25px rgba(247, 148, 28, 0.3);
}

/* Events Showcase Section */
.events-showcase {
    position: relative;
    padding: 6rem 1.5rem;
    z-index: 10;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.9), rgba(26, 26, 26, 0.8));
}

.events-container {
    max-width: 1400px;
    margin: 0 auto;
}

.events-header {
    text-align: center;
    margin-bottom: 4rem;
}

.events-showcase-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    animation: glitch-anim 2s infinite;
}

.events-showcase-subtitle {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.events-showcase-description {
    font-size: 1.25rem;
    color: #d1d5db;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.events-grid-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* 3D Card System */
.card-3d {
    perspective: 1000px;
    transition: all 0.3s ease;
    animation: grid-appear 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(50px) rotateX(-30deg);
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.card-3d:hover .card-inner {
    transform: rotateY(10deg) rotateX(5deg) translateZ(20px);
}

.card-face {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, rgba(40, 40, 40, 0.95), rgba(20, 20, 20, 0.95));
    border: 1px solid rgba(247, 148, 28, 0.3);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    transition: all 0.4s ease;
}

.card-3d:hover .card-face {
    border-color: var(--primary);
    box-shadow: 
        0 20px 40px rgba(247, 148, 28, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Glitch Effect */
@keyframes glitch-anim {
    0%, 90%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
}

/* Grid Animation */
@keyframes grid-appear {
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

/* Hologram Effect */
.hologram {
    position: relative;
    background: linear-gradient(45deg, transparent 30%, rgba(247, 148, 28, 0.1) 50%, transparent 70%);
    animation: hologram-shift 3s ease-in-out infinite;
}

@keyframes hologram-shift {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
}

/* Carousel Section */
.carousel-section {
    position: relative;
    height: 600px;
    overflow: hidden;
    margin: 4rem 0;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-color: #0a0a0a;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide:nth-child(1) { 
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)), url('assets/slides/photo1.jpg'); 
}
.carousel-slide:nth-child(2) { 
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)), url('assets/slides/photo2.jpg'); 
}
.carousel-slide:nth-child(3) { 
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)), url('assets/slides/photo3.jpg'); 
}
.carousel-slide:nth-child(4) { 
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)), url('assets/slides/Photo4.jpg'); 
}

.carousel-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 2rem;
}

.carousel-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.carousel-description {
    font-size: 1.2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Image Carousel Background */
.image-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -5;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-color: #0a0a0a;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    filter: brightness(0.7);
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide:nth-child(1) { 
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)), url('../assets/slides/photo1.jpg'); 
}
.carousel-slide:nth-child(2) { 
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)), url('../assets/slides/photo2.jpg'); 
}
.carousel-slide:nth-child(3) { 
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)), url('../assets/slides/photo3.jpg'); 
}
.carousel-slide:nth-child(4) { 
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)), url('../assets/slides/Photo4.jpg'); 
}

/* Aurora Background */
.aurora-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 80% 80% at 50% -20%, rgba(247, 148, 28, 0.4), transparent),
        radial-gradient(ellipse 80% 80% at 80% 40%, rgba(255, 215, 0, 0.3), transparent),
        radial-gradient(ellipse 80% 80% at 20% 60%, rgba(255, 140, 0, 0.3), transparent),
        radial-gradient(ellipse 80% 80% at 50% 120%, rgba(247, 148, 28, 0.2), transparent);
    animation: aurora-dance 12s ease-in-out infinite;
    z-index: -3;
}

@keyframes aurora-dance {
    0%, 100% { 
        opacity: 0.4; 
        transform: scale(1) rotate(0deg); 
        filter: hue-rotate(0deg);
    }
    33% { 
        opacity: 0.7; 
        transform: scale(1.1) rotate(5deg); 
        filter: hue-rotate(30deg);
    }
    66% { 
        opacity: 0.5; 
        transform: scale(0.9) rotate(-3deg); 
        filter: hue-rotate(-20deg);
    }
}

/* Morphing Background */
.morph-bg {
    position: absolute;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg at 50% 50%, 
        rgba(247, 148, 28, 0.1) 0deg,
        rgba(255, 215, 0, 0.1) 120deg,
        rgba(255, 140, 0, 0.1) 240deg,
        rgba(247, 148, 28, 0.1) 360deg);
    animation: morph-rotate 20s linear infinite;
    top: -50%;
    left: -50%;
    z-index: -4;
}

@keyframes morph-rotate {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

/* Floating Orbs */
.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: float-complex 15s ease-in-out infinite;
    opacity: 0.6;
    z-index: 2;
    pointer-events: none;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(247, 148, 28, 0.3) 0%, transparent 70%);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.25) 0%, transparent 70%);
    top: 60%;
    right: 20%;
    animation-delay: 5s;
}

.orb-3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.35) 0%, transparent 70%);
    bottom: 30%;
    left: 30%;
    animation-delay: 10s;
}

@keyframes float-complex {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.3;
    }
    25% { 
        transform: translate(50px, -30px) rotate(90deg) scale(1.1);
        opacity: 0.6;
    }
    50% { 
        transform: translate(0, -60px) rotate(180deg) scale(0.9);
        opacity: 0.8;
    }
    75% { 
        transform: translate(-30px, -20px) rotate(270deg) scale(1.05);
        opacity: 0.4;
    }
}

/* Particles */
/* Music Visualization */
.music-viz {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    gap: 3px;
    align-items: end;
    z-index: 100;
    opacity: 0.6;
}

.wave-bar {
    width: 4px;
    background: linear-gradient(to top, var(--primary), var(--secondary));
    border-radius: 2px;
    animation: waveAnimation 1.5s ease-in-out infinite;
}

.wave-bar:nth-child(1) { height: 20px; animation-delay: 0s; }
.wave-bar:nth-child(2) { height: 30px; animation-delay: 0.1s; }
.wave-bar:nth-child(3) { height: 25px; animation-delay: 0.2s; }
.wave-bar:nth-child(4) { height: 35px; animation-delay: 0.3s; }
.wave-bar:nth-child(5) { height: 28px; animation-delay: 0.4s; }

@keyframes waveAnimation {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.5); }
}

/* Sections */
.content-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

#upcoming .upcoming-card {
    background: transparent;
}

#upcoming .upcoming-card + .upcoming-card {
    margin-top: 2rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: 1.1rem;
    text-align: center;
    color: #d1d5db;
    max-width: 800px;
    margin: 0 auto 4rem auto;
    line-height: 1.6;
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: linear-gradient(145deg, rgba(15, 15, 15, 0.95), rgba(25, 25, 25, 0.9));
    border: 1px solid rgba(247, 148, 28, 0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(247, 148, 28, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary);
}

.feature-description {
    color: #9ca3af;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: clamp(520px, 76vh, 680px);
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .carousel-title {
        font-size: 2rem;
    }
    
    .carousel-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .content-section {
        padding: 4rem 1rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .music-viz {
        bottom: 1rem;
        right: 1rem;
        transform: scale(0.8);
    }
}
