/* ═══════════════════════════════════════════════════════════
   DESIGN SYSTEM — 3D DEVELOPER PORTFOLIO
   ═══════════════════════════════════════════════════════════ */

/* ─── CSS CUSTOM PROPERTIES ─── */
:root {
  /* Colors */
  --bg-base: #050510;
  --bg-section: #080820;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-h: rgba(255, 255, 255, 0.06);

  --violet: #7c3aed;
  --violet-light: #a855f7;
  --cyan: #06b6d4;
  --rose: #f43f5e;
  --amber: #f59e0b;
  --green: #10b981;

  --grad-primary: linear-gradient(135deg, var(--violet), var(--cyan));
  --grad-hero: linear-gradient(135deg, #7c3aed 0%, #06b6d4 50%, #f43f5e 100%);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #475569;

  --border: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(124, 58, 237, 0.4);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;
  --space-3xl: 8rem;

  /* Typography */
  --font-head: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.3);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-card-h: 0 20px 60px rgba(124, 58, 237, 0.2);

  /* Transitions */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 150ms;
  --dur-med: 300ms;
  --dur-slow: 600ms;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── THREE.JS CANVAS ─── */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ─── CUSTOM CURSOR ─── */
.cursor {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(124, 58, 237, 0.8);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform var(--dur-fast) var(--ease-smooth),
    width var(--dur-fast), height var(--dur-fast),
    border-color var(--dur-fast),
    background var(--dur-fast);
  will-change: transform;
}

.cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--violet);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 80ms;
  will-change: transform;
}

@media (hover: none) {

  .cursor,
  .cursor-dot {
    display: none;
  }
}

/* ─── UTILITIES ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform var(--dur-med) var(--ease-spring),
    box-shadow var(--dur-med) var(--ease-smooth),
    background var(--dur-med);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--dur-med);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.5);
}

.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.7);
}

.btn-outline {
  background: transparent;
  color: var(--violet-light);
  border: 1.5px solid rgba(124, 58, 237, 0.5);
}

.btn-outline:hover {
  background: rgba(124, 58, 237, 0.1);
  border-color: var(--violet);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ─── NAVBAR ─── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  transition: background var(--dur-slow), box-shadow var(--dur-slow), padding var(--dur-med);
}

.navbar.scrolled {
  background: rgba(5, 5, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
  padding: 1rem 2.5rem;
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.logo-bracket {
  color: var(--violet);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  transition: color var(--dur-med);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-primary);
  border-radius: 2px;
  transition: width var(--dur-med) var(--ease-spring);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--dur-med), opacity var(--dur-med);
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-xl);
  padding: 7rem 2.5rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.4rem 1rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
  width: fit-content;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(16, 185, 129, 0);
  }
}

.hero-title {
  font-family: var(--font-head);
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.title-line {
  display: block;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
}

.title-line:first-child {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0;
  margin-bottom: 0.25rem;
}

.hero-name {
  color: var(--text-primary);
}

.title-gradient {
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.8;
}

.highlight {
  color: var(--violet-light);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding-top: var(--space-sm);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.stat-sym {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--violet);
  margin-left: 2px;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ─── HERO 3D CONTAINER ─── */
.hero-3d-container {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.orb-1 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.4) 0%, transparent 70%);
  top: 10%;
  left: 5%;
  animation: float-orb 6s ease-in-out infinite;
}

.orb-2 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, transparent 70%);
  bottom: 10%;
  right: 5%;
  animation: float-orb 8s ease-in-out infinite reverse;
}

@keyframes float-orb {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(20px, -30px) scale(1.05);
  }

  66% {
    transform: translate(-15px, 20px) scale(0.95);
  }
}

/* Floating hero cards */
.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.75rem 1.1rem;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

.fc-icon {
  font-size: 1.3rem;
}

.fc-text {
  display: flex;
  flex-direction: column;
}

.fc-text span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.fc-text small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.floating-card {
  animation: float-card 5s ease-in-out infinite;
  top: 12%;
  left: 10%;
}

.fc-2 {
  animation: float-card 7s ease-in-out infinite reverse;
  bottom: 20%;
  left: 0;
}

.fc-3 {
  animation: float-card 6s ease-in-out infinite 1s;
  top: 30%;
  right: 0;
}

@keyframes float-card {

  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-16px) rotate(1deg);
  }
}

/* Three.js renders in hero section via the main canvas */

/* ─── SCROLL HINT ─── */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fade-in-up 1s 2s both;
}

.mouse {
  width: 22px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.mouse-wheel {
  width: 3px;
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  animation: mouse-scroll 2s ease infinite;
}

@keyframes mouse-scroll {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(14px);
    opacity: 0;
  }
}

/* ─── SECTION SHARED ─── */
.section {
  position: relative;
  z-index: 1;
  padding: var(--space-3xl) 0;
}

.section:nth-child(even) {
  background: var(--bg-section);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--violet-light);
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.25);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

/* ─── ABOUT ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-2xl);
  align-items: start;
}

.about-visual {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.about-photo-wrap {
  position: relative;
  width: fit-content;
}

.photo-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.3), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

.photo-placeholder {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(124, 58, 237, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.avatar-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(var(--violet), var(--cyan), var(--violet));
  -webkit-mask: radial-gradient(circle, transparent calc(100% - 3px), white calc(100% - 3px));
  mask: radial-gradient(circle, transparent calc(100% - 3px), white calc(100% - 3px));
  animation: spin-ring 8s linear infinite;
}

@keyframes spin-ring {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.avatar-icon {
  width: 140px;
  height: 140px;
  position: relative;
  z-index: 1;
}

.photo-badge {
  position: absolute;
  bottom: 0;
  right: -10px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
  white-space: nowrap;
}

/* Code Block */
.about-code-block {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.code-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border);
}

