/* =========================================
   ACHU.DEV — RETRO PIXEL-OS LIGHT THEME
   Premium Win95 Aesthetic, Modernized
   ========================================= */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

:root {
    --bg-color: #c3c7cb;
    --bg-white: #ffffff;
    --bg-win: #c0c0c0;
    --bg-desktop: #008080;

    --text-color: #000000;
    --text-dim: #444444;

    --accent-blue: #000080;
    --accent-teal: #008080;
    --accent-magenta: #c000c0;
    --accent-red: #ff0000;
    --accent-yellow: #ffff00;
    --accent-green: #00aa00;
    --accent-link: #0000ee;

    --win-bar: linear-gradient(90deg, #000080, #1084d0);
    --win-bar-inactive: linear-gradient(90deg, #808080, #a0a0a0);

    --shadow-outset: 2px 2px 0px #000, inset -1px -1px 0px #808080, inset 1px 1px 0px #fff;
    --shadow-inset: inset 2px 2px 0px #808080, inset -1px -1px 0px #fff;
    --pixel-shadow: 4px 4px 0px 0px #000000;
    --pixel-shadow-sm: 2px 2px 0px 0px #000000;
    --pixel-shadow-lg: 6px 6px 0px 0px #000000;

    --font-pixel: 'VT323', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-pixel);
    background-color: var(--bg-desktop);
    color: var(--text-color);
    font-size: 20px;
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
}

/* =========================================
   TEAL DESKTOP BACKGROUND + PIXEL STARS
   ========================================= */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(1px 1px at 10% 20%, rgba(255, 255, 255, 0.25) 1px, transparent 0),
        radial-gradient(1px 1px at 30% 50%, rgba(255, 255, 255, 0.2) 1px, transparent 0),
        radial-gradient(1px 1px at 70% 15%, rgba(255, 255, 255, 0.3) 1px, transparent 0),
        radial-gradient(1px 1px at 90% 70%, rgba(255, 255, 255, 0.2) 1px, transparent 0),
        radial-gradient(1px 1px at 50% 80%, rgba(255, 255, 255, 0.25) 1px, transparent 0),
        radial-gradient(1.5px 1.5px at 15% 65%, rgba(255, 255, 255, 0.3) 1px, transparent 0),
        radial-gradient(1.5px 1.5px at 85% 35%, rgba(255, 255, 255, 0.25) 1px, transparent 0),
        radial-gradient(1px 1px at 45% 10%, rgba(255, 255, 255, 0.2) 1px, transparent 0),
        radial-gradient(1px 1px at 60% 90%, rgba(255, 255, 255, 0.2) 1px, transparent 0);
    pointer-events: none;
    z-index: 0;
    animation: starTwinkle 4s ease-in-out infinite alternate;
}

@keyframes starTwinkle {
    0% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* CRT Scanline Overlay — subtle */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%,
            rgba(0, 0, 0, 0.04) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.01), rgba(0, 255, 0, 0.005), rgba(0, 0, 255, 0.01));
    background-size: 100% 3px, 3px 100%;
    pointer-events: none;
    z-index: 9998;
}

/* =========================================
   FLOATING PIXEL CONFETTI (Canvas)
   ========================================= */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

::selection {
    background: var(--accent-blue);
    color: white;
}

/* =========================================
   UTILITIES
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

/* =========================================
   PIXEL BORDER (Classic Win95)
   ========================================= */
.pixel-border {
    border: 2px solid #000;
    box-shadow: var(--pixel-shadow);
    background: var(--bg-white);
    transition: all 0.2s;
}

.pixel-border:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--pixel-shadow-lg);
}

/* =========================================
   PIXEL BUTTON
   ========================================= */
.pixel-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--bg-win);
    border: 2px outset #fff;
    box-shadow: var(--pixel-shadow-sm);
    font-family: var(--font-pixel);
    font-size: 1.25rem;
    font-weight: 700;
    color: #000;
    cursor: pointer;
    transition: all 0.1s;
    text-transform: uppercase;
}

