/* ====================================================
   KOUSHIK C. — Single-Page Portfolio
   Black & White Theme · Vanilla CSS
   ==================================================== */

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

:root {
    --white:  #FAFAFA;
    --off-white: #F2F2F2;
    --gray-100: #E5E5E5;
    --gray-200: #D4D4D4;
    --gray-300: #A3A3A3;
    --gray-400: #737373;
    --gray-500: #525252;
    --gray-600: #404040;
    --gray-700: #262626;
    --gray-800: #171717;
    --black:  #0A0A0A;

    --bg:          var(--white);
    --bg-alt:      var(--off-white);
    --text:        var(--black);
    --text-muted:  var(--gray-500);
    --border:      var(--gray-200);
    --accent:      var(--black);

    --font-heading: 'Geist', system-ui, sans-serif;
    --font-body:    'Inter', system-ui, sans-serif;

    --container: 1200px;
    --gutter: 24px;
    --section-py: 96px;
    --nav-h: 64px;

    --ease: cubic-bezier(.4, 0, .2, 1);
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ---------- Typography ---------- */
h1 { font-family: var(--font-heading); font-size: clamp(28px, 5vw, 42px); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-family: var(--font-heading); font-size: clamp(24px, 4vw, 32px); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
h3 { font-family: var(--font-heading); font-size: clamp(18px, 2.5vw, 22px); font-weight: 600; line-height: 1.25; }
p  { font-size: 15px; line-height: 1.7; color: var(--text-muted); }

.text-accent { color: var(--gray-400); }

.label-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 12px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s var(--ease);
    border: none;
}
.btn .material-symbols-outlined { font-size: 18px; }

.btn-primary {
    background: var(--black);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--gray-700);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.15);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--black);
    background: var(--black);
    color: var(--white);
}

.btn-sm { padding: 8px 18px; font-size: 13px; }

/* ---------- Cards ---------- */
.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover {
    border-color: var(--gray-300);
    box-shadow: 0 8px 30px rgba(0,0,0,.06);
}

.chip {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--gray-500);
}

.tag {
    display: inline-block;
    padding: 3px 10px;
    background: var(--off-white);
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--gray-500);
}

/* ---------- Sections ---------- */
.section {
    padding: var(--section-py) 0;
}
.section-alt { background: var(--bg-alt); }

.section-header { margin-bottom: 48px; }
.section-header h2 { margin-bottom: 12px; }
.section-sub { max-width: 560px; }

.section-grid {
    display: grid;
    gap: 48px;
}

/* ====================================================
   NAVBAR
   ==================================================== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    z-index: 100;
    background: rgba(250,250,250,.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,.06);
    background: rgba(250,250,250,.96);
}

.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.nav-links { display: flex; gap: 32px; }
.nav-link {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-400);
    transition: color .2s;
    position: relative;
    padding-bottom: 4px;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--black);
    transition: width .3s var(--ease);
}
.nav-link.active,
.nav-link:hover { color: var(--black); }
.nav-link.active::after { width: 100%; }

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 44px; height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: background .2s;
}
.hamburger:hover { background: var(--off-white); }

/* ---------- Mobile Drawer ---------- */
.mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(0,0,0,.4);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s var(--ease);
}
.mobile-overlay.open { opacity: 1; pointer-events: all; }

.mobile-drawer {
    position: fixed;
    top: 0; right: 0;
    width: 280px; height: 100%;
    z-index: 120;
    background: var(--white);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform .35s var(--ease);
    display: flex;
    flex-direction: column;
}
.mobile-drawer.open { transform: translateX(0); }

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 12px;
    flex: 1;
}
.drawer-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-500);
    transition: background .2s, color .2s;
    min-height: 44px;
}
.drawer-link:hover { background: var(--off-white); color: var(--black); }
.drawer-link .material-symbols-outlined { font-size: 20px; }

body.menu-open { overflow: hidden; }

/* ====================================================
   HERO
   ==================================================== */
.hero {
    position: relative;
    min-height: calc(100vh - var(--nav-h));
    padding: calc(var(--nav-h) + 48px) var(--gutter) 48px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--container);
    margin: 0 auto;
    width: 100%;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 860px;
}
.hero-text h1 {
    margin-bottom: 4px;
    font-size: clamp(30px, 4.8vw, 50px);
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.hero-sub {
    font-size: 16px;
    max-width: 620px;
    line-height: 1.7;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-socials {
    display: flex; gap: 24px; margin-top: 8px;
}
.hero-socials a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-400);
    transition: color .2s;
}
.hero-socials a:hover { color: var(--black); }

/* ====================================================
   ABOUT
   ==================================================== */
.about-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
    gap: 48px;
}