.cb-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.cb-file {
  margin-left: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.code-content {
  padding: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.c-kw {
  color: #a855f7;
}

.c-var {
  color: #60a5fa;
}

.c-key {
  color: #f1f5f9;
}

.c-str {
  color: #34d399;
}

/* About text */
.about-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.about-intro {
  font-size: 1.1rem;
  color: var(--text-primary);
  line-height: 1.8;
}

.about-text p {
  color: var(--text-secondary);
  line-height: 1.8;
}

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

.about-values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--space-sm);
}

.value-chip {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color var(--dur-med), color var(--dur-med), background var(--dur-med);
}

.value-chip:hover {
  border-color: rgba(124, 58, 237, 0.5);
  color: var(--violet-light);
  background: rgba(124, 58, 237, 0.08);
}

/* ─── SKILLS ─── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: border-color var(--dur-med), box-shadow var(--dur-med);
}

.skill-category:hover {
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.08);
}

.skill-cat-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--space-md);
}

.skill-bars {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.skill-item {}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.skill-pct {
  color: var(--text-muted);
  font-weight: 500;
}

.skill-bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 3px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent, var(--violet)), var(--accent-end, var(--cyan)));
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-orbit {
  text-align: center;
}

.tech-orbit-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.tech-pill {
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: all var(--dur-med) var(--ease-spring);
  cursor: default;
}

.tech-pill:hover {
  background: rgba(124, 58, 237, 0.12);
  border-color: rgba(124, 58, 237, 0.5);
  color: var(--violet-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.2);
}

/* ─── PROJECTS ─── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform var(--dur-med) var(--ease-spring),
    box-shadow var(--dur-med) var(--ease-smooth),
    border-color var(--dur-med);
  cursor: pointer;
  transform-style: preserve-3d;
}

.project-card:hover {
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: var(--shadow-card-h);
}

.project-card--featured {
  grid-column: span 1;
  border-color: rgba(6, 182, 212, 0.2);
}

.project-card--featured:hover {
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 20px 60px rgba(6, 182, 212, 0.2);
}

/* Glow sweep on hover */
.card-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(124, 58, 237, 0.12) 0%,
      transparent 60%);
  transition: opacity var(--dur-med);
  z-index: 0;
}

.project-card:hover .card-glow {
  opacity: 1;
}

.card-inner {
  position: relative;
  z-index: 1;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  height: 100%;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.card-links {
  display: flex;
  gap: 0.5rem;
}

.card-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--dur-fast), background var(--dur-fast);
}

.card-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.12);
}

.card-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.card-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  padding: 0.2rem 0.65rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border);
}

.card-stat {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.card-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(124, 58, 237, 0.15);
  color: var(--violet-light);
  border: 1px solid rgba(124, 58, 237, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-badge--cyan {
  background: rgba(6, 182, 212, 0.15);
  color: var(--cyan);
  border-color: rgba(6, 182, 212, 0.25);
}

.card-badge--rose {
  background: rgba(244, 63, 94, 0.15);
  color: var(--rose);
  border-color: rgba(244, 63, 94, 0.25);
}

.card-badge--amber {
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber);
  border-color: rgba(245, 158, 11, 0.25);
}

.card-badge--green {
  background: rgba(16, 185, 129, 0.15);
  color: var(--green);
  border-color: rgba(16, 185, 129, 0.25);
}

/* ─── CONTACT ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact-intro {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.contact-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: border-color var(--dur-med), transform var(--dur-med) var(--ease-spring),
    box-shadow var(--dur-med);
  color: inherit;
}

.contact-link:hover {
  border-color: rgba(124, 58, 237, 0.4);
  transform: translateX(8px);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.1);
}

.cl-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--violet-light);
  flex-shrink: 0;
}

.cl-text {
  display: flex;
  flex-direction: column;
}

.cl-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
}

.cl-value {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--dur-med), box-shadow var(--dur-med), background var(--dur-med);
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(124, 58, 237, 0.6);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
  background: rgba(124, 58, 237, 0.04);
}

.btn-send {
  align-self: flex-start;
  padding: 0.9rem 2rem;
}

/* ─── FOOTER ─── */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: var(--space-xl) 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-logo {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text-primary);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  gap: var(--space-sm);
}

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: all var(--dur-med);
}

.footer-social:hover {
  background: rgba(124, 58, 237, 0.15);
  border-color: rgba(124, 58, 237, 0.4);
  color: var(--violet-light);
  transform: translateY(-3px);
}

/* ─── ANIMATIONS (initial states for GSAP) ─── */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
}

/* ─── MOBILE MENU ─── */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: rgba(8, 8, 30, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 0;
    padding: 5rem 2rem 2rem;
    transition: right var(--dur-med) var(--ease-smooth);
    border-left: 1px solid var(--border);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links li {
    border-bottom: 1px solid var(--border);
  }

  .nav-link {
    display: block;
    padding: 1rem 0;
    font-size: 1.1rem;
  }

  .hamburger {
    display: flex;
    z-index: 110;
  }

  .nav-cta {
    display: none;
  }

  .hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 6rem;
  }

  .hero-content {
    align-items: center;
  }

  .hero-3d-container {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-visual {
    align-items: center;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 5rem 1.25rem 2rem;
  }

  .container {
    padding: 0 1.25rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: var(--space-md);
  }

  .navbar {
    padding: 1rem 1.25rem;
  }

  .navbar.scrolled {
    padding: 0.75rem 1.25rem;
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .floating-card {
    display: none;
  }
}