/* ========================================
   Aditya Ghai — Portfolio
   Minimalistic Black & White
   ======================================== */

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

:root {
  --bg: #ffffff;
  --bg-alt: #f4f4f4;
  --surface: #ffffff;
  --border: #e4e4e4;
  --border-hover: #111111;
  --text: #0d0d0d;
  --text-muted: #6a6a6a;
  --ink: #111111;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --max-width: 1100px;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-lift: 0 12px 28px -14px rgba(0, 0, 0, 0.22);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

section[id] { scroll-margin-top: 5.5rem; }
#hero { scroll-margin-top: 0; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video { max-width: 100%; }

a {
  color: var(--ink);
  text-decoration: none;
  transition: opacity var(--transition), color var(--transition);
}

a:hover { opacity: 0.7; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 3px;
}

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

.mono {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.dot-sep { color: var(--border); margin: 0 0.15rem; }

.link-underline {
  color: var(--text);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--border);
  transition: text-decoration-color var(--transition);
}

.link-underline:hover {
  opacity: 1;
  text-decoration-color: var(--ink);
}

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

/* --- Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2rem;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition), padding var(--transition);
}

.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(255, 255, 255, 0.9);
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  z-index: 102;
}

.nav__links {
  display: flex;
  list-style: none;
  gap: 1.75rem;
}

.nav__links a {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color var(--transition);
}

.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width var(--transition);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--ink);
  opacity: 1;
}

.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: var(--transition);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 2rem 0;
  overflow: hidden;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.075) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.075) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 25% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 60% at 25% 30%, #000 0%, transparent 75%);
  pointer-events: none;
}

.hero__content,
.hero__stats {
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.hero__pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.38rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--text-muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.hero__pill--mark {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}

.hero__pill--link {
  transition: border-color var(--transition), color var(--transition);
}

.hero__pill--link:hover {
  border-color: var(--ink);
  color: var(--ink);
  opacity: 1;
}

.hero__name {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 9vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: 1.35rem;
}

.hero__desc {
  max-width: 600px;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 2.5rem;
  text-wrap: pretty;
}

.hero__desc a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--border);
}

.hero__desc a:hover { text-decoration-color: var(--ink); opacity: 1; }

.hero__cta {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.hero__stats {
  max-width: var(--max-width);
  margin: auto auto 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--border);
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.hero__stat-value {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero__stat-value--link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: var(--border);
  transition: text-decoration-color var(--transition);
}

.hero__stat-value--link:hover { text-decoration-color: var(--ink); opacity: 1; }

.hero__stat-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  line-height: 1.5;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 0.85rem 1.75rem;
  border-radius: 6px;
  letter-spacing: 0.03em;
  transition: all var(--transition);
  cursor: pointer;
}

.btn--primary {
  background: var(--ink);
  color: #ffffff;
  border: 1.5px solid var(--ink);
}

.btn--primary:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

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

.btn--outline:hover {
  background: var(--text);
  color: var(--bg);
  opacity: 1;
  transform: translateY(-2px);
}

.btn--icon svg { flex-shrink: 0; }

/* --- Sections --- */
.section {
  padding: 6.5rem 0;
}

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

.section__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section__head::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section__index {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  padding-top: 0.35em;
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section__subtitle {
  color: var(--text-muted);
  max-width: 620px;
  font-size: 0.98rem;
  margin-bottom: 2.75rem;
  text-wrap: pretty;
}

.section__head + .projects__grid,
.section__head + .achievements__grid,
.section__head + .timeline,
.section__head + .videos__grid,
.section__head + .blog__grid {
  margin-top: 2.75rem;
}

.section__cta {
  margin-top: 2.5rem;
  text-align: center;
}

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

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: var(--border);
}

.timeline__item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline__item:last-child { margin-bottom: 0; }

.timeline__dot {
  position: absolute;
  left: -2rem;
  top: 12px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg);
  z-index: 1;
}

.timeline__item:first-child .timeline__dot {
  border-color: var(--ink);
  background: var(--ink);
  box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.08);
}

.timeline__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.timeline__card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.timeline__date {
  color: var(--text-muted);
  font-size: 0.74rem;
  display: block;
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

.timeline__card h3 {
  font-family: var(--font-heading);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 0.15rem;
}

.timeline__company {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 0.9rem;
}

.timeline__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline__list li {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.75;
  padding-left: 1.1rem;
  position: relative;
  margin-bottom: 0.6rem;
  text-wrap: pretty;
}

.timeline__list li:last-child { margin-bottom: 0; }

.timeline__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 5px;
  height: 1px;
  background: var(--text-muted);
}

/* --- Tags --- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  background: var(--bg);
  transition: border-color var(--transition), color var(--transition);
}

/* --- Teaching / Video cards --- */
.videos__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.video-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  color: inherit;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.video-card:hover {
  opacity: 1;
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.video-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #ececec;
  overflow: hidden;
}

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

.video-card:hover .video-card__thumb img { transform: scale(1.04); }

.video-card__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px -6px rgba(0, 0, 0, 0.45);
  transition: transform var(--transition), background var(--transition);
}

.video-card__play svg { margin-left: 2px; }

.video-card:hover .video-card__play {
  transform: scale(1.1);
  background: #ffffff;
}

