/* ROOT VARIABLES */
:root {
    --navy: #0a192f;
    --light-navy: #112240;
    --lightest-navy: #233554;
    --slate: #8892b0;
    --light-slate: #a8b2d1;
    --lightest-slate: #ccd6f6;
    --white: #e6f1ff;
    --green: #64ffda;
    /* Keeping the classic green/cyan distinct pop */
    --cyan: #00f3ff;
    /* As requested, can be used as alternate */

    --font-sans: 'Inter', 'Calibre', 'San Francisco', 'SF Pro Text', -apple-system, system-ui, sans-serif;
    --font-mono: 'Fira Code', 'SF Mono', '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);
}

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

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

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

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

.name {
    color: var(--lightest-slate);
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 600;
}

.subtitle {
    color: var(--slate);
    font-size: clamp(30px, 6vw, 60px);
    /* color: var(--green); */
    /* Accent option */
}

p {
    margin: 0 0 15px 0;
}

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

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

/* UTILITIES */
.highlight {
    color: var(--green);
}

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

@media (max-width: 768px) {
    section {
        padding: 80px 20px;
    }
}

/* BUTTONS */
.btn-lg {
    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-md);
    font-family: var(--font-mono);
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 50px;
}

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

.btn-resume {
    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;
    margin-left: 15px;
}

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

/* NAVIGATION */
#navbar {
    position: fixed;
    top: 0;
    z-index: 11;
    width: 100%;
    height: var(--nav-height);
    background-color: rgba(10, 25, 47, 0.85);
    /* Glassy navy */
    backdrop-filter: blur(10px);
    transition: var(--transition);
    padding: 0px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--green);
    padding: 8px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.logo a svg {
    stroke: var(--green);
}

.logo a:hover {
    background: rgba(100, 255, 218, 0.1);
}

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

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

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

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

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

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

/* HERO */
#hero {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    min-height: 100vh;
    padding: 0;
}

.hero-content {
    max-width: 1000px;
}

.hi {
    color: var(--green);
    font-family: var(--font-mono);
    margin: 0 0 30px 4px;
    font-size: var(--fz-md);
}

.bio {
    margin-top: 20px;
    max-width: 540px;
    font-size: var(--fz-lg);
}

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

.section-heading span,
.section-heading-center span {
    color: var(--green);
    font-family: var(--font-mono);
    font-size: var(--fz-lg);
    /* Slightly smaller number */
    margin-right: 10px;
    position: relative;
    bottom: -2px;
    /* Alignment */
}

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

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

.about-text p {
    font-size: var(--fz-lg);
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 200px));
    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);
}

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

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

.img-wrapper img {
    position: relative;
    border-radius: var(--border-radius);
    transition: var(--transition);
    width: 100%;
    height: auto;
}

.img-wrapper:hover img {
    transform: scale(1.02);
}

.img-wrapper::after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    border: 2px solid var(--green);
    top: 20px;
    left: 20px;
    z-index: -1;
    transition: var(--transition);
}

.img-wrapper:hover::after {
    top: 15px;
    left: 15px;
}

/* EXPERIENCE (TABS) */
.jobs-container {
    display: flex;
}

.jobs-tabs {
    display: flex;
    flex-direction: column;
    width: max-content;
    z-index: 3;
}

.tab-btn {
    text-decoration: none;
    text-decoration-skip-ink: auto;
    position: relative;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    align-items: center;
    width: 100%;
    height: 42px;
    padding: 0 20px 2px;
    border-left: 2px solid var(--lightest-navy);
    background-color: transparent;
    color: var(--slate);
    font-family: var(--font-mono);
    font-size: var(--fz-xs);
    text-align: left;
    white-space: nowrap;
    border-top: none;
    border-right: none;
    border-bottom: none;
}

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

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

.jobs-content {
    margin-left: 20px;
    width: 100%;
}

.job-panel {
    display: none;
}

.job-panel.active {
    display: block;
    animation: fadeUp 0.5s ease forwards;
}

.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;
    font-family: var(--font-mono);
    font-size: var(--fz-xs);
    color: var(--light-slate);
}

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

.job-panel ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    font-size: var(--fz-lg);
}

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

/* WORK / PROJECTS */
.project-item {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
    margin-bottom: 100px;
}

.project-content {
    grid-column: 7 / -1;
    text-align: right;
    z-index: 2;
    /* Content above image */
}

.reversed .project-content {
    grid-column: 1 / 7;
    text-align: left;
}

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

.reversed .project-image {
    grid-column: 6 / -1;
}

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

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

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

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

