/* ===== FONTS ===== */
@font-face {
    font-family: 'Mono';
    src: url('../assets/fonts/monoregular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'MSB';
    src: url('../assets/fonts/msb/msbee-regular.woff2') format('woff2');
    font-weight: 400;
}

@font-face {
    font-family: 'MSB';
    src: url('../assets/fonts/msb/msbee-medium.woff2') format('woff2');
    font-weight: 500;
}

@font-face {
    font-family: 'MSB';
    src: url('../assets/fonts/msb/msbee-bold.woff2') format('woff2');
    font-weight: 700;
}

@font-face {
    font-family: 'MSB';
    src: url('../assets/fonts/msb/msbee-black.woff2') format('woff2');
    font-weight: 900;
}

/* ===== CSS VARIABLES ===== */
:root {
    --color-primary: #c43036;
    --color-primary-dark: #a82a2f;
    --color-bg-dark: #050505;
    --color-bg-light: #ffffff;
    --color-text-light: #e0e0e0;
    --color-text-dark: #333333;
    --color-text-muted: #888888;
    --color-border-light: #ddd;
    --color-border-dark: #222;
    --font-display: 'MSB', 'Inter', sans-serif;
    --font-mono: 'Mono', 'SF Mono', monospace;
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
}

/* ===== RESET & BASE ===== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    font-family: var(--font-display);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity var(--transition-fast);
}

a:hover {
    opacity: 0.7;
}

/* ===== HEADER ===== */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.header-left .logo-text {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -0.05em;
    color: #fff;
    cursor: pointer;
}

.header-right {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.btn-connect {
    border: 1px solid currentColor;
    padding: 0.5em 1em;
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.btn-connect:hover {
    background: #fff;
    color: #000;
    opacity: 1;
}

.btn-mail {
    background: var(--color-primary);
    color: #fff !important;
    padding: 0.5em 1.2em;
    border-radius: 2px;
    font-weight: 700;
    transition: all var(--transition-fast);
}

.btn-mail:hover {
    background: var(--color-primary-dark);
    opacity: 1;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: #fff;
    transition: var(--transition-fast);
}

/* ===== HERO SECTION ===== */
#hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100vw;
    max-height: 100vh;
}

/* Hero Overlay — Full Viewport, No Centering */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.4) 0%,
            rgba(0, 0, 0, 0) 25%,
            rgba(0, 0, 0, 0) 60%,
            rgba(0, 0, 0, 0.6) 100%);
}

/* ---- Top-Left: System Info ---- */
.hero-sys-info {
    position: absolute;
    top: 6.5rem;
    left: 3rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    visibility: hidden;
}

.sys-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.sys-status {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 8px #4ade80;
    animation: dot-pulse 2s infinite ease-in-out;
}

@keyframes dot-pulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 8px #4ade80;
    }

    50% {
        opacity: 0.4;
        box-shadow: 0 0 2px #4ade80;
    }
}

/* ---- Top-Right: Role List ---- */
.hero-roles {
    position: absolute;
    top: 6.5rem;
    right: 3rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    text-align: right;
    opacity: 0;
    visibility: hidden;
}

.hero-role-item {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    overflow: hidden;
}

.role-index {
    color: var(--color-primary);
    font-weight: 700;
}

.role-sep {
    color: rgba(255, 255, 255, 0.25);
    margin: 0 0.3rem;
}

/* ---- Bottom-Left: Name Block ---- */
.hero-name-block {
    position: absolute;
    bottom: 5rem;
    left: 3rem;
    opacity: 0;
    visibility: hidden;
}

.hero-name-first,
.hero-name-last {
    font-family: var(--font-display);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.9;
    margin: 0;
}

.hero-name-first {
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    color: #fff;
    letter-spacing: -0.03em;
}

.hero-name-first .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
}

.hero-name-last {
    font-size: clamp(1.8rem, 4.2vw, 3.3rem);
    color: transparent;
    -webkit-text-fill-color: transparent;
    /* No text-shadow on stroked hollow text — multi-layer shadows read as misaligned “ghost” letters. */
    letter-spacing: 0em;
    -webkit-text-stroke: 1.5px var(--color-primary);
    text-stroke: 1.5px var(--color-primary);
    margin-top: 0.1em;
}

.hero-name-last .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
}

.hero-tagline {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    margin: 1.2rem 0 0;
    opacity: 0;
}

/* ---- Bottom-Right: Location ---- */
.hero-location-block {
    position: absolute;
    bottom: 5rem;
    right: 3rem;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    opacity: 0;
    visibility: hidden;
}

.loc-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    color: var(--color-primary);
    text-transform: uppercase;
}

.loc-city {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    margin: 0;
}

.loc-city svg {
    color: var(--color-primary);
}

.loc-coords {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.3);
}

/* ---- Bottom-Center: Scroll Cue ---- */
.hero-scroll-cue {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    opacity: 0;
    visibility: hidden;
}

.scroll-text {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.35em;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, #fff, transparent);
    animation: scroll-pulse 2s infinite ease-in-out;
}

@keyframes scroll-pulse {
    0% {
        top: -100%;
    }

    100% {
        top: 100%;
    }
}

