/* CSS Variables */
:root {
    --navy: #050505;
    /* Blacker background */
    --light-navy: #0d0d0d;
    --lightest-navy: #1a1a1a;
    --slate: #8892b0;
    --light-slate: #a8b2d1;
    --lightest-slate: #ccd6f6;
    --white: #e6f1ff;
    --green: #00ff41;
    /* Terminal Green */
    --green-tint: rgba(0, 255, 65, 0.1);

    --font-heading: 'Fira Code', monospace;
    /* Monospace everything */
    --font-mono: 'Fira Code', monospace;

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

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

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

body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    background-color: var(--navy);
    color: var(--slate);
    font-family: var(--font-mono);
    /* Default to mono */
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
}

/* Scanlines Effect */
body::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 2000;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 10px 0;
    font-weight: 600;
    color: var(--green);
    /* Headers are green now */
    line-height: 1.1;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.3);
    /* Subtle glow */
}

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);
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.6);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
}

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

.highlight-link {
    display: inline-block;
    text-decoration: none;
    text-decoration-skip-ink: auto;
    position: relative;
    transition: var(--transition);
    color: var(--green);
}

.highlight-link:after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    position: relative;
    bottom: 0.37em;
    background-color: var(--green);
    transition: var(--transition);
    opacity: 0.5;
}

.highlight-link:hover:after {
    width: 100%;
}

.btn {
    color: var(--green);
    background-color: transparent;
    border: 1px solid var(--green);
    border-radius: 4px;
    padding: 12px 18px;
    /* Slightly larger padding */
    font-size: 14px;
    font-family: var(--font-mono);
    line-height: 1;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    margin-right: 15px;
    /* Add spacing between buttons */
}

.btn:hover {
    background-color: var(--green-tint);
    transform: translateY(-2px);
    /* Subtle lift effect */
}

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



.btn-text {
    border: none;
    border-bottom: 1px solid var(--green);
    padding: 0 0 5px 0;
    border-radius: 0;
    margin-right: 0;
}

.btn-text:hover {
    background-color: transparent;
    width: auto;
    color: var(--green);
    border-bottom-width: 2px;
}

.big-btn {
    padding: 1.25rem 1.75rem;
    font-size: 16px;
    margin-top: 50px;
}


/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    /* Reduced specific height */
    padding: 0 20px;
    /* Add horizontal padding for smaller screens */
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center container */
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
    transition: var(--transition);
}

.header .container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
    /* Consistent padding */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 24px;
    /* Slightly smaller logo */
    font-weight: 700;
    letter-spacing: 1px;
}

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


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

.nav-links li {
    margin: 0 10px;
    /* Adjust spacing */
}

.nav-links a {
    color: var(--lightest-slate);
    font-family: var(--font-mono);
    font-size: 13px;
    padding: 10px;
}

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

.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
    /* Above menu */
}

.hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--green);
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2) {
    top: 10px;
}

.hamburger span:nth-child(3) {
    top: 20px;
}

/* Mobile Menu Open State */
.hamburger.open span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger.open span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}

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

.section-title {
    display: flex;
    align-items: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--lightest-slate);
    white-space: nowrap;
}

.section-title::before {
    content: ">_ ";
    color: var(--green);
    margin-right: 10px;
}

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

.section-number {
    display: none;
    /* Hide numbers, prompts are cooler */
}

/* Glitch Animation */
@keyframes glitch {
    0% {
        transform: translate(0)
    }

    20% {
        transform: translate(-2px, 2px)
    }

    40% {
        transform: translate(-2px, -2px)
    }

    60% {
        transform: translate(2px, 2px)
    }

    80% {
        transform: translate(2px, -2px)
    }

    100% {
        transform: translate(0)
    }
}

.hero-title:hover,
.glitch-hover:hover {
    animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
    color: var(--green);
}

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

.hero-section .container {
    padding-top: 0;
    /* Override */
}

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

/* Blinking cursor effect for subtitle */
.hero-subtitle::after {
    content: '_';
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-title {
    color: var(--lightest-slate);
    font-size: 80px;
    line-height: 1.1;
    margin: 0;
}

.hero-description {
    color: var(--slate);
    font-size: 80px;
    line-height: 1.1;
    margin-bottom: 20px;
}

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

.hero-cta {
    display: flex;
    align-items: center;
}

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

.about-text {
    font-size: 18px;
}

.skills-list-compact {
    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;
}

.skills-list-compact li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 20px;
    font-family: var(--font-mono);
    font-size: 14px;
}

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



