*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

: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', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
    --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}



body {
    font-family: var(--font-sans);
    background: var(--navy);
    color: var(--slate);
    line-height: 1.5;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    counter-reset: section;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

::selection {
    background: var(--green-tint);
    color: var(--green);
}


.loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s cubic-bezier(0.645, 0.045, 0.355, 1), visibility 0.4s cubic-bezier(0.645, 0.045, 0.355, 1), transform 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
}

.loader-logo {
    width: 100px;
    height: 100px;
}

.loader-hex {
    fill: none;
    stroke: var(--green);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: drawHex 1.6s cubic-bezier(0.645, 0.045, 0.355, 1) forwards;
}

.loader-text {
    font-family: var(--font-mono);
    font-size: 40px;
    font-weight: 600;
    fill: var(--green);
    opacity: 0;
    animation: fadeInText 0.5s cubic-bezier(0.645, 0.045, 0.355, 1) 1.5s forwards;
}

@keyframes drawHex {
    0% {
        stroke-dashoffset: 400;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes fadeInText {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}


.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.fade-down {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.fade-in {
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}


.side-element {
    position: fixed;
    bottom: 0;
    width: 40px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.side-element::after {
    content: '';
    display: block;
    width: 1px;
    height: 90px;
    background: var(--light-slate);
}

.side-element.left {
    left: 40px;
}

.side-element.right {
    right: 40px;
}

.social-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 0;
    margin-bottom: 20px;
    list-style: none;
}

.social-list li {
    padding: 0;
    margin: 0;
}

.social-list a {
    color: var(--light-slate);
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.social-list a:hover {
    color: var(--green);
    transform: translateY(-3px);
}

.social-list svg {
    width: 20px;
    height: 20px;
}

.email-link {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--light-slate);
    letter-spacing: 0.1em;
    writing-mode: vertical-rl;
    margin-bottom: 20px;
    transition: all 0.25s ease;
}

.email-link:hover {
    color: var(--green);
    transform: translateY(-3px);
}


.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    padding: 0 50px;
    height: 100px;
    transition: var(--transition);
}


.header.menu-open {
    background: transparent;
    backdrop-filter: none;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.logo svg {
    width: 40px;
    height: 40px;
    color: var(--green);
    transition: var(--transition);
    display: block;
}

.logo:hover svg {
    color: var(--green);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--lightest-slate);
}

.nav-link:hover {
    color: var(--green);
}

.nav-number {
    color: var(--green);
    margin-right: 4px;
}

.resume-btn {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--green);
    background-color: transparent;
    border: 1px solid var(--green);
    border-radius: 4px;
    padding: 12px 18px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.645, 0.045, 0.355, 1);
    transition-delay: 0s !important;
    display: inline-block;
    width: fit-content;
}

.resume-btn:hover,
.resume-btn:focus,
.resume-btn:active {
    outline: none;
}

.resume-btn:hover {
    background-color: var(--green-tint);
    box-shadow: 4px 4px 0 0 var(--green);
    transform: translate(-4px, -4px);
}

.resume-btn:active {
    background-color: var(--green-tint);
    box-shadow: none;
    transform: translate(0, 0);
}

.hero-cta span,
.contact-btn span {
    position: relative;
    z-index: 2;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 15px;
    z-index: 125;
    position: relative;
    overflow: visible;
}

.menu-toggle-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.menu-toggle-inner {
    display: block;
    top: 50%;
    margin-top: -2px;
    transition: background-color 0.125s 0.175s ease-in;
}

.menu-toggle-inner,
.menu-toggle-inner::before,
.menu-toggle-inner::after {
    width: 30px;
    height: 3px;
    background-color: var(--green);
    border-radius: 4px;
    position: absolute;
}

.menu-toggle-inner::before,
.menu-toggle-inner::after {
    content: "";
    display: block;
}

.menu-toggle-inner::before {
    left: 0;
    top: -10px;
    transition: left 0.125s ease-in, top 0.1s 0.25s ease-in, transform 0.125s cubic-bezier(0.6, 0.04, 0.98, 0.335), -webkit-transform 0.125s cubic-bezier(0.6, 0.04, 0.98, 0.335);
}

