/* =====================
   CSS CUSTOM PROPERTIES
   ===================== */
:root {
  --lavender:      #C4AEDE;
  --lavender-lt:   #E0D5EE;
  --lavender-mid:  #9B7BBF;
  --purple-dk:     #1C0F2E;   /* very dark warm purple-black, no blue */
  --purple-mid:    #3D1F6B;   /* deep warm violet */
  --section-dark:  #C4AEDE;   /* lavender bg for "dark" sections */
  --section-dark-card: rgba(255,255,255,0.45);  /* frosted white card on lavender */
  --gray-soft:     #EAE5F2;   /* section-level background — noticeable warm gray */
  --gray-mid:      #9B96A8;
  --gray-dk:       #3D3848;
  --white:         #F2EEF8;   /* replaces pure white — soft lavender-gray */
  --card-bg:       #E8E3F0;   /* cards sit slightly darker than --white */
  --text-primary:  #1C0F2E;
  --text-muted:    #7A7389;
  --accent:        #B39DDB;
}

/* =====================
   RESET & BASE
   ===================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Nav uses a slightly lighter tint so it floats above the gray base */

/* =====================
   CURSOR TRAIL STARS
   ===================== */
.star {
  position: fixed;
  pointer-events: none;
  font-size: 14px;
  opacity: 0;
  z-index: 9999;
  animation: starFade 0.8s ease forwards;
  user-select: none;
}

@keyframes starFade {
  0%   { opacity: 1; transform: scale(1) translateY(0); }
  100% { opacity: 0; transform: scale(0.3) translateY(-20px); }
}

/* =====================
   SCROLL PROGRESS BAR
   ===================== */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(to right, var(--lavender), var(--lavender-mid), var(--purple-mid));
  z-index: 200;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* =====================
   NAV
   ===================== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 5%;
  /* starts transparent over hero */
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  /* animate all the bg/border/shadow/transform properties */
  transition: background 0.4s ease,
              border-color 0.4s ease,
              box-shadow 0.4s ease,
              transform 0.35s ease,
              padding 0.35s ease;
}

/* once scrolled past hero — frosted glass materialises */
nav.scrolled {
  background: rgba(242, 238, 248, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(196, 174, 222, 0.28);
  box-shadow: 0 2px 24px rgba(28, 15, 46, 0.08);
  padding: 1rem 5%;
}

/* hide on scroll down */
nav.hide {
  transform: translateY(-100%);
}

/* gradient separator line — replaces the hard border */
nav::after {
  content: '';
  position: absolute;
  bottom: 0; left: 5%; right: 5%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(196, 174, 222, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
nav.scrolled::after {
  opacity: 1;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--purple-dk);
  font-style: italic;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.4s ease;
  position: relative;
  z-index: 1;
}

/* logo is readable on the lavender hero too */
nav:not(.scrolled) .nav-logo {
  color: var(--purple-dk);
}

/* ---- nav links + active pill ---- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  position: relative;
  padding-bottom: 2px; /* room for underline */
}

/* the sliding underline */
.nav-pill {
  position: absolute;
  bottom: -2px; left: 0;
  height: 1.5px;
  background: var(--lavender-mid);
  border-radius: 100px;
  pointer-events: none;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.2s ease;
  opacity: 0;
  z-index: 0;
}

.nav-links li {
  position: relative;
  z-index: 1;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  display: block;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover { color: var(--purple-mid); }
.nav-links a.active { color: var(--purple-mid); font-weight: 500; }

/* on transparent hero, links are slightly darker so they're readable */
nav:not(.scrolled) .nav-links a {
  color: rgba(61, 31, 107, 0.75);
}
nav:not(.scrolled) .nav-links a:hover,
nav:not(.scrolled) .nav-links a.active {
  color: var(--purple-dk);
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--purple-dk);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* =====================
   HERO
   ===================== */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 5% 4rem;
  position: relative;
  overflow: hidden;
  background: var(--section-dark);
}

/* full-bleed photo panel — right 50% of the hero */
.hero-photo-panel {
  position: absolute;
  top: 0; right: 0;
  width: 52%;
  height: 100%;
  z-index: 0;
}

.hero-photo-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

/* gradient fade on the left edge of the photo — blends into lavender */
.hero-photo-fade {
  position: absolute;
  top: 0; left: 0;
  width: 70%;
  height: 100%;
  background: linear-gradient(to right, var(--section-dark) 0%, var(--section-dark) 40%, transparent 100%);
  pointer-events: none;
}

.hero-bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}

