/* ===========================
   Mass Labs — Design System
   Warm & Vibrant Edition
   =========================== */

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

:root {
  /* Warm Dark Backgrounds */
  --bg-primary: #0c0a10;
  --bg-secondary: #141018;
  --bg-card: #1a1520;
  --bg-card-hover: #221c2c;
  --border: #2a2035;
  --border-glow: rgba(255, 107, 53, 0.35);

  /* Warm Accent Palette */
  --accent: #ff6b35;
  --accent-hover: #e85d2c;
  --accent-glow: rgba(255, 107, 53, 0.15);
  --accent-light: #ff9f6c;
  --coral: #ff4e6a;
  --coral-glow: rgba(255, 78, 106, 0.15);
  --amber: #ffb830;
  --amber-glow: rgba(255, 184, 48, 0.12);
  --electric: #a855f7;
  --electric-glow: rgba(168, 85, 247, 0.12);
  --green: #34d399;
  --rose: #fb7185;

  --text-primary: #f1e8e0;
  --text-secondary: #d4c4b8;
  --text-muted: #8a7a6e;

  /* Typography */
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --section-padding: 120px 0;
  --container-width: 1140px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

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

/* ---------- Selection ---------- */
::selection {
  background: var(--accent);
  color: #fff;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--coral));
  border-radius: 3px;
}

/* ==============================
   GLOBAL ANIMATED BACKGROUND
   ============================== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 20%, rgba(255, 107, 53, 0.06) 0%, transparent 100%),
    radial-gradient(ellipse 500px 500px at 80% 60%, rgba(168, 85, 247, 0.05) 0%, transparent 100%),
    radial-gradient(ellipse 400px 300px at 50% 90%, rgba(255, 78, 106, 0.04) 0%, transparent 100%);
  z-index: -1;
  pointer-events: none;
  animation: ambientShift 20s ease-in-out infinite alternate;
}

@keyframes ambientShift {
  0% {
    opacity: 0.8;
    filter: hue-rotate(0deg);
  }

  50% {
    opacity: 1;
    filter: hue-rotate(15deg);
  }

  100% {
    opacity: 0.9;
    filter: hue-rotate(-10deg);
  }
}

/* ==============================
   NAVBAR
   ============================== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s var(--ease);
}

#navbar.scrolled {
  padding: 12px 0;
  background: rgba(12, 10, 16, 0.85);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1001;
  transition: transform 0.3s var(--ease);
}

.nav-logo:hover {
  transform: scale(1.05);
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--accent), var(--coral));
  border-radius: 11px;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  animation: logoPulse 3s ease-in-out infinite;
  box-shadow: 0 2px 16px rgba(255, 107, 53, 0.3);
}

@keyframes logoPulse {

  0%,
  100% {
    box-shadow: 0 2px 16px rgba(255, 107, 53, 0.3);
  }

  50% {
    box-shadow: 0 4px 24px rgba(255, 107, 53, 0.5);
  }
}

.logo-text {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.3px;
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.3s var(--ease);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--coral));
  transition: all 0.3s var(--ease);
  border-radius: 1px;
  transform: translateX(-50%);
}

.nav-links a:hover {
  color: var(--accent-light);
}

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

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ==============================
   HERO
   ============================== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

/* Warm radial overlays */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 500px at 30% 20%, rgba(255, 107, 53, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 600px 400px at 70% 70%, rgba(255, 78, 106, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 500px 500px at 90% 20%, rgba(168, 85, 247, 0.06) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% {
    opacity: 0.8;
    transform: scale(1);
  }

  100% {
    opacity: 1;
    transform: scale(1.05);
  }
}

/* Animated grid (subtle) */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 107, 53, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 107, 53, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
  pointer-events: none;
  animation: gridDrift 30s linear infinite;
}

@keyframes gridDrift {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(60px, 60px);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
  padding: 0 24px;
  animation: heroFadeUp 1.2s var(--ease) both;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
  }

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255, 107, 53, 0.08);
  border: 1px solid rgba(255, 107, 53, 0.2);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-light);
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
  animation: badgeGlow 3s ease-in-out infinite alternate;
}

@keyframes badgeGlow {
  0% {
    box-shadow: 0 0 15px rgba(255, 107, 53, 0);
    border-color: rgba(255, 107, 53, 0.2);
  }

  100% {
    box-shadow: 0 0 25px rgba(255, 107, 53, 0.15);
    border-color: rgba(255, 107, 53, 0.4);
  }
}

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

