:root {
    --dark-navy: #020c1b;
    --navy: #0a192f;
    --light-navy: #112240;
    --lightest-navy: #233554;
    --navy-shadow: rgba(2, 12, 27, 0.7);
    --dark-slate: #495670;
    --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: '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;

    --tab-height: 42px;
    --tab-width: 120px;

    --easing: cubic-bezier(0.645, 0.045, 0.355, 1);
    --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* Reset & Base */
html {
    box-sizing: border-box;
    width: 100%;
    scroll-behavior: smooth;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    margin: 0;
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    background-color: var(--navy);
    color: var(--slate);
    font-family: var(--font-sans);
    font-size: var(--fz-xl);
    line-height: 1.3;
}

a {
    display: inline-block;
    text-decoration: none;
    text-decoration-skip-ink: auto;
    color: inherit;
    position: relative;
    transition: var(--transition);
}

a:hover,
a:focus {
    color: var(--green);
}

ul,
ol {
    padding: 0;
    margin: 0;
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 10px 0;
    font-weight: 600;
    color: var(--lightest-slate);
    line-height: 1.1;
}

p {
    margin: 0 0 15px 0;
}

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

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

.section-heading span {
    color: var(--green);
    font-family: var(--font-mono);
    font-size: clamp(16px, 3vw, 20px);
    font-weight: 400;
    margin-right: 10px;
}

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

.cta-button {
    color: var(--green);
    background-color: transparent;
    border: 1px solid var(--green);
    border-radius: var(--border-radius);
    padding: 1.25rem 1.75rem;
    font-size: var(--fz-sm);
    font-family: var(--font-mono);
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 50px;
}

.cta-button:hover,
.cta-button:focus-visible {
    background-color: var(--green-tint);
    outline: none;
}


/* Layout */
#content {
    padding: 0 25px;
    /* Mobile padding */
    margin: 0 auto;
    width: 100%;
    max-width: 1600px;
    min-height: 100vh;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    z-index: 11;
    width: 100%;
    height: var(--nav-height);
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    box-shadow: 0 10px 30px -10px var(--navy-shadow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 50px;
}

.logo {
    color: var(--green);
    font-size: 32px;
    font-weight: 700;
    font-family: var(--font-mono);
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links ol {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

.nav-links ol li {
    margin: 0 5px;
    position: relative;
    font-size: var(--fz-xs);
    font-family: var(--font-mono);
}

.nav-links ol li a {
    padding: 10px;
}

.nav-links ol li a span {
    color: var(--green);
}

.resume-button {
    color: var(--green);
    background-color: transparent;
    border: 1px solid var(--green);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-size: var(--fz-xs);
    font-family: var(--font-mono);
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    margin-left: 15px;
}

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

.menu-toggle {
    display: none;
    /* Hidden on desktop */
}

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

.side-element.left {
    left: 40px;
    right: auto;
}

.side-element.right {
    left: auto;
    right: 40px;
}

.side-element ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.side-element ul li a {
    padding: 10px;
    font-size: 20px;
}

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

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

.email-link {
    margin: 20px auto;
    padding: 10px;
    font-family: var(--font-mono);
    font-size: var(--fz-xxs);
    letter-spacing: 0.1em;
    writing-mode: vertical-rl;

}

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

/* Hero Section */
.hero-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 0;
    max-width: 1000px;
    margin: 0 auto;
}

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

.big-heading {
    margin: 0;
    font-size: clamp(32px, 6.5vw, 64px);
    font-weight: 600;
    line-height: 1.1;
}

.hero-section h2 {
    color: var(--lightest-slate);
}

.hero-section h3 {
    margin-top: 10px;
    color: var(--slate);
}

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

/* About Section */
.about-content {
    display: block;
    max-width: 700px;
}

.skills-list {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) minmax(140px, 1fr);
    padding: 0;
    margin: 20px 0 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);
    line-height: 12px;
}

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

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

.placeholder-img {
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--lightest-navy);
    color: var(--green);
    font-size: 50px;
    font-weight: bold;
    border-radius: var(--border-radius);
    position: relative;
    transition: var(--transition);
    border: 2px solid var(--green);
}

