/* ════════════════════════════════════════════
   Harshit Khandelwal — Portfolio
   ════════════════════════════════════════════ */

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

/* ── Variables ── */
:root {
  --bg: #0a0a0f;
  --bg-alt: #10101a;
  --surface: #161625;
  --surface-hover: #1e1e32;
  --border: rgba(255, 255, 255, 0.06);
  --primary: #64ffda;
  --primary-dim: rgba(100, 255, 218, 0.1);
  --accent: #7b61ff;
  --text: #ccd6f6;
  --text-bright: #e6f1ff;
  --text-muted: #8892b0;
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --nav-height: 70px;
}

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

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

::selection {
  background: var(--primary);
  color: var(--bg);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

ul { list-style: none; }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ── Navbar ── */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 var(--border);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

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

.nav-links a:hover::after {
  width: 100%;
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

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

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

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

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dim);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1rem 3rem;
  font-size: 1.1rem;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: calc(var(--nav-height) + 2rem) 2rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(100, 255, 218, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 255, 218, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 20%, transparent 70%);
}

.hero-content {
  max-width: 900px;
  z-index: 1;
  margin-top: auto;
  margin-bottom: auto;
}

.hero-greeting {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.hero-name {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 900;
  color: var(--text-bright);
  line-height: 1.1;
  margin-bottom: 0.5rem;
  letter-spacing: -1.5px;
}

.hero-title {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 4rem;
}

/* Stats */
.hero-stats {
  display: flex;
  gap: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-bright);
  font-family: var(--font-mono);
}

.stat-suffix {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-mono);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.2rem;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: float 2s ease-in-out infinite;
}

.mouse {
  width: 26px;
  height: 40px;
  border: 2px solid var(--text-muted);
  border-radius: 13px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.mouse-wheel {
  width: 3px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  animation: scroll-wheel 1.5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes scroll-wheel {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(8px); }
}

/* ── Section styling ── */
section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.section-heading {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
}

.section-heading::after {
  content: '';
  display: block;
  width: 200px;
  height: 1px;
  background: var(--border);
}

.section-number {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 500;
}

/* ── About ── */
.about-content {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
  align-items: center;
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.about-text strong {
  color: var(--text-bright);
  font-weight: 600;
}

/* Profile photo */
.about-photo-wrap {
  position: relative;
  width: 280px;
  justify-self: center;
}

.about-photo-wrap::before {
  content: '';
  position: absolute;
  inset: -8px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  opacity: 0.3;
  transition: opacity var(--transition);
  z-index: -1;
}

.about-photo-wrap:hover::before {
  opacity: 0.6;
}

.about-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
  display: block;
  filter: grayscale(30%) brightness(0.9);
  transition: filter var(--transition);
}

.about-photo:hover {
  filter: grayscale(0%) brightness(1);
}

.about-terminal {
  max-width: 560px;
  margin-top: 2rem;
}

/* Terminal */
.terminal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

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

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

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

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

.terminal-body {
  padding: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.terminal-line {
  margin-bottom: 0.5rem;
}

.prompt {
  color: var(--primary);
  margin-right: 0.5rem;
}

.terminal-output {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.8rem;
  overflow-x: auto;
}

/* ── Experience / Timeline ── */
.timeline {
  position: relative;
  padding-left: 2rem;
}

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

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

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

.timeline-marker {
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--primary);
  z-index: 1;
  transition: var(--transition);
}

.timeline-item:hover .timeline-marker {
  background: var(--primary);
  box-shadow: 0 0 20px rgba(100, 255, 218, 0.3);
}

.timeline-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}

.timeline-content:hover {
  border-color: rgba(100, 255, 218, 0.15);
  background: var(--surface-hover);
  transform: translateX(4px);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.timeline-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-bright);
}

.timeline-company {
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 500;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  background: var(--primary-dim);
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  color: var(--primary);
}

.timeline-details {
  list-style: none;
  margin-bottom: 1rem;
}

.timeline-details li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.timeline-details li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--primary);
}

.timeline-details strong {
  color: var(--text-bright);
  font-weight: 600;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.timeline-tags span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary);
  background: var(--primary-dim);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

/* ── Skills ── */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.skill-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition);
}

.skill-category:hover {
  border-color: rgba(100, 255, 218, 0.15);
  transform: translateY(-4px);
}

.skill-category h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cat-icon {
  font-size: 1.2rem;
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-chip {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.35rem 0.9rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.skill-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-dim);
}

.skill-chip.highlight {
  border-color: rgba(100, 255, 218, 0.3);
  color: var(--primary);
  background: var(--primary-dim);
}

/* ── Timeline role groups (Safe Security sub-roles) ── */
.timeline-summary {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-style: italic;
  font-size: 0.95rem;
}

.timeline-role-group {
  margin-bottom: 1.2rem;
  padding-left: 1rem;
  border-left: 2px solid var(--border);
}

.timeline-role-group:last-of-type {
  margin-bottom: 1rem;
}

.role-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
}

/* Current marker pulse */
.timeline-marker.current {
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-dim);
  animation: pulse-ring 2s ease-in-out infinite;
}

@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 4px var(--primary-dim); }
  50% { box-shadow: 0 0 0 8px rgba(100, 255, 218, 0.05); }
}

