/* Main Stylesheet - Extracted from index.html for better organization */
:root {
    --navy: #0a192f;
    --light-navy: #112240;
    --lightest-navy: #233554;
    --slate: #8892b0;
    --light-slate: #a8b2d1;
    --lightest-slate: #ccd6f6;
    --white: #e6f1ff;
    --green: #64ffda;
    --green-tint: rgba(100, 255, 218, 0.1);
    --font-sans: 'Inter', 'San Francisco', 'SF Pro Text', -apple-system, system-ui, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
    --fz-xxs: 12px;
    --fz-xs: 13px;
    --fz-sm: 14px;
    --fz-md: 16px;
    --fz-lg: 18px;
    --fz-xl: 20px;
    --fz-xxl: 22px;
    --fz-heading: 32px;
    --border-radius: 4px;
    --nav-height: 100px;
    --nav-scroll-height: 70px;
    --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--navy);
    color: var(--slate);
    line-height: 1.3;
    overflow-x: hidden;
}

::selection {
    background-color: var(--lightest-navy);
    color: var(--lightest-slate);
}

/* Nav */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    z-index: 11;
    transition: var(--transition);
}

nav.scrolled {
    height: var(--nav-scroll-height);
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    height: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.logo {
    color: var(--green);
    font-family: var(--font-mono);
    font-size: var(--fz-xxl);
    font-weight: 600;
    text-decoration: none;
    z-index: 11;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--lightest-slate);
    font-family: var(--font-mono);
    font-size: var(--fz-xs);
    text-decoration: none;
    transition: var(--transition);
}

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

.nav-links .counter {
    color: var(--green);
    margin-right: 5px;
}

.resume-button {
    color: var(--green);
    border: 1px solid var(--green);
    border-radius: var(--border-radius);
    padding: 10px 15px;
    font-family: var(--font-mono);
    font-size: var(--fz-xs);
    background-color: transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.resume-button:hover {
    background-color: var(--green-tint);
}

/* Container */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 150px;
}

/* Hero */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - var(--nav-height));
    padding: var(--nav-height) 0 0;
    margin-top: var(--nav-height);
}

.hero h1 {
    margin: 0 0 30px 4px;
    color: var(--green);
    font-family: var(--font-mono);
    font-size: clamp(var(--fz-sm), 5vw, var(--fz-md));
    font-weight: 400;
}

.hero h2 {
    font-size: clamp(40px, 8vw, 80px);
    color: var(--lightest-slate);
    line-height: 1.1;
}

.hero h3 {
    margin-top: 10px;
    font-size: clamp(40px, 8vw, 80px);
    color: var(--slate);
    line-height: 1.1;
}

.hero p {
    margin: 20px 0 0;
    max-width: 540px;
    font-size: var(--fz-xl);
}

.hero .email-link {
    margin-top: 50px;
    color: var(--green);
    border: 1px solid var(--green);
    border-radius: var(--border-radius);
    padding: 18px 50px;
    font-family: var(--font-mono);
    font-size: var(--fz-sm);
    background-color: transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.hero .email-link:hover {
    background-color: var(--green-tint);
    transform: translateY(-3px);
}

/* Section */
section {
    margin: 0 auto;
    padding: 100px 0;
    max-width: 1000px;
}

.numbered-heading {
    display: flex;
    align-items: center;
    position: relative;
    margin: 10px 0 40px;
    width: 100%;
    font-size: clamp(26px, 5vw, var(--fz-heading));
    white-space: nowrap;
    color: var(--lightest-slate);
    font-weight: 600;
}

.numbered-heading::before {
    position: relative;
    counter-increment: section 1;
    content: "0" counter(section) ".";
    margin-right: 10px;
    color: var(--green);
    font-family: var(--font-mono);
    font-size: clamp(var(--fz-md), 3vw, var(--fz-xl));
    font-weight: 400;
}

.numbered-heading::after {
    content: "";
    display: block;
    position: relative;
    width: 300px;
    height: 1px;
    margin-left: 20px;
    background-color: var(--lightest-navy);
}

/* About */
.about-inner {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
}

.about-text p {
    margin-bottom: 15px;
}

.about-text a {
    color: var(--green);
    text-decoration: none;
    position: relative;
}

.about-text a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--green);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.about-text a:hover::after {
    transform: scaleX(1);
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 200px));
    gap: 0 10px;
    padding: 0;
    margin: 20px 0 0;
    overflow: hidden;
    list-style: none;
}

.skills-list li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 20px;
    font-family: var(--font-mono);
    font-size: var(--fz-xs);
}

.skills-list li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--green);
    font-size: var(--fz-sm);
    line-height: 12px;
}

.about-pic {
    position: relative;
    max-width: 300px;
}

