:root {
    /* Brand Colors */
    --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 {
    /* This makes the header stick to the top and not move when scrolling */
    position: sticky;
    top: 0;
    z-index: 100;
    
    /* Layout & Spacing */
    text-align: center;
    padding: 15px 0px 0px;
    
    /* Glassmorphism background so the scrolling cards slide behind it cleanly */
    background:#fff;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Logo Image Styling & Animation */
.brand-logo {
    width: 100%;
    max-width: 370px; /* Adjust this to change logo size */
    height: auto;
    margin-bottom: 5px;
    display: inline-block;
    
    /* Gentle floating animation so the logo doesn't feel completely static */
    /*animation: floatLogo 4s ease-in-out infinite;*/
}

@keyframes floatLogo {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

.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;
}
/* =========================================
   Grid Layout: 1 Big Left + 2x2 Right
   ========================================= */
.card-container {
    display: grid;
    gap: 25px;
    padding: 40px 5vw 20px;
    max-width: 1400px;
    margin: 0 auto;
    
    /* Default: 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: 300px;
    }
    
    /* Hero card spans full width on top for tablets */
    .event-card:first-child {
        grid-column: 1 / -1; 
        grid-row: span 1;
    }
}

/* Desktop (3 columns: 1.2fr for Hero, 1fr for 2x2 grid) */
@media (min-width: 1024px) {
    .card-container {
        grid-template-columns: 1.2fr 1fr 1fr;
        grid-auto-rows: 280px; /* Controls height of the small cards */
    }
    
    /* HERO CARD: Spans 1 Column wide, 2 Rows tall */
    .event-card:first-child {
        grid-column: 1 / 2;
        grid-row: 1 / 3;
    }
}

/* =========================================
   Full-Bleed Event Cards
   ========================================= */
.event-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    
    /* Dynamic width/height based on Grid cell */
    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;
}

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

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

/* Hover Lift Effect */
.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);
}

/* Background Image Layer */
.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;
}

/* Zoom background on hover */
.event-card:hover .card-bg {
    transform: scale(1.08);

}

/* Dark Bottom Gradient to make text readable */
.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 - Pinned to bottom */
.card-content {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 25px;
    display: flex;
    flex-direction: column;
    z-index: 3;
}

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

.card-logom {
    font-size: 1.80rem;
    font-weight: bold;
    text-transform: uppercase;
    color:#fff;
    margin-bottom: 8px;
}

.city-name {
    font-size: 1.6rem;
    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;
}

/* Make first card typography larger on Desktop */
@media (min-width: 1024px) {
    .event-card:first-child .card-content {
        padding: 40px;
    }
    .event-card:first-child .city-name {
        font-size: 3.5rem; /* Massive typography for the Hero card */
        margin-bottom: 10px;
    }
    .event-card:first-child .date {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
}

/* Gradient Button with Arrow */
.btn-explore {
    background: linear-gradient(90deg, var(--dark-teal), var(--accent-red));
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

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



/* Container to hold buttons side-by-side */
.card-buttons {
    display: flex;
    gap: 10px;            /* Space between the buttons */
    justify-content: center; /* Centers buttons horizontally */
    width: 100%;
    margin-top: 15px;
}

/* Base button styling */
.btn-explore {
    flex: 1;              /* Allows buttons to grow equally */
    padding: 10px 15px;
    cursor: pointer;
    white-space: nowrap;  /* Prevents text wrapping */
    /* Add your existing button styles here (border, radius, etc) */
}

/* Optional: Style for the second button to make it look different */
.btn-explore.outline {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
}


/* --- NEW SECTION: Traveling Neon Border Animation --- */

.event-card:first-child {
    border: none; /* Remove any solid border */
    background: #001217; /* Dark base so the neon pops */
    /* Add an ambient outer glow */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 155, 176, 0.4);
    /* Ensure overflow remains hidden to clip the light to the rounded corners */
    overflow: hidden; 
}

/* 1. The Rotating Light (A conical gradient that spins) */
.event-card:first-child::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    /* Creates a beam of light with a tail */
    background: conic-gradient(
        transparent 70%, 
        var(--primary-teal) 85%, 
        #fff 95%, 
        transparent 100%
    );
    animation: neonTravel 3s linear infinite;
    z-index: 1; /* Sits at the very back */
}

