:root {
  --bg-color: #05050A;
  --bg-card: rgba(20, 20, 30, 0.4);
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.4);
  --secondary: #14b8a6;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);

  --font-sans: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-head: 'Space Grotesk', 'Outfit', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;

  --max-width: 1200px;
  --radius: 16px;
}

[data-theme="light"] {
  --bg-color: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.7);
  --primary: #4f46e5;
  --primary-glow: rgba(79, 70, 229, 0.2);
  --secondary: #0d9488;
  --text-main: #0f172a;
  --text-muted: #475569;
  --border: rgba(0, 0, 0, 0.1);
  --border-hover: rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .noise-overlay {
  opacity: 0.05;
}

[data-theme="light"] .glass-card {
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.6), 0 4px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .timeline-marker {
  background: var(--bg-color);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--primary-glow);
  color: #fff;
}

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

/* Custom Cursor Glow */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
}

[data-theme="light"] .cursor-glow {
  background: radial-gradient(circle, rgba(79, 70, 229, 0.08) 0%, transparent 60%);
}

/* Background Effects */
@keyframes rotate-bg {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.nebula-bg {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.08), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(20, 184, 166, 0.05), transparent 30%);
  z-index: -2;
  pointer-events: none;
  animation: rotate-bg 120s linear infinite;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  z-index: -1;
  pointer-events: none;
}

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

/* Glass Card Global */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05), 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.glass-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.1), 0 12px 40px rgba(99, 102, 241, 0.15);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(5, 5, 10, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.03);
  flex-shrink: 0;
}

.brand-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

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

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

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-main);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
}

.btn-outline {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 99px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
}

/* Scroll Progress */
.progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 10000;
  pointer-events: none;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  width: 0%;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 10px var(--primary);
}

.hamburger {
  display: none;
  background: transparent;
  border: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.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);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 10, 0.95);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-link {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-muted);
}

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

/* Hero Section */
.hero-section {
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

#hero.portfolio-section {
  padding-top: 80px;
  padding-bottom: 18px;
}

.status-pill {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 99px;
  border: 1px solid rgba(20, 184, 166, 0.3);
  background: rgba(20, 184, 166, 0.05);
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--secondary);
  border-radius: 50%;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 36px;
  align-items: center;
  text-align: left;
}

.hero-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  justify-self: end;
}

.hero-photo-frame {
  width: min(100%, 300px);
  aspect-ratio: 1 / 1;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: hidden;
}

.hero-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  background: transparent;
}

.hero-role {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}

.hero-summary {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 0 20px 0;
  line-height: 1.7;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px 0;
}

.hero-tags span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
}

.hero-tags span:hover {
  color: var(--primary);
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.08);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 4px;
  width: 100%;
  text-align: left;
}

.hero-stats > div {
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  min-height: 104px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary), #ec4899, var(--primary));
  background-size: 300% 300%;
  animation: gradient-shift 6s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 24px auto;
  line-height: 1.6;
  text-align: center;
}

.hero-subtitle strong {
  color: var(--text-main);
}

.hero-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #4f46e5;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border);
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
}

.social-dock {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 99px;
  backdrop-filter: blur(10px);
  margin: 0;
}

.social-dock a {
  font-size: 1.5rem;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.social-dock a:hover {
  color: var(--primary);
}

/* Company Logos */
.brand-strip {
  display: grid;
  grid-template-columns: repeat(2, 190px);
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
  width: 100%;
}

.company-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  width: 190px;
  justify-content: center;
  text-align: center;
  min-height: 48px;
  transition: all 0.25s ease;
}

.company-link {
  color: inherit;
  text-decoration: none;
}

.company-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.company-logo.small {
  width: 24px;
  height: 24px;
}

.company-logo-mark {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.company-logo-mark-google {
  padding: 2px;
}

.company-logo-mark-webmd {
  padding: 2px;
  background: #fff;
}

.company-logo-mark-pryzmity {
  padding: 2px;
}

.company-logo-mark-yuva {
  padding: 1px;
  background: #fff;
}

.exp-company {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 500;
  font-size: 0.95rem;
}

.exp-company:hover {
  text-decoration: none;
  opacity: 0.92;
}

.company-link:hover {
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.22), 0 8px 24px rgba(99, 102, 241, 0.12);
  background: rgba(99, 102, 241, 0.08);
  transform: translateY(-1px);
}

