/* ============================================
   DESIGN SYSTEM: AI Engineer Portfolio
   ============================================ */

:root {
  /* Colors: dark theme with electric accents */
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-tertiary: #1a1a24;
  --bg-card: rgba(17, 17, 24, 0.7);
  --bg-card-hover: rgba(26, 26, 36, 0.9);
  
  --text-primary: #e8e8ed;
  --text-secondary: #9494a8;
  --text-tertiary: #5c5c72;
  --text-muted: #3a3a4e;
  
  --accent-primary: #6366f1;       /* Indigo */
  --accent-secondary: #8b5cf6;     /* Violet */
  --accent-tertiary: #a78bfa;      /* Light violet */
  --accent-cyan: #22d3ee;
  --accent-emerald: #34d399;
  --accent-amber: #fbbf24;
  --accent-rose: #f43f5e;
  
  --gradient-primary: linear-gradient(135deg, #6366f1, #8b5cf6, #a78bfa);
  --gradient-accent: linear-gradient(135deg, #6366f1, #22d3ee);
  --gradient-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
  
  --border-color: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Spacing */
  --section-padding: clamp(4rem, 10vh, 8rem);
  --container-max: 1200px;
  --container-padding: clamp(1.25rem, 4vw, 2rem);
  
  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
}

/* ============================================
   RESET & BASE
   ============================================ */

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

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

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

::selection {
  background: rgba(99, 102, 241, 0.3);
  color: #fff;
}

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

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

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

.mono-text {
  font-family: var(--font-mono);
  font-size: 0.85em;
}

/* ============================================
   AMBIENT BACKGROUND
   ============================================ */

.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3), transparent 70%);
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2), transparent 70%);
  bottom: -150px;
  left: -100px;
  animation-delay: -7s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.15), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%      { transform: translate(30px, -40px) scale(1.05); }
  50%      { transform: translate(-20px, 20px) scale(0.95); }
  75%      { transform: translate(15px, 30px) scale(1.02); }
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.4s var(--ease-out);
  backdrop-filter: blur(0px);
}

.navbar.scrolled {
  padding: 0.6rem 0;
  backdrop-filter: blur(20px) saturate(1.8);
  background: rgba(10, 10, 15, 0.75);
  border-bottom: 1px solid var(--border-color);
}

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

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: opacity 0.3s;
}

.nav-logo:hover {
  opacity: 0.8;
}

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

.logo-dot {
  color: var(--accent-cyan);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px;
  transition: width 0.3s var(--ease-out);
}

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

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

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

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all 0.3s var(--ease-out);
}

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

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

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

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}

.mobile-menu.active {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.mobile-link {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.3s;
}

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

/* ============================================
   HERO
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem var(--container-padding) 4rem;
  position: relative;
  max-width: var(--container-max);
  margin: 0 auto;
  gap: 4rem;
}

.hero-content {
  flex: 1;
  max-width: 640px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-emerald);
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-emerald);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-line {
  display: block;
  animation: fadeInUp 0.8s var(--ease-out) both;
}

.hero-line-1 { animation-delay: 0.3s; }
.hero-line-2 { animation-delay: 0.45s; }
.hero-line-3 { animation-delay: 0.6s; }

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

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 520px;
  animation: fadeInUp 0.8s var(--ease-out) 0.75s both;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s var(--ease-out) 0.9s both;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

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

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.03);
}

/* Metrics */
.hero-metrics {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  animation: fadeInUp 0.8s var(--ease-out) 1.05s both;
}

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

.metric-value {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.metric-suffix {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

/* Terminal */
.hero-terminal {
  flex: 0 0 420px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  animation: fadeInUp 0.8s var(--ease-out) 1.2s both;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border-color);
}

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

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

.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #28c840; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-tertiary);
}

.terminal-body {
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.8;
  min-height: 280px;
}

.terminal-line {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  flex-wrap: wrap;
}

.prompt {
  color: var(--accent-emerald);
  flex-shrink: 0;
}

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

.cursor {
  color: var(--accent-primary);
  animation: blink 1s step-end infinite;
}

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

.terminal-output {
  color: var(--text-secondary);
  padding-left: 1.1rem;
  margin-bottom: 0.25rem;
}

.terminal-output .key {
  color: var(--accent-cyan);
}

.terminal-output .value-str {
  color: var(--accent-emerald);
}

.terminal-output .value-num {
  color: var(--accent-amber);
}

.terminal-output .value-bool {
  color: var(--accent-rose);
}

.terminal-output .bracket {
  color: var(--text-tertiary);
}

/* ============================================
   SUBPAGES & MAIN CONTENT
   ============================================ */

.subpage {
  padding-top: 80px;
}

.page-header {
  padding: 6rem 0 3rem;
  text-align: center;
  animation: fadeInUp 0.8s var(--ease-out) both;
}

.page-header .hero-title {
  margin-bottom: 1rem;
}

.page-header .hero-subtitle {
  margin: 0 auto;
}

.about-skills-top {
  text-align: center;
  padding: 0 1rem 2.5rem;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s var(--ease-out) 0.1s both;
}

.about-skills-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted, var(--text-secondary));
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.about-skills-tags {
  justify-content: center;
  gap: 0.5rem 0.6rem;
}

