/* === CSS Custom Properties (Themes) === */
:root {
  --bg: #ffffff;
  --bg-alt: #f8f9fb;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f4ff;
  --text: #1a1a2e;
  --text-secondary: #5a6070;
  --text-muted: #8b919e;
  --accent: #2563eb;
  --accent-light: #dbeafe;
  --accent-glow: rgba(37, 99, 235, 0.15);
  --secondary: #7c3aed;
  --secondary-light: #ede9fe;
  --border: #e2e8f0;
  --border-light: #eef1f6;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
  --shadow-glow: 0 0 0 3px rgba(37, 99, 235, 0.2);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 4px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --nav-height: 64px;
  --tag-accent-bg: #dbeafe;
  --tag-accent-text: #1d4ed8;
  --tag-secondary-bg: #ede9fe;
  --tag-secondary-text: #6d28d9;
  --tag-default-bg: #f1f5f9;
  --tag-default-text: #475569;
}

[data-theme="dark"] {
  --bg: #0f172a;
  --bg-alt: #1e293b;
  --bg-card: #1e293b;
  --bg-card-hover: #273449;
  --text: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #3b82f6;
  --accent-light: #1e3a5f;
  --accent-glow: rgba(59, 130, 246, 0.2);
  --secondary: #8b5cf6;
  --secondary-light: #2e1d4a;
  --border: #334155;
  --border-light: #273449;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 0 3px rgba(59, 130, 246, 0.3);
  --tag-accent-bg: #1e3a5f;
  --tag-accent-text: #60a5fa;
  --tag-secondary-bg: #2e1d4a;
  --tag-secondary-text: #a78bfa;
  --tag-default-bg: #334155;
  --tag-default-text: #94a3b8;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 24px);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
}

.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

ul { list-style: none; }

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

#navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
}

.nav-brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  text-decoration: none;
}

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

.nav-links a {
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-xs);
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: var(--accent-light);
  text-decoration: none;
}

.theme-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 7px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  display: flex;
  align-items: center;
}

.theme-btn:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-light); }

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

/* === Hero === */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 48px) 24px 48px;
  position: relative;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--bg) 40%, var(--secondary-light) 100%);
}

.hero-name {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.hero-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.hero-tagline {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition);
  text-decoration: none;
}

.contact-link:hover { color: var(--accent); text-decoration: none; }
.contact-link svg { flex-shrink: 0; }

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  animation: bounce 2s infinite;
  opacity: 0.6;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-8px); }
  60% { transform: translateX(-50%) translateY(-4px); }
}

/* === Sections === */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 36px;
  position: relative;
  padding-bottom: 12px;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  border-radius: 2px;
}

/* === Cards === */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

/* === Summary === */
.summary-card p {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.7;
}

.key-achievements h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.key-achievements li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.key-achievements li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

/* === Skills Grid === */
.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skill-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  padding: 4px 0;
}

.skill-header h3 {
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.skill-header:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

.skill-content {
  display: none;
  padding-top: 16px;
}

.skill-card.expanded .skill-content {
  display: block;
}

.skill-content ul {
  margin-top: 12px;
}

.skill-content li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.skill-content li::before {
  content: '\2013';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* === Tags === */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 20px;
  background: var(--tag-default-bg);
  color: var(--tag-default-text);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.tag.accent { background: var(--tag-accent-bg); color: var(--tag-accent-text); }
.tag.secondary { background: var(--tag-secondary-bg); color: var(--tag-secondary-text); }

.tag.small { padding: 2px 10px; font-size: 0.75rem; }

/* === Accordion Chevron === */
.accordion-chevron {
  transition: transform var(--transition);
  flex-shrink: 0;
  color: var(--text-muted);
}

.accordion-chevron.open,
.skill-card.expanded .accordion-chevron,
.exp-card.expanded .accordion-chevron {
  transform: rotate(180deg);
}

/* === Timeline / Experience === */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}

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

.timeline-dot {
  position: absolute;
  left: -32px;
  top: 24px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: var(--shadow-sm);
  z-index: 1;
}

.timeline-dot--small {
  width: 10px;
  height: 10px;
  top: 20px;
  left: -30px;
  background: var(--text-muted);
}

.exp-card { padding: 0; overflow: hidden; }

.exp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  cursor: pointer;
  user-select: none;
  transition: background var(--transition);
}

