/* ==========================================================================
   IMPECCABLE CYBER-DESIGNER DARK NEOBRUTALISM SYSTEM
   Shared CSS for Home, About, Projects, and Contact Pages
   ========================================================================== */

:root {
    --bg: #0a0b10;
    --bg-card: #131520;
    --bg-card-hover: #1b1d2a;
    --ink: #000000;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    
    /* Premium Cyber-Designer Accents */
    --green: #00ff9d;      /* Code & AI */
    --purple: #b76eff;     /* Art & UX/UI */
    --coral: #ff5e3a;      /* CTA / Active */
    --yellow: #ffd23f;     /* Stickers & Alerts */
    
    /* Borders & Shadows */
    --bd: 2.5px solid #000000;
    --bd-thick: 4px solid #000000;
    
    --sh-sm: 4px 4px 0 #000000;
    --sh: 7px 7px 0 #000000;
    --sh-lg: 11px 11px 0 #000000;
    
    /* Fonts */
    --font: 'Outfit', sans-serif;
    --mono: 'Space Mono', monospace;
}

/* Reset and Bases */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg);
}

body {
    font-family: var(--font);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    /* Subtle background grid dots */
    background-image: radial-gradient(rgba(255, 255, 255, 0.02) 1.5px, transparent 1.5px);
    background-size: 40px 40px;
}

::selection {
    background: var(--purple);
    color: #fff;
}

/* Webkit Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
    border-left: var(--bd);
}
::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border: 3px solid var(--bg);
}

/* Cursor System */
* {
    cursor: none !important;
}
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
}
.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--text);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.12s, height 0.12s;
}
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    width: 24px;
    height: 24px;
    background: transparent;
    border-radius: 50%;
    border: 2px solid var(--text);
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s, border-color 0.2s;
}
.cursor-ring.hovering {
    width: 42px;
    height: 42px;
    background: rgba(183, 110, 255, 0.12);
    border-color: var(--purple);
}
.cursor-ring.clicking {
    width: 16px;
    height: 16px;
    background: var(--coral);
    border-color: var(--ink);
}

/* Scroll Progress Bar */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    z-index: 9997;
    background: var(--coral);
    border-bottom: 2px solid var(--ink);
    transform-origin: left;
    transform: scaleX(0);
}

/* ==========================================================================
   DECORATIONS
   ========================================================================== */

/* Technical Grid Dots Matrix inside cards */
.tech-dots {
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1.2px, transparent 1.2px);
    background-size: 14px 14px;
}

/* Asymmetric Sticker Badges */
.sticker {
    position: absolute;
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.68em;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 12px;
    border: var(--bd);
    box-shadow: 3px 3px 0 var(--ink);
    background: var(--yellow);
    color: var(--ink);
    z-index: 10;
}

/* Crosshair '+' icon helper */
.crosshair {
    position: absolute;
    font-family: var(--mono);
    font-size: 1.2em;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0.3;
    pointer-events: none;
}

/* Stars Neobrutalism 4-point shape */
.star-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: currentColor;
    clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
}

/* Section Tag label */
.sec-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 0.72em;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--green);
    border: var(--bd);
    box-shadow: var(--sh-sm);
    padding: 8px 16px;
    margin-bottom: 48px;
    transform: rotate(-1.5deg);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