.blob1 {
  width: 380px; height: 380px;
  background: rgba(155, 123, 191, 0.22);
  top: -80px; left: 30%;
  animation: blobFloat 9s ease-in-out infinite;
}

.blob2 {
  width: 220px; height: 220px;
  background: rgba(61, 31, 107, 0.1);
  bottom: 80px; left: 2%;
  animation: blobFloat 11s ease-in-out infinite reverse;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(18px, -25px) scale(1.06); }
}

/* hero layout — just text now, photo is absolute */
.hero-layout {
  position: relative;
  z-index: 2;
  width: 58%;
  transform: translateY(-40px);
}

.hero-inner {
  position: relative;
}

.hero-inner::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  left: -100px;
  top: -80px;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%);
  filter: blur(50px);
  z-index: -1;
}

.hero-inner::after {
  content: 'MARYAM';
  position: absolute;
  font-family: 'Playfair Display', serif;
  font-size: 12rem;
  color: rgba(61, 31, 107, 0.05);
  top: -80px;
  left: -50px;
  z-index: -1;
  pointer-events: none;
  white-space: nowrap;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--purple-mid);
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.2s ease forwards;
}

.hero-eyebrow span {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--purple-mid);
}

.hero-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(4rem, 7vw, 6.8rem);
  font-weight: 600;
  line-height: 1.05;
  color: var(--purple-dk);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.4s ease forwards;
}

.hero-name em {
  font-style: italic;
  font-weight: 400;
  color: var(--purple-mid);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  color: rgba(28, 15, 46, 0.85);
  font-weight: 300;
  margin-bottom: 2.5rem;
  line-height: 1.9;
  opacity: 0;
  animation: fadeUp 0.7s 0.6s ease forwards;
}

/* typewriter */
.typewriter-wrap {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.1em;
  color: var(--purple-mid);
  font-weight: 400;
}

#typewriter { display: inline; }

.cursor {
  display: inline-block;
  font-weight: 300;
  color: var(--purple-mid);
  animation: blink 0.9s step-end infinite;
  margin-left: 1px;
  font-style: normal;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s 0.8s ease forwards;
}

/* scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(61, 31, 107, 0.45);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  opacity: 0;
  animation: fadeIn 1s 1.3s ease forwards;
  z-index: 3;
}

.scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, transparent, var(--purple-mid));
  animation: scrollPulse 1.8s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50%       { transform: scaleY(0.6); opacity: 0.4; }
}

/* hero responsive */
@media (max-width: 900px) {
  .hero-photo-panel {
    width: 100%;
    opacity: 0.25;
  }

  .hero-photo-fade {
    width: 100%;
    background: linear-gradient(to right, var(--section-dark) 0%, rgba(196,174,222,0.85) 100%);
  }

  .hero-layout {
    width: 100%;
  }
}
.hero-photo-bg{
    filter: brightness(0.7);
}
/* =====================
   BUTTONS
   ===================== */
.btn-primary {
  padding: 0.75rem 1.8rem;
  background: var(--purple-mid);
  color: #fff;
  border: none;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s, transform 0.2s;
  display: inline-block;
}

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

.btn-outline {
  padding: 0.75rem 1.8rem;
  background: transparent;
  color: var(--purple-mid);
  border: 1.5px solid rgba(61, 31, 107, 0.4);
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.25s, color 0.25s, transform 0.2s;
  display: inline-block;
}

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

/* =====================
   SECTION BASE
   ===================== */
section {
  padding: 7rem 5%;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lavender-mid);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--lavender-mid);
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--purple-dk);
  margin-bottom: 3rem;
  line-height: 1.2;
}