.current-badge {
  background: var(--primary) !important;
  color: var(--bg) !important;
  font-weight: 600;
}

/* ── Testimonials ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
}

.testimonial::before {
  content: '\201C';
  position: absolute;
  top: -0.2rem;
  left: 1.5rem;
  font-size: 5rem;
  color: var(--primary-dim);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial blockquote {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author strong {
  color: var(--text-bright);
  display: block;
  font-size: 0.95rem;
}

.testimonial-author span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ── Certifications card ── */
.certifications-card {
  grid-column: 1 / -1;
}

.cert-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cert-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-dim), rgba(123, 97, 255, 0.15));
  border: 1px solid rgba(100, 255, 218, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary);
  flex-shrink: 0;
}

.cert-item strong {
  color: var(--text-bright);
  font-size: 0.9rem;
  display: block;
}

.cert-item p {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

/* ── Awards (detailed cards) ── */
.awards-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.award-card-detailed {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}

.award-card-detailed:hover {
  border-color: rgba(100, 255, 218, 0.15);
  transform: translateX(4px);
}

.award-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  border-radius: 4px 0 0 4px;
}

.award-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.award-icon-wrap {
  flex-shrink: 0;
  width: 40px;
  text-align: center;
}

.award-icon {
  font-size: 1.8rem;
}

.award-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-bright);
}

.award-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.award-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  /* 40px icon + 1rem gap = align with header text */
  padding-left: calc(40px + 1rem);
}

.award-desc strong {
  color: var(--text-bright);
  font-weight: 600;
}

.award-link {
  display: inline-block;
  margin-top: 0.75rem;
  margin-left: calc(40px + 1rem);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--primary);
  transition: all var(--transition);
}

.award-link:hover {
  transform: translateX(4px);
}

/* ── Blogs ── */
.blogs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  color: var(--text);
  text-decoration: none;
}

.blog-card:hover {
  border-color: rgba(100, 255, 218, 0.15);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.blog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.blog-icon {
  font-size: 1.6rem;
}

.blog-external {
  font-size: 1.4rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.blog-card:hover .blog-external {
  color: var(--primary);
}

.blog-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.blog-card:hover h3 {
  color: var(--primary);
}

.blog-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.blog-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.blog-tags {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary);
}

/* ── Community ── */
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.community-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}

.community-card:hover {
  border-color: rgba(100, 255, 218, 0.15);
  transform: translateY(-4px);
}

.community-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.community-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 0.3rem;
}

.community-org {
  color: var(--primary);
  font-weight: 500;
  font-size: 0.9rem;
}

.community-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

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

/* ── Education ── */
.education-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: all var(--transition);
}

.education-card:hover {
  border-color: rgba(100, 255, 218, 0.15);
}

.edu-icon {
  font-size: 3rem;
}

.education-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 0.3rem;
}

.edu-degree {
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 0.3rem;
}

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

/* ── Contact ── */
.contact {
  text-align: center;
  padding-bottom: 8rem;
}

.contact-content p {
  max-width: 500px;
  margin: 0 auto 2rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.contact-links a {
  color: var(--text-muted);
  padding: 0.5rem;
  transition: all var(--transition);
}

.contact-links a:hover {
  color: var(--primary);
  transform: translateY(-3px);
}

/* ── Responsive ── */

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 320px;
    height: 100vh;
    background: var(--surface);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right var(--transition);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

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

  .hero-description {
    font-size: 1rem;
  }

  .scroll-indicator {
    display: none;
  }

  .hero {
    align-items: flex-start;
  }

  .hero-content {
    margin-top: 0;
  }

  .section-heading {
    white-space: normal;
    font-size: 1.5rem;
  }

  .section-heading::after {
    width: 80px;
    flex-shrink: 0;
  }

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

  .about-photo-wrap {
    width: 200px;
    order: -1;
    justify-self: center;
  }

  .about-terminal {
    max-width: 100%;
  }

  .terminal-body {
    font-size: 0.75rem;
  }

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

  .award-desc {
    padding-left: 0;
  }

  .award-link {
    margin-left: 0;
  }

  .education-card {
    flex-direction: column;
    text-align: center;
  }

  section {
    padding: 4rem 1.5rem;
  }

  .timeline {
    padding-left: 1.5rem;
  }

  .timeline-header {
    flex-direction: column;
  }

  .timeline-content {
    padding: 1.5rem;
  }

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

  .testimonial {
    padding: 1.5rem;
  }

  .testimonial blockquote {
    font-size: 0.95rem;
  }

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

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

  .btn-large {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  section {
    padding: 3rem 1rem;
  }

  .hero {
    padding: calc(var(--nav-height) + 2rem) 1.5rem 3rem;
  }

  .hero-name {
    font-size: 2.2rem;
  }

  .hero-title {
    font-size: 1.4rem;
  }

  .hero-stats {
    gap: 1rem;
  }

  .hero-cta .btn {
    width: 100%;
    text-align: center;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .section-heading {
    font-size: 1.3rem;
  }

  .about-photo-wrap {
    width: 180px;
  }

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

  .award-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline-content {
    padding: 1.2rem;
  }

  .timeline-tags span {
    font-size: 0.7rem;
  }

  .education-card {
    padding: 1.5rem;
  }

  .contact-content p {
    font-size: 1rem;
  }
}