.project-tech-list {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
    margin: 25px 0 10px;
    padding: 0;
    list-style: none;
    justify-content: flex-end;
    /* right align default */
}

.reversed .project-tech-list {
    justify-content: flex-start;
}

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

.reversed .project-tech-list li {
    margin: 0 20px 5px 0;
}

.project-links {
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 10px;
    margin-left: -10px;
    justify-content: flex-end;
}

.reversed .project-links {
    justify-content: flex-start;
}

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

.img-placeholder {
    width: 100%;
    height: 360px;
    /* Approx height */
    background-color: var(--light-navy);
    /* Placeholder color */
    border-radius: var(--border-radius);
    border: 1px solid var(--green);
    opacity: 0.5;
    transition: var(--transition);
}

.img-placeholder:hover {
    opacity: 1;
    background-color: transparent;
}

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

.grid-item {
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    transition: var(--transition);
    cursor: default;
    background-color: var(--light-navy);
    padding: 2rem 1.75rem;
    border-radius: var(--border-radius);
    height: 100%;
}

.grid-item:hover {
    transform: translateY(-7px);
}

.folder-top {
    margin-bottom: 30px;
    color: var(--green);
}

.grid-item h4 {
    margin: 0 0 10px;
    font-size: var(--fz-xl);
    color: var(--lightest-slate);
}

.grid-item p {
    font-size: 15px;
    /* slightly smaller body for cards */
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 20px 0 0 0;
    list-style: none;
}

.tech-tags li {
    font-family: var(--font-mono);
    font-size: var(--fz-xs);
    margin-right: 15px;
    color: var(--light-slate);
}

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

.section-heading-center {
    justify-content: center;
}

.section-heading-center::after {
    display: none;
}

.title {
    font-size: clamp(40px, 5vw, 60px);
    margin: 0 0 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
    text-align: left;
}

.form-group {
    width: 100%;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    background-color: var(--light-navy);
    border: 1px solid var(--lightest-navy);
    border-radius: var(--border-radius);
    color: var(--lightest-slate);
    font-family: var(--font-sans);
    font-size: var(--fz-md);
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--green);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--slate);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form button {
    align-self: center;
    margin-top: 10px;
}

/* FOOTER */
footer {
    padding: 15px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: var(--fz-xxs);
}

.social-links-footer {
    display: none;
    /* Desktop hidden */
    margin-bottom: 20px;
}

.social-links-footer a {
    margin: 0 10px;
    color: var(--light-slate);
}

/* FIXED SOCIALS */
.social-orientation {
    width: 40px;
    position: fixed;
    bottom: 0;
    z-index: 10;
    color: var(--light-slate);
}

.left {
    left: 40px;
    right: auto;
}

.right {
    left: auto;
    right: 40px;
}

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

.social-orientation ul li a {
    padding: 10px;
    display: inline-block;
}

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

.email-link {
    writing-mode: vertical-rl;
}

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

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

.line {
    width: 1px;
    height: 90px;
    background-color: var(--light-slate);
    margin: 0 auto;
}

/* MEDIA QUERIES */

@media (max-width: 1080px) {

    .left,
    .right {
        display: none;
        /* Hide fixed socials on tablet/mobile */
        /* Move to footer */
    }

    .social-links-footer {
        display: block;
    }

    .project-item {
        grid-template-columns: 1fr;
        margin-bottom: 70px;
    }

    .project-content,
    .reversed .project-content {
        grid-column: 1 / -1;
        padding: 40px 40px 30px;
        text-align: left;
    }

    .project-image,
    .reversed .project-image {
        grid-column: 1 / -1;
        opacity: 0.25;
        z-index: 0;
    }

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

    .project-tech-list,
    .reversed .project-tech-list {
        justify-content: flex-start;
    }

    .project-links,
    .reversed .project-links {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {

    /* Mobile Menu Logic should be added if needed, sticking to simple */
    .nav-links {
        display: none;
        /* Hide nav links on mobile for now - simplified */
    }

    .menu-btn {
        display: block;
        /* Hamburger if implemented */
        color: var(--green);
        cursor: pointer;
    }

    .about-grid {
        display: block;
    }

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

    .jobs-container {
        display: block;
    }

    .jobs-tabs {
        display: flex;
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
        margin-bottom: 30px;
    }

    /* Scrollbar hide */
    .jobs-tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        border-left: none;
        border-bottom: 2px solid var(--lightest-navy);
        justify-content: center;
        min-width: 120px;
    }

    .tab-btn.active {
        border-bottom-color: var(--green);
    }

    .jobs-content {
        margin-left: 0;
    }
}

/* KEYFRAMES */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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