nav {
    position: sticky;
    top: 0;
    z-index: 200;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 80px;
    background: var(--bg);
    border-bottom: var(--bd-thick);
    transition: transform .4s cubic-bezier(.16,1,.3,1);
}
nav.hidden {
    transform: translateY(-100%);
}
.nav-logo {
    font-size: 1.6em;
    font-weight: 900;
    color: var(--ink);
    text-decoration: none;
    background: var(--yellow);
    border: var(--bd);
    box-shadow: var(--sh-sm);
    padding: 5px 22px;
    transform: rotate(-2deg);
    transition: all 0.2s;
}
.nav-logo:hover {
    transform: rotate(0deg) scale(1.05);
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 12px;
}
.nav-links a {
    font-family: var(--mono);
    font-size: 0.82em;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
    padding: 8px 16px;
    border: 2px solid transparent;
    transition: all .15s;
}
.nav-links a:hover, .nav-links a.active {
    background: var(--bg-card);
    color: var(--green);
    border-color: var(--ink);
    box-shadow: 4px 4px 0 var(--ink);
    transform: translate(-2px, -2px);
}
.nav-links a.active {
    color: var(--coral);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-neo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    background: var(--coral);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.88em;
    padding: 16px 28px;
    border: var(--bd);
    box-shadow: var(--sh-sm);
    font-family: var(--mono);
    text-transform: uppercase;
    transition: transform .1s, box-shadow .1s;
}
.btn-neo:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--ink);
}
.btn-neo:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--ink);
}
.btn-neo.secondary {
    background: var(--bg-card);
    color: var(--text);
}
.btn-neo.secondary:hover {
    background: var(--bg-card-hover);
    color: var(--yellow);
}
.btn-neo.zalo {
    background: #0068ff;
    color: #fff;
}
.btn-neo.zalo:hover {
    background: #0056d6;
}

/* ==========================================================================
   HOME PAGE (index.html)
   ========================================================================== */
.section-wrap {
    position: relative;
    z-index: 10;
}
section {
    padding: 100px 80px;
    border-bottom: var(--bd-thick);
}

/* Hero Section */
#hero {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg);
    position: relative;
    padding: 120px 80px;
}
.hero-name-container {
    position: relative;
    z-index: 2;
}
.hero-name {
    font-size: clamp(3.5rem, 14vw, 10rem);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    color: var(--text);
}
.hero-name .creative {
    display: block;
    color: var(--text);
}
.hero-name .specialist {
    display: block;
    color: transparent;
    -webkit-text-stroke: 2.5px var(--text);
}
.hero-card {
    background: var(--bg-card);
    border: var(--bd-thick);
    box-shadow: var(--sh-lg);
    padding: 40px;
    max-width: 640px;
    margin-top: 40px;
    position: relative;
}
.hero-bio {
    font-size: 1.1em;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 26px;
}
.hero-bio strong {
    color: var(--text);
    background: rgba(0, 255, 157, 0.1);
    border-bottom: 2px solid var(--green);
    padding: 0 4px;
}