.about-text { display: flex; flex-direction: column; gap: 16px; }
.about-text p { margin: 0; }

.focus-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

.about-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.portrait-wrap {
    position: relative;
    max-width: 240px;
    width: 100%;
}
.portrait-accent {
    position: absolute;
    top: -6px; right: -6px;
    width: 100%; height: 100%;
    border: 2px solid var(--border);
    border-radius: 14px;
    z-index: -1;
    transition: transform .4s var(--ease);
}
.portrait-wrap:hover .portrait-accent { transform: translate(3px, 3px); }

.portrait-frame {
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid var(--border);
    aspect-ratio: 4 / 5;
    background: var(--off-white);
}
.portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(15%);
    transition: filter .5s;
}
.portrait-wrap:hover .portrait-frame img { filter: grayscale(0); }

.portrait-badge {
    position: absolute;
    bottom: -12px; left: -10px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
.portrait-badge .material-symbols-outlined {
    background: var(--black);
    color: var(--white);
    padding: 6px;
    border-radius: 6px;
    font-size: 18px;
}
.portrait-badge strong { font-family: var(--font-heading); font-size: 13px; }
.portrait-badge small { display: block; font-size: 11px; color: var(--gray-400); }

.edu-card {
    width: 100%;
    max-width: 320px;
}

.edu-card .card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.edu-card .card-header .material-symbols-outlined { color: var(--gray-400); }
.edu-card .card-header h3 { margin: 0; }
.edu-card .card-header small { display: block; color: var(--gray-400); font-size: 12px; }

.edu-card .card-body strong { display: block; font-size: 14px; margin-bottom: 4px; }
.edu-card .card-body p { font-size: 13px; }
.edu-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-400);
}

/* ====================================================
   PROJECTS
   ==================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.project-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: border-color .3s, box-shadow .3s, transform .15s;
    will-change: transform;
}
.project-card:hover {
    border-color: var(--gray-300);
    box-shadow: 0 8px 30px rgba(0,0,0,.06);
}

.project-card--wide { grid-column: span 7; }
.project-card:nth-child(2) { grid-column: span 5; }
.project-card--cta {
    grid-column: span 12;
    text-align: center;
    align-items: center;
    border-style: dashed;
    border-width: 2px;
    border-color: var(--gray-200);
}
.project-card--cta:hover { border-color: var(--gray-400); }

.cta-icon { font-size: 32px; color: var(--gray-300); }

.project-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.project-label {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-400);
}
.icon-btn {
    width: 40px; height: 40px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .25s;
}
.icon-btn:hover {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500);
    transition: color .2s;
}
.project-link:hover { color: var(--black); }
.project-link .material-symbols-outlined { font-size: 16px; transition: transform .2s; }
.project-link:hover .material-symbols-outlined { transform: translateX(3px); }

.project-links-row { display: flex; gap: 20px; margin-top: auto; }

/* ====================================================
   SKILLS — Tech Stack & 3D Interactive Ring
   ==================================================== */
.tech-stack-wrap {
    position: relative;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px;
    margin-bottom: 28px;
    overflow: hidden;
    transition: border-color .3s, box-shadow .3s;
}
.tech-stack-wrap:hover {
    border-color: var(--gray-300);
    box-shadow: 0 8px 30px rgba(0,0,0,.06);
}

.tech-stack-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}
.tech-stack-label {
    display: flex;
    align-items: center;
    gap: 12px;
}
.tech-stack-label .material-symbols-outlined {
    font-size: 26px;
    color: var(--black);
}
.tech-stack-label h3 {
    margin: 0;
    font-size: 20px;
    letter-spacing: -0.01em;
}
.tech-stack-sublabel {
    font-size: 13px;
    color: var(--gray-400);
    margin: 2px 0 0 0;
}

.orbit-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--gray-700);
}
.orbit-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--black);
    box-shadow: 0 0 0 0 rgba(0,0,0,.3);
    animation: orbitPulse 2s infinite cubic-bezier(.4, 0, .2, 1);
}
@keyframes orbitPulse {
    0% { box-shadow: 0 0 0 0 rgba(0,0,0,.4); }
    70% { box-shadow: 0 0 0 6px rgba(0,0,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); }
}

/* 3D Stage */
.skills-3d-stage {
    position: relative;
    width: 100%;
    height: 320px;
    background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 32px;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}
.skills-3d-stage.grabbing {
    cursor: grabbing;
}
#skills-ring-canvas {
    width: 100%;
    height: 100%;
    display: block;
    outline: none;
}
.orbit-controls-overlay {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 2;
}
.orbit-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    font-family: var(--font-heading);
    color: var(--gray-600);
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.orbit-hint .material-symbols-outlined {
    font-size: 15px;
    color: var(--gray-500);
}