.menu-toggle-inner::after {
    top: 10px;
    right: 0;
    transition: right 0.125s ease-in, top 0.1s 0.25s ease-in, transform 0.125s cubic-bezier(0.6, 0.04, 0.98, 0.335), -webkit-transform 0.125s cubic-bezier(0.6, 0.04, 0.98, 0.335);
}


.menu-toggle.active .menu-toggle-inner {
    transition-delay: 0s;
    transition-timing-function: ease-out;
    background-color: transparent !important;
}

.menu-toggle.active .menu-toggle-inner::before {
    left: -60px;
    top: -60px;
    transform: translate3d(60px, 60px, 0) rotate(45deg);
    transition: left 0.125s ease-out, top 0.1s 0.125s ease-out, transform 0.125s 0.175s cubic-bezier(0.075, 0.82, 0.165, 1), -webkit-transform 0.125s 0.175s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.menu-toggle.active .menu-toggle-inner::after {
    right: -60px;
    top: -60px;
    transform: translate3d(-60px, 60px, 0) rotate(-45deg);
    transition: right 0.125s ease-out, top 0.1s 0.125s ease-out, transform 0.125s 0.175s cubic-bezier(0.075, 0.82, 0.165, 1), -webkit-transform 0.125s 0.175s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(75vw, 400px);
    height: 100vh;
    background: var(--light-navy);
    z-index: 190;
    padding: 50px;
    transform: translateX(100%);
    transition: var(--transition);
    box-shadow: -10px 0 30px -15px rgba(2, 12, 27, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
}

.mobile-menu.active {
    transform: translateX(0);
    visibility: visible;
}


.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.95);
    z-index: 140;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.mobile-menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.mobile-menu-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--font-mono);
    font-size: clamp(14px, 4vw, 18px);
    color: var(--lightest-slate);
    margin-bottom: 25px;
    transition: var(--transition);
    opacity: 0;
    transform: translateX(20px);
}

.mobile-menu.active .mobile-menu-link {
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu-link .nav-number {
    margin-bottom: 8px;
    margin-right: 0;
    font-size: 14px;
}

.mobile-menu.active .mobile-menu-link:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu.active .mobile-menu-link:nth-child(2) {
    transition-delay: 0.2s;
}

.mobile-menu.active .mobile-menu-link:nth-child(3) {
    transition-delay: 0.3s;
}

.mobile-menu.active .mobile-menu-link:nth-child(4) {
    transition-delay: 0.4s;
}

.mobile-menu .resume-btn {
    margin-top: 30px;
    padding: 18px 50px;
    font-size: 14px;
    opacity: 0;
    transform: translateX(20px);
}

.mobile-menu.active .resume-btn {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.5s;
}

.mobile-menu-link:hover {
    color: var(--green);
}


.main {
    padding: 0 150px;
    max-width: 1600px;
    margin: 0 auto;
}


.section {
    padding: 100px 0;
    max-width: 1000px;
    margin: 0 auto;
}

.section-heading {
    display: flex;
    align-items: center;
    font-size: clamp(22px, 4vw, 26px);
    font-weight: 600;
    color: var(--lightest-slate);
    margin-bottom: 40px;
    white-space: nowrap;
}

.section-heading::after {
    content: '';
    display: block;
    width: 300px;
    height: 1px;
    background: var(--lightest-navy);
    margin-left: 20px;
}

.section-number {
    font-family: var(--font-mono);
    font-size: clamp(14px, 2.5vw, 18px);
    font-weight: 400;
    color: var(--green);
    margin-right: 8px;
}


.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    padding-top: 100px;
}

.hero-hello {
    font-family: var(--font-mono);
    font-size: clamp(13px, 4vw, 14px);
    color: var(--green);
    margin-bottom: 15px;
}

.hero-name {
    font-size: clamp(35px, 7vw, 70px);
    font-weight: 600;
    color: var(--lightest-slate);
    line-height: 1.1;
}

.hero-tagline {
    font-size: clamp(35px, 7vw, 70px);
    font-weight: 600;
    color: var(--slate);
    line-height: 1.1;
    margin-bottom: 15px;
}