/* ---- Hero Responsive ---- */
@media (max-width: 768px) {
    .hero-sys-info {
        top: 5.5rem;
        left: 1.5rem;
    }

    .hero-roles {
        top: 5.5rem;
        right: 1.5rem;
    }

    .hero-roles .hero-role-item {
        font-size: 0.6rem;
    }

    .hero-name-block {
        bottom: 6rem;
        left: 1.5rem;
    }

    .hero-name-first {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .hero-name-last {
        font-size: clamp(1.8rem, 8vw, 3rem);
    }

    .hero-location-block {
        bottom: 6rem;
        right: 1.5rem;
    }

    .hero-scroll-cue {
        bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-sys-info {
        top: 5rem;
        left: 1rem;
    }

    .hero-roles {
        display: none;
    }

    .hero-name-block {
        bottom: 5rem;
        left: 1rem;
    }

    .hero-name-first {
        font-size: 2.5rem;
    }

    .hero-name-last {
        font-size: 1.6rem;
        -webkit-text-stroke-width: 1px;
    }

    .hero-tagline {
        font-size: 0.55rem;
        letter-spacing: 0.15em;
    }

    .hero-location-block {
        bottom: 5rem;
        right: 1rem;
    }

    .loc-city {
        font-size: 0.7rem;
    }
}


/* ===== SECTION BASE STYLES ===== */
.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--color-bg-dark);
    position: relative;
    z-index: 2;
    padding: 6rem 2rem;
    overflow: hidden;
}

.section-alt {
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
}

.section-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.02em;
    margin-bottom: 0;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

/* System Header Container */
.system-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    margin-bottom: 3rem;
}

/* Prefix "// SYSTEM_" */
.system-prefix {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-primary, #c43036);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-shadow: 0 0 8px var(--color-primary, #c43036);
    animation: prefix-flicker 3s infinite alternate;
}

@keyframes prefix-flicker {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    75% {
        opacity: 1;
        text-shadow: 0 0 12px var(--color-primary, #c43036);
    }
}

/* Animated Underline */
.title-underline {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary, #c43036), transparent);
    position: relative;
    overflow: hidden;
    margin-top: 0.75rem;
}

.title-underline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: underline-shimmer 2.5s infinite ease-in-out;
}

@keyframes underline-shimmer {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}




/* ===== ABOUT SECTION ===== */
.about-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 2;
}

.image-accent {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--color-primary);
    border-radius: 8px;
    z-index: 1;
}

/* About Lead Paragraph */
.about-lead {
    font-size: 1.5rem;
    line-height: 1.6;
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.about-lead .highlight {
    color: var(--color-primary, #c43036);
    font-weight: 600;
    position: relative;
}

.about-lead .highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-primary, #c43036);
    opacity: 0.3;
}

.about-text {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
}

/* Premium Stats */
.about-stats-premium {
    display: flex;
    gap: 3rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-premium {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-num {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 2.5rem;
    color: var(--color-primary, #c43036);
    line-height: 1;
}

.stat-num sup {
    font-size: 0.5em;
    vertical-align: super;
}

.stat-line {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary, #c43036), transparent);
    position: relative;
    overflow: hidden;
}

.stat-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: stat-shimmer 2.5s infinite ease-in-out;
}

@keyframes stat-shimmer {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}

.stat-desc {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
    .about-stats-premium {
        flex-wrap: wrap;
        gap: 2rem;
    }

    .about-lead {
        font-size: 1.25rem;
    }
}


/* ===== EDUCATION (ACADEMIC RIGOR) ===== */
.section-dark {
    background-color: #050505;
    color: #fff;
}

/* Education Section Character Image */
.edu-system-header {
    position: relative;
}

.title-underline-wrapper {
    display: flex;
    align-items: flex-end;
    position: relative;
    width: 100%;
}

.title-underline-wrapper .title-underline {
    flex-grow: 1;
    max-width: 80px;
}

.edu-character-img {
    width: 274px;
    height: auto;
    object-fit: contain;
    position: absolute;
    right: 0;
    bottom: 100%;
    transform: translateY(78px);
    z-index: 10;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
}

.education-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 4rem;
    align-items: start;
}

.uni-card {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem;
    position: sticky;
    top: 120px;
    transition: all var(--transition-medium);
    /* Ensure visibility */
    opacity: 1;
    visibility: visible;
}

.uni-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 10px 40px rgba(196, 48, 54, 0.1);
}

.uni-header {
    margin-bottom: 2rem;
}

.uni-logo {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.uni-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

.deg-name {
    font-family: var(--font-mono);
    color: var(--color-primary);
    font-size: 0.9rem;
    margin: 0;
}

.uni-meta {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.meta-label {
    color: var(--color-text-muted);
}

/* Timeline */
.syllabus-timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-item {
    margin-bottom: 4rem;
    position: relative;
    opacity: 1;
    visibility: visible;
    transition: opacity var(--transition-medium);
}

.timeline-item.active,
.timeline-item:hover {
    opacity: 1;
}

.timeline-marker {
    position: absolute;
    left: -2.35rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: #000;
    border: 2px solid var(--color-text-muted);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.timeline-item.active .timeline-marker {
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 0 15px var(--color-primary);
}

.timeline-year {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.timeline-subjects {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.timeline-subjects span {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    transition: all var(--transition-fast);
}

.timeline-subjects span:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-text-light);
}

/* ===== SKILLS (TECHNICAL ARSENAL) ===== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
}

.bento-card {
    background: linear-gradient(145deg, #0d0d0d, #151515);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    /* Ensure visibility */
    opacity: 1;
    visibility: visible;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(196, 48, 54, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.bento-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(196, 48, 54, 0.1);
}

.bento-card:hover::before {
    opacity: 1;
}

.bento-card.large {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(145deg, #111, #161616);
}

.bento-card.wide {
    grid-column: span 2;
}

.bento-card.accent-border {
    border-color: rgba(196, 48, 54, 0.3);
    background: linear-gradient(to bottom right, rgba(196, 48, 54, 0.05), #111);
}

.card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(196, 48, 54, 0.15), rgba(196, 48, 54, 0.05));
    border: 1px solid rgba(196, 48, 54, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.75rem;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.bento-card:hover .card-icon {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(196, 48, 54, 0.3);
}

.bento-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin: 0 0 1.5rem;
    font-weight: 700;
}

.tech-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tech-item {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
}

.tech-item:last-child {
    border: none;
}

.tech-item strong {
    color: #fff;
    margin-right: 0.5rem;
    font-weight: 600;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tags span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: var(--color-text-light);
    transition: all 0.2s ease;
}

.tech-tags span:hover {
    background: rgba(196, 48, 54, 0.15);
    border-color: var(--color-primary);
    color: #fff;
}

.tech-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.tech-columns h4 {
    font-size: 0.9rem;
    color: var(--color-primary);
    margin: 0 0 0.5rem;
    text-transform: uppercase;
    font-family: var(--font-mono);
}

.tech-columns p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* ===== PROJECTS (PORTFOLIO) ===== */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.project-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
    /* Ensure visibility */
    opacity: 1;
    visibility: visible;
}

.project-row.reverse {
    grid-template-columns: 1.2fr 1fr;
}

.project-row.reverse .project-info {
    order: 2;
}

.project-row.reverse .project-visual {
    order: 1;
}

.project-domain {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.project-info h3 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin: 0 0 1.5rem;
    line-height: 1.1;
}

.project-info p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
}

.project-stack {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.project-stack span {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #fff;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    transition: all 0.3s ease;
    background: transparent;
}

.project-stack span:hover {
    border-color: var(--color-primary);
    background: rgba(196, 48, 54, 0.15);
}

.btn-live {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--color-primary), #d64550);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(196, 48, 54, 0.3);
}

.btn-live:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(196, 48, 54, 0.4);
}

.project-visual {
    height: 400px;
    background: linear-gradient(145deg, #0d0d0d, #151515);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s ease;
}

.project-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(196, 48, 54, 0.1));
    z-index: 1;
    pointer-events: none;
}

.project-row:hover .project-visual {
    border-color: rgba(196, 48, 54, 0.3);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7), 0 0 60px rgba(196, 48, 54, 0.1);
}

