/* =========================================
   Variables & Reset
   ========================================= */
:root {
    --primary-teal: #009bb0;
    --accent-red: #e80d33;
    --dark-teal: #006083;
    --dark-bg: #03151c;
    --text-light: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: linear-gradient(354deg, #006083 0%, #009bb0 100%);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
}

/* =========================================
   Background Animations
   ========================================= */
.background-container {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.ink-flow {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-teal), transparent);
    opacity: 0.2;
    animation: flow 15s infinite linear;
}

.flow-1 { top: 30%; left: -100%; width: 50vw; }
.flow-2 { top: 70%; left: -100%; width: 70vw; animation-delay: 5s; }

@keyframes flow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200vw); }
}

/* =========================================
   Header
   ========================================= */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    text-align: center;
    padding: 25px 20px 2px;
    background: #fff;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brand-logo {
    width: 100%;
    max-width: 410px;
    height: auto;
    margin-bottom: 15px;
    display: inline-block;
}

.main-header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 5px;
    background: linear-gradient(to right, #fff, var(--primary-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-header p {
    font-size: 1rem;
    color: #303030;
    font-weight: 300;
}

/* =========================================
   Banner Text (Responsive)
   ========================================= */
.banner-container {
    padding: 35px 20px; 
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.banner-text {
    font-family: 'Roboto', 'Inter', sans-serif; 
    color: #ffffff;
    max-width: 1200px;
    display: flex;
    flex-direction: column; 
    gap: 12px; 
}

.banner-headline {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.banner-subtext {
    font-size: clamp(1rem, 2.5vw, 1.75rem);
    font-weight: 400;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9); 
}

/* =========================================
   Grid Layout (Standardized for Equal Cards)
   ========================================= */
.card-container {
    display: grid;
    gap: 25px;
    padding: 10px 5vw 20px;
    max-width: 1400px;
    margin: 0 auto;
    
    /* Mobile: 1 Column */
    grid-template-columns: 1fr;
    grid-auto-rows: 350px; 
}

/* Tablet: 2 Columns */
@media (min-width: 768px) {
    .card-container {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 350px;
    }
}

/* Desktop: 3 Equal Columns (Reverted to 3!) */
@media (min-width: 1024px) {
    .card-container {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 380px; 
    }
}

/* =========================================
   Full-Bleed Event Cards
   ========================================= */
.event-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
    height: 100%;
    
    /* Animation setup */
    opacity: 0;
    transform: translateY(40px);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.4s ease;
    
    /* Flex setup to push content to bottom */
    display: flex;
    flex-direction: column;
}

.event-card.show {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.event-card.show:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 155, 176, 0.3);
}

.card-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.event-card:hover .card-bg {
    transform: scale(1.08);
}

.card-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 80%;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    z-index: 2;
}

/* Content Container */
.card-content {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 100%;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; 
    z-index: 3;
}

/* Typography inside card */
.card-logo {
    font-size: 1.19rem;
    font-weight: normal;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 8px;
}

.city-name {
    font-size: 1.8rem; 
    font-weight: 800;
    color: var(--text-light);
    line-height: 1.1;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.date {
    font-size: 0.9rem;
    color: #e0e0e0;
    margin-bottom: 20px;
}

/* =========================================
   Buttons
   ========================================= */
.card-buttons {
    display: flex;
    gap: 10px;            
    justify-content: flex-start;
    width: 100%;
}

.btn-explore {
    flex: 1;              
    background: linear-gradient(90deg, var(--dark-teal), var(--accent-red));
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    white-space: nowrap;  
    transition: all 0.3s ease;
}

.btn-explore:hover {
    background: linear-gradient(90deg, var(--primary-teal), var(--accent-red));
    transform: translateY(-2px); 
    box-shadow: 0 4px 15px rgba(232, 13, 51, 0.4);
}

.btn-explore.outline {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
}

.btn-explore.outline:hover {
    background: #fff;
    color: var(--dark-teal); 
}

@media (max-width: 600px) {
    .card-buttons {
        flex-direction: column; 
        width: 100%;
    }
    .btn-explore {
        width: 100%; 
    }
}

/* =========================================
   Traveling Neon Border (Highlights the FIRST card)
   ========================================= */
.event-card:first-child {
    background: #001217; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 155, 176, 0.4);
}

.event-card:first-child::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: conic-gradient(
        transparent 70%, 
        var(--primary-teal) 85%, 
        #fff 95%, 
        transparent 100%
    );
    animation: neonTravel 3s linear infinite;
    z-index: 1; 
}

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

.event-card:first-child .card-bg {
    top: 3px; left: 3px; 
    width: calc(100% - 6px); 
    height: calc(100% - 6px);
    border-radius: 13px; 
    z-index: 2;
}

.event-card:first-child .card-overlay {
    bottom: 3px; left: 3px; 
    width: calc(100% - 6px); 
    height: 70%;
    border-bottom-left-radius: 13px;
    border-bottom-right-radius: 13px;
    z-index: 3;
}

.event-card:first-child .card-content {
    bottom: 3px; left: 3px; 
    width: calc(100% - 6px);
    z-index: 4;
}

/* =========================================
   Particle Printing Animation
   ========================================= */
.particle-icon {
    position: absolute;
    width: 100px;
    height: 100px;
    bottom: -120px; 
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0;
    pointer-events: none;
    filter: blur(0.5px);
}

.pi-1 { left: 5%; background-image: url("data:image/svg+xml,... (Keep your SVG here) ..."); animation: printFloatUp 12s infinite ease-in; }
.pi-2 { left: 25%; background-image: url("data:image/svg+xml,... (Keep your SVG here) ..."); animation: printFloatUp 15s infinite ease-in-out; animation-delay: 3s; }
.pi-3 { left: 50%; background-image: url("data:image/svg+xml,... (Keep your SVG here) ..."); animation: printFloatUp 10s infinite linear; animation-delay: 1s; }
.pi-4 { left: 70%; background-image: url("data:image/svg+xml,... (Keep your SVG here) ..."); animation: printFloatUp 18s infinite ease-out; animation-delay: 5s; }
.pi-5 { left: 85%; background-image: url("data:image/svg+xml,... (Keep your SVG here) ..."); animation: printFloatUp 14s infinite ease-in-out; }

@keyframes printFloatUp {
    0% { transform: translateY(0) rotate(0deg) scale(0.8); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 0.8; }
    100% { transform: translateY(-600px) rotate(45deg) scale(1.1); opacity: 0; }
}

/* =========================================
   Footer
   ========================================= */
.main-footer {
    padding: 2rem 1rem;
    margin-top: 4rem; 
    border-top: 1px solid rgba(255, 255, 255, 0.1); 
    position: relative; 
    z-index: 10;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: row; 
    align-items: center; 
    justify-content: space-between; 
}

.footer-logo {
    max-width: 200px;
    height: auto;
    display: block;
}

.footer-copyright {
    font-family: 'Inter', sans-serif;
    color: rgba(255, 255, 255, 0.7); 
    font-size: 0.9rem;
    font-weight: 400;
    margin: 0;
    text-align: right; 
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column; 
        justify-content: center;
        text-align: center;
    }
    
    .footer-logo {
        max-width: 160px;
        margin-bottom: 1rem; 
    }
    
    .footer-copyright {
        text-align: center; 
        font-size: 0.85rem;
    }
}