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

/* Hide scrollbar but keep scroll functionality */

/* For Chrome, Edge, Safari */
::-webkit-scrollbar {
  display: none;
}

/* For Firefox */
html {
  scrollbar-width: none;
}

/* For IE & old Edge */
html {
  -ms-overflow-style: none;
}

html,
body {
  width: 100%;
  height: 100%;
  background: #111;
  font-family: 'Cormorant Garamond', serif;
  overflow: hidden;
  cursor: none;
}

/* ===== HERO PAGE ===== */
#hero {
  position: fixed;
  inset: 0;
  z-index: 1;
  transition: transform 0.9s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.9s ease;
}

#hero.slide-out {
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
}

#grid {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  will-change: transform;
  z-index: 0;
}

#portrait-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  z-index: 1;
}

#img-base,
#img-alt {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

#img-base {
  filter: saturate(0.25) brightness(0.9);
  z-index: 1;
}

#img-alt {
  filter: saturate(1.05) contrast(1.05) brightness(0.9);
  z-index: 2;
  clip-path: circle(0px at 50% 50%);
}

/* UI overlay on hero */
#hero-ui {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

/* Name */
#name {
  position: absolute;
  top: 48px;
  left: 56px;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3vw, 3.2rem);
  font-weight: 700;
  line-height: 1.05;
  color: #fff;
  will-change: transform;
  pointer-events: auto;
}

#name-last {
  color: gray;
}

#name span {
  display: block;
  transition: color 0.3s ease;
}

/* NAV - top right */
#nav {
  position: absolute;
  top: 48px;
  right: 56px;
  display: flex;
  gap: 16px;
  align-items: center;
  pointer-events: auto;
  will-change: transform;
}

#nav a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

#nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 1px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

#nav a:hover {
  color: #fff;
}

#nav a:hover::after {
  transform: scaleX(1);
}

#nav a.nav-about {
  color: #fff;
}

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  cursor: none;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, border-color 0.3s, transform 0.2s;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.28);
}

.nav-toggle-lines {
  width: 18px;
  height: 12px;
  position: relative;
  display: block;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after,
.nav-toggle-lines {
  background: transparent;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  transition: transform 0.25s ease, top 0.25s ease, opacity 0.2s ease;
}

.nav-toggle-lines::before {
  top: 0;
}

.nav-toggle-lines::after {
  top: 10px;
}

#nav.open .nav-toggle-lines::before {
  top: 5px;
  transform: rotate(45deg);
}

#nav.open .nav-toggle-lines::after {
  top: 5px;
  transform: rotate(-45deg);
}

.nav-menu {
  position: absolute;
  top: 56px;
  right: 0;
  width: min(320px, calc(100vw - 40px));
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(14, 14, 14, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  padding: 10px;
  display: grid;
  gap: 6px;
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease, visibility 0s linear 0.28s;
  z-index: 9999;
}

#nav.open .nav-menu {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.28s ease, opacity 0.28s ease, visibility 0s;
}

.nav-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
  cursor: none;
}

.nav-menu-link:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

/* Social icons */
#socials {
  position: absolute;
  bottom: 52px;
  right: 56px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-end;
  pointer-events: auto;
  will-change: transform;
}

#socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.3s ease, transform 0.2s ease, border-color 0.3s;
  text-decoration: none;
}

#socials a:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.9);
}

#socials a:hover svg {
  fill: #111;
}

#socials a svg {
  width: 15px;
  height: 15px;
  fill: #fff;
  transition: fill 0.3s ease;
}

/* Tagline */
#tagline {
  position: absolute;
  bottom: 52px;
  left: 56px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  will-change: transform;
}

/* Cursor */
#cursor {
  position: fixed;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width 0.2s, height 0.2s;
}

#cursor.big {
  width: 40px;
  height: 40px;
}

.echo {
  position: fixed;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  animation: echoFade 0.7s ease-out forwards;
}

@keyframes echoFade {
  0% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.5);
  }
}

/* ===== ABOUT PANEL ===== */
#about-panel {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: flex;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.9s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.9s ease;
  pointer-events: none;
}

#about-panel.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

/* Left column - decorative image strip */
#about-img {
  width: 38%;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

#about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  filter: saturate(0.6) brightness(0.75);
}

#about-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, #0e0e0e 100%);
}

/* Right column - content */
#about-content {
  flex: 1;
  background: #0e0e0e;
  padding: 80px 64px 60px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  position: relative;
}


/* Back button */
#back-btn {
  position: absolute;
  top: 48px;
  right: 56px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  background: none;
  border: none;
  cursor: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s;
}

#back-btn:hover {
  color: #fff;
}

#back-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
}

/* Section nav pills inside about */
#about-subnav {
  display: flex;
  gap: 10px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.subnav-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  cursor: none;
  transition: all 0.3s ease;
}

.subnav-btn:hover,
.subnav-btn.active {
  background: #fff;
  color: #111;
  border-color: #fff;
}

/* About sections */
.about-section {
  display: none;
  animation: fadeUp 0.5s ease forwards;
}

