/* ============================================================
   Suvrajit Karmaker — Premium Portfolio Design System
   Theme: Obsidian Dark + Neon Cyan/Purple Accents
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Fira+Code:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Core palette */
  --bg-primary:    #0a0a0f;
  --bg-secondary:  #111118;
  --bg-tertiary:   #1a1a24;
  --bg-card:       #14141e;
  --bg-glass:      rgba(20, 20, 30, 0.65);

  /* Accent colors */
  --cyan:          #00f2fe;
  --cyan-dim:      rgba(0, 242, 254, 0.15);
  --cyan-glow:     rgba(0, 242, 254, 0.35);
  --purple:        #b14dff;
  --purple-dim:    rgba(177, 77, 255, 0.15);
  --purple-glow:   rgba(177, 77, 255, 0.35);
  --gradient-accent: linear-gradient(135deg, var(--cyan), var(--purple));

  /* Text */
  --text-primary:   #e8e8ef;
  --text-secondary: #9a9ab0;
  --text-muted:     #5e5e78;
  --text-code:      #00f2fe;

  /* Borders */
  --border-subtle:  rgba(255,255,255,0.06);
  --border-glass:   rgba(255,255,255,0.08);

  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-code:    'Fira Code', monospace;

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

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan) var(--bg-secondary);
}

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

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb {
  background: var(--cyan);
  border-radius: 3px;
}

/* ---------- Canvas Background ---------- */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

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

/* ---------- Section Common ---------- */
.section {
  position: relative;
  z-index: 1;
  padding: var(--section-padding);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-code);
  font-size: 13px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.section-label::before {
  content: '//';
  opacity: 0.5;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 50px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gradient-accent);
  margin-top: 16px;
  border-radius: 2px;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

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

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

.navbar.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--border-glass);
  padding: 10px 0;
}

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

.nav-logo {
  font-family: var(--font-code);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-logo span {
  color: var(--cyan);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-links a {
  font-family: var(--font-code);
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cyan);
  background: var(--cyan-dim);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

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

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

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

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

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
  padding-top: 80px;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-code);
  font-size: 13px;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid rgba(0, 242, 254, 0.2);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(0, 242, 254, 0.1); }
  50%      { box-shadow: 0 0 20px rgba(0, 242, 254, 0.25); }
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: #00ff88;
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 8px;
}

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

.hero-role {
  font-family: var(--font-code);
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.hero-summary {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 540px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-code);
  font-size: 14px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.35s var(--ease-out-expo);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-accent);
  color: #0a0a0f;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 242, 254, 0.3), 0 4px 15px rgba(177, 77, 255, 0.2);
}

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

.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-dim);
  transform: translateY(-3px);
}

/* Hero Photo */
.hero-photo-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-photo {
  width: 320px;
  height: 320px;
  border-radius: 24px;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--border-glass);
  position: relative;
  z-index: 2;
  transition: all 0.5s var(--ease-out-expo);
}

.hero-photo:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 40px rgba(0, 242, 254, 0.15);
  transform: scale(1.02);
}

.hero-photo-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 24px;
  background: var(--gradient-accent);
  opacity: 0.15;
  filter: blur(40px);
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  text-align: left;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-value .accent {
  color: var(--cyan);
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ============================================================
   TERMINAL
   ============================================================ */
.terminal-section {
  padding: 80px 0;
}

.terminal {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  max-width: 800px;
  margin: 0 auto;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border-glass);
}

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

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

.terminal-title {
  font-family: var(--font-code);
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 12px;
}

.terminal-body {
  padding: 20px;
  min-height: 300px;
  max-height: 400px;
  overflow-y: auto;
  font-family: var(--font-code);
  font-size: 13px;
  line-height: 1.8;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-tertiary) transparent;
}

.terminal-body::-webkit-scrollbar { width: 4px; }
.terminal-body::-webkit-scrollbar-track { background: transparent; }
.terminal-body::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 2px;
}

.terminal-output {
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal-line {
  margin-bottom: 4px;
}

.terminal-prompt {
  color: var(--cyan);
}

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

.terminal-response {
  color: var(--text-secondary);
}

.terminal-response .highlight {
  color: var(--cyan);
}

.terminal-response .purple {
  color: var(--purple);
}

.terminal-input-line {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 8px;
}

.terminal-input-line .terminal-prompt {
  flex-shrink: 0;
}

#terminal-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-code);
  font-size: 13px;
  flex: 1;
  caret-color: var(--cyan);
}

.terminal-shortcuts {
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid var(--border-glass);
  flex-wrap: wrap;
}

.terminal-shortcuts button {
  font-family: var(--font-code);
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.terminal-shortcuts button:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: var(--cyan-dim);
}