/* Gradients for project placeholders */
.visual-placeholder {
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.project-visual:hover .visual-placeholder {
    transform: scale(1.05);
}


.visual-placeholder.s1 {
    background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
}

/* ===== INFINITE IMAGE MARQUEE ===== */

/* ===== REDESIGNED EDUCATION SECTION: THE ACADEMIC MAINFRAME ===== */
#education {
    padding-top: 5rem;
    /* Reduced from 12rem */
    /* Shift content downward */
    justify-content: flex-start;
    /* Ensure it starts from top, not centered */
}

.edu-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: 20vw;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    z-index: 0;
    pointer-events: none;
    white-space: nowrap;
}

.edu-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 2rem;
    /* Added small margin */
    gap: 4rem;
    /* Reduced from 12rem */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2rem;
}

.edu-header .system-header {
    margin-bottom: 0;
    width: 100%;
}


/* Wrapper for proper border placement */
.uni-badge-wrapper {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.uni-badge-modern {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem 2rem;
    border: 1px solid var(--color-primary);
    border-radius: 4px;
    backdrop-filter: blur(10px);
    animation: badgePulse 3s infinite ease-in-out;
}

@keyframes badgePulse {
    0% {
        box-shadow: 0 0 5px rgba(196, 48, 54, 0.2), inset 0 0 5px rgba(196, 48, 54, 0.1);
    }

    50% {
        box-shadow: 0 0 25px rgba(196, 48, 54, 0.5), inset 0 0 15px rgba(196, 48, 54, 0.2);
    }

    100% {
        box-shadow: 0 0 5px rgba(196, 48, 54, 0.2), inset 0 0 5px rgba(196, 48, 54, 0.1);
    }
}

.badge-icon {
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(196, 48, 54, 0.4);
}

.badge-info {
    display: flex;
    flex-direction: column;
}

.uni-name {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.2rem;
    color: #fff;
    letter-spacing: -0.02em;
}

.school-name {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.badge-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 1.5rem;
    margin-left: auto;
    /* Push to the far right */
}

.meta-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
}

.meta-tag.active {
    color: var(--color-primary);
    font-weight: 700;
}

/* Timeline Stream */
.education-stream {
    position: relative;
    padding: 4rem 0;
    overflow: hidden;
    /* Clip the line within this container */
}

.stream-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.15) 5%, rgba(255, 255, 255, 0.15) 95%, transparent 100%);
    transform: translateX(-50%);
    z-index: 1;
}

.stream-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, var(--color-primary), transparent);
    animation: verticalScan 4s ease-in-out infinite;
}

