:root {
  --bg: #030406;
  --surface: #0a0c10;
  --surface2: #0f1218;
  --border: #1a1e26;
  --border-glow: rgba(0, 242, 255, 0.1);
  
  --cyan: #00f2ff;
  --cyan-muted: rgba(0, 242, 255, 0.3);
  --violet: #8b5cf6;
  --emerald: #10b981;
  --amber: #f59e0b;
  --rose: #f43f5e;
  
  --text: #f1f5f9;
  --muted: #8492a6;
  --muted2: #334155;
  
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Bricolage Grotesque', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.5);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.7);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.8);
  
  --glass-bg: rgba(15, 18, 24, 0.4);
  --glass-border: rgba(255, 255, 255, 0.05);
}

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

::selection {
  background: var(--cyan-muted);
  color: var(--text);
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--border) var(--bg);
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  overflow-x: hidden;
  line-height: 1.5;
  cursor: none;
  -webkit-font-smoothing: antialiased;
}

/* NOISE OVERLAY */
.noise-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 9998;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3%3Ffilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.04;
}

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan-muted); }

/* UTILITIES */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 80px;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* TERMINAL CUSTOM CURSOR */
#cursor {
  position: fixed;
  width: 12px; height: 24px;
  background: var(--cyan);
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 15px var(--cyan-muted);
}

#cursor-ring {
  position: fixed;
  width: 40px; height: 40px;
  border: 1px solid var(--cyan-muted);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background 0.3s, border-color 0.3s, opacity 0.3s;
  opacity: 0.2;
}

#experience-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -2;
  pointer-events: none;
  opacity: 0.3;
}

/* BACKGROUNDS */
.nebula {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -3;
  pointer-events: none;
  overflow: hidden;
}

.nebula-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(180px);
  opacity: 0.05;
}

.nb1 { width: 1200px; height: 1200px; background: var(--violet); top: -400px; left: -400px; }
.nb2 { width: 1000px; height: 1000px; background: var(--cyan); bottom: -300px; right: -300px; }

#stars-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -3;
  pointer-events: none;
  opacity: 0.2;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 40px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

nav.scrolled {
  padding: 20px 80px;
  background: rgba(3, 4, 6, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.05em;
  transition: 0.3s;
}
.nav-logo:hover { color: var(--cyan); }

.nav-links {
  display: flex;
  gap: 50px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: all 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  width: 0; height: 1px;
  background: var(--cyan);
  transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.lang-btn {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 10px 20px;
  border-radius: 100px;
  cursor: none;
  transition: all 0.3s;
}

.lang-btn:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(0, 242, 255, 0.05); }

/* HERO */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 40px;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.1;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 85%);
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyan);
  background: rgba(0, 242, 255, 0.05);
  padding: 10px 22px;
  border-radius: 100px;
  border: 1px solid var(--glass-border);
  margin-bottom: 30px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse-cyan 2s infinite;
}

@keyframes pulse-cyan {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 242, 255, 0.4); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(0, 242, 255, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 242, 255, 0); }
}

.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 9vw, 8.5rem);
  font-weight: 800;
  line-height: 0.85;
  margin-bottom: 25px;
  letter-spacing: -0.05em;
  color: var(--text);
}

.hero-name span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.15);
}

.hero-title {
  font-size: clamp(0.9rem, 2.5vw, 1.5rem);
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto 40px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.hero-rotating {
  height: 2.2rem;
  overflow: hidden;
  margin-bottom: 50px;
}

.hero-rotating-inner span {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--cyan);
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  letter-spacing: 0.05em;
}

.hero-ctas {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 16px 36px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.65rem;
}

.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: var(--cyan); transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0, 242, 255, 0.2); }
.btn-ghost { border: 1px solid var(--glass-border); color: var(--text); background: var(--glass-bg); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-5px); }

/* CV DROPDOWN */
.cv-dropdown { position: relative; display: inline-block; }
.cv-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background: var(--surface2);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  min-width: 200px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
  backdrop-filter: blur(25px);
  box-shadow: var(--shadow-lg);
}
.cv-dropdown:hover .cv-menu, .cv-dropdown.active .cv-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.cv-menu a {
  display: block;
  padding: 14px 20px;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  transition: 0.3s;
  border-bottom: 1px solid var(--glass-border);
}
.cv-menu a:last-child { border-bottom: none; }
.cv-menu a:hover { background: rgba(0, 242, 255, 0.08); color: var(--text); }