/* Stack Blocks */
.stack-block {
    margin-top: 24px;
}
.stack-block-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--gray-100);
    padding-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}
.stack-title-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.stack-title-left h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--black);
    margin: 0;
}
.stack-title-left .material-symbols-outlined {
    font-size: 18px;
    color: var(--gray-500);
}
.stack-note {
    font-size: 12px;
    color: var(--gray-400);
    font-family: var(--font-body);
}

/* Core Grid (7 items) */
.tech-grid--core {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}
.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 18px 10px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--white);
    transition: all .25s var(--ease);
    cursor: default;
}
.tech-item:hover {
    border-color: var(--black);
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,.07);
}
.tech-icon-box {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--off-white);
    padding: 6px;
    transition: transform .25s var(--ease);
}
.tech-item:hover .tech-icon-box {
    transform: scale(1.1);
}
.tech-icon-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}
.tech-name {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: var(--black);
    line-height: 1.2;
}
.tech-role {
    font-size: 11px;
    font-weight: 500;
    color: var(--gray-400);
    line-height: 1.2;
}

/* Exploring Grid (3 items, secondary & distinct) */
.stack-block--exploring {
    margin-top: 32px;
}
.tech-grid--exploring {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.tech-item--exploring {
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 16px 20px;
    gap: 16px;
    border: 1px dashed var(--gray-300);
    background: rgba(245, 245, 245, 0.5);
    border-radius: 14px;
}
.tech-item--exploring:hover {
    border-color: var(--black);
    border-style: solid;
    background: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,.05);
}
.tech-item--exploring .tech-icon-box {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
}
.tech-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.exploring-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-500);
    background: var(--gray-100);
    padding: 2px 8px;
    border-radius: 4px;
    width: fit-content;
}

/* ---------- Education Detail ---------- */
.edu-detail-card {
    border-left: 4px solid var(--black);
    margin-bottom: 28px;
}
.edu-detail-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.edu-detail-card h3 { margin-bottom: 4px; }
.edu-detail-card p { font-size: 14px; }
.edu-loc {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--gray-400);
    margin-top: 8px;
}
.edu-loc .material-symbols-outlined { font-size: 16px; }

.edu-year-badge { text-align: right; }
.badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--black);
    color: var(--white);
    border-radius: 999px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
}
.edu-year-badge small { display: block; margin-top: 6px; color: var(--gray-400); font-size: 12px; }

/* ---------- Future Focus ---------- */
.future-focus {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
}
.future-text h3 { margin-bottom: 12px; }
.future-text p { margin-bottom: 16px; }
.future-text strong { color: var(--black); }
.focus-tags { display: flex; gap: 20px; }
.focus-tags > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
}
.focus-tags .material-symbols-outlined { font-size: 18px; color: var(--gray-400); }

.future-image {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
}
.future-image img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    filter: grayscale(100%);
    opacity: .6;
    transition: all .5s;
}
.future-image:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* ====================================================
   CONTACT
   ==================================================== */
.contact-card {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    padding: 56px 40px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}
.contact-card h2 { margin-bottom: 12px; }
.contact-card > p { margin-bottom: 28px; }

.contact-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }

.contact-info {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}
.contact-info a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray-400);
    transition: color .2s;
}
.contact-info a:hover { color: var(--black); }
.contact-info .material-symbols-outlined { font-size: 18px; }

/* ====================================================
   FOOTER
   ==================================================== */
