:root {
    --bg: #0b0f18;
    --panel: #0f1724;
    --accent-1: #7c5cff; /* electric purple */
    --accent-2: #00d4ff; /* cyan */
    --muted: #9aa4b2;
    --text: #e2e8f0;
    --border: rgba(124, 92, 255, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
    line-height: 1.6;
    overflow-x: hidden;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; margin-bottom: 2rem; }

.section {
    padding: 6rem 0;
    border-bottom: 1px solid var(--border);
}

/* --- Header & Nav --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 1000;
    background: rgba(11, 15, 24, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}
.nav-logo span { color: var(--accent-1); }

.nav-links {
    list-style: none;
    display: flex;
}
.nav-links li { margin-left: 2rem; }
.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
.nav-links a:hover {
    color: var(--accent-2);
    text-shadow: 0 0 10px var(--accent-2);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    margin-bottom: 1rem;
}

.hero .subtitle {
    font-size: 1.2rem;
    color: var(--muted);
    margin-bottom: 2rem;
}

.typed-text {
    color: var(--accent-2);
}

.cta-button {
    display: inline-block;
    background: var(--accent-1);
    color: var(--text);
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 15px rgba(124, 92, 255, 0.5);
    cursor: pointer;
    border: none;
}
.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(124, 92, 255, 0.8);
}

.status-bar {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--panel);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    border: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--muted);
    display: flex;
    gap: 1rem;
}
.status-bar .status-item {
    display: flex;
    align-items: center;
}
.status-bar .status-indicator {
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    margin-right: 0.5rem;
    box-shadow: 0 0 5px #00ff00;
}

/* --- About Me Section --- */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.about-content p {
    font-size: 1.1rem;
    color: var(--muted);
}

/* --- Skills Section --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.skill-category {
    background: var(--panel);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}
.skill-category h3 {
    color: var(--accent-2);
    margin-bottom: 1rem;
}
.skill-list {
    list-style: none;
}
.skill-list li {
    margin-bottom: 0.5rem;
    color: var(--muted);
}

/* --- Experience Section --- */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}
.timeline-item {
    padding: 1rem 2rem;
    position: relative;
    width: 50%;
}
.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 4rem;
    text-align: right;
}
.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 4rem;
}
.timeline-content {
    padding: 1.5rem;
    background: var(--panel);
    border-radius: 8px;
    border: 1px solid var(--border);
}
.timeline-content h3 { color: var(--accent-1); }
.timeline-content .date {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

/* --- Projects Section --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}
.project-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}
.project-card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.project-card h3 { color: var(--accent-2); }
.project-card p {
    color: var(--muted);
    margin: 1rem 0;
    flex-grow: 1;
}
.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}
.tech-badge {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-2);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* --- Gemini Project Generator --- */
.generator-section {
    text-align: center;
}

/* --- Modal --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}
.modal-content {
    background-color: var(--panel);
    margin: 15% auto;
    padding: 2rem;
    border: 1px solid var(--border);
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(124, 92, 255, 0.5);
    position: relative;
}
.close-button {
    color: var(--muted);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
}
.close-button:hover {
    color: var(--accent-2);
}


/* --- Contact Section --- */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}
.contact-content p {
    font-size: 1.2rem;
    color: var(--muted);
    margin-bottom: 2rem;
}
.social-links {
    margin-top: 2rem;
}
.social-links a {
    color: var(--muted);
    font-size: 1.5rem;
    margin: 0 1rem;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
.social-links a:hover {
    color: var(--accent-1);
    text-shadow: 0 0 10px var(--accent-1);
}

/* --- Footer --- */
.footer {
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
    color: var(--muted);
    border-top: 1px solid var(--border);
}