/* ============================================================
   AKHIL M — TRIONN Inspired Creative Studio Portfolio
   Awwwards & CSSDA Grade Interactive Web Architecture
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* TRIONN Color System */
  --bg: #040508;
  --surface: #0a0c14;
  --surface-2: #121524;
  --surface-3: #1a1e32;
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.15);
  
  --accent-red: #ff3b3b;
  --accent-cyan: #00f0ff;
  --accent-green: #00ff9d;
  --accent-purple: #9d4edd;
  --accent-gold: #ffbe0b;

  --text: #f5f5f8;
  --text-muted: #8892b0;
  --text-dim: #4a5368;

  --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --ease-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

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

/* ── TRIONN CUSTOM CURSOR WITH TEXT FOLLOWER ── */
#cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--accent-red);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  box-shadow: 0 0 12px var(--accent-red);
}

#cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  border: 1.5px solid rgba(255, 59, 59, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: transparent;
  transition: width 0.3s var(--ease-expo), height 0.3s var(--ease-expo), border-color 0.3s, background 0.3s, color 0.3s;
}

body.cursor-hover #cursor-dot {
  width: 16px;
  height: 16px;
  background: var(--accent-cyan);
  box-shadow: 0 0 20px var(--accent-cyan);
}

body.cursor-hover #cursor-ring {
  width: 70px;
  height: 70px;
  border-color: rgba(0, 240, 255, 0.6);
  background: rgba(0, 240, 255, 0.08);
  color: var(--accent-cyan);
}

body.cursor-click #cursor-dot {
  transform: translate(-50%, -50%) scale(0.5);
}

@media (hover: none) {
  #cursor-dot, #cursor-ring { display: none; }
  body { cursor: auto; }
}

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

/* ── BACKGROUND CANVAS ── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── CORNER PLUS MARKERS (TRIONN Architectural Style) ── */
.plus-box {
  position: relative;
}

.plus-marker {
  position: absolute;
  width: 11px;
  height: 11px;
  pointer-events: none;
  z-index: 10;
}

.plus-marker svg {
  width: 100%;
  height: 100%;
}

.plus-marker.tl { top: -6px; left: -6px; }
.plus-marker.tr { top: -6px; right: -6px; }
.plus-marker.bl { bottom: -6px; left: -6px; }
.plus-marker.br { bottom: -6px; right: -6px; }

/* ── LOADER OVERLAY ── */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity 0.8s var(--ease-expo), transform 0.8s var(--ease-expo);
}

#loader.loaded {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.04);
}

.loader-logo-box {
  width: 120px;
  height: 120px;
  background: var(--surface-2);
  border: 1px solid rgba(255, 59, 59, 0.3);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.trionn-a-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.nav-a-logo {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.loader-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
}

.loader-bar-wrap {
  width: 220px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}

.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-cyan));
  transition: width 0.1s linear;
}

.loader-tagline {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ── NAVIGATION BAR ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(4, 5, 8, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s;
}

nav.scrolled {
  padding: 16px 48px;
  border-bottom-color: var(--border-light);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
  margin-right: 36px;
}

.nav-brand-symbol {
  color: var(--accent-red);
  font-size: 1rem;
}

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

/* TRIONN Roll Text Animation for Links */
.roll-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  overflow: hidden;
  height: 1.3em;
  line-height: 1.3;
}

.roll-link .roll-inner {
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease-expo);
}

.roll-link:hover .roll-inner {
  transform: translateY(-50%);
}

.roll-link .text-orig {
  color: var(--text-muted);
}

.roll-link .text-clone {
  color: var(--accent-red);
}

.nav-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(0, 255, 157, 0.06);
  border: 1px solid rgba(0, 255, 157, 0.2);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-green);
  letter-spacing: 0.08em;
}

.nav-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulseGreen 1.6s ease-in-out infinite alternate;
}

@keyframes pulseGreen {
  to { box-shadow: 0 0 18px var(--accent-green); opacity: 0.4; }
}

.nav-burger {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 200;
}

.nav-burger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 8, 0.97);
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}

/* ── SECTION ARCHITECTURE ── */
section {
  padding: 130px 48px;
  position: relative;
  z-index: 2;
  max-width: 1340px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.sec-header {
  margin-bottom: 64px;
}

.sec-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-red);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sec-tag::before {
  content: '✦';
  color: var(--accent-cyan);
  font-size: 0.8rem;
}

