/* =========================================================
   ZIHAM MAHMUD — PERSONAL PORTFOLIO
   Dark Purple Cybersecurity Theme
   Responsive CSS
========================================================= */

/* -------------------- BASE STYLES -------------------- */

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

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

body {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #ece9f7;
  background-color: #08060f;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: #a78bfa;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #c4b5fd;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  line-height: 1.25;
  font-weight: 700;
}

p {
  margin-bottom: 1rem;
}

:focus-visible {
  outline: 2px solid #a78bfa;
  outline-offset: 4px;
}

::selection {
  background: rgba(139, 92, 246, 0.45);
  color: #ffffff;
}

.container {
  width: 90%;
  max-width: 1120px;
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 100px 0;
  scroll-margin-top: 70px;
}

.section-alt {
  background: rgba(124, 58, 237, 0.035);
}

/* -------------------- GLASS CARDS -------------------- */

.glass {
  background: rgba(139, 92, 246, 0.055);
  border: 1px solid rgba(167, 139, 250, 0.16);
  border-radius: 20px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* -------------------- ANIMATIONS -------------------- */

.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@keyframes pulse {
  0% {
    opacity: 1;
    box-shadow: 0 0 10px #34d399;
  }

  50% {
    opacity: 0.45;
    box-shadow: 0 0 3px #34d399;
  }

  100% {
    opacity: 1;
    box-shadow: 0 0 10px #34d399;
  }
}

@keyframes ringSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes scrollThumb {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  70% {
    transform: translateY(14px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 0;
  }
}

/* -------------------- HEADER -------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(8, 6, 15, 0.94);
  border-bottom-color: rgba(167, 139, 250, 0.16);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.nav {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ece9f7;
  font-weight: 600;
}

.wordmark-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, #a78bfa, #7c3aed, #4c1d95);
  color: #ffffff;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.3);
}

.wordmark-name {
  font-size: 15px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-link {
  position: relative;
  display: block;
  padding: 10px 14px;
  border-radius: 9px;
  color: #a49fc0;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
  background: rgba(139, 92, 246, 0.1);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #a78bfa, #7c3aed);
}

/* Mobile navigation button */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.07);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: #ece9f7;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* -------------------- HERO -------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 110px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.06) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 25%, transparent 75%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.hero-glow-a {
  width: 450px;
  height: 450px;
  top: -120px;
  right: -100px;
  background: rgba(124, 58, 237, 0.22);
}

.hero-glow-b {
  width: 350px;
  height: 350px;
  bottom: -100px;
  left: -100px;
  background: rgba(76, 29, 149, 0.24);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 70px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 8px 15px;
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 30px;
  background: rgba(139, 92, 246, 0.06);
  color: #a78bfa;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  animation: pulse 2.4s ease-in-out infinite;
}

.hero-title {
  margin-bottom: 18px;
  font-size: 58px;
  font-weight: 800;
  letter-spacing: -1.5px;
}

.text-gradient {
  color: #a78bfa;
  background: linear-gradient(135deg, #c4b5fd, #8b5cf6, #6d28d9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  margin-bottom: 20px;
  color: #a78bfa;
  font-family: "JetBrains Mono", monospace;
  font-size: 17px;
}

.hero-lede {
  max-width: 560px;
  margin-bottom: 30px;
  color: #a49fc0;
  font-size: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* -------------------- BUTTONS -------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 23px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    background 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #a78bfa, #7c3aed, #5b21b6);
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.25);
}

.btn-primary:hover {
  color: #ffffff;
  box-shadow: 0 10px 32px rgba(139, 92, 246, 0.4);
}

.btn-ghost {
  color: #ece9f7;
  background: rgba(139, 92, 246, 0.06);
  border-color: rgba(167, 139, 250, 0.2);
}

.btn-ghost:hover {
  color: #ffffff;
  background: rgba(139, 92, 246, 0.13);
  border-color: rgba(167, 139, 250, 0.45);
}

.btn-sm {
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 13px;
}

/* -------------------- PROFILE PHOTO -------------------- */

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-frame {
  position: relative;
  width: 320px;
  height: 320px;
  max-width: 100%;
}

/* Uses the real profile.jpeg image */

.profile-photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(167, 139, 250, 0.4);
  border-radius: 28px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

.profile-ring {
  position: absolute;
  inset: -14px;
  z-index: 0;
  border: 2px solid rgba(139, 92, 246, 0.25);
  border-radius: 38px;
  animation: ringSpin 14s linear infinite;
}

/* -------------------- SCROLL INDICATOR -------------------- */

.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.7;
}

