/* ============================================================
   Amit Gautam ,  Portfolio Stylesheet
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES (Theming)
   ============================================================ */
:root, [data-theme="dark"], [data-theme="light"] {
  /* Colors ,  Primary White (60%), Dark Slate (30%), Amber Variant (10%) */
  --bg-primary:       #FFFFFF;
  --bg-secondary:     #F3F4F6;
  --bg-card:          #FFFFFF;
  --bg-card-hover:    #FAFAFA;
  --text-primary:     #111827; 
  --text-secondary:   #374151;
  --text-muted:       #6B7280;
  --accent:           #F5A623; 
  --accent-hover:     #D97706;
  --border:           rgba(17, 24, 39, 0.15);
  --border-subtle:    rgba(17, 24, 39, 0.08);
  --shadow:           0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-strong:    0 8px 40px rgba(0, 0, 0, 0.12);

  /* Typography: Helvetica and Inter Only */
  --font-heading:     'Helvetica', 'Inter', sans-serif;
  --font-body:        'Inter', 'Helvetica', sans-serif;

  /* Spacing */
  --section-padding:  100px 0;
  --container-max:    1100px;
  --container-pad:    0 24px;

  /* Transitions */
  --transition:       0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:  0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  transition: background-color var(--transition), color var(--transition);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 48px;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-pad);
}

section {
  padding: var(--section-padding);
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up:nth-child(1) { transition-delay: 0.0s; }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }
.fade-up:nth-child(6) { transition-delay: 0.5s; }

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color var(--transition), backdrop-filter var(--transition), border-bottom var(--transition);
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background-color: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

[data-theme="light"] #navbar.scrolled {
  background-color: rgba(250, 250, 248, 0.88);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.02em;
  cursor: pointer;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  position: relative;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Theme Toggle */
#theme-toggle {
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: 50px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: border-color var(--transition), color var(--transition), background-color var(--transition);
}

#theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background-color: rgba(245, 166, 35, 0.08);
}

/* Hamburger */
#hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}

#hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  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); }

/* Mobile Menu */
#mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-secondary);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  transition: opacity var(--transition);
}

#mobile-menu.open {
  display: flex;
  opacity: 1;
}

#mobile-menu a {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: color var(--transition);
}

#mobile-menu a:hover {
  color: var(--accent);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 0 60px; /* Reduced margin */
}

/* Gradient White Background */
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #FFFFFF 0%, #FAFAFA 50%, #F5F7FA 100%);
  z-index: 0;
  pointer-events: none;
}

.hero-bg::after {
  content: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 600px;
  text-align: left;
}

.hero-image-wrap {
  display: flex;
  justify-content: flex-end;
  border-radius: 12px;
  position: relative;
}

.hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: var(--shadow-strong);
  position: relative;
  z-index: 2;
}

/* Moving elements around profile picture */
.hero-image-wrap::before, .hero-image-wrap::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  z-index: 1;
  animation: floatShape 6s infinite alternate ease-in-out;
}

.hero-image-wrap::before {
  width: 80px;
  height: 80px;
  background-color: rgba(245, 166, 35, 0.3); /* Amber */
  top: -20px;
  right: -20px;
  animation-delay: 0s;
}

.hero-image-wrap::after {
  width: 120px;
  height: 120px;
  background-color: rgba(17, 24, 39, 0.08); /* Dark Slate */
  bottom: -30px;
  left: 10%;
  animation-delay: -3s;
}

@keyframes floatShape {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-30px) scale(1.1); }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .hero-image-wrap {
    justify-content: flex-start;
    margin-top: 32px;
  }
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0;
  animation: heroFadeUp 0.6s ease forwards;
  animation-delay: 0.1s;
}

.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 6px;
  opacity: 0;
  animation: heroFadeUp 0.7s ease forwards;
  animation-delay: 0.25s;
}

.hero-role {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 28px;
  opacity: 0;
  animation: heroFadeUp 0.7s ease forwards;
  animation-delay: 0.4s;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 12px;
  max-width: 600px;
  opacity: 0;
  animation: heroFadeUp 0.7s ease forwards;
  animation-delay: 0.55s;
}

.hero-body {
  font-size: 0.975rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 40px;
  opacity: 0;
  animation: heroFadeUp 0.7s ease forwards;
  animation-delay: 0.7s;
}

.hero-body strong {
  color: var(--text-primary);
  font-weight: 500;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: heroFadeUp 0.7s ease forwards;
  animation-delay: 0.9s;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent);
  color: #0A1628;
  border-color: var(--accent);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 166, 35, 0.35);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
#about {
  background-color: var(--bg-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 72px;
  align-items: start;
}

.about-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: sticky;
  top: 100px;
}

.about-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #C97D10 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: #0A1628;
  position: relative;
  /* REPLACE: replace with <img> headshot inside this div */
}

.about-avatar::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px dashed rgba(245, 166, 35, 0.35);
  animation: rotateBorder 12s linear infinite;
}

@keyframes rotateBorder {
  to { transform: rotate(360deg); }
}

.about-location {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  display: flex;
  align-items: center;
  gap: 4px;
}

.about-text p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.85;
}

.about-text p:first-child {
  font-size: 1.2rem;
  color: var(--text-primary);
  font-weight: 400;
}

/* Stats Bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 40px;
  background-color: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
}

.stat-item {
  background-color: var(--bg-card);
  padding: 24px 20px;
  text-align: center;
  transition: background-color var(--transition);
}

.stat-item:hover {
  background-color: var(--bg-card-hover);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* ============================================================
   EXPERIENCE SECTION
   ============================================================ */