/* ==========================================================================
   ABOUT PAGE (about.html)
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: start;
}
.about-heading-box {
    background: var(--bg-card);
    border: var(--bd-thick);
    box-shadow: var(--sh);
    padding: 30px;
    position: relative;
    margin-bottom: 30px;
}
.about-heading {
    font-size: 2.6rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    color: var(--text);
}
.about-heading em {
    font-style: normal;
    color: var(--purple);
}
.about-bio-text {
    font-size: 1.05em;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 30px;
}
.about-bio-text strong {
    color: var(--text);
    background: rgba(183, 110, 255, 0.1);
    border-bottom: 2px solid var(--purple);
    padding: 0 4px;
}
.about-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.meta-card {
    background: var(--bg-card);
    border: var(--bd);
    box-shadow: var(--sh-sm);
    padding: 20px;
    position: relative;
    transition: transform 0.2s, background-color 0.2s;
}
.meta-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--sh);
    background-color: var(--bg-card-hover);
}
.meta-card-label {
    font-family: var(--mono);
    font-size: 0.66em;
    font-weight: 700;
    color: var(--purple);
    text-transform: uppercase;
    margin-bottom: 6px;
}
.meta-card-value {
    font-size: 1em;
    font-weight: 600;
    color: var(--text);
}

/* Experience List */
.exp-heading-box {
    margin-bottom: 34px;
    font-family: var(--mono);
    font-size: 1.3em;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--yellow);
    display: flex;
    align-items: center;
    gap: 10px;
}
.exp-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.exp-item {
    background: var(--bg-card);
    border: var(--bd-thick);
    box-shadow: var(--sh);
    padding: 28px;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.exp-item:hover {
    transform: translate(-4px, -4px);
    box-shadow: 11px 11px 0 #000;
    background-color: var(--bg-card-hover);
}
.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}
.exp-period {
    font-family: var(--mono);
    font-size: 0.72em;
    font-weight: 700;
    background: var(--green);
    color: var(--ink);
    padding: 4px 10px;
    border: 1.5px solid var(--ink);
}
.exp-company {
    font-weight: 800;
    font-size: 0.9em;
    color: var(--purple);
    text-transform: uppercase;
}
.exp-role {
    font-size: 1.25em;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--text);
    margin-top: 4px;
}
.exp-desc {
    font-size: 0.88em;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ==========================================================================
   SERVICES SECTION (Home & About)
   ========================================================================== */
.services-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
.service-card {
    background: var(--bg-card);
    border: var(--bd-thick);
    box-shadow: var(--sh);
    padding: 36px 28px;
    position: relative;
    transition: transform 0.15s, box-shadow 0.15s, background-color 0.15s;
}
.service-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 11px 11px 0 #000;
    background-color: var(--bg-card-hover);
}
.service-num {
    font-family: var(--mono);
    font-size: 1.1em;
    font-weight: 700;
    background: var(--yellow);
    color: var(--ink);
    border: var(--bd);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 24px;
    box-shadow: 2px 2px 0 var(--ink);
}
.service-card:nth-child(2) .service-num { background: var(--purple); color: #fff; }
.service-card:nth-child(3) .service-num { background: var(--coral); color: #fff; }
.service-card:nth-child(4) .service-num { background: var(--green); color: var(--ink); }

.service-title {
    font-size: 1.35em;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: var(--text);
}
.service-desc {
    font-size: 0.88em;
    color: var(--text-muted);
    line-height: 1.6;
}
.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}
.service-tags span {
    font-family: var(--mono);
    font-size: 0.62em;
    font-weight: 700;
    background: var(--ink);
    color: var(--text);
    padding: 4px 8px;
    border: 1px solid rgba(255,255,255,0.1);
}

/* 5th Card: AI & Software Dev Card - Full Width Broken Grid design */
.service-card.coder-card {
    background: #0d0e15;
    border: var(--bd-thick);
    border-color: var(--green);
    box-shadow: var(--sh);
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 30px;
    align-items: center;
    grid-column: 1 / -1;
}
.service-card.coder-card:hover {
    box-shadow: 11px 11px 0 var(--green);
}
.service-card.coder-card .service-num {
    background: var(--green);
    color: var(--ink);
    border-color: var(--ink);
}
.service-card.coder-card .service-tags span {
    border: 1px solid var(--green);
    color: var(--green);
    background: transparent;
}
.coder-visual {
    background: #15161f;
    border: 2px solid var(--green);
    padding: 22px;
    font-family: var(--mono);
    font-size: 0.78em;
    color: #00ff88;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 12px rgba(0,255,136,0.1);
}
.coder-visual::before {
    content: "Terminal - index.py";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #20222f;
    color: #888;
    padding: 4px 12px;
    font-size: 0.8em;
    border-bottom: 2px solid var(--green);
}
.coder-visual-body {
    margin-top: 15px;
    line-height: 1.5;
}
.coder-visual-body .keyword { color: var(--coral); }
.coder-visual-body .string { color: var(--yellow); }
.coder-visual-body .comment { color: #6272a4; font-style: italic; }

/* ==========================================================================
   PROJECTS GALLERY (projects.html)
   ========================================================================== */
.works-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.wf-btn {
    font-family: var(--mono);
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 12px 22px;
    background: var(--bg-card);
    color: var(--text);
    border: var(--bd);
    box-shadow: var(--sh-sm);
    cursor: pointer;
    transition: all .12s;
}
.wf-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 var(--ink);
    color: var(--green);
}
.wf-btn.active {
    background: var(--green);
    color: var(--ink);
    box-shadow: none;
    transform: none;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 230px;
    gap: 24px;
}
.work-card {
    grid-column: span 1;
    grid-row: span 1;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-card);
    border: var(--bd-thick);
    box-shadow: var(--sh);
    transition: transform .2s, box-shadow .2s;
}
.work-card.feature { grid-column: span 2; grid-row: span 2; }
.work-card.wide { grid-column: span 2; }
.work-card.tall { grid-row: span 2; }
.work-card:hover {
    transform: translate(-6px, -6px);
    box-shadow: 14px 14px 0 var(--ink);
    z-index: 10;
}