@keyframes verticalScan {
    0% {
        top: 0;
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    85% {
        opacity: 1;
    }

    100% {
        top: calc(100% - 100px);
        opacity: 0;
    }
}


.year-block {
    position: relative;
    margin-bottom: 8rem;
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    /* Centered marker column */
    gap: 2rem;
    align-items: center;
}

.year-marker {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #000;
    border: 2px solid var(--color-primary);
    width: 80px;
    height: 80px;
    justify-content: center;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 30px rgba(196, 48, 54, 0.2);
}

.year-num {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.8rem;
    color: #fff;
    line-height: 1;
}

.year-label {
    font-family: var(--font-display);
    /* Changed to display font for impact */
    font-size: 0.7rem;
    /* Increased size */
    font-weight: 900;
    /* Boldest weight */
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0;
    line-height: 1;
}

.sem-container {
    perspective: 1000px;
}

.sem-container.left {
    grid-column: 1;
    text-align: right;
    display: flex;
    justify-content: flex-end;
}

.sem-container.right {
    grid-column: 3;
}

/* Tech Cards */
.sem-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 2px;
    width: 100%;
    max-width: 400px;
    position: relative;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    height: 100%;
    /* Ensure it fills the grid cell height */
    display: flex;
    flex-direction: column;
}

.sem-card:hover {
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.sem-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.sem-id {
    font-family: var(--font-mono);
    color: var(--color-primary);
    font-weight: 700;
    letter-spacing: 0.1em;
}

.sem-decor {
    width: 40px;
    height: 4px;
    background: repeating-linear-gradient(45deg,
            rgba(255, 255, 255, 0.2),
            rgba(255, 255, 255, 0.2) 2px,
            transparent 2px,
            transparent 4px);
}

.subject-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.subject-list li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Sem Content Placeholder */
.sem-content-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    /* Take up remaining space */
    width: 100%;
    min-height: 150px;
    /* Ensure minimum height for symmetry */
}

.sem-container.left .subject-list li {
    flex-direction: row-reverse;
}

.sem-container.left .subject-list li::before {
    content: '<';
}

/* Active Card Special Styles */
.sem-card.active-card {
    border: 1px solid var(--color-primary);
    background: linear-gradient(135deg, rgba(196, 48, 54, 0.1), rgba(0, 0, 0, 0.8));
}