#experience {
  background-color: var(--bg-primary);
}

.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.timeline-entry {
  position: relative;
  margin-bottom: 56px;
}

.timeline-entry:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -40px;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--accent);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 2px var(--accent);
  transition: transform var(--transition), box-shadow var(--transition);
}

.timeline-entry:hover .timeline-dot {
  transform: scale(1.25);
  box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.25);
}

.timeline-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  padding: 24px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  transition: all var(--transition);
}

.timeline-header:hover,
.timeline-entry.open .timeline-header {
  border-color: var(--border);
  background-color: var(--bg-card-hover);
}

.timeline-meta {
  flex: 1;
}

.timeline-role {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.timeline-role-badge {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 500;
}

.timeline-company {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
}

.timeline-duration {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  background-color: rgba(245, 166, 35, 0.1);
  color: var(--accent);
  border: 1px solid rgba(245, 166, 35, 0.2);
}

.timeline-chevron {
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: transform var(--transition), color var(--transition);
  flex-shrink: 0;
  margin-top: 4px;
}

.timeline-entry.open .timeline-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.timeline-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-entry.open .timeline-body {
  max-height: 600px;
}

.timeline-bullets {
  padding: 20px 24px 24px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-top: none;
  border-radius: 0 0 10px 10px;
}

.timeline-bullets li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 12px;
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.timeline-bullets li:last-child {
  margin-bottom: 0;
}

.timeline-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

/* ============================================================
   PROJECTS / KEY INITIATIVES SECTION
   ============================================================ */
#projects {
  background-color: var(--bg-secondary);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
}

.project-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  cursor: default;
  border-top: 3px solid transparent;
}

.project-card:first-child {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--border);
  box-shadow: var(--shadow-strong);
  background-color: var(--bg-card-hover);
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-metric {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
}

.project-card:first-child .project-metric {
  font-size: 4rem;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.project-details {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

/* ============================================================
   SKILLS SECTION
   ============================================================ */
#skills {
  background-color: var(--bg-primary);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 48px;
}

.skill-category {}

.skill-category-title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 50px;
  transition: all var(--transition);
  cursor: default;
}

.pill-core {
  background-color: rgba(245, 166, 35, 0.1);
  color: var(--accent);
  border: 1px solid rgba(245, 166, 35, 0.25);
}

.pill-core:hover {
  background-color: rgba(245, 166, 35, 0.2);
  transform: translateY(-1px);
}

.pill-tool {
  background-color: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.pill-tool:hover {
  border-color: var(--border);
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* ============================================================
   EDUCATION SECTION
   ============================================================ */
#education {
  background-color: var(--bg-secondary);
}

.education-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 40px 48px;
  display: flex;
  align-items: flex-start;
  gap: 40px;
  transition: all var(--transition);
  max-width: 800px;
}

.education-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.edu-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.15), rgba(245, 166, 35, 0.05));
  border: 1px solid rgba(245, 166, 35, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.edu-info {}

.edu-institution {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.edu-degree {
  font-size: 0.975rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 8px;
}

.edu-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.edu-meta span {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
#contact {
  background-color: var(--bg-primary);
  text-align: center;
  padding: 120px 0;
}

.contact-wrapper {
  max-width: 640px;
  margin: 0 auto;
}

.contact-pre {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.contact-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
}

.contact-body {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 44px;
}

.contact-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Contact Availability Badge */
.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 50px;
  background-color: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #22C55E;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 32px;
}

.availability-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #22C55E;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-links a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: all var(--transition);
}

.footer-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background-color: rgba(245, 166, 35, 0.08);
}

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
#scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 500;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--accent);
  color: #0A1628;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: bold;
  box-shadow: 0 4px 16px rgba(245, 166, 35, 0.4);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--transition), transform var(--transition), background-color var(--transition);
  pointer-events: none;
}

#scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#scroll-top:hover {
  background-color: var(--accent-hover);
}

/* ============================================================
   RESPONSIVE ,  TABLET (768px)
   ============================================================ */
@media (max-width: 900px) {
  :root {
    --section-padding: 72px 0;
  }

  #navbar {
    padding: 16px 24px;
  }

  .nav-links {
    display: none;
  }

  #hamburger {
    display: flex;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-avatar-wrap {
    flex-direction: row;
    position: static;
    align-items: center;
    gap: 28px;
  }

  .about-avatar {
    width: 100px;
    height: 100px;
    font-size: 1.6rem;
  }

  .about-location {
    text-align: left;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card:first-child {
    grid-column: 1;
    grid-row: auto;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .education-card {
    padding: 28px 24px;
    gap: 24px;
  }
}

/* ============================================================
   RESPONSIVE ,  MOBILE (375px)
   ============================================================ */
@media (max-width: 540px) {
  :root {
    --section-padding: 56px 0;
  }

  #navbar {
    padding: 14px 20px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline {
    padding-left: 20px;
  }

  .timeline-dot {
    left: -28px;
    width: 14px;
    height: 14px;
  }

  .timeline-header {
    padding: 18px;
    flex-direction: column;
  }

  .education-card {
    flex-direction: column;
    gap: 16px;
  }

  .contact-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  footer {
    padding: 20px;
    justify-content: center;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .edu-meta {
    flex-direction: column;
    gap: 6px;
  }
}

/* ============================================================
   SELECTION & FOCUS STYLES
   ============================================================ */
::selection {
  background-color: rgba(245, 166, 35, 0.25);
  color: var(--text-primary);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}