/* =====================
   SCROLL REVEAL
   ===================== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* =====================
   ABOUT
   ===================== */
#about {
  background: var(--purple-dk);
  position: relative;
  overflow: hidden;
}

#about::before {
  content: 'ABOUT';
  position: absolute;
  font-family: 'Playfair Display', serif;
  font-size: 18rem;
  color: rgba(255, 255, 255, 0.02);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
  font-weight: 600;
}

#about > * {
  position: relative;
  z-index: 1;
}

#about .section-label {
  color: var(--lavender);
  margin-bottom: 2rem;
}
#about .section-label::before {
  background: var(--lavender);
}
#about .section-title {
  color: var(--lavender-lt);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 0;
}
#about .about-text p {
  color: rgba(224, 213, 238, 0.85);
}
#about .about-text p strong {
  color: var(--lavender);
  font-weight: 600;
}
#about .about-photo-deco {
  border-color: rgba(196, 174, 222, 0.35);
}

/* Cute tags on dark bg */
#about .tag {
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  background: rgba(224, 213, 238, 0.08);
  border: 1px solid rgba(224, 213, 238, 0.15);
  color: #E0D5EE;
  box-shadow: none;
  transition: transform 0.2s ease, background 0.2s ease;
  cursor: default;
}
#about .tag:hover {
  background: rgba(224, 213, 238, 0.15);
  transform: translateY(-2px);
  box-shadow: none;
}



.about-grid {
  display: grid;
  grid-template-columns: 282px 1fr;
  gap: 4rem;
  align-items: start;
  transform: translateY(-35px);
}

.about-photo-wrap {
  position: relative;
}

.about-photo {
  width: 282px;
  height: 352px;
  object-fit: cover;
  object-position: center 60%;
  border-radius: 141px 141px 94px 94px;
  display: block;
}

.about-photo-deco {
  position: absolute;
  width: 282px; height: 352px;
  border-radius: 141px 141px 94px 94px;
  border: 1.5px solid var(--lavender);
  top: 12px; left: 12px;
  z-index: -1;
  pointer-events: none;
}

