/* =========================================================
   NeuroPlay Arcade - Landing Page / Shared UI Sections

   Purpose:
   - Styles the homepage hero section and feature cards
   - Defines shared navbar and footer presentation
   - Handles responsive adjustments for smaller screens
   ========================================================= */

/* =========================
   HERO SECTION
   ========================= */

/* Main hero container:
   centers introductory content vertically and horizontally
   while filling most of the visible viewport */
.hero {
    min-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 3rem 1.5rem;
    position: relative;
}

/* Primary headline with gradient text treatment
   for strong visual emphasis */
.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    background: linear-gradient(90deg, #6ea8fe, #a78bfa, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Supporting hero description text with readable width
   and softer secondary color */
.hero p {
    max-width: 700px;
    font-size: 1.15rem;
    color: var(--text-2);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

/* =========================
   BUTTONS GROUP
   ========================= */

/* Flexible action button row used for hero CTAs */
.buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* =========================
   FEATURES SECTION
   ========================= */

/* Responsive grid for feature or service cards */
.features {
    width: min(1200px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    padding: 2rem 1rem 3rem;
}

/* Individual feature card with spacing and hover-ready transition */
.features .card {
    padding: 1.8rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 20px;
}

/* Elevated hover interaction for feature cards */
.features .card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(0,0,0,0.4),
        0 0 30px rgba(110,168,254,0.2);
}

/* Feature card heading */
.features h3 {
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
}

/* Feature card supporting description */
.features p {
    font-size: 0.95rem;
    color: var(--text-2);
    line-height: 1.6;
}

/* =========================
   NAVBAR FIX (your HTML style)
   ========================= */

/* Main navigation bar container */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
}

/* Navigation links list layout */
.navbar ul {
    display: flex;
    gap: 1.2rem;
}

/* Base navigation link styling */
.navbar a {
    font-weight: 600;
    color: var(--text-2);
    transition: 0.2s;
}

/* Hover state for navigation links */
.navbar a:hover {
    color: white;
}

/* Active page link indicator */
.navbar a.active {
    color: var(--primary);
}

/* =========================
   FOOTER
   ========================= */

/* Footer section with subtle separation from page content */
.footer {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-3);
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2rem;
}

/* =========================
   SMALL SCREEN
   ========================= */

/* Responsive adjustments for tablets and mobile devices */
@media (max-width: 768px) {

    /* Reduce hero padding to fit smaller screens more comfortably */
    .hero {
        padding: 2rem 1rem;
    }

    /* Slightly reduce headline size on smaller displays */
    .hero h1 {
        font-size: 2.2rem;
    }

    /* Reduce paragraph size for improved mobile readability */
    .hero p {
        font-size: 1rem;
    }

    /* Stack navbar content vertically when horizontal space is limited */
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }

    /* Allow nav links to wrap neatly across lines */
    .navbar ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}