.pixel-btn:hover {
    background: var(--accent-blue);
    color: #fff;
    border-color: var(--accent-blue);
    transform: translate(-1px, -1px);
    box-shadow: var(--pixel-shadow);
}

.pixel-btn:active {
    transform: translate(3px, 3px);
    box-shadow: none !important;
    border-style: inset;
}

/* =========================================
   SECTION TITLES
   ========================================= */
.section-title {
    font-size: 3rem;
    border-bottom: 4px solid #000;
    display: inline-block;
    margin-bottom: 2rem;
    color: #000;
    position: relative;
}

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

@keyframes glitch {
    0% {
        transform: translate(0);
    }

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

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

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

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

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

/* =========================================
   NAVBAR — WIN95 TASKBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg-win);
    border-bottom: 2px solid #000;
    border-top: 2px solid #fff;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.15);
    z-index: 1000;
    height: 55px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-logo {
    font-size: 1.3rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    background: var(--accent-blue) !important;
    color: #fff !important;
    padding: 4px 14px !important;
    border: 2px outset #aaa;
    cursor: pointer;
    transition: all 0.1s;
}

.nav-logo:hover {
    background: var(--accent-teal) !important;
}

.nav-logo:active {
    border-style: inset;
    transform: translate(1px, 1px);
}

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

.nav-link {
    font-size: 1.1rem;
    font-weight: 500;
    padding: 4px 10px;
    background: var(--bg-win);
    border: 2px outset #fff;
    color: #000;
    transition: all 0.1s;
    box-shadow: 1px 1px 0 #000;
}

.nav-link:hover {
    background: var(--accent-blue);
    color: #fff;
    border-color: var(--accent-blue);
}

.nav-link:active {
    border-style: inset;
    transform: translate(1px, 1px);
    box-shadow: none;
}

.mobile-menu-btn {
    display: none;
    background: var(--bg-win);
    border: 2px outset #fff;
    box-shadow: var(--pixel-shadow-sm);
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    font-family: var(--font-pixel);
    font-size: 1.1rem;
}

#clock {
    margin-left: 0.6rem !important;
    font-weight: bold !important;
    background: #fff !important;
    color: #000 !important;
    padding: 3px 8px !important;
    border: 2px inset #808080 !important;
    font-size: 0.95rem !important;
}

/* =========================================
   OS WINDOW (CLASSIC WIN95)
   ========================================= */
.os-window {
    background: var(--bg-win);
    border: 2px solid #000;
    box-shadow: var(--pixel-shadow);
    position: relative;
    margin-bottom: 2rem;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.os-window:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--pixel-shadow-lg);
}

.window-bar {
    background: var(--win-bar);
    color: #fff;
    padding: 4px 8px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #000;
    cursor: default;
    font-size: 1rem;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.5);
}

.window-actions {
    display: flex;
    gap: 3px;
}

.btn-win {
    width: 20px;
    height: 20px;
    background: var(--bg-win);
    border: 2px outset #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    line-height: 1;
    color: #000;
    cursor: pointer;
    font-weight: bold;
}

.btn-win:hover {
    background: #d0d0d0;
}

.btn-win:active {
    border-style: inset;
    transform: translate(1px, 1px);
}

.window-controls {
    display: flex;
    gap: 3px;
}

.window-control {
    width: 20px;
    height: 20px;
    background: var(--bg-win);
    border: 2px outset #fff;
}

/* =========================================
   HERO
   ========================================= */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 55px;
    position: relative;
    z-index: 2;
}

.hero-box {
    background: var(--bg-win);
    border: 2px solid #000;
    box-shadow: var(--pixel-shadow-lg);
    padding: 0;
    max-width: 850px;
}

.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 1rem;
    color: #000;
}

.hero h1 span[id="typewriter"] {
    color: var(--accent-blue) !important;
}

.status-badge {
    background: var(--accent-teal);
    color: #fff;
    padding: 0.3rem 0.8rem;
    font-size: 1.1rem;
    box-shadow: var(--pixel-shadow-sm);
    display: inline-block;
    margin-bottom: 1rem;
    font-weight: 700;
    animation: statusBlink 3s ease-in-out infinite !important;
}