.about-section.visible {
  display: block;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* About Me */
.about-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 20px;
}

.about-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 3.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 32px;
}

.about-body {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
  max-width: 520px;
  margin-bottom: 40px;
}

.about-body strong {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.section-label {
  margin-top: 6px;
  margin-bottom: 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

/* Skills tags */
.skills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.skill-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.5);
}

/* Resume section */
.resume-block {
  margin-bottom: 36px;
}

.resume-year {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 6px;
}

.resume-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 4px;
}

.resume-org {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 10px;
}

.resume-desc {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
}

.resume-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 28px 0;
}

.resume-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 12px 28px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
  cursor: none;
}

.resume-download:hover {
  background: #fff;
  color: #111;
}

.resume-download svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
}

/* Timeline (education) */
.journey {
  position: relative;
  margin-top: 24px;
  margin-bottom: 28px;
  padding-left: 18px;
}

.journey::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 2px;
  width: 1px;
  background: rgba(255, 255, 255, 0.09);
}

.journey-item {
  position: relative;
  padding: 16px 18px 16px 18px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.journey-item::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 22px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.06);
}

.journey-row {
  display: flex;
  gap: 14px;
  align-items: baseline;
  justify-content: space-between;
}

.journey-degree {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: #fff;
}

.journey-year {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
}

.journey-org {
  margin-top: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
}

/* Projects section */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.project-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px 20px 18px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
  cursor: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.project-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.project-number {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.25);
}

.project-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: #fff;
  line-height: 1.2;
}

.project-desc {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.5);
}

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

.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  cursor: none;
  max-width: 100%;
}

.project-link:hover {
  background: #fff;
  color: #111;
  border-color: #fff;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.45);
}

/* Contact */
.contact-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.03);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.contact-item {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  min-width: 0;
}

.contact-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 8px;
}

.contact-value a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 2px;
  transition: border-color 0.3s, color 0.3s;
  cursor: none;
  overflow-wrap: anywhere;
}

.contact-value a:hover {
  color: #fff;
  border-color: #fff;
}

.contact-form {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.contact-honey {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

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

.form-field {
  min-width: 0;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.form-input,
.form-textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.9);
  padding: 12px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.25s, background 0.25s;
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

.form-input:focus,
.form-textarea:focus {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.04);
}

.form-input[aria-invalid="true"],
.form-textarea[aria-invalid="true"] {
  border-color: rgba(255, 96, 96, 0.55);
}

.form-error {
  min-height: 18px;
  margin-top: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  color: rgba(255, 96, 96, 0.85);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: none;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}

.form-submit:hover {
  background: #fff;
  color: #111;
  border-color: #fff;
  transform: translateY(-1px);
}

.form-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.form-status {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  min-height: 20px;
}

/* Footer row inside about */
#about-footer {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

#about-footer-name {
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.25);
  font-style: italic;
}

#about-footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

#about-footer-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: color 0.3s;
}

#about-footer-links a:hover {
  color: #fff;
}

/* Modal (View Resume) */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

.modal-panel {
  position: relative;
  width: min(720px, 100%);
  border-radius: 16px;
  background: rgba(14, 14, 14, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  padding: 24px 22px 20px;
}

.modal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: #fff;
  line-height: 1.15;
}

.modal-close {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border-radius: 100px;
  padding: 10px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: none;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.modal-close:hover {
  background: #fff;
  color: #111;
  border-color: #fff;
}

.modal-body {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.6);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  #about-img {
    width: 30%;
  }

  #about-content {
    padding: 64px 44px 48px 40px;
  }

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

@media (max-width: 768px) {
  #about-img {
    display: none;
  }

  #about-content {
    padding: 56px 32px 40px;
  }

  #back-btn {
    right: 32px;
    top: 32px;
  }

  #nav {
    right: 28px;
  }

  .nav-links {
    gap: 20px;
  }

  #name {
    left: 28px;
    top: 36px;
  }

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

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

@media (max-width: 600px) {
  #nav {
    top: 36px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
  }

  #name {
    font-size: 1.5rem;
  }

  #about-content {
    padding: 44px 20px 32px;
  }

  #back-btn {
    right: 20px;
    top: 22px;
  }

  .journey-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .project-link {
    width: 100%;
  }
}

@media (min-width: 1440px) {
  #name {
    top: 56px;
    left: 72px;
    font-size: 3.6rem;
  }

  #nav {
    top: 60px;
    right: 72px;
  }

  #socials {
    bottom: 60px;
    right: 72px;
  }

  #tagline {
    bottom: 60px;
    left: 72px;
  }
}

/* Touch / non-hover devices: use normal cursor & hide custom cursor */
@media (hover: none), (pointer: coarse) {
  html,
  body {
    cursor: auto;
  }

  #cursor,
  .echo {
    display: none !important;
  }

  #back-btn,
  .subnav-btn,
  .resume-download,
  .project-card,
  .project-link,
  .contact-value a,
  .modal-close {
    cursor: pointer;
  }
}
