/* --- HERO SECTION --- */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
    background-color: #020617;
    /* Deep Slate Base */
    /* Add a subtle grid pattern overlay */
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Fluid Background Container */
.hero-fluid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Optional: Contrast/Blend mode for more "liquid" look */
    /* filter: url('#goo');  <-- requires SVG filter for true liquid merge, but blur is good enough for now */
}

.fluid-blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.6;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    /* Organic shape */
    animation: fluidMorph 20s ease-in-out infinite alternate;
}

/* Blob 1: Primary Indigo */
.b1 {
    top: 20%;
    left: 20%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, rgba(79, 70, 229, 0.1) 70%);
    animation-duration: 25s;
    transform-origin: center;
}

/* Blob 2: Cyan Accent */
.b2 {
    bottom: 10%;
    right: 10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.3) 0%, rgba(6, 182, 212, 0.05) 70%);
    animation-duration: 30s;
    animation-direction: reverse;
}

/* Blob 3: Purple/Pink Mix */
.b3 {
    top: 40%;
    left: 40%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, rgba(192, 132, 252, 0.05) 70%);
    animation: fluidFloat 20s infinite ease-in-out;
}

@keyframes fluidMorph {
    0% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
        transform: translate(50px, -50px) rotate(10deg);
    }

    66% {
        border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%;
        transform: translate(-20px, 20px) rotate(-5deg);
    }

    100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        transform: translate(0, 0) rotate(0deg);
    }
}

@keyframes fluidFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Remove old pseudo-elements as we replaced them */
.hero::before,
.hero::after {
    display: none;
}

/* Ensure content is readable */
.hero-content {
    max-width: 860px;
    animation: fadeUp 0.8s ease-out forwards;
    position: relative;
    z-index: 10;
    padding: 2rem;
    border-radius: 20px;
}

/* Hero Badge */
.hero-badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: #818cf8;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

/* Upcoming Events Strip */
.hero-events {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.events-label {
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.hero-events-track {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-event-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 50px;
    padding: 0.45rem 1rem;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.83rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.hero-event-pill:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
    color: #c7d2fe;
}

.pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pill-dot.blue {
    background: #4285F4;
    box-shadow: 0 0 6px #4285F4;
}

.pill-dot.red {
    background: #EA4335;
    box-shadow: 0 0 6px #EA4335;
}

.pill-dot.yellow {
    background: #FBBC05;
    box-shadow: 0 0 6px #FBBC05;
}

.pill-dot.green {
    background: #34A853;
    box-shadow: 0 0 6px #34A853;
}

.pill-date {
    color: var(--text-secondary);
    font-size: 0.78rem;
}

.pill-arrow {
    color: var(--accent-color);
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.hero-event-pill:hover .pill-arrow {
    transform: translateX(3px);
}

/* Modern text gradient for the main heading */
.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.highlight {
    background: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(129, 140, 248, 0.3));
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* --- LAYOUTS & GRIDS --- */
.features-section {
    max-width: 1200px;
    margin: 5rem auto;
    padding: 0 5%;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* --- CARDS --- */
.feature-card {
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(99, 102, 241, 0.1);
    background: rgba(17, 24, 39, 0.85);
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.65;
    font-size: 0.95rem;
}

/* Glossy Gradient Overlay on Hover */
.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transition: 0.5s;
    z-index: 1;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
    /* Accent border color */
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.15);
    /* Coloured glow */
    background: rgba(30, 41, 59, 0.6);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-card p {
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-buttons {
        flex-direction: column;
    }
}