@keyframes statusBlink {

    0%,
    100% {
        background: var(--accent-teal);
    }

    50% {
        background: var(--accent-green);
    }
}

.cursor {
    color: var(--accent-blue) !important;
    animation: blink 0.7s steps(1) infinite !important;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* =========================================
   SECTIONS
   ========================================= */
.section {
    padding: 5rem 1rem;
    border-top: 2px solid rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
    background: transparent;
}

/* "Paper" card sections with subtle bg */
.section .container.os-window,
.section>.container>.os-window {
    background: #fff;
}

.section .container.os-window>div:last-child,
.section>.container>.os-window>div:last-child {
    background: #fff;
}

/* =========================================
   ABOUT
   ========================================= */
.about-bio {
    max-width: 900px;
    margin: 0 auto 3rem;
    padding: 2rem;
    font-size: 1.35rem;
    background: #fff;
    border: 2px solid #000;
}

/* =========================================
   SKILLS
   ========================================= */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-card {
    padding: 0;
    background: #fff;
    transition: all 0.2s;
}

.skill-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 8px 8px 0px #000;
}

.skill-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    text-decoration: underline;
    color: var(--accent-blue);
}

.skill-card ul li {
    color: var(--text-dim);
}

.skill-card:hover ul li {
    color: #000;
}

/* =========================================
   CERTIFICATES
   ========================================= */
.cert-card {
    background: #fff;
    border: 2px solid #000;
    box-shadow: var(--pixel-shadow);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
}

.cert-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--pixel-shadow-lg);
    background: #e8e8ff;
}

.cert-card:active {
    transform: translate(3px, 3px);
    box-shadow: none;
}

.cert-badge {
    background: var(--accent-blue);
    color: #fff;
    padding: 0.15rem 0.6rem;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.cert-name {
    font-size: 1.3rem;
    font-weight: bold;
    line-height: 1.3;
    color: #000;
}

/* =========================================
   TIMELINE / EXPERIENCE
   ========================================= */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: repeating-linear-gradient(to bottom,
            #000 0px,
            #000 8px,
            transparent 8px,
            transparent 16px);
}

.timeline-item {
    display: flex;
    gap: 1.5rem;
}

.timeline-number {
    width: 50px;
    height: 50px;
    background: var(--accent-blue);
    border: 2px solid #000;
    box-shadow: var(--pixel-shadow);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
    color: #fff;
    position: relative;
    z-index: 2;
}

.timeline-content {
    flex: 1;
    padding: 1.5rem;
    background: #fff;
}

.timeline-content h3 {
    color: #000;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* =========================================
   PROJECTS
   ========================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    transition: all 0.2s;
}

.project-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 8px 8px 0px #000;
}

.project-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-body strong {
    color: var(--accent-blue);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tech-tag {
    background: #fff;
    border: 2px solid #000;
    box-shadow: var(--pixel-shadow-sm);
    padding: 0.2rem 0.5rem;
    font-size: 0.95rem;
    font-weight: bold;
    color: var(--accent-blue);
    transition: all 0.15s;
}

.tech-tag:hover {
    background: var(--accent-blue);
    color: #fff;
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 #000;
}

/* =========================================
   CATEGORY HEADERS
   ========================================= */
#universe h3[style] {
    background: rgba(0, 0, 128, 0.9) !important;
    color: #fff !important;
    border-left-color: var(--accent-teal) !important;
    text-shadow: 1px 1px 0 #000;
    box-shadow: var(--pixel-shadow-sm);
}

/* =========================================
   CONTACT
   ========================================= */
.contact-section {
    background: transparent !important;
    color: #fff;
    text-align: center;
    padding: 5rem 1rem;
    position: relative;
    z-index: 2;
}

.contact-grid-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.contact-box {
    border: 2px solid #000 !important;
    box-shadow: var(--pixel-shadow-lg) !important;
    padding: 0 !important;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    background: var(--bg-win) !important;
}