.about-text p {
  color: var(--gray-dk);
  font-size: 1.15rem;
  margin-bottom: 0;
  font-weight: 300;
  line-height: 1.9;
  max-width: 720px;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-text p strong {
  font-weight: 500;
  color: var(--purple-mid);
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.tag {
  padding: 0.25rem 0.75rem;
  background: var(--lavender-lt);
  color: var(--purple-mid);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 400;
  border: 1px solid rgba(200, 184, 232, 0.5);
}

/* =====================
   PROJECTS — Hierarchical Layout
   ===================== */
#projects {
  background: var(--section-dark);
  position: relative;
}

#projects .section-label { color: var(--purple-mid); }
#projects .section-label::before { background: var(--purple-mid); }
#projects .section-title { color: var(--purple-dk); margin-bottom: 0.5rem; }

.projects-intro {
  font-size: 1rem;
  color: rgba(61, 31, 107, 0.65);
  font-weight: 300;
  margin-bottom: 3rem;
  max-width: 600px;
}

/* shared card shell */
.proj-featured,
.proj-secondary,
.proj-medium,
.proj-standard {
  background: rgba(255,255,255,0.45);
  border: 1px solid rgba(61,31,107,0.15);
  border-radius: 22px;
  overflow: hidden;
  backdrop-filter: blur(6px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.proj-featured:hover,
.proj-secondary:hover,
.proj-medium:hover,
.proj-standard:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(61,31,107,0.16);
  border-color: rgba(61,31,107,0.28);
}

/* ── Tier 1: Featured ── */
.proj-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 360px;
  margin-bottom: 1.5rem;
}

/* ── Tier 2 ── */
.proj-tier2 {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

/* ── Tier 3 ── */
.proj-tier3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ── Thumbnails ── */
.proj-thumb {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.proj-thumb--featured { min-height: 360px; }
.proj-thumb--secondary { height: 220px; }
.proj-thumb--medium { height: 200px; }
.proj-thumb--standard { height: 160px; }

.proj-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 1rem 1.2rem;
  position: relative;
  overflow: hidden;
}

.proj-thumb-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
  opacity: 0.75;
}

/* hover overlay */
.proj-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(28,15,46,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.proj-thumb:hover .proj-thumb-overlay { opacity: 1; }

.proj-overlay-btn {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  padding: 0.55rem 1.3rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: background 0.2s;
}

.proj-overlay-btn:hover { background: rgba(255,255,255,0.28); }

/* ── Thumbnail themes ── */

/* Snow Bros */
.proj-thumb--snowbros {
  background: linear-gradient(135deg, #1C0F2E 0%, #2D1654 50%, #3D1F6B 100%);
  color: var(--lavender-lt);
}

.ppa-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(196,174,222,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196,174,222,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}

.ppa-chars { position: absolute; bottom: 40%; left: 50%; transform: translateX(-50%); display: flex; gap: 60px; }

.ppa-char--1, .ppa-char--2 {
  width: 28px; height: 36px;
  border-radius: 14px 14px 6px 6px;
  position: relative;
}
.ppa-char--1 { background: #C4AEDE; }
.ppa-char--2 { background: #9B7BBF; }

.ppa-char--1::before, .ppa-char--2::before {
  content: '';
  position: absolute;
  width: 10px; height: 10px;
  background: rgba(255,255,255,0.35);
  border-radius: 50%;
  top: 6px; left: 50%; transform: translateX(-50%);
}

.ppa-snowball {
  position: absolute;
  width: 18px; height: 18px;
  background: rgba(255,255,255,0.85);
  border-radius: 50%;
  bottom: 42%;
  left: 53%;
  box-shadow: 0 0 12px rgba(255,255,255,0.5);
}

.ppa-platforms { position: absolute; bottom: 28%; left: 0; right: 0; }
.ppa-platform {
  position: absolute;
  height: 8px;
  background: rgba(196,174,222,0.2);
  border-radius: 4px;
  left: 15%; width: 30%;
}
.ppa-platform--2 { left: 55%; width: 25%; top: -20px; }

/* Gaming Hub */
.proj-thumb--gaminghub {
  background: linear-gradient(135deg, #2D1654, #1C0F2E);
  align-items: center;
  justify-content: center;
  padding: 1rem;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--lavender-lt);
}

.ppa-hub-grid {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  justify-content: center;
  z-index: 2;
  position: relative;
}

.hub-cell {
  flex: 1;
  border-radius: 10px;
  padding: 0.6rem 0.4rem 0.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.85;
  border: 1px solid rgba(255,255,255,0.1);
}

.hub-snake { background: rgba(155,123,191,0.25); color: #C4AEDE; }
.hub-pong  { background: rgba(196,174,222,0.15); color: #E0D5EE; }
.hub-brick { background: rgba(61,31,107,0.4);   color: #B39DDB; }

.hub-snake-body { display: flex; gap: 3px; margin-bottom: 2px; }
.hub-snake-body div { width: 8px; height: 8px; background: currentColor; border-radius: 2px; }

.hub-pong-vis { display: flex; align-items: center; gap: 6px; }
.hub-paddle { width: 4px; height: 16px; background: currentColor; border-radius: 2px; opacity: 0.8; }
.hub-ball { width: 6px; height: 6px; background: currentColor; border-radius: 50%; }

.hub-brick-rows { display: flex; flex-direction: column; gap: 3px; }
.hub-brick-row { display: flex; gap: 3px; }
.hub-brick-row div { width: 10px; height: 5px; background: currentColor; border-radius: 1px; opacity: 0.7; }

/* Neural Network */
.proj-thumb--nn {
  background: linear-gradient(135deg, #1C0F2E, #2D1654);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--lavender-lt);
  padding: 1rem;
}

.nn-vis {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
  position: relative;
}

.nn-layer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.nn-node {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(196,174,222,0.5);
  border: 1px solid rgba(196,174,222,0.7);
}

.nn-node--out {
  width: 14px; height: 14px;
  background: var(--lavender-mid);
  box-shadow: 0 0 8px rgba(155,123,191,0.6);
}

.nn-accuracy {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--lavender);
  opacity: 0.9;
  z-index: 2;
  position: relative;
}

/* UI/UX */
.proj-thumb--uiux {
  background: linear-gradient(135deg, #EDE6F7, #D8CBF0);
  align-items: center;
  justify-content: center;
  padding: 1rem;
  flex-direction: column;
  gap: 0;
}

.uiux-mockup {
  width: 90%;
  background: rgba(255,255,255,0.7);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(61,31,107,0.12);
  position: relative;
  z-index: 2;
}

.uiux-bar {
  background: rgba(61,31,107,0.08);
  padding: 5px 8px;
  display: flex;
  gap: 4px;
  align-items: center;
}

.uiux-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(155,123,191,0.4);
}

.uiux-hero-block {
  height: 30px;
  background: linear-gradient(90deg, rgba(155,123,191,0.25), rgba(196,174,222,0.15));
  margin: 5px;
  border-radius: 4px;
}

.uiux-rows { padding: 4px 5px 5px; display: flex; flex-direction: column; gap: 4px; }
.uiux-row { height: 6px; background: rgba(61,31,107,0.1); border-radius: 3px; }
.uiux-row--short { width: 65%; }
.uiux-nav { display: flex; gap: 4px; margin-top: 4px; }
.uiux-nav div { height: 6px; flex: 1; background: rgba(155,123,191,0.2); border-radius: 3px; }

.proj-thumb--uiux .proj-thumb-label { color: var(--purple-mid); }

/* Battleship */
.proj-thumb--battleship {
  background: linear-gradient(135deg, #2D1654, #1C0F2E);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--lavender-lt);
}

.bs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  z-index: 2;
  position: relative;
}

.bs-cell {
  width: 18px; height: 18px;
  background: rgba(196,174,222,0.1);
  border: 1px solid rgba(196,174,222,0.2);
  border-radius: 3px;
}
.bs-hit  { background: rgba(255,120,120,0.6); border-color: rgba(255,120,120,0.4); }
.bs-miss { background: rgba(120,160,255,0.25); border-color: rgba(120,160,255,0.3); }
.bs-ship { background: rgba(196,174,222,0.35); border-color: rgba(196,174,222,0.5); }

/* Cafe */
.proj-thumb--cafe {
  background: linear-gradient(135deg, #3D1F6B, #2D1654);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.8rem;
  color: var(--lavender-lt);
}

.cafe-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  z-index: 2;
  position: relative;
  width: 100%;
}

.cafe-feat {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(196,174,222,0.15);
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.cafe-icon { font-size: 0.85rem; }

/* ── Card body ── */
.proj-featured-body,
.proj-card-body {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.proj-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.proj-year {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 400;
}

.proj-featured-title {
  font-size: clamp(1.3rem, 2vw, 1.7rem) !important;
}

.proj-tag--featured {
  background: rgba(61,31,107,0.15) !important;
}

/* ── Footer row (stack + buttons) ── */
.proj-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 0.5rem;
}

.proj-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* ── Buttons ── */
.proj-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.proj-btn--primary {
  background: var(--purple-mid);
  color: #fff;
  border: none;
}
.proj-btn--primary:hover {
  background: var(--purple-dk);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(61,31,107,0.3);
}

.proj-btn--ghost {
  background: transparent;
  color: var(--purple-mid);
  border: 1px solid rgba(61,31,107,0.3);
}
.proj-btn--ghost:hover {
  background: rgba(61,31,107,0.06);
  border-color: var(--purple-mid);
  transform: translateY(-1px);
}

.proj-btn--github {
  background: rgba(61,31,107,0.08);
  color: var(--purple-mid);
  border: 1px solid rgba(61,31,107,0.2);
}
.proj-btn--github:hover {
  background: rgba(61,31,107,0.14);
  transform: translateY(-1px);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .proj-featured { grid-template-columns: 1fr; }
  .proj-thumb--featured { min-height: 220px; }
  .proj-tier2 { grid-template-columns: 1fr; }
  .proj-tier3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .proj-tier3 { grid-template-columns: 1fr; }
}

/* shared project typography */
.project-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple-mid);
  background: rgba(61, 31, 107, 0.1);
  padding: 0.22rem 0.65rem;
  border-radius: 100px;
  border: 1px solid rgba(61, 31, 107, 0.18);
  white-space: nowrap;
}

.project-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--purple-dk);
  line-height: 1.3;
}

.project-desc {
  font-size: 0.875rem;
  color: rgba(61, 31, 107, 0.65);
  line-height: 1.75;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.stack-pill {
  font-size: 0.72rem;
  color: var(--purple-mid);
  background: rgba(61, 31, 107, 0.08);
  padding: 0.18rem 0.6rem;
  border-radius: 100px;
  font-weight: 500;
  border: 1px solid rgba(61, 31, 107, 0.18);
}


/* =====================
   SKILLS
   ===================== */
#skills {
  background: var(--purple-dk);
}

#skills .section-label {
  color: var(--lavender);
}
#skills .section-label::before {
  background: var(--lavender);
}
#skills .section-title {
  color: var(--lavender-lt);
}
#skills .skill-group {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(196, 174, 222, 0.2);
  backdrop-filter: blur(6px);
}
#skills .skill-group:hover {
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}
#skills .skill-group-title {
  color: var(--lavender);
}
#skills .skill-list li {
  color: rgba(224, 213, 238, 0.8);
  border-bottom-color: rgba(196, 174, 222, 0.12);
}
#skills .skill-dot {
  background: var(--lavender-mid);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.skill-group {
  background: var(--card-bg);
  border: 1px solid rgba(200, 184, 232, 0.5);
  border-radius: 18px;
  padding: 1.5rem;
  transition: transform 0.25s, box-shadow 0.25s;
}

