/* ============================================================
   VARIABLES
   ============================================================ */
:root {
  --bg:            #0a0a0f;
  --bg-2:          #0d0d18;
  --surface:       rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --border:        rgba(255, 255, 255, 0.08);
  --border-hover:  rgba(100, 140, 255, 0.4);
  --text:          #e8eaf6;
  --text-muted:    #8892b0;
  --text-dim:      #4a5568;
  --accent:        #6366f1;
  --accent-2:      #8b5cf6;
  --accent-3:      #06b6d4;
  --glow:          rgba(99, 102, 241, 0.35);
  --glow-2:        rgba(139, 92, 246, 0.25);
  --gradient:      linear-gradient(135deg, #6366f1, #8b5cf6);
  --gradient-text: linear-gradient(135deg, #a5b4fc, #c084fc, #67e8f9);
  --navbar-bg:     rgba(10, 10, 15, 0.88);
  --radius:        16px;
  --radius-sm:     10px;
  --shadow:        0 8px 32px rgba(0, 0, 0, 0.4);
  --transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg:            #f0f2ff;
  --bg-2:          #e8ecff;
  --surface:       rgba(99, 102, 241, 0.06);
  --surface-hover: rgba(99, 102, 241, 0.1);
  --border:        rgba(99, 102, 241, 0.15);
  --border-hover:  rgba(99, 102, 241, 0.5);
  --text:          #1a1a2e;
  --text-muted:    #4a5170;
  --text-dim:      #8892b0;
  --glow:          rgba(99, 102, 241, 0.2);
  --glow-2:        rgba(139, 92, 246, 0.15);
  --navbar-bg:     rgba(240, 242, 255, 0.92);
  --shadow:        0 8px 32px rgba(99, 102, 241, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

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

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

ul {
  list-style: none;
}

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient);
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px var(--glow);
}

/* ============================================================
   UTILITY
   ============================================================ */
.mono {
  font-family: 'JetBrains Mono', monospace;
}

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

/* ============================================================
   GLASS CARD
   ============================================================ */
.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    border-color var(--transition),
    box-shadow   var(--transition),
    transform    var(--transition),
    background   var(--transition);
}

.glass-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 24px var(--glow), var(--shadow);
  transform: translateY(-4px);
  background: var(--surface-hover);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

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

.section-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--navbar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
}

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

.nav-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

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

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}

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

.nav-link.active {
  color: var(--accent);
  background: rgba(99, 102, 241, 0.1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color var(--transition), border-color var(--transition), box-shadow var(--transition);
  flex-shrink: 0;
}

.theme-btn svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.theme-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--glow);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}

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

.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); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform      var(--transition),
    box-shadow     var(--transition),
    background     var(--transition),
    border-color   var(--transition),
    color          var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.95);
}

.btn svg { flex-shrink: 0; }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px var(--glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--glow);
}

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

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 16px var(--glow);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text-muted);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--surface-hover);
  border-color: var(--border-hover);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: 8px;
}

.btn-full {
  width: 100%;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 24px 80px;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

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

.orb1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #6366f1, transparent 70%);
  top: -100px;
  right: -100px;
}

