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

html {
    scroll-behavior: smooth;
}

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

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

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

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

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

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

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: transparent;
    backdrop-filter: none;
    z-index: 1000;
    padding: 0 50px;
    box-shadow: none;
    transition: all 0.3s ease;
    transform: translateY(0);
}

header.scrolled {
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

header.hidden {
    transform: translateY(-100%);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    max-width: 1600px;
    margin: 0 auto;
}

.logo {
    color: var(--green);
    font-size: 24px;
    font-weight: 700;
    font-family: var(--font-mono);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 1001;
    position: relative;
}

.logo:hover {
    color: var(--lightest-slate);
}

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

.nav-links a {
    color: var(--lightest-slate);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 13px;
    transition: color 0.3s;
}

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

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

.resume-button {
    padding: 10px 16px !important;
    border: 1px solid var(--green) !important;
    border-radius: 4px !important;
    transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1) !important;
    position: relative !important;
    display: inline-block !important;
}

.resume-button:hover {
    background-color: var(--green-tint) !important;
    transform: translate(-4px, -4px) !important;
    box-shadow: 4px 4px 0 0 var(--green) !important;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    width: 30px;
    height: 24px;
    justify-content: space-between;
    position: relative;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: var(--green);
    transition: all 0.3s ease;
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    header {
        padding: 0 25px;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: min(75vw, 400px);
        height: 100vh;
        background-color: var(--light-navy);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: -10px 0 30px -15px rgba(2, 12, 27, 0.7);
        z-index: 1000;
    }

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

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 18px;
        display: block;
        padding: 10px 0;
    }

    .nav-links span {
        display: block;
        margin-bottom: 5px;
        font-size: 14px;
    }

    .resume-button {
        margin-top: 20px;
        padding: 18px 50px !important;
    }

    /* Mobile menu backdrop */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(10, 25, 47, 0.8);
        backdrop-filter: blur(5px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
        pointer-events: none;
    }

    body.menu-open::before {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    body.menu-open {
        overflow: hidden;
    }
}

/* Tablet adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 12px;
    }

    .resume-button {
        padding: 8px 12px !important;
    }
}

/* Main Content */
main {
    margin-top: 100px;
}

section {
    min-height: 100vh;
    padding: 100px 0;
}

.section-title {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    font-size: clamp(26px, 5vw, 32px);
    color: var(--lightest-slate);
    font-weight: 600;
}

.section-title::before {
    content: attr(data-number);
    font-family: var(--font-mono);
    color: var(--green);
    font-size: clamp(16px, 3vw, 20px);
    margin-right: 10px;
}

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

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

.hero-intro {
    font-family: var(--font-mono);
    color: var(--green);
    font-size: clamp(14px, 5vw, 16px);
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(40px, 8vw, 80px);
    color: var(--lightest-slate);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: clamp(40px, 8vw, 80px);
    color: var(--slate);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-description {
    max-width: 540px;
    font-size: 20px;
    margin-bottom: 50px;
}

.cta-button {
    display: inline-block;
    padding: 18px 28px;
    border: 1px solid var(--green);
    color: var(--green);
    background-color: transparent;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
    cursor: pointer;
    position: relative;
}

.cta-button:hover {
    background-color: var(--green-tint);
    transform: translate(-4px, -4px);
    box-shadow: 4px 4px 0 0 var(--green);
}

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

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

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.skills-grid li {
    font-family: var(--font-mono);
    font-size: 13px;
    list-style: none;
    position: relative;
    padding-left: 20px;
}

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

/* Experience Section */
.experience-container {
    display: flex;
    gap: 20px;
}

.company-tabs {
    display: flex;
    flex-direction: column;
    border-left: 2px solid var(--lightest-navy);
}

.tab-button {
    background: none;
    border: none;
    color: var(--slate);
    font-family: var(--font-mono);
    font-size: 13px;
    padding: 10px 20px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s;
    border-left: 2px solid transparent;
    margin-left: -2px;
}

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

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

.experience-content {
    flex: 1;
}

.job-panel {
    display: none;
}

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

.job-title {
    color: var(--lightest-slate);
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 5px;
}

.job-company {
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 16px;
}

.job-date {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--light-slate);
    margin-bottom: 25px;
}

.job-description {
    list-style: none;
}

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

.job-description li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--green);
    font-size: 18px;
}

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

.contact-title {
    font-family: var(--font-mono);
    color: var(--green);
    font-size: 16px;
    margin-bottom: 20px;
}

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

.contact-text {
    margin-bottom: 50px;
}

/* Social Links */
.social-links {
    position: fixed;
    bottom: 0;
    left: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.social-links::after {
    content: '';
    width: 1px;
    height: 90px;
    background-color: var(--light-slate);
}

.social-links a {
    color: var(--light-slate);
    font-size: 20px;
    transition: all 0.3s;
}

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

.email-link {
    position: fixed;
    bottom: 0;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.email-link::after {
    content: '';
    width: 1px;
    height: 90px;
    background-color: var(--light-slate);
}

.email-link a {
    color: var(--light-slate);
    font-family: var(--font-mono);
    font-size: 12px;
    text-decoration: none;
    writing-mode: vertical-rl;
    letter-spacing: 0.1em;
    transition: all 0.3s;
}

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .company-tabs {
        flex-direction: row;
        border-left: none;
        border-bottom: 2px solid var(--lightest-navy);
        overflow-x: auto;
    }

    .tab-button {
        border-left: none;
        border-bottom: 2px solid transparent;
        margin-left: 0;
        margin-bottom: -2px;
        white-space: nowrap;
    }

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

    .social-links, .email-link {
        display: none;
    }

    .section-title::after {
        width: 100px;
    }

    .hero-description {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .hero-description {
        font-size: 16px;
    }

    .nav-links {
        width: 100vw;
    }
}