.about-pic .wrapper {
    position: relative;
    width: 100%;
    border-radius: var(--border-radius);
    background-color: var(--green);
}

.about-pic .wrapper::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    transition: var(--transition);
    top: 20px;
    left: 20px;
    z-index: -1;
    border: 2px solid var(--green);
}

.about-pic .wrapper:hover::before {
    top: 15px;
    left: 15px;
}

.about-pic img {
    display: block;
    width: 100%;
    border-radius: var(--border-radius);
    filter: grayscale(100%) contrast(1);
    transition: var(--transition);
    mix-blend-mode: multiply;
}

.about-pic .wrapper:hover img {
    filter: grayscale(0%) contrast(1);
    mix-blend-mode: normal;
}

.about-pic .wrapper::after {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    transition: var(--transition);
    background-color: var(--navy);
    top: 0;
    left: 0;
    mix-blend-mode: screen;
}

.about-pic .wrapper:hover::after {
    background: transparent;
}

/* Experience */
.jobs-container {
    display: flex;
    gap: 10px;
}

.job-tabs {
    position: relative;
    width: max-content;
    padding: 0;
    margin: 0;
    list-style: none;
    z-index: 3;
}

.job-tab {
    text-decoration: none;
    text-align: left;
    width: 100%;
    height: 42px;
    padding: 0 20px;
    border-left: 2px solid var(--lightest-navy);
    background-color: transparent;
    color: var(--slate);
    font-family: var(--font-mono);
    font-size: var(--fz-xs);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.job-tab:hover,
.job-tab.active {
    color: var(--green);
    background-color: var(--light-navy);
}

.job-tab.active {
    border-left-color: var(--green);
}

.job-panels {
    position: relative;
    width: 100%;
    margin-left: 20px;
}

.job-panel {
    width: 100%;
    height: auto;
    padding: 10px 5px;
    display: none;
}

.job-panel.active {
    display: block;
}

.job-panel h3 {
    margin-bottom: 2px;
    font-size: var(--fz-xxl);
    font-weight: 500;
    line-height: 1.3;
    color: var(--lightest-slate);
}

.job-panel h3 .company {
    color: var(--green);
}

.job-panel .range {
    margin-bottom: 25px;
    color: var(--light-slate);
    font-family: var(--font-mono);
    font-size: var(--fz-xs);
}

.job-panel ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.job-panel ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
}

.job-panel ul li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--green);
}

/* Projects */
.projects-grid {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-card {
    position: relative;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
    margin-bottom: 100px;
}

.project-card:nth-of-type(2n+1) .project-content {
    grid-column: 7 / -1;
    text-align: right;
}

.project-card:nth-of-type(2n+1) .project-image {
    grid-column: 1 / 8;
}

.project-content {
    position: relative;
    grid-column: 1 / 7;
    grid-row: 1 / -1;
}

.project-overline {
    margin: 10px 0;
    color: var(--green);
    font-family: var(--font-mono);
    font-size: var(--fz-xs);
    font-weight: 400;
}

.project-title {
    color: var(--lightest-slate);
    font-size: clamp(24px, 5vw, 28px);
    margin: 0 0 20px;
}

.project-description {
    position: relative;
    z-index: 2;
    padding: 25px;
    border-radius: var(--border-radius);
    background-color: var(--light-navy);
    color: var(--light-slate);
    font-size: var(--fz-lg);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.project-tech-list {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
    margin: 25px 0 10px;
    padding: 0;
    list-style: none;
}

.project-card:nth-of-type(2n+1) .project-tech-list {
    justify-content: flex-end;
}

.project-tech-list li {
    margin: 0 20px 5px 0;
    color: var(--light-slate);
    font-family: var(--font-mono);
    font-size: var(--fz-xs);
    white-space: nowrap;
}

.project-card:nth-of-type(2n+1) .project-tech-list li {
    margin: 0 0 5px 20px;
}

.project-links {
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 10px;
    margin-left: -10px;
    color: var(--lightest-slate);
}

.project-card:nth-of-type(2n+1) .project-links {
    justify-content: flex-end;
    margin-left: 0;
    margin-right: -10px;
}

.project-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    color: var(--lightest-slate);
    transition: var(--transition);
}

.project-links a:hover {
    color: var(--green);
}

.project-image {
    grid-column: 6 / -1;
    grid-row: 1 / -1;
    position: relative;
    z-index: 1;
}

.project-image a {
    width: 100%;
    height: 100%;
    background-color: var(--green);
    border-radius: var(--border-radius);
    display: block;
    position: relative;
}

.project-image a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    transition: var(--transition);
    background-color: var(--navy);
    mix-blend-mode: screen;
}

.project-image a:hover::before {
    background: transparent;
}

.project-image img {
    border-radius: var(--border-radius);
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%) contrast(1) brightness(90%);
    mix-blend-mode: multiply;
    transition: var(--transition);
}

