/* CSS Variables */
:root {
    --navy: #0a192f;
    --light-navy: #112240;
    --lightest-navy: #233554;
    --slate: #8892b0;
    --light-slate: #a8b2d1;
    --lightest-slate: #ccd6f6;
    --white: #e6f1ff;
    --green: #64ffda;

    --font-sans: 'Inter', 'San Francisco', 'SF Pro Text', -apple-system, system-ui, sans-serif;
    --font-mono: 'Roboto Mono', 'Fira Code', 'Fira 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 Styles */
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;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    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);
}

p {
    margin: 0 0 15px 0;
}

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

.big-heading {
    margin: 0;
    font-size: clamp(40px, 8vw, 80px);
}

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

.numbered-heading::before {
    position: relative;
    bottom: 4px;
    counter-increment: section;
    content: '0' counter(section) '.';
    margin-right: 10px;
    color: var(--green);
    font-family: var(--font-mono);
    font-size: clamp(16px, 3vw, 20px);
    font-weight: 400;
}

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

/* Utility Classes */
.container {
    margin: 0 auto;
    width: 100%;
    max-width: 1600px;
    min-height: 100vh;
    padding: 0 150px;
}

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

.text-green {
    color: var(--green);
}

/* Buttons */
.btn {
    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);
}

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

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    z-index: 11;
    padding: 0px 50px;
    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 rgba(2, 12, 27, 0.7);
}

.logo {
    color: var(--green);
    font-size: 42px;
    font-weight: 700;
    font-family: var(--font-mono);
    border: 2px solid var(--green);
    padding: 5px 10px;
    border-radius: 50%;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0 5px;
    position: relative;
    counter-increment: item 1;
    font-size: var(--fz-xs);
}

.nav-link {
    padding: 10px;
    font-family: var(--font-mono);
    color: var(--lightest-slate);
}

.nav-link::before {
    content: '0' counter(item) '.';
    margin-right: 5px;
    color: var(--green);
    font-size: var(--fz-xxs);
    text-align: right;
}

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

.resume-btn {
    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-btn:hover {
    background-color: rgba(100, 255, 218, 0.1);
}

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

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

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

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

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

.social-list li {
    margin-bottom: 20px;
}

.social-list a {
    padding: 10px;
    font-size: 20px;
}

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

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

.email-wrapper::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-xs);
    letter-spacing: 0.1em;
    writing-mode: vertical-rl;
}

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

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

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

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

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

.hero p {
    margin: 20px 0 0;
    max-width: 540px;
}

.hero .btn {
    margin-top: 50px;
}

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

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

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

.about-text li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--green);
}

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

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

.wrapper:hover,
.wrapper:focus {
    background: transparent;
    outline: 0;
}

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

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

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

.wrapper:hover .img {
    filter: none;
    mix-blend-mode: normal;
}

/* Experience Section (Simplified) */
.jobs-tabs {
    display: flex;
}

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

.tab-button {
    display: flex;
    align-items: center;
    width: 100%;
    height: var(--tab-height);
    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;
    cursor: pointer;
    transition: var(--transition);
}

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

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

.job-content {
    margin-left: 20px;
}

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

.job-content h3 span {
    color: var(--green);
}

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

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

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

/* Featured Projects */
.project-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

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

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

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

.project-item:nth-of-type(2n) .project-image {
    grid-column: 6 / -1;
}

.project-content {
    position: relative;
    grid-area: 1 / 1 / -1 / 7;
    z-index: 2;
}

.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);
}

.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);
    font-size: var(--fz-md);
}

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

.project-item: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-links {
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 10px;
    margin-left: -10px;
    color: var(--lightest-slate);
}

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

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

.project-image {
    grid-area: 1 / 6 / -1 / -1;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    transition: var(--transition);
    cursor: pointer;
}

.project-image a {
    width: 100%;
    height: 100%;
    background-color: var(--green);
    border-radius: var(--border-radius);
    vertical-align: middle;
}

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

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

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

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

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

.contact .numbered-heading {
    justify-content: center;
}

.contact .numbered-heading::after {
    display: none;
}

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