.sec-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.sec-title .highlight {
  background: linear-gradient(135deg, var(--accent-red), var(--accent-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── HERO SECTION (TRIONN Cinematic Style) ── */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 140px;
  padding-bottom: 80px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.hero-content {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 60px;
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3.8rem, 9vw, 8rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-title .char {
  display: inline-block;
}

.hero-title .ghost {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.15);
  transition: -webkit-text-stroke 0.3s;
}

.hero-title .ghost:hover {
  -webkit-text-stroke: 1.5px var(--accent-red);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-sub strong {
  color: var(--text);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* TRIONN Magnetic Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 40px;
  cursor: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-expo), box-shadow 0.3s;
}

.btn-primary {
  background: var(--accent-red);
  color: #fff;
  border: none;
  box-shadow: 0 12px 30px rgba(255, 59, 59, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(255, 59, 59, 0.55);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-light);
}

.btn-outline:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.2);
}

/* Hero Interactive Vector Visualizer */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-svg-box {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1;
  position: relative;
}

.hero-svg-box svg {
  width: 100%;
  height: 100%;
}

/* ── MARQUEE TICKER BANNER (TRIONN Signature) ── */
.marquee-wrapper {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 5;
}

.marquee-track {
  display: inline-flex;
  gap: 48px;
  animation: marqueeScroll 25s linear infinite;
}

.marquee-item {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 20px;
}

.marquee-item span.symbol {
  color: var(--accent-red);
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── ANIMEJS & MOTION PLAYGROUND ── */
.sandbox-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 56px 48px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.sandbox-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-cyan), var(--accent-green));
}

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

.sandbox-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ctrl-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.25s;
}

.ctrl-btn:hover, .ctrl-btn.active {
  background: var(--surface-3);
  border-color: var(--accent-red);
  color: var(--text);
}

.sandbox-stage {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: center;
}

.sandbox-canvas {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  height: 360px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sandbox-dots-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 18px;
  padding: 24px;
}

.dot-item {
  width: 24px;
  height: 24px;
  background: var(--accent-red);
  border-radius: 6px;
  cursor: pointer;
}

.sandbox-params {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.param-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.param-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

.param-val {
  color: var(--accent-cyan);
}

.param-slider {
  width: 100%;
  accent-color: var(--accent-red);
  cursor: pointer;
}

/* ── ABOUT SECTION ── */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}

.about-img-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.about-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(15%);
  transition: filter 0.5s, transform 0.5s var(--ease-expo);
}

.about-img-wrap:hover img {
  filter: grayscale(0%);
  transform: scale(1.04);
}

.about-img-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text);
  background: rgba(10, 12, 20, 0.88);
  backdrop-filter: blur(12px);
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.about-body p {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.about-body p strong {
  color: var(--text);
  font-weight: 600;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: 16px;
  text-align: center;
  position: relative;
  transition: transform 0.3s var(--ease-expo), border-color 0.3s;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-red);
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--accent-cyan);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── SKILLS & CAPABILITIES ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  position: relative;
  transition: border-color 0.3s, transform 0.3s var(--ease-expo);
}

.skill-card:hover {
  border-color: rgba(0, 240, 255, 0.3);
  transform: translateY(-4px);
}

.skill-card-head {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.skill-card-head svg {
  width: 26px;
  height: 26px;
  color: var(--accent-cyan);
}

.skill-bars-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skill-bar-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-bar-info {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.skill-bar-name { color: var(--text); }
.skill-bar-pct { color: var(--accent-red); }

.skill-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-cyan));
  border-radius: 2px;
  transition: width 1.2s var(--ease-expo);
}

.skill-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 8px 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 30px;
  color: var(--text-muted);
  transition: all 0.25s;
}

.skill-tag.featured {
  border-color: rgba(255, 59, 59, 0.3);
  color: var(--accent-red);
  background: rgba(255, 59, 59, 0.06);
}

.skill-tag:hover {
  transform: scale(1.05);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.08);
}

/* ── EXPERIENCE TIMELINE ── */
.timeline {
  position: relative;
  padding-left: 44px;
}

.timeline-line {
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-red), var(--accent-cyan), transparent);
}