.skill-group:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(74, 45, 122, 0.07);
}

.skill-group-title {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lavender-mid);
  margin-bottom: 1rem;
}

.skill-list {
  list-style: none;
}

.skill-list li {
  font-size: 0.9rem;
  color: var(--gray-dk);
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(200, 184, 232, 0.2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
}

.skill-list li:last-child {
  border-bottom: none;
}

.skill-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lavender-mid);
  flex-shrink: 0;
}

/* =====================
   EDUCATION
   ===================== */
#education {
  background: var(--section-dark);
}

#education .section-label {
  color: var(--purple-mid);
}
#education .section-label::before {
  background: var(--purple-mid);
}
#education .section-title {
  color: var(--purple-dk);
}
#education .edu-card {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(61, 31, 107, 0.18);
  backdrop-filter: blur(4px);
}
#education .edu-card:hover {
  border-color: rgba(61, 31, 107, 0.35);
  background: rgba(255, 255, 255, 0.65);
}
#education .edu-year {
  color: var(--purple-mid);
}
#education .edu-degree {
  color: var(--purple-dk);
}
#education .edu-school {
  color: rgba(61, 31, 107, 0.65);
}
#education .edu-detail {
  color: var(--purple-mid);
}

.edu-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.edu-card {
  display: flex;
  gap: 2rem;
  padding: 1.75rem;
  border: 1px solid rgba(200, 184, 232, 0.5);
  border-radius: 20px;
  background: var(--card-bg);
  transition: border-color 0.3s, transform 0.3s;
}