.scroll-hint-track {
  position: relative;
  display: block;
  width: 24px;
  height: 38px;
  border: 1px solid rgba(167, 139, 250, 0.5);
  border-radius: 20px;
}

.scroll-hint-thumb {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: #a78bfa;
  animation: scrollThumb 1.8s ease infinite;
}

/* -------------------- SECTION HEADINGS -------------------- */

.section-head {
  max-width: 700px;
  margin-bottom: 50px;
}

.section-kicker {
  margin-bottom: 12px;
  color: #a78bfa;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.section-title {
  margin-bottom: 15px;
  color: #ece9f7;
  font-size: 40px;
  letter-spacing: -0.7px;
}

.section-sub {
  margin-bottom: 0;
  color: #a49fc0;
}

/* -------------------- ABOUT -------------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: start;
  gap: 25px;
}

.about-card {
  padding: 35px;
}

.about-card p {
  color: #a49fc0;
}

.about-card p:first-child {
  color: #ece9f7;
}

.about-card p:last-child {
  margin-bottom: 0;
}

.about-note {
  padding: 15px 18px;
  border-left: 3px solid #8b5cf6;
  border-radius: 0 10px 10px 0;
  background: rgba(139, 92, 246, 0.07);
  font-size: 14px;
}

.about-facts {
  display: grid;
  gap: 14px;
}

.fact {
  display: grid;
  gap: 5px;
  padding: 20px;
}

.fact-label {
  color: #7c7699;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.fact-value {
  color: #ece9f7;
  font-size: 15px;
  font-weight: 600;
}

/* -------------------- SKILLS -------------------- */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.skill-card {
  padding: 27px 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.skill-card-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 22px;
}

.skill-card-head h3 {
  margin: 0;
  font-size: 17px;
}

.skill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 43px;
  height: 43px;
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.1);
  color: #a78bfa;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border: 1px solid rgba(167, 139, 250, 0.17);
  border-radius: 30px;
  background: rgba(139, 92, 246, 0.09);
  color: #ece9f7;
  font-size: 13px;
  font-weight: 500;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.tag:hover {
  border-color: rgba(167, 139, 250, 0.5);
  color: #c4b5fd;
}

.tag-sm {
  padding: 5px 10px;
  font-size: 12px;
}

.tag-note {
  color: #7c7699;
  font-size: 11px;
}

/* -------------------- PROJECTS -------------------- */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.project-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
  border-bottom: 1px solid rgba(167, 139, 250, 0.15);
  background:
    radial-gradient(ellipse at top, rgba(124, 58, 237, 0.25), transparent 70%),
    rgba(139, 92, 246, 0.035);
  color: #a78bfa;
}

.project-glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-radius: 20px;
  background: rgba(8, 6, 15, 0.65);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}

.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 15px;
  padding: 27px;
}

.project-label {
  align-self: flex-start;
  padding: 5px 11px;
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 30px;
  background: rgba(139, 92, 246, 0.06);
  color: #a78bfa;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.project-name {
  margin: 0;
  color: #ece9f7;
  font-size: 24px;
}