.hero-description {
    max-width: 500px;
    font-size: 16px;
    margin-bottom: 40px;
}

.hero-cta {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--green);
    background-color: transparent;
    border: 1px solid var(--green);
    border-radius: 4px;
    padding: 1.25rem 1.75rem;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.645, 0.045, 0.355, 1);
    transition-delay: 0s !important;
    display: inline-block;
    width: fit-content;
}

.hero-cta:hover,
.hero-cta:focus,
.hero-cta:active {
    outline: none;
}

.hero-cta:hover {
    background-color: var(--green-tint);
    box-shadow: 5px 5px 0 0 var(--green);
    transform: translate(-5px, -5px);
}

.hero-cta:active {
    background-color: var(--green-tint);
    box-shadow: none;
    transform: translate(0, 0);
}


.about-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
}

.about-text p {
    margin-bottom: 15px;
}

.highlight {
    color: var(--green);
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.skills-list li {
    font-family: var(--font-mono);
    font-size: 12px;
    position: relative;
    padding-left: 18px;
}

.skills-list li::before {
    content: '▹';
    color: var(--green);
    position: absolute;
    left: 0;
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 300px;
}

.image-wrapper::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 14px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--green);
    border-radius: 4px;
    transition: var(--transition);
    z-index: -1;
}

.image-wrapper:hover::before {
    top: 10px;
    left: 10px;
}

.image-container {
    width: 100%;
    aspect-ratio: 1;
    background: var(--green);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
    filter: grayscale(100%) contrast(1);
    transition: var(--transition);
}

.image-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--navy);
    opacity: 0.3;
    transition: var(--transition);
}

.image-wrapper:hover .image-container img {
    mix-blend-mode: normal;
    filter: none;
}

.image-wrapper:hover .image-container::after {
    opacity: 0;
}


.experience-container {
    display: flex;
    gap: 30px;
}

.experience-tabs {
    display: flex;
    flex-direction: column;
    border-left: 2px solid var(--lightest-navy);
}

.tab-btn {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--slate);
    background: transparent;
    border: none;
    padding: 12px 20px;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.tab-btn::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--green);
    transform: scaleY(0);
    transition: var(--transition);
}

.tab-btn.active::before,
.tab-btn:hover::before {
    transform: scaleY(1);
}

.tab-btn.active,
.tab-btn:hover {
    color: var(--green);
    background: var(--light-navy);
}

.experience-content {
    flex: 1;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.job-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--lightest-slate);
    margin-bottom: 5px;
}

.job-period {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--slate);
    margin-bottom: 20px;
}

.job-duties {
    padding-left: 20px;
}

.job-duties li {
    font-size: 14px;
    margin-bottom: 8px;
    position: relative;
    padding-left: 10px;
}

.job-duties li::before {
    content: '▹';
    color: var(--green);
    position: absolute;
    left: -15px;
}


/* Projects Section - Clean List Style */
.project-list {
    list-style: none;
    padding: 0;
    margin: 50px 0 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-card {
    background: var(--light-navy);
    border: 1px solid var(--lightest-navy);
    border-radius: 8px;
    padding: 2rem;
    transition: var(--transition);
    display: grid;
    grid-template-columns: 120px 1fr auto;
    align-items: start;
    gap: 1.5rem;
}

.project-card:hover {
    transform: translateY(-3px);
    border-color: var(--green);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.project-year {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--green);
    font-weight: 600;
}

.project-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--lightest-slate);
    margin: 0 0 10px;
    grid-column: 2;
}

.project-title a {
    color: var(--lightest-slate);
}

.project-title a:hover {
    color: var(--green);
}

.project-description {
    font-size: 16px;
    color: var(--slate);
    line-height: 1.5;
    margin: 0 0 15px;
    grid-column: 2;
}

.project-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--slate);
    grid-column: 2;
}