.video-card__body {
  padding: 1.4rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.video-card__eyebrow {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.video-card__body h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.video-card__body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.1rem;
  flex: 1;
}

/* --- Projects Grid --- */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  color: inherit;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.project-card:hover {
  opacity: 1;
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.project-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.project-card__img,
.project-card__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-card__img,
.project-card:hover .project-card__video { transform: scale(1.03); }

.project-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.project-card__label {
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.project-card__arrow {
  font-size: 1.25rem;
  line-height: 1;
  color: var(--text-muted);
  transition: color var(--transition), transform var(--transition);
}

.project-card:hover .project-card__arrow {
  color: var(--ink);
  transform: translate(3px, -3px);
}

.project-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 0.6rem;
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
  flex: 1;
}

/* --- Achievements --- */
.achievements__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.achievement-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.achievement-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.achievement-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #ececec;
  border-bottom: 1px solid var(--border);
}

.achievement-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.achievement-card__media--contain {
  background: #ffffff;
}

.achievement-card__media--contain .achievement-card__img {
  object-fit: contain;
}

.achievement-card:hover .achievement-card__img { transform: scale(1.04); }

.achievement-card__body {
  padding: 1.35rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.achievement-card__date {
  color: var(--text-muted);
  font-size: 0.7rem;
  display: block;
  margin-bottom: 0.55rem;
  letter-spacing: 0.06em;
}

.achievement-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
  margin-bottom: 0.3rem;
}

.achievement-card__issuer {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 0.7rem;
  font-weight: 500;
}

.achievement-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* --- Blog --- */
.blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.blog__loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 0;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  color: inherit;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.blog-card:hover {
  opacity: 1;
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.blog-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #ececec;
  border-bottom: 1px solid var(--border);
}

.blog-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-card__thumb { transform: scale(1.04); }

.blog-card__body {
  padding: 1.35rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card__date {
  color: var(--text-muted);
  font-size: 0.72rem;
  display: block;
  margin-bottom: 0.5rem;
  letter-spacing: 0.06em;
}

.blog-card__body h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__body p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Contact --- */
.contact__inner {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  margin-top: 2.5rem;
}

.contact__photo { flex-shrink: 0; }

.contact__avatar {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 5px;
  overflow: hidden;
}

.contact__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.contact__info p {
  color: var(--text-muted);
  max-width: 540px;
  font-size: 1rem;
  margin-bottom: 1.75rem;
  text-wrap: pretty;
}

.contact__links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.contact__links a {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition), border-color var(--transition), transform var(--transition), background var(--transition);
}

.contact__links a:hover {
  color: #ffffff;
  background: var(--ink);
  border-color: var(--ink);
  opacity: 1;
  transform: translateY(-3px);
}

.contact__links svg { width: 20px; height: 20px; }

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  color: var(--text-muted);
  background: var(--bg);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer p { font-size: 0.74rem; }

.footer__meta a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border);
}

.footer__meta a:hover { color: var(--ink); opacity: 1; }

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 980px) {
  .achievements__grid { grid-template-columns: repeat(2, 1fr); }
  .blog__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__stats { grid-template-columns: repeat(3, 1fr); row-gap: 1.25rem; }
}

@media (max-width: 768px) {
  .nav { padding: 1rem 1.25rem; }

  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 74%;
    max-width: 300px;
    height: 100vh;
    height: 100dvh;
    background: var(--bg);
    border-left: 1px solid var(--border);
    flex-direction: column;
    padding: 5.5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right var(--transition);
    box-shadow: -20px 0 40px -30px rgba(0, 0, 0, 0.4);
  }

  .nav__links.open { right: 0; }

  .nav__links a { font-size: 0.85rem; }

  .nav__toggle {
    display: flex;
    z-index: 102;
  }

  .nav__toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav__toggle.active span:nth-child(2) { opacity: 0; }
  .nav__toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  body.nav-open { overflow: hidden; }

  .hero {
    padding: 7rem 1.25rem 0;
  }

  .hero__grid { background-size: 44px 44px; }

  .hero__desc { font-size: 0.97rem; }

  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    padding: 1.5rem 0;
  }

  .hero__stat-value { font-size: 1.2rem; }

  .videos__grid,
  .projects__grid,
  .achievements__grid,
  .blog__grid {
    grid-template-columns: 1fr;
  }

  .section { padding: 4.5rem 0; }

  .section__head { gap: 0.75rem; }

  .section__subtitle { margin-bottom: 2rem; font-size: 0.94rem; }

  .section__head + .projects__grid,
  .section__head + .achievements__grid,
  .section__head + .timeline,
  .section__head + .videos__grid,
  .section__head + .blog__grid {
    margin-top: 2rem;
  }

  .timeline { padding-left: 1.5rem; }
  .timeline__dot { left: -1.5rem; }
  .timeline__card { padding: 1.35rem; }

  .contact__inner {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .contact__links { justify-content: center; }

  .contact__info p {
    margin-left: auto;
    margin-right: auto;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
    gap: 0.4rem;
  }
}

@media (max-width: 480px) {
  .hero { padding-top: 6.5rem; }

  .hero__name { font-size: 2.7rem; }

  .hero__pill { font-size: 0.68rem; padding: 0.32rem 0.7rem; }

  .hero__cta { flex-direction: column; align-items: stretch; }

  .btn { width: 100%; }

  .video-card__body,
  .project-card__body,
  .achievement-card__body,
  .blog-card__body {
    padding: 1.2rem;
  }

  .video-card__play { width: 48px; height: 48px; }

  .contact__avatar {
    width: 130px;
    height: 130px;
  }

  .contact__links a { width: 42px; height: 42px; }
}