@keyframes pulseDot {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(52, 211, 153, 0);
  }
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2px;
  margin-bottom: 20px;
  animation: titleReveal 1s var(--ease) 0.3s both;
}

@keyframes titleReveal {
  from {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(8px);
  }

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

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--coral) 40%, var(--amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientFlow 4s ease-in-out infinite;
}

@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.hero-subtitle {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
  animation: fadeIn 1s var(--ease) 0.6s both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 56px;
  animation: fadeIn 1s var(--ease) 0.8s both;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.4s var(--ease);
  border: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--coral) 100%);
  color: #fff;
  box-shadow: 0 4px 24px rgba(255, 107, 53, 0.35);
}

.btn-primary::before {
  background: linear-gradient(135deg, var(--coral) 0%, var(--accent) 100%);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 40px rgba(255, 107, 53, 0.5);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary span,
.btn-primary svg {
  position: relative;
  z-index: 1;
}

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

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: rgba(255, 107, 53, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.1);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  animation: fadeIn 1s var(--ease) 1s both;
}

.stat {
  text-align: center;
  transition: transform 0.3s var(--ease);
}

.stat:hover {
  transform: translateY(-4px);
}

.stat-value {
  display: block;
  font-size: 30px;
  font-weight: 800;
  font-family: var(--font-mono);
  background: linear-gradient(135deg, var(--accent) 0%, var(--amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
  opacity: 0.3;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: float 3s ease-in-out infinite;
}

.scroll-arrow {
  width: 16px;
  height: 16px;
  border-right: 2px solid var(--accent-light);
  border-bottom: 2px solid var(--accent-light);
  transform: rotate(45deg);
  opacity: 0.6;
}

@keyframes float {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

/* ==============================
   SECTIONS — Common
   ============================== */
section {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {

  0%,
  100% {
    opacity: 0.7;
  }

  50% {
    opacity: 1;
  }
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* ==============================
   ABOUT
   ============================== */
#about {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

#about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--coral), transparent);
  animation: lineGlow 4s ease-in-out infinite alternate;
}

@keyframes lineGlow {
  0% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
  }
}

/* Floating orbs in About section */
#about::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  top: 20%;
  right: -100px;
  animation: orbFloat 12s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes orbFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-40px, 30px) scale(1.1);
  }

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

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about-card {
  padding: 36px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: all 0.5s var(--ease);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.08) 0%, rgba(255, 78, 106, 0.04) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

/* Animated corner glow */
.about-card::after {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.2) 0%, transparent 70%);
  top: -60px;
  right: -60px;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  transform: scale(0.5);
}

.about-card:hover {
  border-color: rgba(255, 107, 53, 0.3);
  transform: translateY(-6px);
  box-shadow:
    0 12px 40px rgba(255, 107, 53, 0.1),
    0 0 0 1px rgba(255, 107, 53, 0.1);
}

.about-card:hover::before {
  opacity: 1;
}

.about-card:hover::after {
  opacity: 1;
  transform: scale(1);
}

.about-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.12), rgba(255, 78, 106, 0.08));
  border-radius: 16px;
  margin-bottom: 20px;
  color: var(--accent);
  transition: all 0.4s var(--ease);
}

.about-card:hover .about-icon {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.2);
}

.about-card h3 {
  position: relative;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  transition: color 0.3s var(--ease);
}

.about-card:hover h3 {
  color: var(--accent-light);
}

.about-card p {
  position: relative;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ==============================
   PROJECTS
   ============================== */
#projects {
  position: relative;
  overflow: hidden;
}

.project-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.4s var(--ease);
}

.tab-btn:hover {
  border-color: var(--accent);
  color: var(--text-primary);
  background: rgba(255, 107, 53, 0.05);
  transform: translateY(-2px);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--coral));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
  transform: translateY(-1px);
}

.tab-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transition: all 0.3s var(--ease);
}

.tab-dot--active {
  background: var(--green);
}

.tab-dot--soon {
  background: var(--amber);
}

.tab-btn.active .tab-dot--active,
.tab-btn.active .tab-dot--soon {
  background: #fff;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.project-card {
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: all 0.5s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  animation: cardIn 0.6s var(--ease-spring) forwards;
  position: relative;
  overflow: hidden;
}