.exp-header:hover {
  background: var(--bg-card-hover);
}

.exp-header:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.exp-header h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.exp-role { font-size: 0.9rem; font-weight: 500; color: var(--accent); margin: 4px 0; }
.exp-meta { font-size: 0.825rem; color: var(--text-muted); }

.exp-content {
  display: none;
  padding: 0 28px 24px;
  border-top: 1px solid var(--border-light);
}

.exp-card.expanded .exp-content { display: block; }

.exp-subsection {
  margin-bottom: 20px;
}

.exp-subsection h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.exp-subsection li,
.exp-content li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.exp-subsection li::before,
.exp-content li::before {
  content: '\2013';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.timeline-item--compact { margin-bottom: 12px; }
.exp-card--compact .exp-header { padding: 14px 24px; }
.exp-card--compact .exp-header h3 { font-size: 0.95rem; }
.exp-card--compact .exp-role { font-size: 0.825rem; }
.exp-card--compact .exp-meta { font-size: 0.775rem; }

.know-more-btn {
  display: block;
  margin: 0 auto 16px;
  padding: 10px 28px;
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  position: relative;
  z-index: 1;
}

.know-more-btn:hover {
  background: var(--accent);
  color: #fff;
}

.additional-experience.hidden {
  display: none;
}


.verticals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.vertical-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

/* === Awards === */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.award-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
}

.award-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.award-card p {
  font-size: 0.925rem;
  color: var(--text);
  line-height: 1.5;
}

/* === Education === */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.edu-card { text-align: center; }

.edu-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--accent-light);
  color: var(--accent);
  margin-bottom: 12px;
}

.edu-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; }
.edu-school { font-size: 0.9rem; color: var(--text-secondary); }
.edu-field { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

/* === Projects === */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-card .skill-content ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-card .skill-content li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  padding: 8px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-xs);
  transition: background var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.btn-link:hover {
  background: var(--secondary);
  box-shadow: var(--shadow-glow);
  text-decoration: none;
}

/* === Hashtag Footer === */
.hashtag-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 40px;
  padding: 20px 0;
}

/* === Footer === */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
}

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

/* === Responsive === */
@media (max-width: 768px) {
  .nav-links { display: none; }

  .hero { padding-top: calc(var(--nav-height) + 24px); }

  .hero-contact { flex-direction: column; align-items: center; gap: 10px; }

  .section { padding: 56px 0; }

  .section-title { font-size: 1.4rem; margin-bottom: 24px; }

  .card { padding: 20px; }

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

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

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

  .exp-header { padding: 16px 20px; }
  .exp-content { padding: 0 20px 20px; }

  .tag-list { gap: 6px; }
  .tag { font-size: 0.75rem; padding: 3px 10px; }

  .timeline { padding-left: 24px; }
  .timeline::before { left: 7px; }
  .timeline-dot { left: -24px; width: 12px; height: 12px; }
  .timeline-dot--small { left: -22px; width: 8px; height: 8px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-name { font-size: 2rem; }
  .hero-title { font-size: 1.05rem; }
  .hero-tagline { font-size: 0.9rem; }

  .award-card { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* === Print Styles === */
@media print {
  #navbar, .theme-btn, .scroll-indicator, .nav-links, footer { display: none !important; }

  .hero { padding: 24px 0; min-height: auto; background: none; }
  .hero-name { -webkit-text-fill-color: currentColor; }
  .hero-contact { flex-direction: row; }
  .section { padding: 32px 0; page-break-inside: avoid; }
  .card { box-shadow: none; border: 1px solid #ddd; }
  .exp-card.expanded .exp-content { display: block; }
  .skill-card.expanded .skill-content { display: block; }
  body { background: #fff; color: #000; }
}