.edu-card:hover {
  border-color: var(--lavender-mid);
  transform: translateX(5px);
}

.edu-year {
  font-size: 0.8rem;
  color: var(--lavender-mid);
  font-weight: 500;
  min-width: 100px;
  padding-top: 0.2rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.edu-degree {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--purple-dk);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.edu-school {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.edu-detail {
  font-size: 0.82rem;
  color: var(--lavender-mid);
  font-weight: 500;
}

/* =====================
   CONTACT
   ===================== */
#contact {
  background: var(--purple-dk);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.2;
}

.cb1 {
  width: 400px; height: 400px;
  background: var(--lavender-mid);
  top: -150px; right: -100px;
}

.cb2 {
  width: 300px; height: 300px;
  background: var(--purple-mid);
  bottom: -100px; left: -50px;
}

.contact-inner {
  position: relative;
  z-index: 1;
  max-width: 580px;
  margin: 0 auto;
}

#contact .section-label {
  justify-content: center;
  color: var(--lavender);
}

#contact .section-label::before {
  background: var(--lavender);
}

#contact .section-title {
  color: var(--white);
}

.contact-sub {
  color: rgba(224, 213, 238, 0.65);
  font-size: 1rem;
  margin-bottom: 3rem;
  font-weight: 300;
}

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

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border: 1px solid rgba(196, 174, 222, 0.3);
  border-radius: 100px;
  color: var(--lavender-lt);
  background: transparent;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
}