/* Sections */
.portfolio-section {
  padding: 48px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}



/* SECTION HEADER (Debankar Style) */
.section-header {
  display: flex; 
  align-items: center; 
  gap: 1.5rem;
  margin-bottom: 0.85rem;
}
.section-num {
  font-family: var(--font-mono);
  font-size: 1rem; 
  color: var(--primary);
  letter-spacing: 0.15em;
  font-weight: 500;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.section-line {
  flex: 1; 
  height: 1px;
  background: linear-gradient(90deg, var(--border-hover), transparent);
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 24px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), transparent);
}

.timeline-item {
  position: relative;
  padding-left: 64px;
  margin-bottom: 40px;
}

.timeline-marker {
  position: absolute;
  left: 20px;
  top: 24px;
  width: 10px;
  height: 10px;
  background: var(--bg-color);
  border: 2px solid var(--primary);
  border-radius: 50%;
}

.timeline-content {
  padding: 32px;
  transition: border-color 0.3s ease;
}

.timeline-content:hover {
  border-color: rgba(99, 102, 241, 0.5);
}

.exp-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.exp-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.exp-company {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 500;
  font-size: 0.95rem;
}

.exp-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: right;
}

.exp-meta span {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.exp-bullets {
  list-style: none;
  margin-bottom: 24px;
}

.exp-bullets li {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 12px;
  position: relative;
  padding-left: 20px;
}

.exp-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
}

.exp-bullets strong {
  color: var(--text-main);
  font-weight: 500;
}

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

.tech-tags span {
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 99px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  transition: all 0.3s ease;
  cursor: default;
}

.tech-tags span:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--primary);
  color: var(--primary);
}

[data-theme="light"] .tech-tags span {
  border: 1px solid rgba(0, 0, 0, 0.15);
}

/* Projects Roller */
.project-roller {
  display: flex;
  overflow-x: auto;
  gap: 24px;
  padding: 24px 8px 20px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.project-roller::-webkit-scrollbar {
  display: none;
}

.project-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.project-card:hover::before {
  left: 150%;
}

.project-card:hover {
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.1), 0 12px 40px rgba(99, 102, 241, 0.15);
}

.project-icon {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 24px;
}

.project-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex: 1;
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.skill-card {
  padding: 24px;
  min-width: 0;
}

.skill-label {
  font-family: var(--font-head);
  margin-bottom: 16px;
  color: var(--primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

/* Achievements Section */
.achievements-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.achievement-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  min-width: 0;
}

.ach-icon {
  font-size: 2rem;
  color: var(--secondary);
  flex-shrink: 0;
}

.achievement-card h4 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

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

/* Education Section */
.education-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 850px;
  margin: 0 auto;
}

.edu-card {
  padding: 32px 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.edu-title {
  font-family: var(--font-head);
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.edu-school {
  color: var(--primary);
  font-weight: 500;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.edu-date {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.edu-score-box {
  text-align: right;
}

.edu-score {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
}

.edu-scale {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.edu-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* Resume Section */
.resume-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: 20px;
  align-items: stretch;
}

.resume-story {
  padding: 32px;
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.12);
}

.resume-story::before {
  content: '';
  position: absolute;
  inset: auto -20% -55% auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.08), transparent 68%);
  pointer-events: none;
}

.resume-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.resume-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.1;
  margin-bottom: 14px;
}

.resume-copy {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 60ch;
}