.main-content {
  min-height: 100vh;
}

/* ============================================
   SECTIONS COMMON
   ============================================ */

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

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

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
  font-size: 1.02rem;
}

.about-lead {
  font-size: 1.15rem !important;
  color: var(--text-primary) !important;
  font-weight: 500;
}

.about-lead em {
  color: var(--accent-tertiary);
  font-style: normal;
}

.about-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.card-glow {
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.5s;
}

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

.about-card-content {
  position: relative;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: border-color 0.4s;
}

.about-card:hover .about-card-content {
  border-color: var(--border-hover);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  margin-bottom: 1.25rem;
}

.about-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

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

/* ============================================
   SKILLS SECTION
   ============================================ */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.75rem;
  transition: all 0.4s var(--ease-out);
}

.skill-category:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.category-icon {
  width: 40px;
  height: 40px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.category-header h3 {
  font-size: 1rem;
  font-weight: 700;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-secondary);
  transition: all 0.3s;
}

.skill-tag:hover {
  color: var(--accent-tertiary);
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(99, 102, 241, 0.06);
}

/* ============================================
   PROJECTS SECTION
   ============================================ */

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.project-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out);
}

.project-card:hover {
  transform: translateY(-3px);
}

.project-card-glow {
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  opacity: 0;
  transition: opacity 0.5s;
}

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

.project-card-content {
  position: relative;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: border-color 0.4s;
}

.project-card:hover .project-card-content {
  border-color: var(--border-hover);
}

.project-card-featured .project-card-content {
  border-color: rgba(99, 102, 241, 0.15);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.project-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-tertiary);
}

.status-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.status-active {
  background: var(--accent-emerald);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
  animation: pulse 2s ease-in-out infinite;
}

.status-complete {
  background: var(--accent-primary);
}

.status-planned {
  background: var(--accent-amber);
}

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

.project-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  color: var(--text-tertiary);
  transition: all 0.3s;
}

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

.project-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.project-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.project-architecture {
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: rgba(0,0,0,0.3);
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.arch-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  display: block;
}

.arch-flow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.arch-node {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.35rem 0.75rem;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 6px;
  color: var(--accent-tertiary);
}

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

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.3rem 0.65rem;
  background: rgba(34, 211, 238, 0.06);
  border: 1px solid rgba(34, 211, 238, 0.15);
  border-radius: 5px;
  color: var(--accent-cyan);
}

/* ============================================
   EXPERIENCE / TIMELINE
   ============================================ */

.timeline {
  position: relative;
  max-width: 700px;
}

.timeline-item {
  display: flex;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.marker-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.marker-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(to bottom, rgba(99, 102, 241, 0.3), rgba(99, 102, 241, 0.05));
  margin-top: 0.5rem;
}

.timeline-content {
  padding-top: 0;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-primary);
  font-weight: 500;
}

.timeline-role {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0.25rem 0 0.15rem;
}

.timeline-company {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  margin-bottom: 0.75rem;
}

.timeline-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
}

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

.timeline-tags span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  color: var(--text-tertiary);
}

/* ============================================
   CONTACT
   ============================================ */

.contact-content {
  max-width: 700px;
}

.contact-lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  transition: all 0.4s var(--ease-out);
}

.contact-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
}

.contact-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-value {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-text {
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll reveal */
.section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 968px) {
  .hero {
    flex-direction: column;
    padding-top: 7rem;
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-subtitle {
    max-width: 100%;
  }
  
  .hero-terminal {
    flex: none;
    width: 100%;
    max-width: 480px;
  }
  
  .hero-metrics {
    justify-content: center;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-links {
    grid-template-columns: 1fr;
  }
  
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
}

@media (max-width: 640px) {
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    justify-content: center;
  }
  
  .hero-metrics {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .metric-divider {
    width: 40px;
    height: 1px;
    display: none;
  }

  .footer-content {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* ============================================
   CONTACT PAGE & FOOTER REFINEMENTS
   ============================================ */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.4s var(--ease-out);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-decoration: none;
}

.contact-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-glow);
}

.contact-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
}

.contact-value {
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.footer {
  margin-top: 6rem;
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