.project-tech-list li {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tech-icon-img {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.project-links {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
}

.project-links a {
    color: var(--lightest-slate);
    padding: 8px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.project-links a:hover {
    color: var(--green);
}

.project-links svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .project-card {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .project-year {
        grid-column: 1;
        margin-bottom: 10px;
    }

    .project-title {
        grid-column: 1;
    }

    .project-description {
        grid-column: 1;
    }

    .project-tech-list {
        grid-column: 1;
    }

    .project-links {
        grid-column: 1;
        grid-row: auto;
        justify-self: start;
        margin-top: 10px;
    }
}

.contact {
    text-align: center;
    max-width: 550px;
    padding: 80px 0 120px;
}

.contact-overline {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--green);
    margin-bottom: 15px;
}

.contact-heading {
    font-size: clamp(35px, 5vw, 55px);
    font-weight: 600;
    color: var(--lightest-slate);
    margin-bottom: 15px;
}

.contact-description {
    font-size: 16px;
    margin-bottom: 40px;
}

.contact-btn {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--green);
    background-color: transparent;
    border: 1px solid var(--green);
    border-radius: 4px;
    padding: 1.25rem 1.75rem;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.645, 0.045, 0.355, 1);
    transition-delay: 0s !important;
    display: inline-block;
    width: fit-content;
}

.contact-btn:hover,
.contact-btn:focus,
.contact-btn:active {
    outline: none;
}

.contact-btn:hover {
    background-color: var(--green-tint);
    box-shadow: 5px 5px 0 0 var(--green);
    transform: translate(-5px, -5px);
}

.contact-btn:active {
    background-color: var(--green-tint);
    box-shadow: none;
    transform: translate(0, 0);
}


.footer {
    text-align: center;
    padding: 25px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--slate);
}

.footer a {
    color: var(--green);
}

.footer a:hover {
    text-decoration: underline;
}

.footer-socials,
.footer-email {
    display: none;
}

.footer-socials .social-list {
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.footer-socials .social-list li a svg {
    width: 20px;
    height: 20px;
    color: var(--light-slate);
    transition: var(--transition);
}

.footer-socials .social-list li a:hover svg {
    color: var(--green);
    transform: translateY(-3px);
}

.footer-email a {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--light-slate);
    transition: var(--transition);
}

.footer-email a:hover {
    color: var(--green);
}

.footer-credits {
    margin-top: 15px;
}



@media (max-width: 1080px) {
    .main {
        padding: 0 100px;
    }

    .side-element.left {
        left: 20px;
    }

    .side-element.right {
        right: 20px;
    }
}

@media (max-width: 768px) {
    .side-element {
        display: none;
    }

    .header {
        padding: 0 25px;
        height: 70px;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .mobile-menu {
        display: flex;
        background: #112240 !important;
        z-index: 190 !important;
    }

    .main {
        padding: 0 25px;
    }

    .footer-socials,
    .footer-email {
        display: block;
        margin-bottom: 10px;
    }

    .footer {
        padding: 40px 25px;
    }

    .section {
        padding: 60px 0;
    }

    .section-heading::after {
        width: 100%;
        max-width: 200px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        max-width: 250px;
        margin: 0 auto;
    }

    .experience-container {
        flex-direction: column;
    }

    .experience-tabs {
        flex-direction: row;
        border-left: none;
        border-bottom: 2px solid var(--lightest-navy);
        overflow-x: auto;
    }

    .tab-btn::before {
        left: 0;
        top: auto;
        bottom: -2px;
        width: 100%;
        height: 2px;
        transform: scaleX(0);
    }

    .tab-btn.active::before,
    .tab-btn:hover::before {
        transform: scaleX(1);
    }

    .project-card {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .project-year {
        grid-column: 1;
        margin-bottom: 10px;
    }

    .project-title {
        grid-column: 1;
    }

    .project-description {
        grid-column: 1;
    }

    .project-tech-list {
        grid-column: 1;
    }

    .project-links {
        grid-column: 1;
        grid-row: auto;
        justify-self: start;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {

    .hero-name,
    .hero-tagline {
        font-size: clamp(32px, 10vw, 50px);
    }

    .hero-description {
        font-size: 16px;
    }

    .contact-heading {
        font-size: clamp(32px, 8vw, 50px);
    }
}