.project-desc {
  flex: 1;
  margin: 0;
  color: #a49fc0;
  font-size: 14px;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

/* -------------------- EDUCATION -------------------- */

.timeline {
  position: relative;
  max-width: 750px;
  padding-left: 35px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 7px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(to bottom, #8b5cf6, transparent);
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  top: 25px;
  left: -35px;
  width: 17px;
  height: 17px;
  border: 3px solid #8b5cf6;
  border-radius: 50%;
  background: #08060f;
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.4);
}

.timeline-card {
  padding: 28px;
}

.timeline-card h3 {
  margin: 15px 0 8px;
  font-size: 20px;
}

.timeline-institution {
  margin-bottom: 12px;
  color: #a78bfa;
  font-weight: 600;
}

.timeline-desc {
  margin: 0;
  color: #a49fc0;
  font-size: 14px;
}

/* -------------------- CONTACT -------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 25px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px;
}

.contact-card-title {
  margin: 0;
  font-size: 20px;
}

.contact-email-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.contact-email {
  overflow-wrap: anywhere;
  padding-bottom: 2px;
  border-bottom: 1px dashed rgba(167, 139, 250, 0.35);
  color: #ece9f7;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
}

.contact-email:hover {
  color: #a78bfa;
  border-color: #a78bfa;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 9px;
  background: rgba(139, 92, 246, 0.07);
  color: #a49fc0;
  font-size: 12px;
  font-weight: 600;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.copy-btn:hover {
  color: #ece9f7;
  border-color: rgba(167, 139, 250, 0.5);
}

.copy-btn.is-copied {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.5);
}

.copy-feedback {
  min-height: 1em;
  color: #34d399;
  font-size: 12px;
}

.contact-note {
  flex: 1;
  margin: 0;
  color: #7c7699;
  font-size: 13px;
}

.social-list {
  display: grid;
  gap: 11px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 15px;
  border: 1px solid rgba(167, 139, 250, 0.16);
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.05);
  color: #ece9f7;
  transition: transform 0.25s ease, background 0.25s ease,
    border-color 0.25s ease;
}

.social-link:hover {
  transform: translateX(4px);
  border-color: rgba(167, 139, 250, 0.4);
  background: rgba(139, 92, 246, 0.12);
  color: #ffffff;
}

.social-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(167, 139, 250, 0.18);
  border-radius: 11px;
  background: rgba(139, 92, 246, 0.1);
  color: #a78bfa;
}

.social-text {
  display: grid;
  line-height: 1.4;
}

.social-text strong {
  font-size: 14px;
}

.social-text small {
  color: #7c7699;
  font-size: 12px;
}

/* -------------------- FOOTER -------------------- */

.site-footer {
  padding: 35px 0;
  border-top: 1px solid rgba(167, 139, 250, 0.15);
  background: rgba(8, 6, 15, 0.8);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.footer-name {
  margin: 0;
  color: #ece9f7;
  font-weight: 700;
}

.footer-tagline {
  margin: 0;
  color: #7c7699;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}

.footer-social {
  display: flex;
  gap: 9px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(167, 139, 250, 0.16);
  border-radius: 11px;
  background: rgba(139, 92, 246, 0.05);
  color: #a49fc0;
  transition: transform 0.25s ease, color 0.25s ease,
    border-color 0.25s ease;
}

.footer-social a:hover {
  transform: translateY(-3px);
  border-color: rgba(167, 139, 250, 0.45);
  color: #a78bfa;
}

.footer-meta p {
  margin: 0;
  color: #7c7699;
  font-size: 12px;
}

/* -------------------- BACK TO TOP -------------------- */

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 13px;
  background: linear-gradient(135deg, #a78bfa, #6d28d9);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease,
    visibility 0.3s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  filter: brightness(1.1);
}

/* -------------------- PROJECT MODALS -------------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 3, 10, 0.8);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 35px;
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 20px;
  background: #100c1e;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal.is-open .modal-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(167, 139, 250, 0.18);
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.07);
  color: #a49fc0;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.modal-close:hover {
  color: #ffffff;
  border-color: rgba(167, 139, 250, 0.45);
}

.modal-title {
  margin: 18px 0 15px;
  font-size: 28px;
}

.modal-desc {
  color: #a49fc0;
}

.modal-desc-sub {
  color: #7c7699;
  font-size: 14px;
}

.modal-subhead {
  margin: 25px 0 12px;
  color: #a78bfa;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.modal-actions {
  margin-top: 25px;
}

/* -------------------- RESPONSIVE TABLET -------------------- */

@media (max-width: 920px) {
  .section {
    padding: 80px 0;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 45px;
    text-align: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-title {
    font-size: 48px;
  }

  .hero-lede {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-eyebrow {
    justify-content: center;
  }

  .profile-frame {
    width: 250px;
    height: 250px;
  }

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

  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .scroll-hint {
    display: none;
  }
}

/* -------------------- RESPONSIVE MOBILE -------------------- */

@media (max-width: 700px) {
  .container {
    width: 92%;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    padding: 15px 5%;
    border-bottom: 1px solid rgba(167, 139, 250, 0.2);
    background: rgba(10, 8, 20, 0.98);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease,
      visibility 0.3s ease;
  }

  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-link {
    padding: 12px 15px;
  }

  .nav-link.is-active::after {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 80px;
  }

  .hero-title {
    font-size: 38px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .hero-lede {
    font-size: 14px;
  }

  .section-title {
    font-size: 32px;
  }

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

  .about-card,
  .contact-card,
  .timeline-card {
    padding: 23px;
  }

  .project-body {
    padding: 23px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal-panel {
    padding: 28px 22px;
  }
}

/* -------------------- SMALL MOBILE -------------------- */

@media (max-width: 420px) {
  .wordmark-name {
    display: none;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .project-actions .btn {
    width: auto;
  }

  .profile-frame {
    width: 210px;
    height: 210px;
  }

  .section-title {
    font-size: 28px;
  }

  .contact-email {
    font-size: 12px;
  }
}

/* -------------------- REDUCED MOTION -------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