.orb2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #8b5cf6, transparent 70%);
  bottom: -100px;
  left: -100px;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-greeting {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.hero-name {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

.typing-container {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 24px;
  min-height: 2rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.typing-prefix  { color: var(--text-muted); }

.typing-text {
  color: var(--accent-3);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}

.typing-cursor {
  color: var(--accent);
  font-weight: 300;
  animation: blink 0.8s step-end infinite;
}

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

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

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Hero Image wrapper */
.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  padding: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  box-shadow: 0 0 35px rgba(99, 102, 241, 0.4);
  animation: float 4s ease-in-out infinite, profilePulse 4s ease-in-out infinite;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: var(--bg);
  border: 4px solid var(--surface);
}

/* Floating animation */
@keyframes float {
  0%, 100% { transform: translateY(0);     }
  50%       { transform: translateY(-18px); }
}

@keyframes profilePulse {
  0%, 100% { box-shadow: 0 0 35px rgba(99, 102, 241, 0.4); }
  50% { box-shadow: 0 0 55px rgba(99, 102, 241, 0.8); }
}

.float-animation {
  /* Kept for backward compatibility if used elsewhere */
  animation: float 4s ease-in-out infinite;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.1em;
  pointer-events: none;
  z-index: 1;
}

/* Fixed: transform-origin must be outside @keyframes */
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  transform-origin: top center;
  animation: scrollDrop 1.6s ease-in-out infinite;
}

@keyframes scrollDrop {
  0%   { transform: scaleY(0); opacity: 0; }
  20%  { opacity: 1; }
  50%  { transform: scaleY(1); }
  80%  { opacity: 1; }
  100% { transform: scaleY(0); opacity: 0; }
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about {
  background: var(--bg-2);
}

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

.about-illustration {
  display: flex;
  justify-content: center;
}

.about-bio {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 32px;
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-card {
  padding: 24px;
}

.card-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
  line-height: 1;
}

.about-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  font-family: 'JetBrains Mono', monospace;
}

.about-card ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-card li {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.4;
}

.badge-gold {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.badge-green {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.cert-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 6px;
}

/* ============================================================
   SKILLS SECTION
   ============================================================ */
.skills-group {
  margin-bottom: 48px;
}

.skills-group-title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
  margin-bottom: 24px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.group-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 14px;
}

.skill-card {
  padding: 20px 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  cursor: default;
}

.skill-card img,
.skill-card svg {
  width: 44px;
  height: 44px;
  object-fit: contain;
  transition: transform var(--transition), filter var(--transition);
  flex-shrink: 0;
}

.skill-card:hover img,
.skill-card:hover svg {
  transform: scale(1.15);
  filter: drop-shadow(0 0 8px var(--accent));
}

.skill-card span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition);
  line-height: 1.2;
}

.skill-card:hover span {
  color: var(--text);
}

/* Express.js icon is black — invert in dark mode */
[data-theme="dark"]  .invert-light { filter: invert(1) brightness(1.2); }
[data-theme="light"] .invert-light { filter: none; }

/* ============================================================
   CODING PROGRESS SECTION
   ============================================================ */

.coding-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.coding-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}

.coding-card:hover {
  transform: scale(1.02) translateY(-4px);
  box-shadow: 0 12px 40px var(--glow);
  border-color: var(--border-hover);
}

.coding-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.coding-card-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text);
  margin: 0;
}

.coding-stats {
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
}

.leetcode-heatmap {
  width: 100%;
  height: auto;
  object-fit: contain;
}

[data-theme="dark"] .light-img { display: none; }
[data-theme="light"] .dark-img { display: none; }

.coding-achievements {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.achievements-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0;
}

.badges-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.badge-card {
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  width: max-content;
  min-width: 110px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.badge-card:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 8px 20px var(--glow);
  border-color: var(--border-hover);
}

.badge-card img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.badge-card span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

.coding-desc {
  flex: 1;
}

.coding-desc p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.coding-action {
  margin-top: auto;
}

/* ============================================================
   PROJECTS SECTION
   ============================================================ */
.projects {
  background: var(--bg-2);
}

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

.project-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius) var(--radius) 0 0;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image img {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity var(--transition);
}

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

.project-info {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.4;
}

.project-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
  flex: 1;
}

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

.tag {
  font-size: 0.73rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.contact-bio {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}

.social-links {
  display: flex;
  gap: 14px;
  margin-bottom: 32px;
}

.social-link {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition:
    color         var(--transition),
    border-color  var(--transition),
    box-shadow    var(--transition),
    transform     var(--transition);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--glow);
  transform: translateY(-3px);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-detail svg {
  flex-shrink: 0;
  color: var(--accent);
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form {
  padding: 36px;
}

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

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  transition:
    border-color var(--transition),
    box-shadow   var(--transition),
    background   var(--transition),
    transform    var(--transition);
  outline: none;
  resize: vertical;
  -webkit-appearance: none;
  appearance: none;
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
  background: rgba(99, 102, 241, 0.04);
}

.form-group input:hover,
.form-group textarea:hover {
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .form-group input:hover,
[data-theme="light"] .form-group textarea:hover {
  background: rgba(99, 102, 241, 0.08);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
  background: rgba(99, 102, 241, 0.05);
  transform: translateY(-2px);
}

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

.form-success,
.form-error {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 16px;
  animation: fadeSlideUp 0.4s ease both;
}

.form-success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.form-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

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

/* ============================================================
   ABOUT — QUICK INFO BAR
   ============================================================ */
.about-quick-info {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 28px;
}

.quick-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.quick-info-item svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* Cert meta label */
.cert-meta {
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-dim);
  margin-left: 4px;
  white-space: nowrap;
}

/* ============================================================
   PROJECTS — BULLETS & META
   ============================================================ */
.project-meta {
  margin-bottom: 6px;
}

.project-date {
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.project-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.project-bullets li {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding-left: 14px;
  position: relative;
}

.project-bullets li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
  top: 2px;
}

/* ============================================================
   EDUCATION SECTION
   ============================================================ */
.education {
  background: var(--bg);
}

.education-timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
}