/* Animated gradient border on hover */
.project-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 19px;
  background: linear-gradient(135deg, var(--accent), var(--coral), var(--amber), var(--accent));
  background-size: 300% 300%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  animation: borderGradient 4s ease infinite;
}

@keyframes borderGradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.project-card:nth-child(1) {
  animation-delay: 0s;
}

.project-card:nth-child(2) {
  animation-delay: 0.1s;
}

.project-card:nth-child(3) {
  animation-delay: 0.2s;
}

.project-card:nth-child(4) {
  animation-delay: 0.3s;
}

.project-card:nth-child(5) {
  animation-delay: 0.4s;
}

@keyframes cardIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.project-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 48px rgba(255, 107, 53, 0.12);
}

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

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

.project-name {
  font-size: 18px;
  font-weight: 700;
  transition: color 0.3s var(--ease);
}

.project-card:hover .project-name {
  color: var(--accent-light);
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 5px 14px;
  border-radius: 50px;
}

.project-status--active {
  color: var(--green);
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.15);
}

.project-status--soon {
  color: var(--amber);
  background: rgba(255, 184, 48, 0.1);
  border: 1px solid rgba(255, 184, 48, 0.15);
}

.project-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulseDot 2s infinite;
}

.project-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  transition: all 0.3s var(--ease);
}

.project-link:hover {
  gap: 12px;
  color: var(--accent-light);
}

/* ==============================
   CONTACT
   ============================== */
#contact {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--coral), var(--amber), transparent);
  animation: lineGlow 4s ease-in-out infinite alternate;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.contact-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.04), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.contact-item:hover {
  border-color: rgba(255, 107, 53, 0.3);
  transform: translateX(6px);
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.08);
}

.contact-item:hover::before {
  opacity: 1;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.12), rgba(255, 78, 106, 0.08));
  border-radius: 14px;
  color: var(--accent);
  flex-shrink: 0;
  transition: all 0.4s var(--ease);
}

.contact-item:hover .contact-icon {
  transform: scale(1.1) rotate(-5deg);
}

.contact-item h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  transition: color 0.3s;
}

.contact-link:hover {
  color: var(--accent);
}

.contact-text {
  font-size: 15px;
  color: var(--text-primary);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: border-color 0.4s var(--ease);
}

.contact-form:focus-within {
  border-color: rgba(255, 107, 53, 0.3);
  box-shadow: 0 4px 30px rgba(255, 107, 53, 0.05);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.3s var(--ease);
}

.form-group:focus-within label {
  color: var(--accent);
}

.form-group input,
.form-group textarea {
  padding: 13px 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  transition: all 0.4s var(--ease);
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
  background: rgba(26, 21, 32, 0.8);
}

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

.form-note {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.form-note code {
  font-family: var(--font-mono);
  background: rgba(255, 107, 53, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  color: var(--accent);
}

/* ==============================
   FOOTER
   ============================== */
#footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
  position: relative;
}

#footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: all 0.3s;
  position: relative;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ==============================
   REVEAL ANIMATION
   ============================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease-spring);
}

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

/* Staggered reveals */
.reveal:nth-child(2) {
  transition-delay: 0.1s;
}

.reveal:nth-child(3) {
  transition-delay: 0.2s;
}

/* About card stagger */
.about-card.reveal:nth-child(1) {
  transition-delay: 0s;
}

.about-card.reveal:nth-child(2) {
  transition-delay: 0.15s;
}

.about-card.reveal:nth-child(3) {
  transition-delay: 0.3s;
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 768px) {
  :root {
    --section-padding: 80px 0;
  }

  /* Mobile Nav */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    background: rgba(12, 10, 16, 0.97);
    backdrop-filter: blur(24px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: all;
  }

  .nav-links a {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
  }

  .nav-links a::after {
    display: none;
  }

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

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

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-form {
    padding: 24px;
  }

  /* Hero */
  .hero-actions {
    flex-direction: column;
  }

  .hero-stats {
    gap: 24px;
  }

  .stat-value {
    font-size: 24px;
  }

  /* Footer */
  .footer-top {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .hero-scroll-hint {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
    letter-spacing: -1px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .project-tabs {
    flex-direction: column;
    gap: 8px;
  }

  .tab-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}