/* ==========================================
   1. VARIABLES & DESIGN SYSTEM
   ========================================== */
:root {
    /* Theme Colors */
    --color-primary: #0B1F3A;    /* Dark Navy */
    --color-accent: #2563EB;     /* Royal Blue */
    --color-bg-light: #F8FAFC;   /* Very Light Gray/Blue */
    --color-border: #E5E7EB;     /* Soft Gray */
    --color-text-dark: #0F172A;
    --color-text-muted: #475569;
    --color-white: #FFFFFF;

    /* Typography Sizes */
    --fs-h1: 56px;
    --fs-h2: 40px;
    --fs-h3: 24px;
    --fs-body: 18px;

    /* Spacing & Layout */
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(11, 31, 58, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(11, 31, 58, 0.1), 0 8px 10px -6px rgba(11, 31, 58, 0.1);
    --shadow-lg: 0 20px 35px -10px rgba(37, 99, 235, 0.25);
}

/* ==========================================
   2. BASE STYLES
   ========================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: var(--fs-body);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h1 {
    font-size: var(--fs-h1);
    line-height: 1.1;
    font-weight: 800;
}

h2 {
    font-size: var(--fs-h2);
    line-height: 1.2;
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: var(--fs-h3);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

/* ==========================================
   3. HERO SECTION (Main Focus)
   ========================================== */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1E3A8A 100%);
    color: var(--color-white);
    padding: 100px 0 120px;
    text-align: center;
    position: relative;
    box-shadow: inset 0 -10px 20px rgba(0,0,0,0.15);
}

.hero h1 {
    color: var(--color-white);
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.hero h2 {
    color: var(--color-accent);
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero .tagline {
    font-size: 22px;
    font-style: italic;
    color: #93C5FD;
    max-width: 800px;
    margin: 0 auto 16px auto;
}

/* Injecting Short Description without modifying PHP file */
.hero .tagline::after {
    content: "Join world-leading researchers, innovators, and industry pioneers for three days of impactful keynotes, collaborative hackathons, and cutting-edge technology showcases.";
    display: block;
    font-style: normal;
    font-size: var(--fs-body);
    color: var(--color-border);
    max-width: 680px;
    margin: 20px auto 0;
    line-height: 1.5;
}

.next-event {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 16px;
    margin-bottom: 36px;
}

/* Base Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 16px 36px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-fast);
    margin: 8px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 40px -10px rgba(37, 99, 235, 0.4);
    background-color: #1D4ED8;
}

/* Injecting "Learn More" Second Button without modifying PHP file */
.hero .container::after {
    content: "Learn More";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
    padding: 14px 34px;
    font-size: 18px;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    margin: 8px;
    transition: all var(--transition-fast);
}

.hero .container::after:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

/* ==========================================
   4. LIVE STATS SECTION (With Animations)
   ========================================== */
.stats {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 48px 32px;
    margin: -50px auto 60px auto; /* Overlaps hero for personality */
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--color-bg-light);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-emoji {
    font-size: 40px;
    /* Subtle pulsing animation */
    animation: floatEmoji 3s ease-in-out infinite;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* Float Keyframes for Stats */
@keyframes floatEmoji {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ==========================================
   5. CARDS / INNOVATION SECTION
   ========================================== */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    margin-bottom: 80px;
}

.card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    position: relative;
    top: 0;
}

.card:hover {
    top: -8px;
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

.card p {
    color: var(--color-text-muted);
    font-size: 16px;
}

/* ==========================================
   6. RESPONSIVENESS
   ========================================== */
@media (max-width: 768px) {
    :root {
        --fs-h1: 38px;
        --fs-h2: 30px;
        --fs-h3: 20px;
        --fs-body: 16px;
    }

    .hero {
        padding: 60px 0 80px;
    }

    .hero .tagline {
        font-size: 18px;
    }

    .stats {
        margin-top: -30px;
        padding: 32px 16px;
    }

    .btn, 
    .hero .container::after {
        display: block;
        width: 100%;
        margin: 12px 0;
    }
}