/* SECTIONS */
section {
  padding: 140px 0;
  border-top: 1px solid var(--border);
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyan);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 30px;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.section-divider {
  width: 80px;
  height: 2px;
  background: var(--cyan);
  margin-bottom: 60px;
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: start;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 1.1rem;
  max-width: 650px;
  font-weight: 300;
}

.stat-row {
  display: flex;
  gap: 60px;
  margin-top: 60px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-top: 8px;
}

/* TERMINAL WINDOWS */
.terminal {
  background: #050608;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(15px);
}

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

.terminal-controls { display: flex; gap: 8px; }
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: #ff5f56; }
.dot-y { background: #ffbd2e; }
.dot-g { background: #27c93f; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.terminal-body {
  padding: clamp(15px, 5vw, 30px);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.8;
  color: var(--muted);
}

.t-prompt { color: var(--emerald); margin-right: 12px; }
.t-cmd { color: var(--text); }
.t-key { color: var(--cyan); font-weight: 500; }
.t-val { color: var(--violet); }

.cursor-blink {
  display: inline-block;
  width: 8px; height: 18px;
  background: var(--cyan);
  vertical-align: middle;
  animation: blink 1.2s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* EXPERTISE */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.expertise-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 40px;
  border-radius: 20px;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(15px);
}

.expertise-card:hover {
  border-color: var(--cyan-muted);
  transform: translateY(-10px);
  background: rgba(0, 242, 255, 0.03);
}

.e-icon { font-size: 2.5rem; margin-bottom: 30px; display: block; filter: grayscale(1) opacity(0.6); transition: 0.4s; }
.expertise-card:hover .e-icon { filter: grayscale(0) opacity(1); transform: scale(1.1); }

.expertise-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 18px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.expertise-card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 300;
}

/* PROJECTS */
#projects { background: var(--surface); }

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
  gap: 40px;
}

.project-card {
  background: var(--bg);
  border: 1px solid var(--glass-border);
  padding: clamp(25px, 5vw, 40px);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  border-color: var(--cyan-muted);
  transform: scale(1.01);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.p-category {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 15px;
  opacity: 0.7;
}

.p-name { 
  font-family: var(--font-heading);
  font-size: 1.8rem; 
  margin-bottom: 18px; 
  font-weight: 700; 
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.p-desc { 
  font-size: 0.95rem; 
  color: var(--muted); 
  margin-bottom: 30px; 
  line-height: 1.6;
  font-weight: 300;
}

.p-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
    background: rgba(255,255,255,0.02);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}
.p-stat-val { font-family: var(--font-heading); font-size: clamp(1rem, 3vw, 1.3rem); font-weight: 700; color: var(--cyan); line-height: 1.1; margin-bottom: 6px; }
.p-stat-lab { font-family: var(--font-mono); font-size: 0.5rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; line-height: 1.3; }

.p-highlights {
    list-style: none;
    margin-bottom: 30px;
    padding-left: 0;
}
.p-highlights li {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
    line-height: 1.5;
}
.p-highlights li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--cyan);
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.p-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.p-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 6px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  color: var(--muted);
  border-radius: 6px;
}

.p-links { display: flex; gap: 30px; position: relative; z-index: 2; margin-top: auto; }
.p-link {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
  font-weight: 600;
}
.p-link:hover { color: var(--cyan); }
.p-link svg { width: 18px; height: 18px; opacity: 0.6; }

/* SIMULATOR */
.simulator-container {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  height: 600px;
  display: grid;
  grid-template-columns: 1fr 320px;
  overflow: hidden;
  margin-top: 50px;
}