.contact-box .window-bar {
    background: linear-gradient(90deg, #800000, #c00000) !important;
}

.contact-box p {
    color: #fff;
    text-shadow: 1px 1px 0 #000;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.social-icon {
    color: #fff;
    font-size: 1.8rem;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-blue);
    border: 2px outset #aaa;
    box-shadow: var(--pixel-shadow-sm);
    transition: all 0.15s;
}

.social-icon:hover {
    background: var(--accent-teal);
    transform: translate(-2px, -2px);
    box-shadow: var(--pixel-shadow);
}

.social-icon:active {
    transform: translate(2px, 2px);
    box-shadow: none;
    border-style: inset;
}

/* =========================================
   DEPTH SHADOW
   ========================================= */
.depth-shadow {
    box-shadow: var(--pixel-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.depth-shadow:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--pixel-shadow-lg);
}

/* =========================================
   EDUCATION
   ========================================= */
#education {
    background: transparent !important;
}

#education .section-title {
    color: #fff;
    text-shadow: 2px 2px 0 #000;
    border-bottom-color: #fff;
}

#education .timeline-content {
    background: #fff;
    border: 2px solid #000;
    box-shadow: var(--pixel-shadow);
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    text-align: center;
    padding: 1.5rem;
    border-top: 2px solid #000;
    font-weight: bold;
    color: #fff;
    background: var(--accent-blue);
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 0 #000;
}

/* =========================================
   DESKTOP LAYER
   ========================================= */
.desktop-layer {
    position: fixed;
    top: 55px;
    left: 0;
    width: 100%;
    height: calc(100vh - 55px);
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.desktop-icon {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.2s;
}

.desktop-icon:hover {
    transform: scale(1.1);
}

.icon-img {
    width: 48px;
    height: 48px;
    border: 2px solid #000;
    margin-bottom: 0.5rem;
    image-rendering: pixelated;
    box-shadow: var(--pixel-shadow-sm);
}

.icon-label {
    background: var(--accent-blue);
    color: #fff;
    padding: 2px 6px;
    font-size: 0.85rem;
    text-align: center;
}

.parallax-shape {
    position: absolute;
    opacity: 0.08 !important;
    pointer-events: none;
    z-index: -1;
    color: #fff !important;
}

/* =========================================
   BOOT SCREEN
   ========================================= */
#boot-screen {
    background: #000 !important;
    color: #0f0 !important;
    font-family: var(--font-pixel) !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 2rem !important;
}

#boot-screen #boot-text {
    max-width: 600px;
    width: 100%;
}

#boot-screen #boot-text p {
    color: #0f0 !important;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.4);
    margin-bottom: 0.2rem;
}

.boot-progress-track {
    width: 300px;
    height: 8px;
    background: #111;
    border: 2px solid #333;
    margin-top: 20px;
    overflow: hidden;
}

.boot-progress-fill {
    height: 100%;
    width: 0%;
    background: #0f0;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.5);
    transition: width 0.3s ease;
}

/* =========================================
   CERTIFICATE MODAL
   ========================================= */
#cert-modal {
    background: rgba(0, 0, 0, 0.85) !important;
}

#cert-modal img {
    border: 3px solid #fff !important;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8) !important;
}

#cert-modal button {
    background: var(--bg-win) !important;
    color: #000 !important;
    border: 2px outset #fff !important;
    font-family: var(--font-pixel) !important;
    width: 28px !important;
    height: 28px !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    position: absolute !important;
    top: -14px !important;
    right: -14px !important;
}

#cert-modal button:hover {
    background: var(--accent-red) !important;
    color: #fff !important;
}

#cert-modal p {
    color: #fff !important;
}

/* =========================================
   SCROLL ANIMATIONS
   ========================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger */
.skills-grid .fade-in-up:nth-child(1) {
    transition-delay: 0.05s;
}

.skills-grid .fade-in-up:nth-child(2) {
    transition-delay: 0.1s;
}

.skills-grid .fade-in-up:nth-child(3) {
    transition-delay: 0.15s;
}

