@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:wght@100;200;300;400;500;600;700;800;900&display=swap');

:root {
    /* Colors */
    --color-bg: #000000;
    --color-text-primary: white;
    --color-text-accent: yellow;
    --color-text-muted: #9BA1A6;
    --color-border-primary: white;
    --color-border-accent: yellow;
    --color-border-subtle: #eeeeee;

    /* Fonts */
    --font-primary: 'Fira Code', monospace;
    --font-secondary: 'Fira Sans', sans-serif;

    /* Spacing & Utilities */
    --scrollbar-width: 5px;
    --scrollbar-height: 10px;

    /* Animations & Transitions */
    --animation-slide-speed: 110s;
    --transition-fast: 0.3s ease;
    /* Centralized for hover states if they choose to transition */
}

/* ==========================================================================
   Base Styles & Utilities
   ========================================================================== */
* {
    padding: 0;
    margin: 0;
    background-color: var(--color-bg);
}

span {
    color: var(--color-text-accent);
}

::-webkit-scrollbar {
    width: var(--scrollbar-width);
}

/* Reusable Utility Classes based on BEM concepts */
.text-accent {
    color: var(--color-text-accent);
}

.text-white {
    color: var(--color-text-primary);
}

.font-primary {
    font-family: var(--font-primary);
}

.font-secondary {
    font-family: var(--font-secondary);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header--sticky {
    /*position: sticky;*/
    top: 0;
    z-index: 10;
}

.nav {
    width: 100%;
    display: inline-flex;
    justify-content: space-between;
    padding: 0.5em 0;
}

.nav--centered {
    justify-content: center;
}

.nav__logo {
    display: flex;
    justify-items: center;
    /* kept for preservation */
    justify-content: center;
    padding: 0 0 0 1em;
}

.nav__logo-img {
    width: 45px;
    animation: wave-animation 2.5s infinite;
    transform-origin: 70% 70%;
}

@keyframes wave-animation {
    0% {
        transform: rotate(0.0deg)
    }

    10% {
        transform: rotate(14.0deg)
    }

    20% {
        transform: rotate(-8.0deg)
    }

    30% {
        transform: rotate(14.0deg)
    }

    40% {
        transform: rotate(-4.0deg)
    }

    50% {
        transform: rotate(10.0deg)
    }

    60% {
        transform: rotate(0.0deg)
    }

    100% {
        transform: rotate(0.0deg)
    }
}

.nav__logo-text {
    color: var(--color-text-primary);
    font-family: var(--font-secondary);
    font-size: 2.5em;
    padding: 10px 0 10px 5px;
}

.nav__separator--mobile {
    display: none;
}

.nav__menu {
    padding: 1em;
    list-style: none;
    /* Emulating the original table behavior */
    display: flex;
    align-items: center;
}

.nav__item {
    padding: 0;
}

.nav__link {
    padding: 0 0.7em 0 0;
    font-size: 1.6em;
    font-family: var(--font-secondary);
    color: var(--color-text-primary);
    text-decoration: none;
    display: inline-block;
    transition: color var(--transition-fast);
}

.nav__link:hover {
    color: var(--color-text-muted);
}

/* ==========================================================================
   More Popup Navigation
   ========================================================================== */
.more-icon {
    font-size: 0.7em;
    margin-left: 3px;
    background-color: transparent;
}

.nav {
    position: relative;
}

.nav__more-popup {
    position: absolute;
    top: 100%;
    right: 1.5em;
    background-color: var(--color-bg);
    border: 2px solid var(--color-border-primary);
    padding: 1.5em;
    display: none;
    flex-direction: column;
    gap: 1em;
    min-width: 180px;
    z-index: 100;
    box-shadow: 6px 6px 0px var(--color-border-primary);
}

.nav__more-popup.active {
    display: flex;
}

.more-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1em;
    padding: 0;
    margin: 0;
}

.more-item {
    padding: 0;
}

.more-link {
    font-size: 1.4em;
    font-family: var(--font-secondary);
    color: var(--color-text-primary);
    text-decoration: none;
    display: inline-block;
    transition: color var(--transition-fast);
}

.more-link:hover {
    color: var(--color-text-muted);
}

/* Visibility Utilities for Nav items */
.nav-desktop-only {
    display: block;
}

.nav-mobile-only {
    display: none;
}

.more-desktop-only {
    display: block;
}