/* ============================================================
   SKILLS / TECH STACK
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.skill-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.skill-category:hover {
  border-color: rgba(0, 242, 254, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.skill-category:hover::before {
  opacity: 1;
}

.skill-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 20px;
  margin-bottom: 18px;
}

.skill-icon.cyan {
  background: var(--cyan-dim);
  color: var(--cyan);
}

.skill-icon.purple {
  background: var(--purple-dim);
  color: var(--purple);
}

.skill-category h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

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

.skill-tag {
  font-family: var(--font-code);
  font-size: 12px;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: 8px;
  transition: all 0.25s ease;
  cursor: default;
}

.skill-tag:hover {
  color: var(--cyan);
  border-color: rgba(0, 242, 254, 0.3);
  background: var(--cyan-dim);
  transform: translateY(-2px);
}

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

.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--purple), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
}

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

.timeline-dot {
  position: absolute;
  left: -33px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--cyan);
  z-index: 2;
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
  background: var(--cyan);
  box-shadow: 0 0 15px var(--cyan-glow);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 28px 32px;
  transition: all 0.4s var(--ease-out-expo);
}

.timeline-card:hover {
  border-color: rgba(0, 242, 254, 0.12);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  transform: translateX(6px);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-company {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-period {
  font-family: var(--font-code);
  font-size: 12px;
  color: var(--cyan);
  background: var(--cyan-dim);
  padding: 4px 12px;
  border-radius: 6px;
  white-space: nowrap;
}

.timeline-role {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  color: var(--purple);
  margin-bottom: 4px;
}

.timeline-location {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.timeline-details {
  list-style: none;
}

.timeline-details li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.timeline-details li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-size: 14px;
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.project-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out-expo);
}

.project-card:hover {
  border-color: rgba(0, 242, 254, 0.12);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
}

.project-card:hover::after {
  transform: scaleX(1);
}

.project-icon {
  font-size: 28px;
  margin-bottom: 20px;
}

.project-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.project-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-tech span {
  font-family: var(--font-code);
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: 6px;
}

/* ============================================================
   ACHIEVEMENTS
   ============================================================ */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.achievement-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  transition: all 0.4s var(--ease-out-expo);
}

.achievement-card:hover {
  border-color: rgba(0, 242, 254, 0.12);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.3);
}

.achievement-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.achievement-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.achievement-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   EDUCATION
   ============================================================ */
.education-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 36px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 700px;
  transition: all 0.4s var(--ease-out-expo);
  flex-wrap: wrap;
  gap: 20px;
}

.education-card:hover {
  border-color: rgba(0, 242, 254, 0.12);
  box-shadow: 0 12px 36px rgba(0,0,0,0.3);
  transform: translateY(-4px);
}

.edu-info h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.edu-info p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.edu-info .edu-location {
  font-size: 13px;
  color: var(--text-muted);
}

.edu-meta {
  text-align: right;
}

.edu-gpa {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--cyan);
}

.edu-gpa-label {
  font-size: 12px;
  color: var(--text-muted);
}

.edu-period {
  font-family: var(--font-code);
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================================
   CONTACT — API REQUEST FORM
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 36px;
}

.contact-info-card h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.contact-info-card > p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.7;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-item-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--cyan-dim);
  color: var(--cyan);
  font-size: 16px;
  flex-shrink: 0;
}

.contact-item-text label {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 2px;
}

.contact-item-text a,
.contact-item-text span {
  font-size: 14px;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-item-text a:hover {
  color: var(--cyan);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 18px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: var(--cyan-dim);
  transform: translateY(-3px);
}

/* API Form */
.api-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  overflow: hidden;
}

.api-form-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border-glass);
}

.api-method {
  font-family: var(--font-code);
  font-size: 12px;
  font-weight: 700;
  color: #0a0a0f;
  background: #28c840;
  padding: 3px 10px;
  border-radius: 4px;
}

.api-endpoint {
  font-family: var(--font-code);
  font-size: 13px;
  color: var(--text-secondary);
}

.api-form-body {
  padding: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-code);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-dim);
}

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

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

.btn-send {
  width: 100%;
  justify-content: center;
  font-size: 14px;
  padding: 14px;
}

/* API Response area */
.api-response {
  margin-top: 20px;
  display: none;
}

.api-response.show {
  display: block;
}

.api-response-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.api-status {
  font-family: var(--font-code);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
}

.api-status.success {
  background: rgba(40, 200, 64, 0.15);
  color: #28c840;
}

.api-status.error {
  background: rgba(255, 95, 87, 0.15);
  color: #ff5f57;
}

.api-response-body {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 16px;
  font-family: var(--font-code);
  font-size: 12px;
  color: var(--text-secondary);
  white-space: pre-wrap;
  line-height: 1.6;
}

.api-response-body .json-key {
  color: var(--purple);
}

.api-response-body .json-string {
  color: #28c840;
}

.api-response-body .json-bool {
  color: var(--cyan);
}

/* Loader */
.btn-loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(10,10,15,0.3);
  border-top-color: #0a0a0f;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.btn.loading .btn-loader {
  display: inline-block;
}

.btn.loading .btn-text {
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

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

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

.footer-text span {
  color: var(--cyan);
}

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

.footer-links a {
  font-family: var(--font-code);
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-summary {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-photo-wrapper {
    order: -1;
  }

  .hero-photo {
    width: 240px;
    height: 240px;
  }

  .hero-photo-glow {
    width: 240px;
    height: 240px;
  }

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

@media (max-width: 768px) {
  :root {
    --section-padding: 70px 0;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 18px;
    padding: 12px 24px;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .stat-item {
    text-align: center;
  }

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

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

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

  .timeline {
    padding-left: 30px;
  }

  .timeline-dot {
    left: -23px;
    width: 12px;
    height: 12px;
  }

  .timeline-card {
    padding: 20px;
  }

  .education-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
  }

  .edu-meta {
    text-align: left;
  }

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

@media (max-width: 480px) {
  .hero-name {
    font-size: 32px;
  }

  .hero-photo {
    width: 180px;
    height: 180px;
  }

  .hero-photo-glow {
    width: 180px;
    height: 180px;
  }

  .btn {
    padding: 12px 22px;
    font-size: 13px;
  }

  .terminal {
    border-radius: 12px;
  }
}