.contact-link:hover {
  background: rgba(196, 174, 222, 0.1);
  border-color: var(--lavender);
  transform: translateY(-2px);
}

.contact-link svg {
  opacity: 0.7;
  flex-shrink: 0;
}

.contact-email {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--lavender-lt);
  opacity: 0.75;
}

/* =====================
   FOOTER
   ===================== */
footer {
  background: var(--purple-dk);
  border-top: 1px solid rgba(196, 174, 222, 0.1);
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.3);
}

/* =====================
   KEYFRAMES
   ===================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(232, 228, 240, 0.97);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 1rem;
    border-bottom: 1px solid rgba(200, 184, 232, 0.25);
    backdrop-filter: blur(14px);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    padding: 0.75rem 5%;
  }

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

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

  .about-photo-wrap {
    display: flex;
    justify-content: center;
  }

  .edu-card {
    flex-direction: column;
    gap: 0.4rem;
  }

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

  section {
    padding: 5rem 5%;
  }
}

/* =====================
   REDUCED MOTION
   ===================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ===================================================
   UI/UX PROJECT SLIDESHOW MODAL
   Lightbox-style overlay for the Interactive Web
   Prototype card. Reuses the site's existing color
   tokens so it feels native rather than bolted-on.
   =================================================== */

.uiux-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.uiux-modal.open {
  display: flex;
}

.uiux-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 15, 46, 0.78);
  backdrop-filter: blur(4px);
}

.uiux-modal-content {
  position: relative;
  z-index: 1;
  width: min(800px, 90vw);
  max-height: 88vh;
  background: var(--purple-dk);
  border: 1px solid rgba(196, 174, 222, 0.15);
  border-radius: 20px;
  padding: 1.75rem 1.75rem 1.5rem;
  box-shadow: 0 30px 80px rgba(28, 15, 46, 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: uiuxModalIn 0.25s ease;
}

@keyframes uiuxModalIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.uiux-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.95rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(196, 174, 222, 0.25);
  background: rgba(196, 174, 222, 0.1);
  color: var(--lavender-lt);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.uiux-modal-close:hover {
  background: rgba(196, 174, 222, 0.2);
  transform: rotate(90deg);
}

.uiux-slideshow {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.uiux-slides {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: #1A1008;
}

.uiux-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #1A1008;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.uiux-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.uiux-arrow {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(196, 174, 222, 0.25);
  background: rgba(196, 174, 222, 0.08);
  color: var(--lavender-lt);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.uiux-arrow:hover {
  background: rgba(196, 174, 222, 0.18);
  transform: scale(1.08);
}

.uiux-dots {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.uiux-dot-btn {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(196, 174, 222, 0.25);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, transform 0.25s ease;
}

.uiux-dot-btn:hover {
  background: rgba(196, 174, 222, 0.5);
}

.uiux-dot-btn.active {
  background: var(--lavender);
  transform: scale(1.25);
}

@media (max-width: 600px) {
  .uiux-modal-content {
    width: 94vw;
    padding: 1.25rem 1rem 1.25rem;
  }
  .uiux-arrow {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
  }
}