.skills-grid .fade-in-up:nth-child(4) {
    transition-delay: 0.2s;
}

.projects-grid .fade-in-up:nth-child(1) {
    transition-delay: 0.05s;
}

.projects-grid .fade-in-up:nth-child(2) {
    transition-delay: 0.1s;
}

.projects-grid .fade-in-up:nth-child(3) {
    transition-delay: 0.15s;
}

.projects-grid .fade-in-up:nth-child(4) {
    transition-delay: 0.2s;
}

/* =========================================
   MASCOT (BACKGROUND FLOATING)
   ========================================= */
.mascot-container {
    z-index: 50;
}

.mascot-img {
    image-rendering: pixelated;
}

/* =========================================
   SCROLLBAR
   ========================================= */
::-webkit-scrollbar {
    width: 16px;
}

::-webkit-scrollbar-track {
    background: var(--bg-win);
    border-left: 2px solid #000;
}

::-webkit-scrollbar-thumb {
    background: var(--bg-win);
    border: 2px outset #fff;
}

::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

::-webkit-scrollbar-button {
    background: var(--bg-win);
    border: 2px outset #fff;
    height: 16px;
}

/* =========================================
   RESPONSIVE — TABLET & MOBILE
   ========================================= */
@media (max-width: 768px) {

    /* -- Base / Typography -- */
    body {
        font-size: 18px;
    }

    /* -- Navbar / Taskbar -- */
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        font-size: 1.2rem;
        padding: 0.5rem 1rem;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 55px;
        left: 0;
        width: 100%;
        background: var(--bg-win);
        border-bottom: 2px solid #000;
        padding: 1rem;
        gap: 0.5rem;
        z-index: 999;
        box-shadow: 0 4px 0 rgba(0, 0, 0, 0.15);
    }

    .nav-links.active .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        font-size: 1.15rem;
        padding: 0.5rem 0.75rem;
    }

    .nav-links.active #clock {
        align-self: flex-start;
        margin-left: 0 !important;
    }

    /* -- Hero -- */
    .hero {
        padding-top: 55px;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .hero-box {
        margin: 0 0.75rem;
        max-width: 100%;
    }

    .hero-box>div:last-child {
        padding: 1.5rem 1rem !important;
    }

    .hero h1 {
        font-size: 2rem;
        word-break: break-word;
    }

    .hero p {
        font-size: 1.15rem !important;
    }

    .status-badge {
        font-size: 0.95rem;
        padding: 0.25rem 0.6rem;
    }

    .pixel-btn {
        font-size: 1rem;
        padding: 0.6rem 1rem;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* -- Sections -- */
    .section {
        padding: 3.5rem 0.75rem;
    }

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

    /* -- OS Window -- */
    .os-window {
        padding: 0 !important;
        box-shadow: var(--pixel-shadow-sm) !important;
        margin-bottom: 1.5rem;
    }

    .os-window:hover {
        transform: none !important;
        box-shadow: var(--pixel-shadow-sm) !important;
    }

    .os-window>div:last-child {
        padding: 1rem !important;
    }

    .window-bar {
        font-size: 0.85rem;
        padding: 4px 6px;
    }

    /* -- Pixel Shadows toned down -- */
    .depth-shadow {
        box-shadow: var(--pixel-shadow-sm) !important;
    }

    .depth-shadow:hover {
        transform: none !important;
        box-shadow: var(--pixel-shadow-sm) !important;
    }

    .pixel-border {
        box-shadow: var(--pixel-shadow-sm);
    }

    .pixel-border:hover {
        transform: none;
        box-shadow: var(--pixel-shadow-sm);
    }

    /* -- About -- */
    .about-bio {
        padding: 1.25rem;
        font-size: 1.15rem;
        margin: 0 auto 2rem;
    }

    /* -- Skills Grid -- */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* -- Certificates Grid -- */
    .certs-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .cert-card {
        padding: 1.25rem;
        min-height: 44px;
    }

    .cert-name {
        font-size: 1.15rem;
    }

    /* -- Experience Summary Table → Stacked -- */
    #experience div[style*="grid-template-columns: 1fr 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 0.25rem !important;
    }

    #experience div[style*="grid-template-columns: 1fr 1fr 1fr"]>div[style*="text-align: right"] {
        text-align: left !important;
    }

    /* -- Timeline -- */
    .timeline {
        gap: 1.25rem;
    }

    .timeline::before {
        display: none;
    }

    .timeline-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .timeline-number {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }

    .timeline-content {
        padding: 1rem;
    }

    .timeline-header {
        flex-direction: column;
        gap: 0.25rem;
    }

    .timeline-header>div:last-child {
        text-align: left !important;
    }

    .timeline-content h3 {
        font-size: 1.2rem !important;
    }

    /* -- Projects Grid -- */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .project-body {
        padding: 1rem;
    }

    .tech-tag {
        font-size: 0.85rem;
        padding: 0.15rem 0.4rem;
    }

    .tech-tag:hover {
        transform: none;
        box-shadow: var(--pixel-shadow-sm);
    }

    /* -- Category Headers (SYSTEMS_ARCH, etc.) -- */
    #universe h3[style] {
        font-size: 1.4rem !important;
        padding: 0.3rem 0.75rem !important;
    }

    /* -- Contact -- */
    .contact-section {
        padding: 3rem 0.75rem;
    }

    .contact-box {
        max-width: 100%;
        margin: 0 0.5rem !important;
        box-shadow: var(--pixel-shadow) !important;
    }

    .contact-box p {
        font-size: 1.15rem !important;
    }

    .social-links {
        gap: 1rem;
        margin-top: 2rem;
    }

    .social-icon {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
    }

    /* -- Certificate Modal → Fullscreen Mobile -- */
    #cert-modal>div {
        max-width: 95vw !important;
        max-height: 95vh !important;
    }

    #cert-modal img {
        max-width: 95vw !important;
        max-height: 80vh !important;
    }

    #cert-modal button {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.2rem !important;
        top: -8px !important;
        right: -8px !important;
    }

    /* -- Desktop Layer & Decorations -- */
    .desktop-icon,
    .parallax-shape {
        display: none !important;
    }

    /* -- Education -- */
    #education .timeline-content {
        padding: 1rem;
    }

    /* -- Footer -- */
    footer {
        font-size: 0.9rem;
        padding: 1rem;
    }

    /* -- Scrollbar: hide custom on mobile -- */
    ::-webkit-scrollbar {
        width: 6px;
    }

    ::-webkit-scrollbar-button {
        display: none;
    }

    ::-webkit-scrollbar-track {
        border: none;
    }

    ::-webkit-scrollbar-thumb {
        border: none;
        border-radius: 3px;
    }
}