.more-mobile-only {
    display: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .nav-desktop-only {
        display: none !important;
    }

    .nav-mobile-only {
        display: block !important;
    }

    .more-desktop-only {
        display: none !important;
    }

    .more-mobile-only {
        display: block !important;
    }

    .nav__menu {
        gap: 10px;
        padding-right: 0.5em;
    }

    .nav__link {
        padding-right: 0;
        font-size: 1.3em;
    }

    .nav__more-popup {
        right: 0;
        left: 0;
        width: 100%;
        box-sizing: border-box;
        border-left: none;
        border-right: none;
        box-shadow: 0px 8px 0px var(--color-border-primary);
        margin-top: 15px;
    }
}



/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    width: 100%;
    display: inline-flex;
    justify-content: space-between;
}

.hero__img {
    width: 50vw;
}

.hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    padding: 4em;
}

.hero__title {
    font-size: 3em;
    font-weight: bolder;
}

.hero__subtitle {
    font-size: 2em;
    font-weight: 500;
}

.hero__desc {
    font-size: 1.2em;
}

/* ==========================================================================
   Section Variables & The Slider Marquee
   ========================================================================== */
@keyframes slide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

@keyframes slide-reverse {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

.section__header {
    overflow: hidden;
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    white-space: nowrap;
    position: relative;
    font-size: 1.3em;
}

.slider__container {
    padding: 0.3em 0 0.4em 0;
    display: flex;
    overflow: hidden;
    width: 100%;
}

.section__header:before,
.section__header:after {
    position: absolute;
    top: 0;
    width: 250px;
    height: 100%;
    content: "";
    z-index: 2;
}

.section__header:hover .slider__track {
    animation-play-state: paused;
}

.slider__track {
    display: inline-block;
    flex-shrink: 0;
    white-space: nowrap;
    animation: var(--animation-slide-speed) slide infinite linear;
    padding-right: 15px;
    /* Ensures consistent gap between cloned tracks */
}

.slider__track.slider__track--reverse {
    animation: var(--animation-slide-speed) slide-reverse infinite linear;
}

/* ==========================================================================
   Projects Section
   ========================================================================== */
.project__showcase {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: flex-start;
    width: 100%;
    margin: 2em 0;
}

.project__showcase::-webkit-scrollbar {
    height: var(--scrollbar-width);
}

.project-card {
    width: 400px;
    background: var(--color-bg);
    border: 1.5px solid var(--color-border-primary);
    color: var(--color-text-primary);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 1em;
}

.image-container {
    width: 100%;
    height: 220px;
    border-bottom: 1.5px solid var(--color-border-primary);
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lower-layout {
    display: grid;
    grid-template-columns: 1fr 75px;
}

.info-area {
    border-right: 1.5px solid var(--color-border-primary);
    display: flex;
    flex-direction: column;
}

.title-box {
    padding: 10px 15px;
    border-bottom: 1.5px solid var(--color-border-primary);
}

.title {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0;
    font-family: var(--font-primary);
}

.title span {
    color: var(--color-text-accent);
}

.desc-box {
    padding: 15px 15px 5px 15px;
}

.desc-text {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.btn-row {
    padding: 10px 15px 15px 15px;
    display: flex;
    gap: 10px;
}

.btn {
    border: 1.5px solid var(--color-border-primary);
    padding: 6px 12px;
    color: var(--color-text-primary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    font-family: var(--font-primary);
}

.btn span {
    color: inherit;
}

.btn * {
    background-color: transparent;
}

.btn:hover {
    background: var(--color-text-accent);
    border-color: var(--color-border-accent);
    color: var(--color-bg);
}

.sidebar {
    position: relative;
    overflow: hidden;
    background: var(--color-bg);
}

.icon-track {
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: scrollUp 8s linear infinite;
    animation-play-state: paused;
}

.project-card:hover .icon-track {
    animation-play-state: running;
}

@keyframes scrollUp {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

.skill-icon {
    width: 38px;
    height: 38px;
    border-radius: 4px;
}

.view-all {
    text-align: center;
    /* Converted from center tag */
}

.view-all__link {
    text-decoration: none;
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    font-size: 1.5em;
}

.view-all__link:hover {
    border: 2px solid var(--color-border-accent);
    padding: 10px;
}

/* ==========================================================================
   Skills Section
   ========================================================================== */
.skills {
    margin-top: 2em;
}

.skills__container {
    margin: 2em;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 2em;
}

.skills__img-wrapper {
    width: 45%;
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.skills__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.skills__list {
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    width: 55%;
    display: flex;
    flex-direction: column;
}

.skill-box {
    border: 1.5px solid var(--color-border-primary);
    margin-bottom: 0.8em;
}

.skill-box__title {
    font-size: 1.2em;
    margin: 5px 10px;
}

.skill-box__detail {
    padding: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about {
    margin-top: 0;
    margin-bottom: 2em;
}

.about__me {
    margin: 2em 0;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    /* Replacement for justify-items */
}

.about__img {
    width: 25%;
    border-radius: 50%;
}

.about__text-wrapper {
    color: var(--color-text-primary);
    width: 60vw;
    display: flex;
    justify-content: center;
    /* Replacement for justify-self */
    align-items: center;
}

.about__text {
    padding: 1em;
    font-size: 1.2em;
    border: 1.5px solid var(--color-border-primary);
    border-radius: 20px;
    font-family: var(--font-primary);
}

/* Desktop prefix "I am a" shown, mobile "A" hidden by default */
.about__prefix--desktop {
    display: inline;
    color: var(--color-text-primary);
}

.about__prefix--mobile {
    display: none;
    color: var(--color-text-primary);
}

/* ==========================================================================
   Education Section
   ========================================================================== */
.education {
    margin: 2em 0;
    display: block;
}

.education-module {
    display: flex;
    flex-direction: column;
    margin: 0;
    position: relative;
    width: 100%;
}

.education__map-container {
    width: 100%;
    height: 350px;
    border-bottom: 2px solid var(--color-border-primary);
    box-sizing: border-box;
    margin-bottom: -20px;
    /* pull cards up over map */
    z-index: 1;
}

/* Fix global reset interfering with Leaflet markers */
.leaflet-marker-icon,
.leaflet-marker-shadow {
    background-color: transparent !important;
}

.leaflet-container {
    background-color: var(--color-bg) !important;
}

.education__lower-layout {
    display: block;
}

.education__sidebar--mobile {
    display: none;
}

.education__cards-container {
    display: flex;
    justify-content: center;
    padding: 0 2vw;
    z-index: 2;
}

.education-module__card {
    flex: 1;
    background: var(--color-bg);
    border: 2px solid var(--color-border-primary);
    padding: 22px 16px;
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    cursor: pointer;
    transition: transform var(--transition-fast);
    margin-left: -2px;
    /* overlap borders */
}

.education-module__card:first-child {
    margin-left: 0;
}

.education-module__card:hover {
    transform: translateY(-5px);
    border-color: var(--color-text-accent);
    z-index: 3;
}

.education__swipe-indicator {
    display: none;
}


.education-module__year {
    color: var(--color-text-accent);
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 10px;
}

.education-module__title {
    font-size: 1.05em;
    font-weight: 600;
    margin-bottom: 8px;
}

.education-module__detail {
    font-size: 0.98em;
    line-height: 1.35;
    padding: 3px 0;
}

/* ==========================================================================
   Certifications Section 
   ========================================================================== */
.cert__container {
    overflow-x: scroll;
}

.cert__showcase {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: scroll;
    min-width: 2200px;
    margin: 0.5em 0;
}



/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact__container {
    margin: 2em;
    display: flex;
    justify-content: space-evenly;
}

.contact__header {
    color: var(--color-text-primary);
    width: 80%;
    font-family: var(--font-primary);
    font-size: 2em;
    text-align: center;
    /* Replaces center tag */
}

.contact__socials {
    margin: 1em 1em 0 1em;
}

.contact__social-link {
    color: var(--color-text-primary);
    font-size: 2.5em;
    margin: 0 0.1em;
}

.contact__social-link:hover {
    color: var(--color-text-accent);
}

.contact__form-wrapper {
    display: flex;
    justify-content: space-evenly;
    padding: 1em 0 0 0;
    border-top-right-radius: 25px;
    border-top-left-radius: 25px;
    background-color: transparent;
    /* Changed from rgba(255, 255, 255, 0) */
    border: 1.5px solid var(--color-border-primary);
    border-bottom: none;
    width: 600px;
    margin: 0 auto;
}

.contact__illustration {
    display: flex;
    justify-content: space-around;
}

.contact__img {
    width: 700px;
}

.form__label {
    font-size: 1.5em;
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    padding: 1em 0 0.5em 0;
    display: block;
    /* To break lines clearly */
}

.form__input,
.form__textarea {
    width: 500px;
    color: var(--color-text-primary);
    border: 1.5px solid var(--color-border-primary);
    border-radius: 10px;
    padding: 0.5em;
    font-size: 1.2em;
    font-family: var(--font-primary);
    box-sizing: border-box;
    /* Normalizing sizing */
}

.form__submit {
    color: var(--color-text-primary);
    width: 150px;
    border: 1.5px solid var(--color-border-primary);
    padding: 0.5em;
    font-size: 1.2em;
    border-radius: 25px;
    font-family: var(--font-primary);
    cursor: pointer;
    background: transparent;
    display: block;
    margin: 1em auto;
    /* Centers submit mimicking center tag */
}

.form__submit:hover {
    color: var(--color-text-accent);
    border-color: var(--color-border-accent);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer__text {
    color: var(--color-text-primary);
    text-align: center;
    font-family: var(--font-primary);
    padding: 1em 0 1em 0;
    font-size: 1.5em;
}

.footer__text:hover {
    color: var(--color-text-accent);
}

/* ==========================================================================
   Experience Section
   ========================================================================== */
#experience {
    margin-top: 0;
    margin-bottom: 2em;
    font-family: var(--font-primary);
}

/* Hidden on desktop — shown only on mobile via media query */
.exp__mobile-layout {
    display: block;
}

/* Hide sidebar on desktop — it only appears on mobile */
.exp__sidebar--mobile {
    display: none;
}

/* On desktop, cards column takes full width */
.exp__cards-column {
    display: block;
    width: 100%;
}

.exp-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 25px;
    padding: 0 20px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.exp-card {
    border: 2px solid var(--color-border-primary);
    padding: 35px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    background: var(--color-bg);
}

.exp-card:hover {
    border-color: var(--color-text-accent);
    box-shadow: 10px 10px 0px var(--color-text-accent);
    transform: translate(-6px, -6px);
    z-index: 2;
}

.card-7 {
    grid-column: span 7;
}

.card-5 {
    grid-column: span 5;
}

.card-4 {
    grid-column: span 4;
}

.card-8 {
    grid-column: span 8;
}

.card-full {
    grid-column: span 12;
}

.role {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--color-text-primary);
}

.company {
    color: var(--color-text-accent);
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: 700;
    display: block;
}

.feature-list {
    padding-left: 18px;
    margin: 0 0 25px 0;
}

.feature-list li {
    font-size: 0.85rem;
    color: var(--color-text-primary);
    line-height: 1.6;
    margin-bottom: 10px;
    list-style-type: square;
}

.feature-list li::marker {
    color: var(--color-text-accent);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    flex-wrap: wrap;
    gap: 15px;
}

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

.tag {
    font-size: 0.7rem;
    border: 1px solid var(--color-border-primary);
    padding: 3px 8px;
    color: var(--color-text-primary);
    background: #111;
}

.more-detail-btn {
    text-decoration: none;
    color: var(--color-text-primary);
    border: 1px solid var(--color-border-primary);
    padding: 8px 14px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.more-detail-btn:hover {
    background: var(--color-text-accent);
    color: var(--color-bg);
    border-color: var(--color-text-accent);
}

.date-float {
    position: absolute;
    top: -14px;
    right: 25px;
    background: var(--color-bg);
    padding: 0 10px;
    color: var(--color-text-accent);
    border: 1px solid var(--color-text-accent);
    font-size: 0.75rem;
    font-weight: bold;
}

/* ==========================================================================
   Achievements Section
   ========================================================================== */
#achievements {
    margin-top: 2em;
    margin-bottom: 0;
    font-family: var(--font-primary);
}

.achievements__layout {
    display: flex;
    flex-direction: row;
    width: 100%;
    border-bottom: none;
}

.achievements__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: calc(100% - 60px);
    /* Leave room for #More button */
    gap: 20px;
    padding: 20px;
    box-sizing: border-box;
    border-right: 2px solid var(--color-border-primary);
}

.cert-card {
    border: 2px solid var(--color-border-primary);
    background: var(--color-bg);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cert-card:hover {
    box-shadow: 6px 6px 0px var(--color-text-accent);
    transform: translate(-4px, -4px);
    z-index: 2;
}

.cert-preview {
    width: 100%;
    aspect-ratio: 16/9;
    background: #0a0a0a;
    border-bottom: 2px solid var(--color-border-primary);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.cert-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.cert-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.cert-overlay span {
    color: var(--color-bg);
    background: var(--color-text-accent);
    padding: 8px 16px;
    font-weight: 900;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cert-card:hover .cert-overlay {
    opacity: 1;
}

.cert-card:hover .cert-overlay span {
    transform: translateY(0);
}

.cert-card:hover .cert-preview img {
    opacity: 1;
    transform: scale(1.05);
}

.cert-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cert-title {
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.4;
    color: var(--color-text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cert-title span {
    color: var(--color-text-accent);
}

.achievements__more-btn {
    width: 60px;
    background: var(--color-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: var(--color-text-primary);
    font-family: var(--font-secondary);
    font-weight: bold;
    font-size: 1.5em;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    transition: all 0.3s;
}

.achievements__more-btn:hover {
    background: var(--color-text-primary);
    color: var(--color-bg);
}

.achievements__more-btn span {
    color: var(--color-text-accent);
    background-color: transparent;
}

.achievements__more-btn:hover span {
    color: var(--color-bg);
}

/* ==========================================================================
   Responsive (max-width: 1000px)
   Integrated from responsive.css
   ========================================================================== */
@media(max-width: 1000px) {

    /* Nav Bar */
    .nav {
        display: block;
        justify-items: center;
        padding: 0;
    }

    .nav__logo {
        width: 100%;
        padding: 0.2em;
    }

    .nav__separator--mobile {
        display: block;
        width: 100vw;
    }

    .nav__menu {
        padding: 1em;
        display: flex;
        justify-content: space-around;
        padding-left: 0;
        /* Clear default padding if necessary */
        padding-right: 0;
    }

    .nav__logo-text {
        font-size: 2em;
    }

    .nav__logo-img {
        width: 35px;
    }

    .nav__item {
        padding: 0;
    }

    .nav__link {
        padding: 0 0.2em;
        font-size: 1.1em;
    }

    /* Home Page / Hero */
    .hero {
        width: 100vw;
        display: block;
        justify-items: center;
    }

    .hero__img {
        width: 100vw;
    }

    .hero__content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 1em;
        height: 250px;
    }

    .hero__title {
        font-size: 2.4em;
    }

    .hero__subtitle {
        font-size: 1.8em;
    }

    .hero__desc {
        font-size: 1em;
        padding: 0 0.5em;
    }

    .section__header {
        font-size: 1.3em;
    }

    /* Project Section */
    .project-list {
        /* Retained context from project.html style tag */
        overflow: auto;
    }

    .project-list--vertical {
        overflow: hidden;
    }

    .project__showcase {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: scroll;
        min-width: max-content;
        justify-content: flex-start;
        margin: 0;
    }

    .project__showcase--vertical {
        display: block;
        min-width: unset;
        overflow-x: hidden;
    }

    .project__showcase::-webkit-scrollbar {
        height: var(--scrollbar-width);
    }

    .project-card {
        width: 350px;
        margin-bottom: 0;
        /* Removes the 1em desktop margin that created a huge gap */
    }

    .project-card:nth-child(n+5) {
        display: none;
    }

    .title {
        font-size: 1.4rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hide-on-mobile {
        display: none;
    }

    .icon-track {
        animation-play-state: running !important;
    }

    .desc-text {
        -webkit-line-clamp: 4;
    }

    .project-card--wide {
        width: 90vw;
    }

    .project__showcase {
        margin-bottom: 0;
    }

    .view-all {
        display: block;
        text-align: center;
        margin: 0;
        padding: 15px 0;
        /* Symmetric padding so it sits perfectly centered */
    }

    .view-all__link {
        color: var(--color-text-primary);
        font-family: var(--font-primary);
        font-size: 1.1em;
        /* Standardized size */
        font-weight: bold;
        display: inline-block;
        animation: pulse 2s infinite;
        /* Add standard pulse */
    }

    #achievements {
        margin-top: 0;
    }

    /* Skills Section */
    .skills {
        margin-top: 0px;
    }

    .skills__container {
        margin: 1em;
        display: flex;
        flex-direction: column;
        gap: 2em;
    }

    .skills__list,
    .skills__img-wrapper {
        width: 100%;
    }

    .skills__img {
        width: 90%;
        margin: 0 auto;
        height: auto;
    }

    /* About Section */
    .about>.section__header {
        display: none;
    }

    .about__me {
        margin: 0;
        display: block;
    }

    .about__img {
        display: none;
    }

    .about__text-wrapper {
        width: 92%;
        margin: 0 4%;
    }

    .about__text {
        padding: 1em;
        font-size: 1.05em;
        border-radius: 0;
        border-left: 3px solid var(--color-text-accent);
        border-top: none;
        border-right: none;
        border-bottom: none;
    }

    /* On mobile: hide "I am a", show capital "A" */
    .about__prefix--desktop {
        display: none;
    }

    .about__prefix--mobile {
        display: inline;
    }

    /* Education Section */
    .education {
        margin-top: 0;
        margin-bottom: 0;
    }

    /* Show the horizontal marquee header for Education on mobile */
    #education>.section__header {
        display: block;
    }

    /* Hide the vertical sidebar — replaced by the standard horizontal header */
    .education__sidebar--mobile {
        display: none !important;
    }

    .education__lower-layout {
        display: flex;
        flex-direction: row;
        width: 100%;
        border-top: 2px solid var(--color-border-primary);
        /* No bottom border — clean separation handled by next section */
        border-bottom: none;
        overflow: hidden;
    }

    .education__sidebar--mobile {
        display: block;
        width: 40px;
        background: var(--color-bg);
        border-right: 1.5px solid var(--color-border-primary);
        position: relative;
        overflow: hidden;
    }

    .education__sidebar-track {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        color: var(--color-text-primary);
        font-family: var(--font-primary);
        font-weight: normal;
        font-size: 1.2em;
        white-space: nowrap;
        animation: scrollUpEducation 15s linear infinite;
    }

    .marquee-group {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding-bottom: 15px;
        /* Ensures the gap between group 1 and group 2 equals the gap between items */
    }

    .sidebar-item {
        writing-mode: vertical-rl;
        transform: rotate(180deg);
    }

    .sidebar-item span {
        color: var(--color-text-accent);
    }

    @keyframes scrollUpEducation {
        0% {
            transform: translateY(0);
        }

        100% {
            transform: translateY(-50%);
        }
    }

    .education__right-column {
        display: block;
        width: 100%;
        flex: 1;
    }

    .education__cards-container {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        height: auto;
        overflow-x: scroll;
        overflow-y: visible;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0 5vw 0 0;
        /* Minimal padding for scroll end */
        margin: 0;
        width: 100%;
        box-sizing: border-box;
        gap: 0;
        /* Remove gap so cards attach */
    }

    .education__cards-container::-webkit-scrollbar {
        display: none;
    }

    .education__swipe-indicator {
        display: block;
        text-align: center;
        color: var(--color-text-primary);
        font-family: var(--font-primary);
        font-weight: bold;
        font-size: 1.1em;
        /* Standardized size to match others */
        margin: 0;
        padding: 15px 0;
        /* Symmetric padding */
        animation: pulse 2s infinite;
    }

    .education__map-container {
        margin-bottom: -2px;
    }

    .education-module__card {
        display: block;
        flex: 0 0 85vw;
        /* Show 85% of card so next one peeks through */
        min-width: 85vw;
        max-width: 85vw;
        height: auto;
        min-height: auto;
        box-sizing: border-box;
        padding: 20px 16px;
        margin: 0;
        scroll-snap-align: center;
        border: 2px solid var(--color-border-primary);
        border-top: none;
        border-left: none;
        /* Remove left border for continuous line */
        transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
            box-shadow 0.35s ease;
    }

    /* Completely disable hover animations on mobile for education cards */
    .education-module__card:hover {
        transform: none;
        border-color: var(--color-border-primary);
        z-index: auto;
    }

    .education-module__card:first-child {
        margin-left: 0;
        border-left: 2px solid var(--color-border-primary);
        /* Only first card keeps left border */
    }

    /* Experience Section Mobile — vertical sidebar + scrollable cards */
    #experience {
        margin-bottom: 0;
        /* Remove huge black gap below section */
    }

    #experience>.section__header {
        display: none;
    }

    /* Hide the desktop-only exp-grid selector (no longer needed — cards are in exp__mobile-layout) */
    #experience>.exp-grid {
        display: none;
    }

    /* Show the mobile layout wrapper as a horizontal flex row */
    .exp__mobile-layout {
        display: flex;
        flex-direction: row;
        width: 100%;
        border-top: 1px solid var(--color-border-primary);
        border-bottom: none;
        /* Removed the unnecessary white line */
    }

    /* Show the vertical sidebar */
    .exp__sidebar--mobile {
        display: block;
        width: 40px;
        background: var(--color-bg);
        border-right: 1.5px solid var(--color-border-primary);
        position: relative;
        overflow: hidden;
        flex-shrink: 0;
    }

    .exp__sidebar-track {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        color: var(--color-text-primary);
        font-family: var(--font-primary);
        font-weight: normal;
        font-size: 1.2em;
        white-space: nowrap;
        animation: scrollUpExperience 15s linear infinite;
    }

    @keyframes scrollUpExperience {
        0% {
            transform: translateY(0);
        }

        100% {
            transform: translateY(-50%);
        }
    }

    /* Cards column next to the sidebar */
    .exp__cards-column {
        flex: 1;
        overflow-y: auto;
        /* Restored scroll feature requested by user */
        max-height: 95vh;
        /* Increased height so boxes are properly visible */
    }

    #experience .exp__cards-column .exp-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 25px;
        /* Increased gap so the top-floating date badges don't overlap */
        padding: 30px 15px;
        padding-bottom: 40px;
        /* Ensures the last card isn't cut off */
        margin-top: 0;
    }

    /* Experience Section Mobile */
    .card-7,
    .card-5,
    .card-4,
    .card-8 {
        grid-column: span 12;
    }

    .exp-card {
        padding: 15px;
        /* Reduced padding inside card to save space */
    }

    /* Disable hover animations on mobile for experience cards */
    .exp-card:hover {
        transform: none;
        border-color: var(--color-border-primary);
        box-shadow: none;
        z-index: auto;
    }

    /* Adjust font sizes inside cards to fit nicely on mobile */
    .exp-card .role {
        font-size: 1.1em;
    }

    .exp-card .company {
        font-size: 0.9em;
    }

    .exp-card .feature-list li {
        font-size: 0.85em;
        margin-bottom: 5px;
        line-height: 1.4;
    }

    /* Achievements Section - 2x2 Grid */
    .achievements__layout {
        flex-direction: column;
        border-bottom: none;
    }

    .achievements__grid {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
        border-right: none;
        gap: 15px;
        padding: 15px;
    }

    .achievements__more-btn {
        display: block;
        text-align: center;
        color: var(--color-text-primary);
        font-family: var(--font-primary);
        /* Use primary font instead of secondary */
        font-size: 1.1em;
        /* Standardized size */
        font-weight: bold;
        width: 100%;
        margin: 0;
        padding: 10px 0;
        /* Symmetric padding */
        writing-mode: horizontal-tb;
        transform: none;
        border-top: none;
        /* Removed the upper border that made it boxy */
        animation: pulse 2s infinite;
        /* Add standard pulse */
    }

    .cert-info {
        padding: 10px;
    }

    .cert-title {
        font-size: 0.85rem;
        -webkit-line-clamp: 3;
    }

    /* Contact Section */
    .contact__container {
        margin: 1em;
    }

    .contact__header {
        width: 90%;
        font-size: 1.22em;
        margin: 0 auto;
    }

    .contact__form-wrapper {
        padding: 0.3em 0;
        width: 300px;
        margin: 0 auto;
    }

    .contact__img {
        width: 350px;
    }

    .form__label {
        font-size: 1.1em;
        padding: 0.5em 0;
    }

    .form__input,
    .form__textarea {
        width: 250px;
        padding: 0.5em;
        font-size: 1em;
    }

    .form__submit {
        width: 120px;
        padding: 0.5em;
        font-size: 1em;
    }

    /* Footer */
    .footer__text {
        font-size: 1em;
    }
}

/* ==========================================================================
   Cyber Hero Section
   ========================================================================== */
.cyber-hero {
    display: flex;
    flex-direction: column;
    padding: 2vw;
    padding-bottom: 5vw;
    position: relative;
    z-index: 10;
    background-color: var(--color-bg);
    color: #ffffff;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    overflow-x: hidden;
}

.cyber-hero * {
    background-color: transparent;
}

/* Top Section containing headline and video card */
.cyber-hero__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 2vw;
    position: relative;
    z-index: 5;
}

.cyber-hero__headline {
    font-size: 3.5vw;
    line-height: 1.1;
    font-weight: 500;
    letter-spacing: -0.02em;
    z-index: 5;
    background-color: transparent;
    font-family: inherit;
}

@keyframes floatCard {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Video Card floating over the strip */
.cyber-hero__video-card {
    width: 25vw;
    height: 32vw;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: absolute;
    right: 1vw;
    top: 1vw;
    z-index: 10;
    overflow: hidden;
    /* Image applied directly — immune to any background-color CSS rules */
    background-image: url('assets/me_pc.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-color: #1a1a1a !important;
}

/* White Strip (Marquee container) */
.cyber-hero__strip-container {
    background-color: #ffffff;
    color: #000000;
    padding: 0.6vw 0;
    position: relative;
    margin: 1.5vw -2vw;
    width: calc(100% + 4vw);
    z-index: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.cyber-hero__strip {
    display: flex;
    white-space: nowrap;
    background-color: transparent;
}

.cyber-hero__strip span {
    font-size: 1vw;
    font-weight: 700;
    text-transform: capitalize;
    margin-right: 15vw;
    color: #000000;
    background-color: transparent;
}

/* Bottom Section */
.cyber-hero__bottom {
    position: relative;
    padding-top: 0;
    margin-top: 0;
    background-color: transparent !important;
}

/*
.cyber-hero__divider {
    border-top: 1px solid #222222;
    margin-bottom: 1vw;
}*/

.cyber-hero__massive-text {
    font-size: 18vw;
    font-weight: 700;
    line-height: 0.75;
    letter-spacing: -0.06em;
    /*text-align: center;*/
    display: flex;
    /*justify-content: center;*/
    align-items: flex-start;
    margin-left: -1vw;
    /* Tiny optical adjustment for the huge A */
    font-family: inherit;
    background-color: transparent !important;
    padding-bottom: 4vw;
}

.cyber-hero__massive-text sup {
    font-size: 6vw;
    font-weight: 500;
    margin-top: 1.5vw;
    letter-spacing: normal;
    background-color: transparent !important;
}

/* Responsive Design for Mobile and Tablets */
@media (max-width: 900px) {
    .cyber-hero {
        padding: 0.5vw 5vw;
    }

    .cyber-hero__top {
        flex-direction: column;
    }

    .cyber-hero__headline {
        font-size: clamp(22px, 6.5vw, 36px);
        line-height: 1.2;
        margin-bottom: 6vw;
    }

    .cyber-hero__headline br {
        display: none;
    }

    .cyber-hero__video-card {
        position: relative;
        right: 0;
        width: 100%;
        height: 50vw;
        margin-bottom: 5vw;
        z-index: 10;
        top: 0;
        background-image: url('assets/me.png');
    }

    .cyber-hero__strip-container {
        position: relative;
        top: auto;
        margin: 0vw -5vw;
        width: calc(100% + 10vw);
        padding: 3vw 0;
    }

    .cyber-hero__strip span {
        font-size: 3vw;
        margin-right: 10vw;
    }

    .cyber-hero__bottom {
        padding-top: 0vw;
        margin-top: 0;
    }

    .cyber-hero__massive-text {
        font-size: 24vw;
        margin-top: 5vw;
    }

    .cyber-hero__massive-text sup {
        font-size: 8vw;
    }
}

/* 2026-03-14: chore: configure project base variables and directories */

/* 2026-03-15: style: define global color palette variables in :root */

/* 2026-03-16: style: add typography variables and import Fira Code font */

/* 2026-03-17: style: implement custom scrollbars styling for WebKit */

/* 2026-03-18: style: add baseline body and layout wrapper rules */

/* 2026-03-19: feat: construct semantic nav layout in index.html */

/* 2026-03-20: style: add base styles for header and sticky navigation bar */

/* 2026-03-21: style: design logo animations and container dimensions */

/* 2026-03-22: feat: add desktop menu links and link icons in nav bar */

/* 2026-03-23: style: implement primary nav link transition animations */

/* 2026-03-24: feat: create mobile nav menu container with toggling hooks */

/* 2026-03-25: style: add CSS transitions for mobile dropdown overlays */

/* 2026-03-26: feat: build details sub-navigation inside popup wrappers */

/* 2026-03-27: style: add subtle drop-shadows to popup containers */

/* 2026-03-28: chore: configure gitignore and exclude build temp files */

/* 2026-03-29: docs: outline typography and responsive grids layout plan */

/* 2026-03-30: style: add media queries for small screen menu collapsing */

/* 2026-03-31: style: structure responsive spacer utility helper classes */

/* 2026-04-02: style: define cyber hero typographic sizes and spacing */

/* 2026-04-04: style: write infinite horizontal marquee keyframe styling */

/* 2026-04-06: style: define two-column flex styles for description */

/* 2026-04-08: style: setup dynamic map iframe placeholder container */

/* 2026-04-10: style: format shields.io badges list with wrap alignments */

/* 2026-04-12: feat: add devops and tooling tools badges layout list */

/* 2026-04-14: style: write project showcase flex wrapper CSS */

/* 2026-04-16: style: add project preview image scaling hover overlays */

/* 2026-04-18: style: write project title styling and accent text colors */

/* 2026-04-20: feat: add live demonstration satellite action buttons */

/* 2026-04-22: style: design scrolling tech icons sidebar element slots */

/* 2026-04-24: style: specify project card elevation transition behaviors */

/* 2026-04-26: style: write card overlay transition and preview styles */

/* 2026-04-28: style: customize contact details layout alignments CSS */

/* 2026-04-30: docs: update layout plans for wide project screens grid */