/* --- Variables & Reset --- */
:root {
    --bg-color: #0b0f19;
    --surface-color: #111827;
    --surface-hover: #1f2937;
    --primary-color: #049CD1;
    --primary-glow: rgba(4, 156, 209, 0.3);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --font-mono: 'Fira Code', monospace;
    --font-sans: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-muted);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    color: var(--text-main);
    font-weight: 600;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #05b8f6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 100px 0;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-glow);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-glow);
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(11, 15, 25, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    transition: var(--transition);
}

nav.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    padding: 0.5rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
}

.logo span {
    color: var(--primary-color);
    animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-main);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 80px; /* Offset for nav */
}

.mono-accent {
    font-family: var(--font-mono);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-desc {
    max-width: 540px;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

/* --- Shared Section Styles --- */
.section-title {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    font-family: var(--font-mono);
}

.section-title span {
    color: var(--text-main);
    margin-left: 0.5rem;
    font-family: var(--font-sans);
}

.section-title::after {
    content: "";
    display: block;
    height: 1px;
    width: 200px;
    background-color: #2d3748;
    margin-left: 1.5rem;
}

/* --- About & Skills --- */
.about-text p {
    margin-bottom: 1rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-category h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-family: var(--font-mono);
    font-size: 1rem;
}

.skill-category ul {
    list-style: none;
}

.skill-category ul li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.25rem;
}

.skill-category ul li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* --- Projects Section --- */
.section-intro {
    margin-bottom: 2rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background-color: var(--surface-color);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border-left: 3px solid transparent;
}

.project-card:hover {
    transform: translateY(-5px);
    background-color: var(--surface-hover);
    border-left: 3px solid var(--primary-color);
    box-shadow: 0 10px 30px -15px rgba(0,0,0,0.7);
}

.project-overline {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.project-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.project-description {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Experience Timeline --- */
.timeline {
    position: relative;
    border-left: 2px solid #2d3748;
    padding-left: 2rem;
    margin-left: 1rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -38px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--bg-color);
    border: 2px solid var(--primary-color);
}

.timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

/* --- Contact & Footer --- */
.contact-container {
    text-align: center;
    max-width: 600px;
}

.contact-container .section-title {
    justify-content: center;
}
.contact-container .section-title::after {
    display: none;
}

.contact-heading {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-desc {
    margin-bottom: 2rem;
}

footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--bg-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.social-links a {
    color: var(--text-muted);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-text {
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

/* --- Animations & Utilities --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0;
        top: 0;
        height: 100vh;
        width: 250px;
        background-color: #111827;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: -10px 0 30px -15px rgba(0,0,0,0.7);
    }

    .nav-links.nav-active {
        transform: translateX(0);
    }

    .mobile-toggle {
        display: block;
        z-index: 101;
    }

    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.8rem; }
    
    .section-title::after {
        width: 100px;
    }
}