.work-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(40%) contrast(1.05) brightness(0.9);
    transition: filter .35s, transform .5s;
}
.work-card:hover .work-card-img {
    filter: grayscale(0%) contrast(1) brightness(1);
    transform: scale(1.04);
}
.work-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,11,16,0.92) 0%, rgba(10,11,16,0.2) 65%, transparent 85%);
}
.work-index {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 4;
    font-family: var(--mono);
    font-size: 0.8em;
    font-weight: 700;
    color: var(--ink);
    background: var(--yellow);
    border-right: 2.5px solid var(--ink);
    border-bottom: 2.5px solid var(--ink);
    padding: 6px 14px;
}
.work-card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 26px;
    z-index: 4;
}
.work-cat {
    font-family: var(--mono);
    font-size: 0.65em;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 8px;
}
.work-title {
    font-size: 1.25em;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    text-transform: uppercase;
}
.work-card.feature .work-title {
    font-size: 1.9em;
}
.work-desc-text {
    color: var(--text-muted);
    font-size: 0.88em;
    margin-top: 8px;
    line-height: 1.5;
    display: none;
}
.work-card.feature .work-desc-text {
    display: block;
}

.work-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    font-family: var(--mono);
    font-size: 0.72em;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--yellow);
    padding: 0;
    border: 2px solid var(--ink);
    transition: all .3s cubic-bezier(.16,1,.3,1);
}
.work-card:hover .work-cta {
    max-height: 40px;
    opacity: 1;
    margin-top: 16px;
    padding: 8px 16px;
}
.work-cta svg {
    transition: transform .2s;
}
.work-card:hover .work-cta svg {
    transform: translateX(4px);
}

/* Visual Mockup for Chatbot project card */
.chatbot-visual-bg {
    position: absolute;
    inset: 0;
    background: #0f131f;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    font-family: var(--mono);
    color: var(--green);
    border-bottom: var(--bd);
}