.tl-item {
  position: relative;
  margin-bottom: 56px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  transition: transform 0.3s var(--ease-expo), border-color 0.3s;
}

.tl-item:hover {
  transform: translateX(8px);
  border-color: rgba(255, 59, 59, 0.35);
}

.tl-dot {
  position: absolute;
  left: -52px;
  top: 40px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent-red);
  box-shadow: 0 0 12px var(--accent-red);
}

.tl-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 12px;
}

.tl-period {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  letter-spacing: 0.1em;
  padding: 4px 14px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 12px;
}

.tl-company {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tl-role {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.tl-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

/* ── PROJECTS SHOWCASE ── */
.projects-filter {
  display: flex;
  gap: 14px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 12px 24px;
  border-radius: 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #fff;
  box-shadow: 0 10px 25px rgba(255, 59, 59, 0.35);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 44px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 340px;
  transition: transform 0.4s var(--ease-expo), border-color 0.3s, box-shadow 0.4s;
  perspective: 1000px;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.project-num {
  font-family: var(--font-heading);
  font-size: 4.5rem;
  font-weight: 900;
  position: absolute;
  top: 20px;
  right: 32px;
  color: rgba(255, 255, 255, 0.03);
  line-height: 1;
  pointer-events: none;
  transition: color 0.3s;
}

.project-card:hover .project-num {
  color: rgba(0, 240, 255, 0.08);
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 14px;
  transition: color 0.3s;
}

.project-card:hover .project-title {
  color: var(--accent-cyan);
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.tech-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 6px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--accent-cyan);
}

/* ── EDUCATION GRID ── */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.edu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  position: relative;
  transition: all 0.35s var(--ease-expo);
}

.edu-card:hover {
  border-color: var(--accent-red);
  transform: translateY(-6px);
}

.edu-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-red);
  letter-spacing: 0.15em;
  margin-bottom: 18px;
  display: block;
}

.edu-deg {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.3;
}

.edu-inst {
  font-size: 0.92rem;
  color: var(--accent-cyan);
  margin-bottom: 16px;
}

.edu-yr {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 4px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: inline-block;
}

/* ── CLI TERMINAL ── */
.terminal-box {
  background: #080a12;
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7);
  max-width: 840px;
  margin: 0 auto;
  overflow: hidden;
  font-family: var(--font-mono);
}

.terminal-top {
  background: #111422;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.t-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.t-dot.r { background: #ff5f56; }
.t-dot.y { background: #ffbd2e; }
.t-dot.g { background: #27c93f; }

.terminal-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.terminal-body {
  padding: 32px;
  min-height: 340px;
  max-height: 460px;
  overflow-y: auto;
  font-size: 0.88rem;
  line-height: 1.8;
}

.term-row { margin-bottom: 6px; }
.term-prompt { color: var(--accent-green); }
.term-cmd { color: var(--text); font-weight: 700; }
.term-out { color: var(--text-muted); }
.term-key { color: var(--accent-cyan); }
.term-val { color: var(--accent-gold); }

.term-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.term-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  flex: 1;
  caret-color: var(--accent-red);
}

/* ── CONTACT & FOOTER ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.contact-headline {
  font-family: var(--font-heading);
  font-size: clamp(3.2rem, 6vw, 5.2rem);
  font-weight: 900;
  line-height: 1.02;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.contact-headline span {
  background: linear-gradient(135deg, var(--accent-red), var(--accent-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 40px;
}

.social-btns {
  display: flex;
  gap: 16px;
}

.soc-btn {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.88rem;
  transition: all 0.3s var(--ease-expo);
}

.soc-btn:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(255, 59, 59, 0.45);
}

.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 44px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.form-input, .form-textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  cursor: none;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.15);
}

.form-textarea {
  min-height: 130px;
  resize: vertical;
}

footer {
  padding: 36px 48px;
  background: var(--bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-brand {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--accent-red);
}

/* ── RESPONSIVE MEDIA QUERIES ── */
@media (max-width: 992px) {
  .hero-content, .about-grid, .contact-grid, .sandbox-stage {
    grid-template-columns: 1fr;
  }
  .projects-grid, .skills-grid, .edu-grid {
    grid-template-columns: 1fr;
  }
  section { padding: 90px 24px; }
  nav { padding: 18px 24px; }
  .nav-links, .nav-status { display: none; }
  .nav-burger { display: flex; }
}
