/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    /* Mobile First: Allow vertical scrolling, prevent horizontal scrolling */
    min-height: 100vh;
    overflow-x: hidden; 
    
    /* Flexbox setup to keep the footer at the bottom */
    display: flex;
    flex-direction: column;
    
    background: linear-gradient(135deg, #0b1121 0%, #151828 50%, #0a0b10 100%);
    color: #ffffff;
    position: relative;
}

/* Background Glow Effects */
.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    opacity: 0.5;
}

.glow-blue {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15), transparent 70%);
}

.glow-purple {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15), transparent 70%);
}

/* Container */
.container {
    flex: 1; 
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    /* Normal padding for mobile so it has breathing room */
    padding: 4rem 1.5rem; 
    position: relative;
    z-index: 10;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 3rem; 
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3rem); 
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #e2e8f0, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.05em;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
}

/* Responsive Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

/* Apple-style Glass Box */
.glass-box {
    display: block;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2rem;
    cursor: pointer;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-box h2 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #f8fafc;
}

.glass-box p {
    color: #94a3b8;
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Hover State */
.glass-box:hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Footer */
.footer {
    text-align: center;
    padding: 1.5rem;
    color: #64748b;
    font-size: 0.9rem;
    z-index: 10;
}

/* Entrance Animation States */
.hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* --- DESKTOP SPECIFIC RULES --- */
@media (min-width: 768px) {
    body {
        /* Locks the screen and kills the scrollbar ONLY on desktop */
        height: 100vh;
        overflow: hidden; 
    }

    .container {
        /* Changes from block layout to flex layout to center dead-middle */
        display: flex;
        flex-direction: column;
        justify-content: center; 
        align-items: center;     
        padding: 0 2rem;
    }
}