/* ==========================================================================
   CONTACT SECTION (contact.html)
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: start;
}
.contact-title-box {
    margin-bottom: 36px;
}
.contact-big-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.95;
    letter-spacing: -0.04em;
}
.contact-big-title span {
    color: transparent;
    -webkit-text-stroke: 2.5px var(--text);
}
.contact-intro-text {
    color: var(--text-muted);
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 40px;
}
.contact-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact-detail-card {
    background: var(--bg-card);
    border: var(--bd-thick);
    box-shadow: var(--sh);
    padding: 24px 30px;
    text-decoration: none;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.contact-detail-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 10px 10px 0 var(--ink);
    background-color: var(--bg-card-hover);
}
.contact-detail-label {
    font-family: var(--mono);
    font-size: 0.68em;
    font-weight: 700;
    color: var(--green);
    text-transform: uppercase;
    margin-bottom: 4px;
}
.contact-detail-value {
    font-size: 1.15em;
    font-weight: 800;
}

/* Contact Form */
.contact-form {
    background: var(--bg-card);
    border: var(--bd-thick);
    box-shadow: var(--sh-lg);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-group label {
    font-family: var(--mono);
    font-size: 0.72em;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
}
.form-group input, .form-group select, .form-group textarea {
    background: var(--bg);
    border: var(--bd);
    color: var(--text);
    padding: 15px 18px;
    font-family: var(--font);
    font-size: 0.95em;
    outline: none;
    transition: transform 0.15s, box-shadow 0.15s, background-color 0.15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    background: var(--bg-card-hover);
    box-shadow: var(--sh-sm);
    transform: translate(-2.5px, -2.5px);
}
.form-group textarea {
    min-height: 130px;
    resize: vertical;
}

.cf-submit {
    align-self: flex-start;
    background: var(--purple);
    color: #fff;
    border: var(--bd-thick);
    box-shadow: var(--sh);
    padding: 18px 36px;
    font-family: var(--mono);
    font-size: 0.92em;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.1s;
}
.cf-submit:hover {
    transform: translate(-3px, -3px);
    box-shadow: 10px 10px 0 var(--ink);
}
.cf-submit:active {
    transform: translate(3px, 3px);
    box-shadow: 2px 2px 0 var(--ink);
}
.cf-submit:disabled {
    opacity: 0.6;
}

.cf-msg {
    padding: 14px 18px;
    border: var(--bd);
    font-size: 0.9em;
    font-weight: 700;
    display: none;
}
.cf-msg.ok {
    display: block;
    background: var(--green);
    color: var(--ink);
    box-shadow: var(--sh-sm);
}
.cf-msg.err {
    display: block;
    background: var(--coral);
    color: #fff;
    box-shadow: var(--sh-sm);
}

/* ==========================================================================
   LIGHTBOX & GALLERY
   ========================================================================== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 11, 16, 0.94);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.lightbox.active {
    display: flex;
}
.lb-inner {
    position: relative;
    max-width: 86%;
    max-height: 86%;
    border: 3.5px solid var(--ink);
    box-shadow: 12px 12px 0 var(--yellow);
    background: #fff;
}
.lb-img {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    display: block;
}
.lb-placeholder {
    min-width: 400px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: var(--yellow);
    padding: 40px;
    text-align: center;
    border: var(--bd);
    color: var(--ink);
}
.lb-placeholder .lb-icon { font-size: 4.5em; }
.lb-placeholder .lb-ptitle { font-size: 1.3em; font-weight: 900; text-transform: uppercase; }

.lb-close {
    position: fixed;
    top: 24px;
    right: 24px;
    font-size: 2em;
    color: var(--ink);
    cursor: pointer;
    width: 48px;
    height: 48px;
    background: var(--coral);
    border: var(--bd);
    box-shadow: var(--sh-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.1s;
}
.lb-close:hover {
    transform: rotate(90deg) translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--ink);
}
.lb-close:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--ink);
}

.lb-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8em;
    color: var(--ink);
    cursor: pointer;
    width: 48px;
    height: 48px;
    background: var(--yellow);
    border: var(--bd);
    box-shadow: var(--sh-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    transition: all 0.1s;
}
.lb-nav:hover {
    transform: translateY(-50%) translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--ink);
}
.lb-nav:active {
    transform: translateY(-50%) translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--ink);
}
.lb-prev { left: 24px; }
.lb-next { right: 24px; }

.lb-info {
    position: fixed;
    bottom: 64px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--mono);
    font-size: 0.75em;
    font-weight: 700;
    color: var(--ink);
    background: #fff;
    border: var(--bd);
    padding: 8px 20px;
    white-space: nowrap;
    box-shadow: var(--sh-sm);
}
.lb-thumbs {
    position: fixed;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    max-width: 90%;
    overflow-x: auto;
    padding: 6px;
}
.lb-thumb {
    width: 60px;
    height: 46px;
    object-fit: cover;
    cursor: pointer;
    border: 2.5px solid var(--ink);
    flex-shrink: 0;
    opacity: 0.5;
    transition: all .2s;
}
.lb-thumb:hover { opacity: 0.8; }
.lb-thumb.active {
    opacity: 1;
    box-shadow: 3px 3px 0 var(--coral);
    transform: translate(-1px, -1px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    padding: 40px 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    background: var(--ink);
    color: var(--text-muted);
    border-top: var(--bd-thick);
}
.footer-copy, .footer-right {
    font-family: var(--mono);
    font-size: 0.76em;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.footer-right {
    color: var(--green);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .service-card.coder-card {
        grid-template-columns: 1fr;
    }
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .work-card.feature {
        grid-column: span 2;
    }
    nav {
        padding: 0 40px;
    }
    section, #hero {
        padding: 80px 40px;
    }
    footer {
        padding: 30px 40px;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 0 20px;
        height: 72px;
    }
    .nav-links {
        gap: 2px;
    }
    .nav-links a {
        padding: 6px 10px;
        font-size: 0.72em;
    }
    section, #hero {
        padding: 60px 20px;
    }
    .hero-name {
        line-height: 0.9;
    }
    .works-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 210px;
    }
    .work-card.feature, .work-card.wide, .work-card.tall {
        grid-column: span 1;
        grid-row: span 1;
    }
    .work-card.feature .work-title {
        font-size: 1.25em;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 30px 20px;
        gap: 8px;
    }
}

/* ==========================================================================
   DEV REPOS & TERMINAL SECTION
   ========================================================================== */
.dev-repos-section {
    padding: 100px 80px;
    background: #07080c;
    border-top: var(--bd-thick);
    position: relative;
    background-image: radial-gradient(rgba(0, 255, 157, 0.015) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
}
.dev-sec-title-box {
    margin-bottom: 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.dev-sec-title {
    font-family: var(--mono);
    font-size: 2.2em;
    font-weight: 900;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    text-shadow: 0 0 10px rgba(0, 255, 157, 0.15);
}
.dev-terminal-status {
    font-family: var(--mono);
    font-size: 0.8em;
    color: var(--text-muted);
}
.dev-terminal-status span {
    color: var(--green);
    font-weight: 700;
}
.repo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}
.repo-card {
    background: var(--bg-card);
    border: var(--bd-thick);
    box-shadow: var(--sh);
    padding: 32px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.repo-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 10px 10px 0 var(--green);
    border-color: var(--green);
}
.repo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}
.repo-title {
    font-family: var(--mono);
    font-size: 1.2em;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.repo-title:hover {
    color: var(--green);
}
.repo-badge {
    font-family: var(--mono);
    font-size: 0.65em;
    font-weight: 700;
    padding: 3px 8px;
    border: 1.5px solid var(--text-muted);
    color: var(--text-muted);
    text-transform: uppercase;
}
.repo-badge.active {
    border-color: var(--green);
    color: var(--green);
    background: rgba(0, 255, 157, 0.05);
}
.repo-badge.local {
    border-color: var(--yellow);
    color: var(--yellow);
    background: rgba(255, 210, 63, 0.05);
}
.repo-badge.dev {
    border-color: var(--purple);
    color: var(--purple);
    background: rgba(183, 110, 255, 0.05);
}
.repo-desc {
    font-size: 0.9em;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 22px;
    flex-grow: 1;
}
.repo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 22px;
}
.repo-tags span {
    font-family: var(--mono);
    font-size: 0.62em;
    font-weight: 700;
    background: var(--ink);
    color: var(--green);
    border: 1px solid rgba(0, 255, 157, 0.2);
    padding: 3px 8px;
}
.repo-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1.5px solid rgba(255, 255, 255, 0.06);
    padding-top: 18px;
    margin-top: auto;
}
.repo-lang {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--mono);
    font-size: 0.72em;
    color: var(--text-muted);
}
.repo-lang-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
}
.repo-lang-dot.python { background: #3572A5; }
.repo-lang-dot.js { background: #f1e05a; }
.repo-lang-dot.dart { background: #00B4AB; }
.repo-link {
    font-family: var(--mono);
    font-size: 0.72em;
    font-weight: 700;
    color: var(--green);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s, transform 0.15s;
}
.repo-link:hover {
    color: var(--coral);
    transform: translateX(2px);
}

@media (max-width: 1024px) {
    .dev-repos-section {
        padding: 80px 40px;
    }
}
@media (max-width: 768px) {
    .dev-repos-section {
        padding: 60px 20px;
    }
    .dev-sec-title {
        font-size: 1.6em;
    }
    .repo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Utility to disable custom cursor on touch devices */
@media (hover: none) or (pointer: coarse) {
    * {
        cursor: auto !important;
    }
    .cursor, .cursor-ring {
        display: none !important;
    }
}
