@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;600&display=swap');

/* Catppuccin Mocha Palette */
:root {
    --base: #1e1e2e;
    --mantle: #181825;
    --crust: #11111b;
    --text: #cdd6f4;
    --subtext0: #a6adc8;
    --mauve: #cba6f7;
    --sapphire: #74c7ec;
    --lavender: #b4befe;
    --surface0: #313244;
    --header-height: 70px;
}

/* General Styling */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
    line-height: 1.8;
    background-color: var(--base);
    color: var(--text);
    margin: 0;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-weight: 600;
    color: var(--mauve);
}

h2::before {
    content: '# ';
    color: var(--lavender);
}

a {
    color: var(--sapphire);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header & Navigation */
header {
    background: var(--crust);
    border-bottom: 1px solid var(--surface0);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    box-sizing: border-box;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

header h1 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--lavender);
}

header h1::after {
    content: '_';
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    from, to { opacity: 1 }
    50% { opacity: 0 }
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-links li {
    margin-left: 10px;
}

.nav-links a {
    font-size: 0.9rem;
}

.hamburger {
    display: none;
    background: none;
    border: 1px solid var(--lavender);
    border-radius: 3px;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--lavender);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Main Content Sections */
main {
    padding: 40px 0;
}

section {
    padding: 20px;
    margin-bottom: 30px;
    background-color: var(--mantle);
    border: 1px solid var(--surface0);
    border-radius: 4px;
    /* Fix for sticky header overlap */
    scroll-margin-top: var(--header-height);
}

section h2 {
    margin-top: 0;
    border-bottom: 1px dashed var(--surface0);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Work Experience */
.job {
    margin-bottom: 30px;
}

.job:last-child {
    margin-bottom: 0;
}

.job h3 {
    margin-bottom: 5px;
}

.job p {
    margin: 0 0 10px;
    color: var(--subtext0);
}

.job ul {
    padding-left: 20px;
    list-style-type: '> ';
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.skill-category h3 {
    color: var(--mauve);
}

.skill-category ul {
    list-style: none;
    padding: 0;
}

.skill-category li {
    background: var(--surface0);
    border: 1px solid var(--surface0);
    padding: 5px 10px;
    margin-bottom: 8px;
    display: inline-block;
    margin-right: 8px;
    border-radius: 4px;
}

/* Contact & Links */
.social-links {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 20px;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    color: var(--subtext0);
    border-top: 1px solid var(--surface0);
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--crust);
        position: absolute;
        top: var(--header-height);
        left: 0;
        padding: 10px 0;
        border: 1px solid var(--surface0);
        border-top: none;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 20px;
        text-align: center;
    }

    .hamburger {
        display: block;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
}