.edu-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 32px;
}

.edu-icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.edu-body {
  flex: 1;
  min-width: 0;
}

.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.edu-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.4;
}

.edu-school {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: block;
}

.edu-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.edu-date {
  font-size: 0.78rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-dim);
  white-space: nowrap;
}

.edu-grade {
  font-size: 0.85rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent);
  border: 1px solid rgba(99, 102, 241, 0.25);
  white-space: nowrap;
}

.edu-grade.cgpa {
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-3);
  border-color: rgba(6, 182, 212, 0.25);
}

.edu-grade.perfect {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.3);
}

@media (max-width: 600px) {
  .edu-card {
    padding: 20px;
    gap: 14px;
  }

  .edu-header {
    flex-direction: column;
    gap: 10px;
  }

  .edu-right {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .about-quick-info {
    gap: 10px 16px;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
}

.footer-inner p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-sub {
  font-size: 0.8rem;
  margin-top: 6px;
  color: var(--text-dim);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity   0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition:
    opacity   0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delays for project cards */
.projects-grid .project-card:nth-child(1) { transition-delay: 0.05s; }
.projects-grid .project-card:nth-child(2) { transition-delay: 0.15s; }
.projects-grid .project-card:nth-child(3) { transition-delay: 0.25s; }

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

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

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

  .hero-illustration {
    order: -1;
  }

  .hero-image-wrapper {
    max-width: 280px;
    margin: 0 auto;
  }

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

  .about-illustration {
    max-width: 320px;
    margin: 0 auto;
  }

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

  .scroll-indicator {
    display: none;
  }
}

/* ============================================================
   RESPONSIVE — 768 px
   ============================================================ */
@media (max-width: 768px) {
  /* Mobile nav drawer */
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px 20px;
    border-bottom: 1px solid var(--border);
    display: none;
    z-index: 999;
  }

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

  .nav-link {
    width: 100%;
    padding: 12px 16px;
  }

  .hamburger {
    display: flex;
  }

  .section {
    padding: 70px 0;
  }

  .hero {
    padding: 80px 24px 60px;
  }

  .hero-name {
    font-size: clamp(2.4rem, 9vw, 3.5rem);
  }

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

  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
  }

  .skill-card {
    padding: 16px 8px 12px;
  }

  .skill-card img,
  .skill-card svg {
    width: 38px;
    height: 38px;
  }

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

  .contact-form {
    padding: 24px;
  }
}

/* ============================================================
   RESPONSIVE — 480 px
   ============================================================ */
@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .btn {
    width: 100%;
  }

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

  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }

  .contact-form {
    padding: 20px 16px;
  }

  .social-links {
    justify-content: center;
  }

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

/* ============================================================
   HOBBIES
   ============================================================ */
.about-hobbies {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.hobby-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all var(--transition);
  cursor: default;
}

.hobby-chip:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--glow);
}

/* ============================================================
   RESUME & CERTIFICATES SECTIONS
   ============================================================ */
.resume-card {
  padding: 16px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.resume-card iframe {
  border: none;
  border-radius: var(--radius-sm);
  background: #fff;
}

.certificates-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.certificate-card {
  width: 100%;
  max-width: 400px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.certificate-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 30px var(--glow-2), var(--shadow);
  border-color: var(--accent-2);
}

.cert-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cert-actions {
  display: flex;
  gap: 12px;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}