/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.skill-category {
    background-color: var(--light-navy);
    padding: 2rem;
    border-radius: 4px;
    transition: var(--transition);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.skill-category:hover {
    transform: translateY(-5px);
}

.skill-category h3 {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 20px;
    color: var(--lightest-slate);
}

.skill-category h3 i {
    color: var(--green);
    margin-right: 15px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tags span {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--green);
    background: rgba(100, 255, 218, 0.05);
    /* Very subtle tint */
    padding: 5px 10px;
    border-radius: 15px;
    /* Pill shape */
}

/* Experience */
.jobs-tabs {
    display: flex;
    align-items: flex-start;
}

.jobs-tab-list {
    display: flex;
    flex-direction: column;
    min-width: 180px;
    /* Reduced width */
    margin-right: 30px;
    /* added margin */
    /* Remove padding/margin left/right that might break layout */
    border-left: 2px solid var(--lightest-navy);
}

.job-tab {
    background: transparent;
    border: none;
    border-left: 2px solid transparent;
    /* default hidden border */
    border-radius: 0;
    padding: 0 20px;
    height: 42px;
    text-align: left;
    color: var(--slate);
    font-family: var(--font-mono);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    /* Prevent wrapping */

    /* Pull back to align with the border line */
    margin-left: -2px;
}

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

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

.job-panel {
    display: none;
}

.job-panel.active {
    display: block;
    animation: fadeIn 0.5s;
}

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

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

.job-role {
    font-size: 22px;
    margin-bottom: 5px;
}

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

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

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

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

.job-tech span {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--light-slate);
    margin-right: 20px;
    margin-top: 20px;
}

/* Projects / Certifications List */
.cert-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 50px;
}

.cert-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
    border-bottom: 1px solid var(--lightest-navy);
    padding-bottom: 30px;
    transition: var(--transition);
}

.cert-item:hover {
    transform: translateX(10px);
    border-bottom-color: var(--green);
}

.cert-content {
    max-width: 80%;
}

.cert-title {
    color: var(--lightest-slate);
    font-size: 22px;
    margin-bottom: 10px;
}

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

.cert-desc {
    font-size: 16px;
    color: var(--light-slate);
    margin-bottom: 15px;
}

.cert-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.cert-tech li {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--green);
}

.cert-tech li::before {
    content: "#";
    margin-right: 2px;
    color: var(--slate);
}

.cert-icon {
    font-size: 40px;
    color: var(--green);
    opacity: 0.5;
    transition: var(--transition);
}

.cert-item:hover .cert-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* Old Grid (Safe to delete or keep if you change mind, deleting now) */

/* Contact */
.section-title-big {
    font-size: 60px;
    color: var(--lightest-slate);
    margin: 20px 0;
}

.text-center {
    text-align: center;
}

.contact-text {
    max-width: 600px;
    margin: 0 auto;
    font-size: 20px;
}



/* Footer */
.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
    background-color: var(--navy);
    text-align: center;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--light-slate);
}

.footer p {
    margin: 5px 0;
}

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

.social-links-bottom {
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
}

.social-links-bottom a {
    color: var(--light-slate);
    font-family: var(--font-mono);
    /* Make them look like code/terminal links */
    font-size: 16px;
    /* Slightly smaller than icons for text balance */
    transition: var(--transition);
    text-decoration: none;
    margin: 0 10px;
    /* Add some spacing */
}

.social-links-bottom a:hover {
    color: var(--green);
    transform: translateY(-3px);
    text-decoration: underline;
    /* Standard link behavior for attention */
}

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

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

    .header {
        height: 70px;
    }

    .hamburger {
        display: block;
    }

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

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

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

    /* Hero */
    .hero-title,
    .hero-description {
        font-size: 50px;
    }

    /* About */
    .about-content {
        grid-template-columns: 1fr;
    }



    /* Experience */
    .jobs-tabs {
        flex-direction: column;
    }

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

    .job-tab {
        border-left: none;
        border-bottom: 2px solid transparent;
        margin-left: 0;
        margin-bottom: -2px;
        /* Pull down */
        padding: 0 15px;
        min-width: 120px;
        text-align: center;
    }

    .job-tab.active {
        border-bottom-color: var(--green);
        background-color: transparent;
    }

    /* Contact */
    .section-title-big {
        font-size: 40px;
    }
}

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

    .hero-title,
    .hero-description {
        font-size: 32px;
    }

    .hero-text {
        font-size: 16px;
    }

    .section-title {
        font-size: 26px;
    }

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

/* Animations added by script.js */
.hidden-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.hidden-section.in-view {
    opacity: 1;
    transform: translateY(0);
}

.cursor-glow {
    width: 400px;
    height: 400px;
    background: radial-gradient(600px circle at center, rgba(29, 78, 216, 0.15), transparent 80%);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
}