.resume-facts {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.resume-fact {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.resume-fact span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.resume-fact strong {
  color: var(--text-main);
  font-weight: 600;
  text-align: right;
}

.resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.resume-side {
  display: grid;
  gap: 20px;
}

.resume-highlight,
.resume-preview {
  padding: 24px;
}

.resume-highlight {
  display: grid;
  gap: 16px;
}

.resume-side-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.resume-side-list {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.resume-side-item {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.resume-side-item span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.resume-side-item strong {
  color: var(--text-main);
  font-weight: 600;
}

/* Reset for consistent gaps */
section > *:last-child {
  margin-bottom: 0 !important;
}

.portfolio-section .section-header + * {
  margin-top: 0;
}

.contact-card {
  text-align: center;
  padding: 64px 24px;
  max-width: 800px;
  margin: 0 auto;
}

.contact-card h2 {
  font-family: var(--font-head);
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.contact-card p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.btn-primary.large {
  font-size: 1.1rem;
  padding: 16px 32px;
}

.contact-email-btn {
  max-width: 100%;
  width: min(100%, 420px);
  justify-content: center;
  text-align: center;
  white-space: normal;
  line-height: 1.35;
}

.contact-email-btn .email-text {
  overflow-wrap: anywhere;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 16px;
  font-size: 1.5rem;
}

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

/* Utilities */
.reveal {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
}

/* Responsive */
@media (max-width: 983px) {
  .nav-menu, .nav-actions .btn-outline, .nav-actions .theme-toggle {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .exp-head {
    flex-direction: column;
    gap: 8px;
  }
  .exp-meta {
    text-align: left;
  }
  .exp-meta span {
    justify-content: flex-start;
  }
  .resume-grid {
    grid-template-columns: 1fr;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .hero-visual {
    order: 1;
    width: 100%;
    gap: 8px;
  }
  .hero-main {
    order: 2;
    width: 100%;
  }
  .hero-main,
  .hero-visual {
    align-items: center;
  }
  .hero-title,
  .hero-summary {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-tags {
    justify-content: center;
  }
  .social-dock {
    margin: 0 auto;
  }
  .brand-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .company-pill {
    width: 100%;
  }
  .hero-stats {
    justify-content: center;
    text-align: center;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .portfolio-section {
    padding: 36px 16px;
  }
  .nav-container {
    padding: 12px 16px;
  }
  .hero-section {
    padding: 68px 16px 16px;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .hero-visual {
    order: 1;
    width: 100%;
    gap: 6px;
  }
  .hero-main {
    order: 2;
    width: 100%;
  }
  .hero-main,
  .hero-visual {
    align-items: center;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-role {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
  }
  .hero-summary {
    font-size: 0.95rem;
  }
  .hero-tags {
    gap: 8px;
  }
  .hero-tags span {
    font-size: 0.72rem;
    padding: 7px 10px;
  }
  .hero-photo-frame {
    width: min(100%, 240px);
  }
  .social-dock {
    width: auto;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px;
  }
  .brand-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-top: 4px;
  }
  .company-pill {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    justify-content: center;
    text-align: center;
    border-radius: 14px;
  }
  .company-pill span:last-child {
    display: none;
  }
  .company-logo {
    width: 22px;
    height: 22px;
    border-radius: 6px;
  }
  .hero-stats {
    gap: 0.8rem;
    grid-template-columns: 1fr;
  }
  .hero-stats > div {
    padding: 10px 12px;
    min-height: 86px;
  }
  .timeline {
    padding-left: 0;
  }
  .timeline::before {
    display: none;
  }
  .timeline-item {
    padding-left: 0;
  }
  .timeline-marker {
    display: none;
  }
  .project-card {
    flex: 0 0 85%;
  }
  .achievements-wrapper {
    grid-template-columns: 1fr;
  }
  .achievement-card {
    padding: 20px;
    gap: 16px;
  }
  .achievement-card h4 {
    font-size: 1rem;
  }
  .achievement-card p {
    overflow-wrap: anywhere;
  }
  .contact-card {
    padding: 40px 16px;
  }
  .contact-email-btn {
    width: 100%;
    padding: 14px 18px;
  }
  .resume-story,
  .resume-highlight,
  .resume-preview {
    padding: 20px;
  }
  .resume-actions .btn-primary,
  .resume-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 380px) {
  .nav-container {
    padding: 10px 12px;
  }
  .brand-avatar {
    width: 24px;
    height: 24px;
  }
  .brand {
    gap: 6px;
    font-size: 1.05rem;
  }
  .brand-text {
    font-size: 0.95rem;
  }
  .hamburger {
    padding: 6px;
  }
  .hamburger span {
    width: 20px;
  }
}