.img-wrapper:hover .placeholder-img {
    transform: translate(-5px, -5px);
    box-shadow: 10px 10px 0 0 var(--green-tint);
}

/* Experience Section */
.jobs-tabs {
    display: flex;
    min-height: 340px;
}

.tab-list {
    position: relative;
    z-index: 3;
    width: max-content;
    padding: 0;
    margin: 0;
    list-style: none;
    border-left: 2px solid var(--lightest-navy);
}

.tab-button {
    display: flex;
    align-items: center;
    width: 100%;
    height: var(--tab-height);
    padding: 0 20px 2px;
    border: 0;
    background-color: transparent;
    color: var(--slate);
    font-family: var(--font-mono);
    font-size: var(--fz-xs);
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
    border-left: 2px solid transparent;
    margin-left: -2px;
    /* Pull back to overlap border */
}

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

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

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

.job-panel {
    display: none;
    width: 100%;
    height: auto;
    padding: 0 5px;
    animation: fadeIn 0.5s;
}

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

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

.job-panel .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 li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    /* Spacing between list items */
    font-size: var(--fz-md);
    /* Increased readability */
}

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

/* Education Section */
.education-content {
    max-width: 700px;
}

.education-item {
    margin: 0 auto 30px;
    padding: 25px;
    background-color: var(--light-navy);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.education-item:hover {
    transform: translateY(-5px);
}

.education-item h3 {
    margin-bottom: 10px;
    font-size: var(--fz-xl);
    color: var(--lightest-slate);
}

.education-item .degree {
    color: var(--green);
    font-family: var(--font-mono);
    font-size: var(--fz-sm);
    margin: 0;
}

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

.project-card {
    position: relative;
    cursor: default;
    transition: var(--transition);
}

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

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

.project-card:hover .project-content {
    box-shadow: 0 10px 30px -15px var(--navy-shadow);
}

.project-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    width: 100%;
}

.folder-icon {
    color: var(--green);
    font-size: 40px;
}

.project-links {
    margin-right: -10px;
    color: var(--light-slate);
}

.project-links a {
    padding: 5px 10px;
}

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

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

.project-title a {
    position: static;
}

.project-title a:before {
    content: '';
    display: block;
    position: absolute;
    z-index: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

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

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

.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 Section */
.contact-section {
    max-width: 600px;
    margin: 0 auto 100px;
    text-align: center;
}

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

.contact-text {
    font-size: var(--fz-lg);
    color: var(--slate);
}

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

.social-mobile {
    display: none;
    width: 100%;
    max-width: 270px;
    margin: 0 auto 10px;
    color: var(--light-slate);
}

.social-mobile ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-mobile ul li a {
    padding: 10px;
}

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

/* Responsive */
@media (max-width: 1080px) {
    .side-element {
        display: none;
        /* Hide sidebars on smaller screens */
    }

    .social-mobile {
        display: block;
    }

    #content {
        padding: 0 80px;
    }
}

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

    .nav-links {
        display: none;
        /* simple mobile hide for now, would need JS toggle */
    }

    .menu-toggle {
        display: block;
        font-size: 24px;
        color: var(--green);
        cursor: pointer;
    }

    .about-content {
        display: block;
    }

    .about-img {
        margin: 50px auto 0;
        width: 70%;
    }

    .jobs-tabs {
        display: block;
    }

    .tab-list {
        display: flex;
        overflow-x: auto;
        width: 100%;
        margin-bottom: 30px;
        border-left: 0;
        border-bottom: 2px solid var(--lightest-navy);
        padding-bottom: 2px;
    }

    .tab-button {
        display: flex;
        justify-content: center;
        align-items: center;
        min-width: 120px;
        padding: 0 15px;
        border-left: 0;
        border-bottom: 2px solid transparent;
        text-align: center;
        margin-left: 0;
        margin-bottom: -4px;
        /* Move down to overlap border */
    }

    .tab-button.active {
        border-left: 0;
        border-bottom-color: var(--green);
    }

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

    /* Reveal animation classes */
    .fade-in-up {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    }

    .fade-in-up.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* JS-enabled classes */
.hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.visible {
    opacity: 1;
    transform: translateY(0);
}