.project-image a:hover img {
    filter: none;
    mix-blend-mode: normal;
}

/* Other Projects */
.other-projects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    position: relative;
    margin-top: 50px;
}

.other-project-card {
    position: relative;
    cursor: default;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: column;
    height: 100%;
    padding: 2rem 1.75rem;
    border-radius: var(--border-radius);
    background-color: var(--light-navy);
    transition: var(--transition);
}

.other-project-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 30px -15px rgba(2, 12, 27, 0.7);
}

.other-project-card header {
    width: 100%;
}

.other-project-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.folder-icon {
    color: var(--green);
    width: 40px;
    height: 40px;
}

.other-project-title {
    margin: 0 0 10px;
    color: var(--lightest-slate);
    font-size: var(--fz-xxl);
}

.other-project-description {
    color: var(--light-slate);
    font-size: 17px;
}

.other-project-tech-list {
    display: flex;
    align-items: flex-end;
    flex-grow: 1;
    flex-wrap: wrap;
    padding: 0;
    margin: 20px 0 0;
    list-style: none;
}

.other-project-tech-list li {
    font-family: var(--font-mono);
    font-size: var(--fz-xxs);
    line-height: 1.75;
    margin-right: 15px;
    color: var(--slate);
}

/* Contact */
.contact {
    max-width: 600px;
    margin: 0 auto 100px;
    text-align: center;
}

.contact .overline {
    display: block;
    margin-bottom: 20px;
    color: var(--green);
    font-family: var(--font-mono);
    font-size: var(--fz-md);
    font-weight: 400;
}

.contact .title {
    font-size: clamp(40px, 5vw, 60px);
    color: var(--lightest-slate);
}

.contact .email-link {
    margin-top: 50px;
    color: var(--green);
    border: 1px solid var(--green);
    border-radius: var(--border-radius);
    padding: 18px 50px;
    font-family: var(--font-mono);
    font-size: var(--fz-sm);
    background-color: transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.contact .email-link:hover {
    background-color: var(--green-tint);
    transform: translateY(-3px);
}

/* Footer */
footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: auto;
    min-height: 70px;
    padding: 15px;
    text-align: center;
}

footer .credit {
    color: var(--light-slate);
    font-family: var(--font-mono);
    font-size: var(--fz-xxs);
    line-height: 1;
}

footer .credit a {
    padding: 10px;
    color: var(--light-slate);
    text-decoration: none;
}

footer .credit a:hover {
    color: var(--green);
}

/* Side Elements */
.email-side {
    width: 40px;
    position: fixed;
    bottom: 0;
    right: 40px;
    left: auto;
    z-index: 10;
    color: var(--light-slate);
}

.email-side div {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.email-side div::after {
    content: '';
    display: block;
    width: 1px;
    height: 90px;
    margin: 0 auto;
    background-color: var(--light-slate);
}

.email-side a {
    margin: 20px auto;
    padding: 10px;
    font-family: var(--font-mono);
    font-size: var(--fz-xxs);
    line-height: var(--fz-lg);
    letter-spacing: 0.1em;
    writing-mode: vertical-rl;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.email-side a:hover {
    color: var(--green);
    transform: translateY(-3px);
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1080px) {
    .container {
        padding: 0 100px;
    }
    
    .email-side {
        right: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 50px;
    }

    .nav-content {
        padding: 0 25px;
    }

    section {
        padding: 80px 0;
    }

    .numbered-heading::after {
        width: 200px;
    }

    .about-inner {
        display: block;
    }

    .about-pic {
        margin: 50px auto 0;
    }

    .jobs-container {
        flex-direction: column;
    }

    .job-tabs {
        width: 100%;
    }

    .job-panels {
        margin-left: 0;
    }

    .project-card {
        display: block;
        margin-bottom: 70px;
    }

    .project-content,
    .project-card:nth-of-type(2n+1) .project-content {
        grid-column: 1 / -1;
        padding: 40px 40px 30px;
        text-align: left;
    }

    .project-description {
        padding: 20px 0;
        background-color: transparent;
        box-shadow: none;
    }

    .project-tech-list,
    .project-card:nth-of-type(2n+1) .project-tech-list {
        justify-content: flex-start;
    }

    .project-tech-list li,
    .project-card:nth-of-type(2n+1) .project-tech-list li {
        margin: 0 10px 5px 0;
    }

    .project-links,
    .project-card:nth-of-type(2n+1) .project-links {
        justify-content: flex-start;
        margin-left: -10px;
        margin-right: 0;
    }

    .project-image {
        grid-column: 1 / -1;
        height: 100%;
        opacity: 0.25;
    }

    .email-side {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 25px;
    }

    .numbered-heading::after {
        width: 100%;
    }

    .other-projects {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}