/* Mobile Menu */
.menu-toggle {
    display: none;
}

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

    .project-item:nth-of-type(2n+1) .project-content {
        grid-column: 5 / -1;
    }

    .project-item:nth-of-type(2n) .project-content {
        grid-column: 1 / 9;
    }
}

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

    .navbar {
        padding: 0 25px;
    }

    .side-element {
        display: none;
    }

    .about-inner {
        display: block;
    }

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

    .project-item {
        display: flex;
        flex-direction: column;
        margin-bottom: 70px;
        background-color: var(--light-navy);
        box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
        border-radius: var(--border-radius);
        overflow: hidden;
    }

    .project-content {
        padding: 30px 25px;
        z-index: 5;
        text-align: left !important;
        grid-column: auto;
    }

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

    .project-tech-list {
        justify-content: flex-start !important;
        margin: 10px 0;
    }

    .project-links {
        justify-content: flex-start !important;
        margin-left: -10px;
    }

    .project-image {
        opacity: 1;
        position: relative;
        width: 100%;
        height: auto;
        z-index: 1;
        grid-column: auto;
        box-shadow: none;
    }

    .project-image a {
        background-color: transparent;
        display: block;
        width: 100%;
    }

    .project-image a::before {
        display: none;
    }

    .project-image img {
        object-fit: cover;
        width: 100%;
        height: auto;
        filter: none;
        mix-blend-mode: normal;
        border-radius: var(--border-radius) var(--border-radius) 0 0;
    }

    /* Mobile Menu */
    .menu-toggle {
        display: block;
        position: relative;
        z-index: 12;
        cursor: pointer;
    }

    .bar {
        display: block;
        width: 30px;
        height: 2px;
        background-color: var(--green);
        margin: 6px 0;
        transition: var(--transition);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        bottom: 0;
        right: 0;
        width: min(75vw, 400px);
        height: 100vh;
        background-color: var(--light-navy);
        flex-direction: column;
        justify-content: center;
        transform: translateX(100%);
        transition: var(--transition);
        box-shadow: -10px 0 30px -15px rgba(2, 12, 27, 0.7);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu li {
        margin: 20px 0;
    }

    .nav-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 18px;
    }

    .nav-link::before {
        margin-bottom: 5px;
    }
}

@media (max-width: 600px) {
    .jobs-tabs {
        display: block;
    }

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

    .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;
    }

    .tab-button.active {
        border-left: 0;
        border-bottom: 2px solid var(--green);
        background-color: transparent;
        color: var(--green);
    }

    .tab-button:hover {
        background-color: transparent;
    }

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

    section {
        padding: 60px 0;
    }

    .big-heading {
        font-size: clamp(30px, 8vw, 50px);
    }

    .numbered-heading {
        font-size: 24px;
    }
}

/* Splash Screen */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--navy);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}

#splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.logo-animation svg {
    animation: rotate 2s linear infinite;
}

.logo-animation text {
    animation: none;
    /* Keep text steady */
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Scroll Animations */
.slide-up,
.slide-left,
.slide-right,
.fade-in {
    opacity: 0;
    transition: all 1s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.slide-up {
    transform: translateY(50px);
}

.slide-left {
    transform: translateX(-50px);
}

.slide-right {
    transform: translateX(50px);
}

.fade-in {
    transform: scale(0.95);
}

.slide-up.active,
.slide-left.active,
.slide-right.active,
.fade-in.active {
    opacity: 1;
    transform: translate(0) scale(1);
}
/* Skeleton Loader */
.skeleton {
    background: #112240;
    background: linear-gradient(
        110deg,
        #112240 8%,
        #233554 18%,
        #112240 33%
    );
    border-radius: 4px;
    background-size: 200% 100%;
    animation: 1.5s shine linear infinite;
}

@keyframes shine {
    to {
        background-position-x: -200%;
    }
}

.skeleton-text {
    height: 16px;
    margin-bottom: 10px;
    width: 100%;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-title {
    height: 32px;
    margin-bottom: 20px;
    width: 40%;
}

.skeleton-card {
    height: 400px;
    width: 100%;
    margin-bottom: 50px;
}

.skeleton-tab {
    height: 42px;
    width: 100%;
    margin-bottom: 2px;
}
