/* --- Base Variables & Reset --- */
:root {
    --bg-color: #0a192f;
    --text-main: #ccd6f6;
    --text-muted: #8892b0;
    --accent: #64ffda;
    --card-bg: #112240;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
}

/* --- Typography --- */
h1, h2, h3 {
    font-weight: 600;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
}

.section-title::after {
    content: "";
    display: block;
    height: 1px;
    width: 300px;
    background-color: var(--card-bg);
    margin-left: 20px;
}

/* --- Navigation --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    z-index: 100;
    padding: 0 2rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent);
}

/* --- Layout Sections --- */
section {
    padding: 100px 2rem;
    max-width: 1000px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* --- Hero Section --- */
.hero-content {
    max-width: 700px;
}

.greeting {
    color: var(--accent);
    margin-bottom: 1rem;
    font-family: monospace;
}

.hero h1 {
    font-size: 4rem;
    color: var(--text-main);
    line-height: 1.1;
}

.hero h2 {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.bio {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 540px;
    margin-bottom: 3rem;
}

/* --- Buttons --- */
.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 1rem 1.75rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn.primary {
    background-color: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn.primary:hover {
    background-color: rgba(100, 255, 218, 0.1);
}

.btn.secondary {
    color: var(--text-main);
    border: 1px solid transparent;
}

.btn.secondary:hover {
    color: var(--accent);
}

/* --- Skills Section --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-category {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.skill-category h3 {
    margin-bottom: 1rem;
    color: var(--accent);
}

.skill-category ul {
    list-style-type: none;
    color: var(--text-muted);
}

.skill-category li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 20px;
}

.skill-category li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* --- Projects Section --- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-7px);
}

.project-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.project-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-family: monospace;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.project-links a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    margin-right: 1rem;
}

.project-links a:hover {
    text-decoration: underline;
}

/* --- Contact & Footer --- */
.contact-section {
    text-align: center;
    align-items: center;
    min-height: 70vh;
}

.contact-section .section-title::after {
    display: none;
}

.contact-section p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

footer {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-muted);
    font-family: monospace;
    font-size: 0.9rem;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    .hero h2 {
        font-size: 2rem;
    }
    .nav-links {
        display: none; /* Hide nav on very small screens for simplicity without JS */
    }
    .section-title::after {
        width: 100px;
    }
    section {
        padding: 80px 1.5rem;
    }
}