.status-live {
    font-size: 0.7rem;
    font-weight: bold;
    color: #fff;
    background: var(--color-primary);
    padding: 0.2rem 0.5rem;
    border-radius: 2px;
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.sem-content-placeholder {
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.progress-bar {
    width: 80%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar .fill {
    width: 60%;
    height: 100%;
    background: var(--color-primary);
    animation: progressFill 2s ease-in-out infinite alternate;
}

@keyframes progressFill {
    from {
        width: 50%;
    }

    to {
        width: 70%;
    }
}

/* Mobile Responsiveness for New Layout */
@media (max-width: 768px) {
    .year-block {
        grid-template-columns: 50px 1fr;
        gap: 1rem;
    }

    .year-marker {
        grid-column: 1;
        width: 50px;
        height: 50px;
    }

    .year-num {
        font-size: 1.2rem;
    }

    .year-label {
        font-size: 0.3rem;
    }

    .sem-container.left,
    .sem-container.right {
        grid-column: 2;
        text-align: left;
        justify-content: flex-start;
    }

    .stream-line {
        left: 25px;
        /* Half of marker width */
    }

    .sem-container.left .subject-list li {
        flex-direction: row;
        /* Reset reversed direction */
    }

    .sem-container.left .subject-list li::before {
        content: '>';
    }

    .edu-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .uni-badge-modern {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .badge-meta {
        margin-left: 0;
        border-left: none;
        padding-left: 0;
        align-items: flex-start;
        margin-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 1rem;
        width: 100%;
    }
}


#marquee-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.marquee-row {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
}

.marquee-track {
    display: flex;
    gap: 1rem;
    width: max-content;
    will-change: transform;
}

.marquee-track img {
    height: 250px;
    /* Fixed height to keep rows uniform */
    width: auto;
    /* Maintain aspect ratio - NO CROP */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

/* Scroll Animations handled by GSAP in js/marquee.js */
.marquee-row {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    /* Essential for horizontal layout */
}

.marquee-track {
    display: flex;
    gap: 1rem;
    width: max-content;
    will-change: transform;
}




.visual-placeholder.s2 {
    background: linear-gradient(45deg, #0f2027, #203a43);
}

.visual-placeholder.s3 {
    background: linear-gradient(45deg, #3a1c71, #d76d77);
}

.visual-placeholder.s4 {
    background: linear-gradient(45deg, #134e5e, #71b280);
}

.visual-placeholder.s5 {
    background: linear-gradient(45deg, #232526, #414345);
}

/* ===== INNOVATION (HACKATHONS) ===== */
.hack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.hack-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Ensure visibility */
    opacity: 1;
    visibility: visible;
}

.hack-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, transparent, rgba(196, 48, 54, 0.3), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hack-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(196, 48, 54, 0.5);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(196, 48, 54, 0.15);
}

.hack-card:hover::before {
    opacity: 1;
}

.hack-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(196, 48, 54, 0.2), rgba(196, 48, 54, 0.1));
    color: var(--color-primary);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(196, 48, 54, 0.2);
}

.hack-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.hack-cat {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 1.5rem;
}

.hack-card p:last-of-type {
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
    max-width: 90%;
}

.hack-icon {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    color: rgba(255, 255, 255, 0.1);
    transition: all var(--transition-medium);
}

.hack-card:hover .hack-icon {
    color: var(--color-primary);
    transform: scale(1.1);
}

/* ===== CONTACT SECTION ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Ensure visibility */
    opacity: 1;
    visibility: visible;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(196, 48, 54, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.contact-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(196, 48, 54, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(196, 48, 54, 0.1);
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(196, 48, 54, 0.15), rgba(196, 48, 54, 0.05));
    border: 1px solid rgba(196, 48, 54, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--color-primary);
    transition: all 0.4s ease;
}

.contact-card:hover .contact-icon {
    background: linear-gradient(135deg, var(--color-primary), #d64550);
    border-color: transparent;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(196, 48, 54, 0.4);
}

.contact-card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 0 0.75rem;
    color: #fff;
    text-transform: uppercase;
}

.contact-card a,
.contact-card p {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0;
    word-break: break-all;
    overflow-wrap: break-word;
}

.contact-card a:hover {
    color: var(--color-primary);
    opacity: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .education-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .uni-card {
        position: static;
        width: 100%;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-card.large,
    .bento-card.wide {
        grid-column: span 1;
        grid-row: span 1;
    }

    .project-row,
    .project-row.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-row.reverse .project-info {
        order: initial;
    }
}

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

/* ===== FOOTER ===== */
#main-footer {
    margin-top: 200px;
    background-color: #ffffff !important;
    color: #000;
    padding: 0;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    position: relative;
    width: 100%;
    z-index: 100;
    overflow: visible;
    border-top: 1px solid #eee;
    isolation: isolate;
    box-shadow: none !important;
}


#main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ffffff;
    z-index: -1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    width: 100%;
    margin: 0;
    padding: 0;
}

.footer-left {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
}

.footer-logo {
    color: var(--color-primary);
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 2rem;
    margin-bottom: 2rem;
    letter-spacing: -1px;
}

.newsletter-section label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* RESUME BUTTON STYLES */
.btn-download-resume {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 1.2rem;
    background: #000;
    color: #fff;
    border: 1px solid #000;
    border-radius: 0;
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
    white-space: nowrap;
    width: auto;
    min-width: 180px;
    max-width: 220px;
}

.btn-download-resume:hover {
    background: #000;
    color: #fff;
    border-color: #000;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(196, 48, 54, 0.25);
}

.btn-download-resume svg {
    transition: transform 0.3s ease;
    width: 18px;
    height: 18px;
    color: var(--color-primary);
}

.btn-download-resume:hover svg {
    transform: translateY(2px);
    color: var(--color-primary);
}

.footer-center {
    position: relative;
    bottom: auto;
    left: auto;
    display: flex;
    align-items: flex-end;
    z-index: 5;
    margin-right: -1rem;
}

.footer-character {
    max-height: 200px;
    width: auto;
    display: block;
    transform: none;
    margin-bottom: 0;
}

.footer-right {
    display: flex;
    gap: 0;
    justify-content: flex-end;
    align-items: stretch;
    min-height: 250px;
}

.footer-right .col {
    padding: 3rem 2rem;
    border-left: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    flex: 0 0 220px;
    width: 220px;
}

.footer-right .col:first-of-type {
    padding-left: 2rem;
}

.footer-right .col:last-child {
    padding-right: 2rem;
}

.col h3 {
    color: #000;
    font-weight: 900;
    font-family: var(--font-display);
    margin: 0 0 0.75rem 0;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.col a {
    display: block;
    color: #555;
    margin-bottom: 0.4rem;
    font-weight: 500;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.col a:hover {
    color: var(--color-primary);
    opacity: 1;
}

.social-icons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    transition: color var(--transition-fast);
}

.social-icons a:hover {
    color: var(--color-primary);
    opacity: 1;
}

.social-icons svg {
    width: 18px;
    height: 18px;
}

.footer-bottom-bar {
    height: 3px;
    background-color: var(--color-primary-dark);
    width: 100%;
    position: relative;
    z-index: 1;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-image {
        max-width: 280px;
        margin: 0 auto;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-center {
        position: relative;
        left: 0;
        bottom: 0;
        justify-content: center;
        order: 3;
    }

    .footer-character {
        transform: translateX(0);
        max-height: 180px;
    }

    .footer-right {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-right .col {
        border-left: none;
        border-top: 1px solid #ddd;
        padding: 1.5rem;
        flex: 0 0 auto;
        width: auto;
    }

    .footer-right .col:first-child {
        padding-left: 1.5rem;
    }

    .input-group {
        margin: 0 auto;
    }

    .hackathons-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    #main-header {
        padding: 1rem 1.5rem;
    }

    .header-right {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-right.active {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.95);
        padding: 2rem;
        gap: 1.5rem;
        text-align: center;
    }

    .section {
        padding: 4rem 1.5rem;
    }

    .about-stats {
        justify-content: center;
        gap: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .hackathon-card {
        flex-direction: column;
        text-align: center;
    }

    .hackathon-meta {
        justify-content: center;
    }
}

@media (max-width: 480px) {

    .section-title {
        font-size: 1.75rem;
    }

    .about-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

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

    .skill-cards {
        justify-content: center;
    }
}

/* ===== TECHNICAL ARSENAL: HOLOGRAPHIC GRID ===== */
/* ===== TECHNICAL ARSENAL: SYSTEM MODULES ===== */
.scanlines {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.1));
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

.arsenal-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tech-module {
    background: rgba(10, 10, 12, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    min-height: 250px;
}

.tech-module::before {
    /* Scanline texture */
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    z-index: 2;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    opacity: 0.3;
}

.tech-module:hover {
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(196, 48, 54, 0.1);
    transform: translateY(-2px);
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.module-id {
    font-family: var(--font-mono);
    color: var(--color-primary);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    font-weight: 700;
}

.module-dots {
    display: flex;
    gap: 4px;
}

.module-dots span {
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.tech-module:hover .module-dots span {
    background: var(--color-primary);
    box-shadow: 0 0 5px var(--color-primary);
}

.module-content {
    flex-grow: 1;
}

.module-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: #fff;
    margin: 0 0 1.5rem 0;
    letter-spacing: 0.05em;
}

.flex-row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.flex-row-between h3 {
    margin-bottom: 0;
}

.tech-tags-premium {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-tags-premium span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.4em 0.8em;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.tech-module:hover .tech-tags-premium span {
    color: #fff;
    border-color: rgba(196, 48, 54, 0.3);
    background: rgba(196, 48, 54, 0.05);
}

.module-footer {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
}

.status-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: #00ff9d;
    border: 1px solid rgba(0, 255, 157, 0.3);
    padding: 0.2em 0.6em;
    border-radius: 2px;
    letter-spacing: 0.1em;
}

.status-badge.blink {
    animation: blink 2s infinite;
}

.highlight-tag {
    font-size: 0.6rem;
    background: var(--color-primary);
    color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 2px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

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

/* ===== PROJECT PORTFOLIO: CYBER DECK ===== */
.cyber-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 3rem;
}

.project-card-cyber {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Stealth border */
    border-radius: 4px;
    /* Sharp corners */
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
}

.project-card-cyber:hover {
    border-color: rgba(196, 48, 54, 0.6);
    /* Active Red Border */
    box-shadow: 0 0 30px rgba(196, 48, 54, 0.15);
}

/* LEFT: MAIN CARD CONTENT */
.card-main {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 2;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.system-id {
    color: var(--color-primary);
    font-weight: 700;
}

.domain-tag {
    color: rgba(255, 255, 255, 0.4);
}

.card-main h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin: 0 0 1rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-main p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 90%;
}

.tech-stack-pills {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.tech-stack-pills span {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.4rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    border-radius: 50px;
    /* Pill shape */
    transition: all 0.3s ease;
}

.project-card-cyber:hover .tech-stack-pills span {
    border-color: rgba(196, 48, 54, 0.3);
    background: rgba(196, 48, 54, 0.05);
}

/* CYBER BUTTON */
.cyber-btn {
    align-self: flex-start;
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    padding: 1rem 2rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cyber-btn:hover {
    background: var(--color-primary);
    color: #000;
    box-shadow: 0 0 20px rgba(196, 48, 54, 0.4);
}

.cyber-btn.disabled {
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
}

.cyber-btn.disabled:hover {
    background: transparent;
    box-shadow: none;
    color: rgba(255, 255, 255, 0.4);
}

.blink {
    animation: blink 1s infinite;
}

/* RIGHT: INTERFACE / TERMINAL */
.card-interface {
    background: #050505;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-interface::before {
    /* Scanline overlay */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.5),
            rgba(0, 0, 0, 0.5) 1px,
            transparent 1px,
            transparent 2px);
    pointer-events: none;
    z-index: 10;
    opacity: 0.3;
}

.terminal-window {
    width: 85%;
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    opacity: 0.6;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-card-cyber:hover .terminal-window {
    transform: translateY(0);
    opacity: 1;
    border-color: rgba(196, 48, 54, 0.3);
    box-shadow: 0 0 30px rgba(196, 48, 54, 0.1);
}

.terminal-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terminal-header .dots {
    display: flex;
    gap: 6px;
}

.terminal-header .dots span {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.term-title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
}

.terminal-body {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.code-line {
    display: flex;
    gap: 0.5rem;
    opacity: 0.5;
    /* Default dimmed */
    transition: opacity 0.3s ease;
}

.project-card-cyber:hover .code-line {
    opacity: 1;
    /* Brightens on hover */
}

.prompt {
    color: var(--color-primary);
    font-weight: bold;
}

.success {
    color: #00ff9d;
}

/* Matrix Green for success */
.info {
    color: #00b8ff;
}

/* Cyan for info */
.var {
    color: #ffeb3b;
}

/* Yellow for variables */
.typing-effect {
    color: var(--color-primary);
    animation: blink 0.5s infinite;
}

/* Response */
@media (max-width: 900px) {
    .project-card-cyber {
        grid-template-columns: 1fr;
    }

    .card-interface {
        height: 200px;
        /* Show smaller terminal */
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .card-main {
        border-right: none;
        padding: 2rem;
    }
}

/* ===== INNOVATION: ACTIVE PROTOCOLS (LAB THEME) ===== */
.title-badge.pulsing {
    animation: pulseRed 2s infinite;
}

@keyframes pulseRed {
    0% {
        background: rgba(196, 48, 54, 0.8);
        box-shadow: 0 0 0 0 rgba(196, 48, 54, 0.4);
    }

    70% {
        background: rgba(196, 48, 54, 1);
        box-shadow: 0 0 10px 10px rgba(196, 48, 54, 0);
    }

    100% {
        background: rgba(196, 48, 54, 0.8);
        box-shadow: 0 0 0 0 rgba(196, 48, 54, 0);
    }
}

/* ===== INNOVATION GRID (REDESIGNED) ===== */
.innovation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.innov-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 3rem;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
}

.innov-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(196, 48, 54, 0.1), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.innov-card:hover {
    transform: translateY(-5px);
    border-color: rgba(196, 48, 54, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(196, 48, 54, 0.1);
}

.innov-card:hover::before {
    opacity: 1;
}

.innov-content {
    position: relative;
    z-index: 1;
}

.innov-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
}

.innov-id {
    font-family: var(--font-mono);
    color: var(--color-primary);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    font-weight: 700;
}

.innov-status {
    font-size: 0.65rem;
    padding: 0.4em 1.2em;
    border: 1px solid #00ff9d;
    border-radius: 50px;
    letter-spacing: 0.1em;
    color: #00ff9d;
    background: rgba(0, 255, 157, 0.05);
    font-weight: 700;
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.1);
    text-shadow: 0 0 5px rgba(0, 255, 157, 0.3);
    white-space: nowrap;
}

.innov-card h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin: 0 0 1rem;
    line-height: 1.1;
    color: #fff;
    transition: color 0.3s ease;
}

.innov-card:hover h3 {
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.innov-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.innov-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: auto;
}

.innov-tech span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.5em 1em;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    transition: all 0.3s ease;
    color: var(--color-text-muted);
}

.innov-card:hover .innov-tech span {
    border-color: rgba(196, 48, 54, 0.3);
    color: #fff;
    background: rgba(196, 48, 54, 0.05);
}

@media (max-width: 900px) {
    .innovation-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== SYSTEM NOTIFICATION ===== */
.system-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(10, 10, 12, 0.95);
    border: 1px solid var(--color-primary);
    padding: 1rem 1.5rem;
    border-radius: 4px;
    z-index: 1000;
    box-shadow: 0 0 30px rgba(196, 48, 54, 0.3);
    transform: translateX(0);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.system-notification.hidden {
    transform: translateX(150%);
    opacity: 0;
}

.notif-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.notif-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    animation: blink 1s infinite;
}

.notif-icon svg {
    width: 24px;
    height: 24px;
}

.notif-text {
    display: flex;
    flex-direction: column;
}

.notif-title {
    font-family: var(--font-mono);
    color: var(--color-primary);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 0.2rem;
}

.notif-msg {
    font-family: var(--font-mono);
    color: #fff;
    font-size: 0.85rem;
}

.system-notification .scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary);
    animation: scanLine 2s linear infinite;
}

@keyframes scanLine {
    0% {
        left: 0;
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

/* Hide mobile warning on desktop by default */
.mobile-desktop-warning {
    display: none;
}

/* ============================================= */
/* ===== COMPREHENSIVE MOBILE OPTIMIZATION ===== */
/* ============================================= */

/* ---------- Small screens (≤768px) ---------- */
@media (max-width: 768px) {

    /* — Mobile Warning Display — */
    .mobile-desktop-warning {
        display: flex;
        bottom: auto;
        top: 1rem;
        left: 1rem;
        right: 1rem;
        transform: translateY(-150%);
        animation: slideDownMobileAlert 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
        animation-delay: 2s;
        /* Wait for loader to finish */
        padding: 0.8rem 1rem;
        z-index: 10000;
    }

    .close-warning-btn {
        background: transparent;
        border: none;
        color: rgba(255, 255, 255, 0.5);
        cursor: pointer;
        padding: 0.5rem;
        margin-left: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: color 0.2s;
    }

    .close-warning-btn:hover {
        color: #fff;
    }

    @keyframes slideDownMobileAlert {
        0% {
            transform: translateY(-150%);
        }

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

    /* — Hero: stack location below name — */
    .hero-location-block {
        position: absolute;
        bottom: 1.5rem;
        right: auto;
        left: 1.5rem;
        text-align: left;
    }

    .loc-city {
        justify-content: flex-start;
    }

    .hero-name-block {
        bottom: 7rem;
    }

    .hero-scroll-cue {
        display: none;
    }

    /* — About: improve readability — */
    .about-lead {
        font-size: 1.15rem;
        line-height: 1.7;
    }

    .about-text {
        font-size: 0.9rem;
    }

    .about-stats-premium {
        gap: 1.5rem;
    }

    .stat-num {
        font-size: 2rem;
    }

    /* — Education: hide character image, unclip title — */
    .edu-character-img {
        display: none;
    }

    .edu-bg-text {
        font-size: 15vw !important;
    }

    .education-stream {
        padding: 0;
    }

    .sem-card {
        padding: 1.5rem !important;
    }

    .subject-list li {
        font-size: 0.78rem;
    }

    /* — Technical Arsenal: smaller module h3 — */
    .tech-module .module-content h3 {
        font-size: 1.1rem;
    }

    .tech-tags-premium span {
        font-size: 0.75rem;
        padding: 0.35rem 0.65rem;
    }

    /* — Projects: reduce card padding — */
    .card-main {
        padding: 1.5rem;
    }

    .card-main h3 {
        font-size: 1.15rem;
    }

    .card-main p {
        font-size: 0.85rem;
    }

    .tech-stack-pills span {
        font-size: 0.65rem;
    }

    .card-interface {
        height: 160px;
    }

    /* — Innovation: fix grid overflow — */
    .innovation-grid {
        grid-template-columns: 1fr !important;
    }

    .title-badge {
        display: inline-block;
        font-size: 0.55rem;
        margin-top: 0.3rem;
    }

    .innov-card {
        padding: 0;
    }

    .innov-content {
        padding: 1.5rem;
    }

    .innov-header {
        flex-direction: column;
        gap: 0.3rem;
    }

    .innov-desc {
        font-size: 0.85rem;
    }

    .innov-tech span {
        font-size: 0.7rem;
    }

    /* — Contact section — */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* — Footer: mobile layout optimization (with desktop white colors) — */
    #main-footer {
        margin-top: 60px;
        background-color: #ffffff !important;
        border-top: 1px solid #eee;
        color: #000;
    }

    #main-footer::before {
        background-color: #ffffff;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-left {
        padding: 2.5rem 1.5rem 1.5rem;
        text-align: center;
        align-items: center;
        border-bottom: 1px solid #eee;
    }

    .footer-logo {
        color: var(--color-primary);
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .newsletter-section label {
        color: #333;
    }

    .btn-download-resume {
        background: #000;
        border-color: #000;
        color: #fff;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        justify-content: center;
        padding: 0.85rem 1.5rem;
        font-size: 0.75rem;
        border-radius: 0;
    }

    .btn-download-resume svg {
        color: var(--color-primary);
    }

    .footer-right {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        min-height: auto;
        padding: 1.5rem;
        gap: 0;
    }

    .footer-right .col {
        flex: 1 1 45%;
        border-left: none;
        border-top: none;
        padding: 1.5rem 1rem;
        text-align: center;
        min-width: 140px;
    }

    .footer-right .col:first-child {
        padding-left: 1rem;
    }

    .col h3 {
        color: #000;
        font-size: 0.7rem;
        letter-spacing: 0.1em;
        margin-bottom: 1rem;
    }

    .col a {
        color: #555;
        font-size: 0.7rem;
        margin-bottom: 0.6rem;
        transition: color 0.2s ease;
    }

    .col a:hover {
        color: var(--color-primary);
    }

    .social-icons {
        display: grid;
        grid-template-columns: repeat(2, 40px);
        gap: 1rem;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
    }

    .social-icons a {
        color: #000;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 1px solid #ccc;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        margin-bottom: 0;
    }

    .social-icons a:hover {
        color: var(--color-primary);
        border-color: var(--color-primary);
        background: transparent;
    }

    .footer-center {
        display: none;
    }

    /* — Section title sizing — */
    .section-title {
        font-size: clamp(1.5rem, 7vw, 2.2rem);
        word-break: break-word;
    }

    /* — System header compact — */
    .system-header {
        margin-bottom: 2rem;
    }

    /* — General section padding — */
    .section {
        padding: 3rem 1.25rem;
    }

    .section-container {
        padding: 0;
    }
}

/* ---------- Extra small screens (≤480px) ---------- */
@media (max-width: 480px) {

    /* — Hero: tighter layout — */
    .hero-sys-info {
        top: 4.5rem;
        left: 1rem;
    }

    .hero-name-block {
        bottom: 6rem;
        left: 1rem;
    }

    .hero-name-first {
        font-size: 2rem;
    }

    .hero-name-last {
        font-size: 1.3rem;
        -webkit-text-stroke-width: 1px;
    }

    .hero-tagline {
        font-size: 0.5rem;
        letter-spacing: 0.12em;
    }

    .hero-location-block {
        bottom: 1rem;
        left: 1rem;
    }

    .loc-city {
        font-size: 0.65rem;
    }

    .loc-coords {
        font-size: 0.5rem;
    }

    .loc-label {
        font-size: 0.5rem;
    }

    /* — About — */
    .about-image {
        max-width: 220px;
    }

    .about-lead {
        font-size: 1rem;
    }

    .about-text {
        font-size: 0.85rem;
    }

    .about-stats-premium {
        flex-direction: column;
        gap: 1.5rem;
    }

    /* — Education — */
    .uni-badge-modern {
        padding: 1rem;
    }

    .badge-info .uni-name {
        font-size: 0.9rem;
    }

    .badge-info .school-name {
        font-size: 0.7rem;
    }

    /* — Projects — */
    .card-main {
        padding: 1.25rem;
    }

    .card-main h3 {
        font-size: 1rem;
    }

    .cyber-btn {
        font-size: 0.7rem;
        padding: 0.6rem 1rem;
    }

    /* — Innovation — */
    .innov-content h3 {
        font-size: 1.05rem;
    }

    .innov-desc {
        font-size: 0.8rem;
    }

    /* — Footer — */
    #main-footer {
        margin-top: 50px;
    }

    .footer-character {
        max-height: 130px;
    }

    /* — Section base — */
    .section {
        padding: 2.5rem 1rem;
        min-height: auto;
    }

    .section-title {
        font-size: 1.5rem;
    }
}