/* =========================================
   RESPONSIVE — SMALL PHONES
   ========================================= */
@media (max-width: 480px) {
    body {
        font-size: 16px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1rem !important;
    }

    .section {
        padding: 3rem 0.5rem;
    }

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

    .pixel-btn {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }

    .about-bio {
        font-size: 1rem;
        padding: 1rem;
    }

    #universe h3[style] {
        font-size: 1.2rem !important;
    }

    .social-links {
        gap: 0.75rem;
    }

    .contact-box>div:last-child {
        padding: 1.25rem !important;
    }

    .navbar {
        height: 48px;
    }

    .nav-logo {
        font-size: 1.1rem;
        padding: 3px 10px !important;
    }

    .nav-links.active {
        top: 48px;
    }

    .timeline-content h3 {
        font-size: 1.1rem !important;
    }
}

/* =========================================
   TOUCH DEVICE OVERRIDES
   ========================================= */
@media (hover: none) and (pointer: coarse) {

    .pixel-border:hover,
    .os-window:hover,
    .depth-shadow:hover,
    .skill-card:hover,
    .project-card:hover,
    .cert-card:hover,
    .tech-tag:hover,
    .social-icon:hover {
        transform: none !important;
        box-shadow: var(--pixel-shadow-sm) !important;
    }

    .section-title:hover {
        animation: none !important;
        color: #000 !important;
    }
}