.sim-canvas-wrapper { 
  position: relative; 
  background: radial-gradient(circle at center, #0a0c10, #030406); 
  border-right: 1px solid var(--glass-border);
  min-height: 400px;
}
#sim-canvas { width: 100%; height: 100%; display: block; }

.sim-controls {
  position: absolute;
  top: 20px; left: 20px;
  display: flex; gap: 10px;
  z-index: 10;
}

.broker-status {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}
.status-label { font-family: var(--font-mono); font-size: 0.6rem; color: var(--muted2); letter-spacing: 0.2em; text-transform: uppercase; }
.status-value { font-family: var(--font-heading); font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800; color: var(--violet); line-height: 1; }

.sim-log { background: rgba(0,0,0,0.4); padding: 30px; display: flex; flex-direction: column; border-left: 1px solid var(--glass-border); }
.log-title { font-family: var(--font-mono); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted2); margin-bottom: 20px; }
.log-entries { flex-grow: 1; overflow-y: auto; font-family: var(--font-mono); font-size: 0.75rem; line-height: 1.6; max-height: 450px; }
.log-entry { margin-bottom: 12px; border-left: 2px solid var(--border); padding-left: 12px; }

/* METRICS */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-top: 60px;
  position: relative;
  z-index: 50;
}

.metric-card {
  background: linear-gradient(145deg, var(--surface2), var(--surface));
  padding: 40px 20px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(circle at top left, rgba(0, 242, 255, 0.05), transparent 70%);
  pointer-events: none;
}

.metric-card:hover {
  border-color: var(--cyan-muted);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 242, 255, 0.05);
}