/* Keyframes to spin the light 360 degrees */
@keyframes neonTravel {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 2. Inset the Image: We shrink the image by 3px so the light shines through the edges */
.event-card:first-child .card-bg {
    top: 3px; 
    left: 3px; 
    width: calc(100% - 6px); 
    height: calc(100% - 6px);
    border-radius: 13px; /* Slightly less than the parent's 16px to curve perfectly */
    z-index: 2;
}

/* 3. Inset the Dark Overlay to match the image dimensions */
.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;
}

/* 4. Ensure Content sits on top of everything */
.event-card:first-child .card-content {
    bottom: 3px; 
    left: 3px; 
    width: calc(100% - 6px);
    z-index: 4;
}

/* Hover effect: Brighten the ambient shadow and slightly lift */
.event-card:first-child.show:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 35px rgba(0, 155, 176, 0.7);
}
/* ---------------------------------------------------- */



/* The "Conveyor Belt" Motion */
@keyframes printMove {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 0 160px; /* Moves icons downward */
    }
}

/* Optional: Make the icons pulse slightly */
.printing-grid {
    animation: printMove 15s linear infinite, iconPulse 4s ease-in-out infinite alternate;
}

@keyframes iconPulse {
    from { opacity: 0.3; }
    to { opacity: 0.6; }
}


/* Shared Style for all floating icons */
.particle-icon {
    position: absolute;
    width: 100px;
    height: 100px;
    bottom: -120px; /* Start below the container */
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0;
    pointer-events: none;
    filter: blur(0.5px);
}

/* 5 Unique Dummy Icons */
.pi-1 { 
    left: 5%; 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1' opacity='0.2'%3E%3Cpath d='M6 9V2h12v7M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2M6 14h12v8H6v-8z'/%3E%3C/svg%3E");
    animation: printFloatUp 12s infinite ease-in; 
}
.pi-2 { 
    left: 25%; 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1' opacity='0.15'%3E%3Cpath d='M12 2.69l5.66 5.66a8 8 0 1 1-11.31 0z'/%3E%3C/svg%3E");
    animation: printFloatUp 15s infinite ease-in-out; 
    animation-delay: 3s;
}
.pi-3 { 
    left: 50%; 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1' opacity='0.2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 2a10 10 0 0 1 0 20M12 12l4 4'/%3E%3C/svg%3E");
    animation: printFloatUp 10s infinite linear; 
    animation-delay: 1s;
}
.pi-4 { 
    left: 70%; 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1' opacity='0.1'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Cpath d='M3 9h18M9 21V9'/%3E%3C/svg%3E");
    animation: printFloatUp 18s infinite ease-out; 
    animation-delay: 5s;
}
.pi-5 { 
    left: 85%; 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1' opacity='0.15'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z'/%3E%3C/svg%3E");
    animation: printFloatUp 14s infinite ease-in-out;
}

/* The Unified Printing Motion */
@keyframes printFloatUp {
    0% {
        transform: translateY(0) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        /* Moves icon above the card while rotating it */
        transform: translateY(-600px) rotate(45deg) scale(1.1);
        opacity: 0;
    }
}

.banner-container {
   padding-top: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .banner-text {
    font-family: Roboto;
    font-size: 1.9rem;       /* Scalable size */
    font-weight: normal;        /* Bold for impact */
    letter-spacing: -0.02em; /* Tighter kerning for a modern look */
    line-height: 1.2;
    color: #ffffff;          /* Deep charcoal for readability */
    max-width: 1200px;    
      
      /* Prevents the line from getting too wide */
    /*text-transform: uppercase;*/ /* Optional: adds authority to the title */
  }

/* =========================
   Footer Styles (Left Logo, Right Text)
   ========================= */

.main-footer {
   /* background-color: rgba(0, 0, 0, 0.8); */
    padding: 2rem 1rem;
    margin-top: 1.5rem; 
    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;
    
    /* This creates the Left/Right layout */
    display: flex;
    flex-direction: row; /* Aligns items horizontally */
    align-items: center; /* Centers them vertically */
    justify-content: space-between; /* Pushes logo to the left, text to the right */
}

.footer-logo {
    max-width: 200px;
    height: auto;
    display: block;
    /* Removed the bottom margin since it is no longer stacked */
}

.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; /* Aligns the text inside its container to the right */
}

/* --- Mobile Responsiveness --- */
/* On smaller screens, it's best to stack them so they don't squish */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column; /* Stacks them vertically again on phones */
        justify-content: center;
        text-align: center;
    }
    
    .footer-logo {
        max-width: 160px;
        margin-bottom: 1rem; /* Adds space back when stacked */
    }
    
    .footer-copyright {
        text-align: center; /* Centers the text on phones */
        font-size: 0.85rem;
    }
}