/* --- VARIABLES --- */
:root {
    --bg-color: #050505;
    --card-bg: #0f0f12;
    --text-color: #ffffff;
    
    /* Neon Palette */
    --neon-cyan: #00f3ff;
    --neon-magenta: #ff00ff;
    --neon-lime: #39ff14;
    --neon-yellow: #fdfd00;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Roboto', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}
/* Background Grid Effect */
.background-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
}

.main-container {
    width: 90%;
    max-width: 1200px;
    padding: 20px;
    text-align: center;
}

/* --- HERO SECTION --- */
.hero-section {
    margin-bottom: 60px;
}

h1 {
    font-family: 'Roboto', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 5px;
    margin-bottom: 10px;
    text-transform: uppercase;
    color: #39ff14;
    text-shadow: 
        0 0 10px rgba(57, 255, 20, 0.5),
        0 0 20px rgba(57, 255, 20, 0.3);
}

.subtitle {
    font-size: 1.5rem;
    color: var(--neon-magenta);
    min-height: 1.5rem;
}

/* --- GRID LAYOUT --- */
.nav-grid {
    display: grid;
    
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* --- TILES DESIGN --- */
.tile {
    position: relative;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 40px 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tile-content {
    z-index: 2;
    text-align: center;
}

.icon {
    font-size: 3rem;
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.tile h2 {
    font-family: 'Roboto', sans-serif;
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.tile p {
    color: #888;
    font-size: 1rem;
}

/* --- NEON VARIANTS --- */
/* Cyan Tile */
.tile-cyan:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
}
.tile-cyan h2 { color: var(--neon-cyan); }

/* Magenta Tile */
.tile-magenta:hover {
    border-color: var(--neon-magenta);
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.2);
}
.tile-magenta h2 { color: var(--neon-magenta); }

/* Lime Tile */
.tile-lime:hover {
    border-color: var(--neon-lime);
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.2);
}
.tile-lime h2 { color: var(--neon-lime); }

/* Yellow Tile */
.tile-yellow:hover {
    border-color: var(--neon-yellow);
    box-shadow: 0 0 30px rgba(253, 253, 0, 0.2);
}
.tile-yellow h2 { color: var(--neon-yellow); }

/* --- HOVER ANIMATIONS --- */
.tile:hover {
    transform: translateY(-10px);
    background: #15151a;
}

.tile:hover .icon {
    transform: scale(1.2);
}

/* --- FOOTER --- */
footer {
    font-size: 0.9rem;
    color: #555;
    margin-top: 40px;
}
#typing-text::after {
    content: '_';             
    color: var(--neon-green);
    font-weight: bold;
    margin-left: 2px;
    animation: blink-animation 1s step-end infinite;
}

/* 2. The Animation Logic */
@keyframes blink-animation {
    0%, 100% { opacity: 1; } /* Visible */
    50% { opacity: 0; }      /* Invisible */
}
/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    .subtitle {
        font-size: 1.2rem;
    }
    .nav-grid {
        gap: 20px;
    }
}
