/* --- CSS VARIABLES FOR EASY THEME CHANGE --- */
:root {
    --bg-dark: #000000;
    --neon-green: #00ff88;
    --neon-shadow: 0 0 5px var(--neon-green), 0 0 15px var(--neon-green), 0 0 30px #00a055;
    --card-bg: #0d0d0d;
    --font-family-mono: 'Roboto Mono', monospace;
    --padding-section: 80px 5%;
}

/* --- Global Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: #e0e0e0; /* Light gray for body text */
    font-family: var(--font-family-mono);
    line-height: 1.6;
    scroll-behavior: smooth;
    /* Hide overflow to prevent horizontal scroll from large shadows */
    overflow-x: hidden; 
}

/* --- Typography & Neon Glow --- */
.neon-text {
    color: var(--neon-green);
    text-shadow: var(--neon-shadow);
}

.neon-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--neon-green);
    text-shadow: var(--neon-shadow);
}

.subtitle {
    font-size: 1.2em;
    color: #a0a0a0;
    letter-spacing: 1px;
}

/* --- Layout & Utility --- */
.section-padding {
    padding: var(--padding-section);
    min-height: 100vh; /* Ensures sections take up full viewport for separation */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* --- Navigation Bar (Header) --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
}

.logo {
    font-size: 1.8em;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.neon-dot {
    color: var(--neon-green);
    text-shadow: var(--neon-shadow);
}

.navbar a {
    color: #e0e0e0;
    text-decoration: none;
    margin-left: 30px;
    transition: color 0.3s, text-shadow 0.3s;
    font-size: 0.9em;
}

.navbar a:hover {
    color: var(--neon-green);
    text-shadow: var(--neon-shadow);
}

/* --- Global Card Component (Hacker Aesthetic) --- */
.glow-card {
    background: var(--card-bg);
    border: 1px solid rgba(0, 255, 136, 0.2);
    padding: 30px;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.glow-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.5), 0 0 30px rgba(0, 255, 136, 0.2);
}

/* --- Neon Button Component --- */
.neon-button {
    display: inline-block;
    padding: 12px 25px;
    margin-top: 20px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    
    color: var(--neon-green);
    border: 2px solid var(--neon-green);
    background: transparent;
    border-radius: 4px;
    
    /* Initial subtle glow */
    box-shadow: 0 0 5px var(--neon-green);
    
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.neon-button:hover {
    color: var(--bg-dark);
    background-color: var(--neon-green);
    /* Intense glow on hover */
    box-shadow: 0 0 10px var(--neon-green), 0 0 30px var(--neon-green), 0 0 60px var(--neon-green);
}


/* ------------------------------------- */
/* --- 1. Hero Section Specific Styles --- */
/* ------------------------------------- */
.hero-section {
    min-height: 100vh;
    text-align: center;
    justify-content: center;
}

.hero-content {
    position: relative;
    z-index: 2; /* Above the particle background */
}

.animated-h1 {
    font-size: 7vw; /* Responsive font size */
    margin-bottom: 0.2em;
    line-height: 1;
    font-weight: 700;
}

/* Animation Placeholder: Text/Character Reveal */
/* @keyframes flicker { ... } */


/* ------------------------------------- */
/* --- 2. About Section Specific Styles --- */
/* ------------------------------------- */
.about-section {
    min-height: 80vh;
}

.card-large {
    max-width: 800px;
    font-size: 1.1em;
    line-height: 1.8;
}

/* ------------------------------------- */
/* --- 3. Skills Section Specific Styles --- */
/* ------------------------------------- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    width: 100%;
}

.skill-group {
    text-align: center;
}

.group-title {
    color: var(--neon-green);
    margin-bottom: 20px;
    border-bottom: 1px dashed rgba(0, 255, 136, 0.2);
    padding-bottom: 10px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.neon-tag {
    display: inline-block;
    background: #1a1a1a;
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
    border-radius: 20px;
    padding: 8px 15px;
    margin: 5px;
    font-size: 0.9em;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.7);
    transition: background 0.2s;
}

.neon-tag:hover {
    background: rgba(0, 255, 136, 0.1);
}

/* ------------------------------------- */
/* --- 4. Projects Section Specific Styles --- */
/* ------------------------------------- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    width: 100%;
}

.project-card h3 {
    color: var(--neon-green);
    margin-bottom: 10px;
}

.project-card p {
    color: #b0b0b0;
    margin-bottom: 20px;
    min-height: 40px; /* Ensures card height uniformity */
}


/* ------------------------------------- */
/* --- 5. Education & Experience Styles --- */
/* ------------------------------------- */
.edu-exp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 900px;
    width: 100%;
    align-items: stretch;
}

.edu-card ul {
    list-style: none;
    padding-left: 0;
}

.edu-card li {
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.edu-card li:last-child {
    border-bottom: none;
}

.experience-text {
    font-style: italic;
    color: #c0c0c0;
    font-size: 1.1em;
    line-height: 1.5;
}

/* ------------------------------------- */
/* --- 6. Footer Styles --- */
/* ------------------------------------- */
.footer {
    padding: 30px 5%;
    text-align: center;
    border-top: 1px solid rgba(0, 255, 136, 0.2);
    background-color: var(--card-bg);
}

.copyright {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.8em;
}

.social-link {
    color: #e0e0e0;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s, text-shadow 0.3s;
    text-transform: uppercase;
    font-size: 0.9em;
}

.social-link:hover {
    color: var(--neon-green);
    text-shadow: var(--neon-shadow);
}

/* ------------------------------------- */
/* --- Responsive Design (Mobile First) --- */
/* ------------------------------------- */
@media (max-width: 768px) {
    
    .navbar {
        flex-direction: column;
        padding: 15px 5%;
    }

    .navbar nav {
        margin-top: 10px;
    }

    .navbar a {
        margin: 0 8px;
        font-size: 0.8em;
    }

    .animated-h1 {
        font-size: 12vw; /* Larger on smaller screens */
    }

    .subtitle {
        font-size: 0.9em;
    }

    .neon-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .edu-exp-grid {
        grid-template-columns: 1fr; /* Stack education and experience vertically */
    }
}