footer {
    border-top: 1px solid var(--border);
    padding: 28px 0;
    background: var(--bg);
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-brand { font-family: var(--font-heading); font-size: 18px; font-weight: 700; }
footer p { font-size: 13px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
    font-size: 13px;
    color: var(--gray-400);
    transition: color .2s;
}
.footer-links a:hover { color: var(--black); }

/* ====================================================
   SCROLL-REVEAL ANIMATION
   ==================================================== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ====================================================
   3D TILT CARD SUPPORT
   ==================================================== */
.tilt-card {
    perspective: 800px;
    transform-style: preserve-3d;
}

/* ====================================================
   CUSTOM CURSOR (Black & White Theme)
   ==================================================== */
@media (pointer: fine) {
    body, a, button, input, textarea, select, [role="button"],
    .btn, .icon-btn, .project-card, .tech-item, .skills-3d-stage,
    .chip, .tag, .drawer-link, .nav-link, .hamburger {
        cursor: none !important;
    }

    .cursor-dot {
        position: fixed;
        top: 0;
        left: 0;
        width: 7px;
        height: 7px;
        background-color: var(--black);
        border-radius: 50%;
        pointer-events: none;
        z-index: 999999;
        opacity: 0;
        transition: opacity 0.2s ease, background-color 0.2s ease;
        margin: -3.5px 0 0 -3.5px;
        will-change: transform;
    }

    .cursor-ring {
        position: fixed;
        top: 0;
        left: 0;
        width: 34px;
        height: 34px;
        border: 1.5px solid rgba(10, 10, 10, 0.45);
        background-color: transparent;
        border-radius: 50%;
        pointer-events: none;
        z-index: 999998;
        opacity: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: -17px 0 0 -17px;
        transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                    height 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                    margin 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                    border-color 0.2s ease,
                    background-color 0.2s ease,
                    border-radius 0.25s ease,
                    opacity 0.2s ease;
        will-change: transform, width, height;
    }

    .cursor-dot.visible,
    .cursor-ring.visible {
        opacity: 1;
    }

    .cursor-label {
        font-family: var(--font-heading);
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--white);
        opacity: 0;
        transform: scale(0.6);
        transition: opacity 0.18s ease, transform 0.18s ease;
        pointer-events: none;
        line-height: 1;
    }

    /* Hover State (Links, Buttons, Chips, Tech Items) - Contracted / Reduced */
    .cursor-ring.cursor--hover {
        width: 18px;
        height: 18px;
        margin: -9px 0 0 -9px;
        border-color: var(--black);
        border-width: 2px;
        background-color: rgba(10, 10, 10, 0.12);
    }
    .cursor-dot.cursor--hover {
        width: 4px;
        height: 4px;
        margin: -2px 0 0 -2px;
    }

    /* 3D Stage Hover ("DRAG") - Reduced compact size */
    .cursor-ring.cursor--drag {
        width: 34px;
        height: 34px;
        margin: -17px 0 0 -17px;
        background-color: rgba(10, 10, 10, 0.9);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        border-color: var(--black);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    }
    .cursor-ring.cursor--drag .cursor-label {
        opacity: 1;
        transform: scale(0.9);
        font-size: 8px;
        letter-spacing: 0.08em;
    }
    .cursor-dot.cursor--drag {
        opacity: 0;
    }

    /* Text / Heading Hover (Compact vertical text bar) */
    .cursor-ring.cursor--text {
        width: 2px;
        height: 18px;
        margin: -9px 0 0 -1px;
        border-radius: 1px;
        background-color: var(--black);
        border: none;
    }
    .cursor-dot.cursor--text {
        opacity: 0;
    }

    /* Click / Active Press State (Scale down tactile feedback) */
    .cursor-ring.cursor--click {
        width: 12px;
        height: 12px;
        margin: -6px 0 0 -6px;
        background-color: var(--black);
        border-color: var(--black);
    }
    .cursor-dot.cursor--click {
        opacity: 0;
    }
}

/* Touch devices: disable custom cursor */
@media (pointer: coarse), (hover: none) {
    .cursor-dot,
    .cursor-ring {
        display: none !important;
    }
}

/* ====================================================
   RESPONSIVE
   ==================================================== */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .project-card--wide,
    .project-card:nth-child(2),
    .project-card--cta { grid-column: span 1; }
    .future-focus { grid-template-columns: 1fr; }
    .future-image { order: -1; }
    .tech-grid--core { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
    :root {
        --section-py: 64px;
        --gutter: 16px;
    }

    .nav-links { display: none; }
    .hamburger { display: inline-flex; }

    .hero {
        padding-top: calc(var(--nav-h) + 32px);
        min-height: auto;
    }
    .hero-text h1 { font-size: 26px; }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; justify-content: center; }

    .portrait-badge { position: relative; bottom: auto; left: auto; margin-top: 12px; }
    .portrait-accent { display: none; }

    .tech-stack-wrap { padding: 20px 16px; }
    .skills-3d-stage { height: 260px; }
    .tech-grid--core { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .tech-grid--exploring { grid-template-columns: 1fr; gap: 10px; }
    .tech-item { padding: 14px 6px; }
    .tech-icon-box { width: 38px; height: 38px; }
    .tech-name { font-size: 12px; }
    .tech-role { font-size: 10px; }

    .edu-detail-inner { flex-direction: column; align-items: flex-start; }
    .edu-year-badge { text-align: left; }

    .contact-card { padding: 36px 20px; border-radius: 18px; }
    .contact-cta { flex-direction: column; }
    .contact-cta .btn { width: 100%; justify-content: center; }

    .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .tech-grid--core { grid-template-columns: repeat(2, 1fr); }
    .skills-3d-stage { height: 240px; }
    .tech-item--exploring { padding: 12px 14px; }
}