.m-value { 
  display: block;
  font-family: var(--font-heading); 
  font-size: 2.8rem; 
  font-weight: 800; 
  color: var(--cyan); 
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.m-label { 
  display: block;
  font-family: var(--font-mono); 
  font-size: 0.65rem; 
  color: var(--muted); 
  text-transform: uppercase; 
  letter-spacing: 0.18em; 
}

/* SKILLS */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.skill-box {
  background: var(--glass-bg);
  padding: clamp(25px, 5vw, 40px);
  border-radius: 20px;
  border: 1px solid var(--glass-border);
}

.skill-header { margin-bottom: 30px; }
.skill-domain-name { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 600; }

.skill-item { margin-bottom: 24px; }
.skill-info { display: flex; justify-content: space-between; font-size: 0.8rem; margin-bottom: 8px; font-family: var(--font-mono); }

.skill-bar-bg { height: 2px; background: rgba(255,255,255,0.04); border-radius: 10px; overflow: hidden; }
.skill-bar-fill { height: 100%; width: 0; border-radius: 10px; transition: width 2s cubic-bezier(0.16, 1, 0.3, 1); background: var(--cyan); }

/* CONTACT SECTION */
.contact-sub {
    text-align: center;
    color: var(--muted);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    max-width: 700px;
    margin: 0 auto 60px;
    line-height: 1.6;
    font-weight: 300;
}

.contact-terminal-wrapper {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

/* TERMINAL WINDOWS */
.contact-terminal {
    width: 100%;
    min-height: 480px;
}

.terminal-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.t-row {
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.t-col {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.t-row-header {
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.t-key {
    font-family: var(--font-mono);
    color: var(--cyan);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.t-input, .t-textarea {
    flex-grow: 1;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    padding: 5px 0;
    outline: none;
    width: 100%;
    transition: border-color 0.3s;
}

.t-input:focus, .t-textarea:focus {
    border-color: var(--cyan-muted);
}

.t-textarea {
    height: 120px;
    resize: none;
    border: 1px solid rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 8px;
    background: rgba(255,255,255,0.01);
}

.t-submit-btn {
    margin-top: 20px;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: none;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
}

.t-submit-btn:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    background: rgba(0, 242, 255, 0.05);
}

.t-submit-btn .t-prompt {
    color: var(--violet);
    font-weight: bold;
}

/* SOCIAL ICONS CENTERED */
.contact-socials-centered {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 60px;
}

.social-icon-block {
    width: 60px; height: 60px;
    background: var(--surface2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: none;
    color: var(--muted);
}

.social-icon-block:hover {
    border-color: var(--cyan);
    transform: translateY(-5px);
    background: rgba(0, 242, 255, 0.05);
    color: var(--cyan);
}

.social-icon-block svg {
    width: 24px; height: 24px;
    fill: currentColor;
    opacity: 0.5;
    transition: 0.4s;
}

.social-icon-block:hover svg {
    opacity: 1;
    transform: scale(1.1);
}

/* FOOTER */
footer {
  padding: 100px 0 60px;
  background: #010203;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
}

.footer-brand .footer-logo {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  display: block;
  margin-bottom: 20px;
}

.footer-brand .footer-text {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 400px;
  line-height: 1.7;
}

.footer-nav {
  display: flex;
  justify-content: flex-end;
  gap: 80px;
}

.f-nav-col h4 {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted2);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 25px;
}

.f-links {
  list-style: none;
}

.f-links li {
  margin-bottom: 12px;
}

.f-links a {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  transition: 0.3s;
}

.f-links a:hover { color: var(--cyan); }

.footer-bottom {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.03);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted2);
}

.f-socials { display: flex; gap: 25px; }
.f-socials a { color: var(--muted2); font-family: var(--font-mono); font-size: 0.7rem; text-decoration: none; transition: 0.3s; }
.f-socials a:hover { color: var(--text); }

/* MOBILE MENU - HARD RESET */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  background: var(--bg);
  z-index: 2001; /* Higher than nav */
  display: none; /* HARD HIDE BY DEFAULT */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.mobile-menu.open {
  display: flex !important; /* ONLY SHOW WHEN OPEN CLASS IS ADDED */
}

.mobile-menu a {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.close-menu {
    position: absolute;
    top: 40px; right: 40px;
    background: none; border: none;
    color: var(--text); font-size: 2rem;
    cursor: pointer;
}

/* RESPONSIVE AUDIT */
@media (max-width: 1200px) {
    .container { padding: 0 40px; }
    .project-grid { grid-template-columns: 1fr; }
    .expertise-grid { grid-template-columns: repeat(2, 1fr); }
    .skills-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    nav { padding: 20px 40px; }
    .nav-links { display: none !important; }
    .hamburger { display: block !important; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-nav { justify-content: flex-start; gap: 40px; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    body { cursor: auto !important; }
    #cursor, #cursor-ring { display: none !important; }
    
    section { padding: 80px 0; }
    .hero-name { font-size: 3.5rem; }
    .section-title { font-size: 2.2rem; }
    .p-name { font-size: 1.5rem; }
    
    .expertise-grid, .skills-grid { grid-template-columns: 1fr; }
    
    .t-row { flex-direction: column; align-items: flex-start; gap: 5px; }
    .t-input { border-bottom: 1px solid rgba(255,255,255,0.1); width: 100% !important; }
    
    .footer-nav { flex-direction: column; gap: 30px; }
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
    .contact-socials-centered { flex-wrap: wrap; }
    
    .expertise-card { padding: 25px; }
    .skill-box { padding: 25px; }
    
    .simulator-container { grid-template-columns: 1fr; height: auto; }
    .sim-canvas-wrapper { min-height: 350px; border-right: none; border-bottom: 1px solid var(--glass-border); }
    .sim-controls { 
        top: 15px; left: 15px; right: 15px; 
        gap: 8px; 
        width: auto;
        flex-wrap: wrap;
        justify-content: center;
    }
    .sim-controls .btn-sm { padding: 6px 12px; font-size: 0.6rem; flex: 1; min-width: 80px; }
    .sim-log { height: 250px; border-left: none; padding: 20px; }
    .log-entries { max-height: 180px; }
    
    .stat-row { flex-direction: column; gap: 30px; }
    .metrics-grid { grid-template-columns: repeat(2, 1fr); margin-top: 40px; }
}

@media (max-width: 480px) {
    .container { padding: 0 20px; }
    .hero-name { font-size: 2.8rem; }
    .btn { width: 100%; text-align: center; }
    .cv-dropdown { width: 100%; }
    .cv-menu { width: 100%; min-width: auto; }
    .hero-ctas { gap: 10px; width: 100%; }
    .p-stats { grid-template-columns: 1fr; text-align: center; }
    .metrics-grid { grid-template-columns: 1fr; }
    .contact-socials-centered { gap: 10px; }
    .social-icon-block { width: 50px; height: 50px; }
}
