/* ═══════════════════════════════════════════════════════
   MARYAM ALHAWI PORTFOLIO
   Palette: night → periwinkle → lavender → blush → peach → cream
   #2D3561 · #5B6BA9 · #8E8DB8 · #BEB5D4
   #F2B8C6 · #F4C4A1 · #F9D8BC · #FCEADE
   Accents: #E07C8E (Coral Glow) · #D98B72 (Terra Peach) · #F5F0FF (Star White)
   ═══════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────── */
:root {
  /* Mid-palette gradient — used for buttons, text fills, card strips */
  --gradient: linear-gradient(135deg, #E07C8E, #8E8DB8, #5B6BA9);
  /* Full palette — used for hero name underline & long decorative bars */
  --gradient-full: linear-gradient(to right, #2D3561, #5B6BA9, #8E8DB8, #F2B8C6, #F4C4A1, #FCEADE);
  /* Soft tint */
  --gradient-soft: linear-gradient(135deg, #fce8ec, #eeecf7, #e8eaf6);

  /* Named colours */
  --midnight:   #2D3561;   /* Midnight Indigo — deep emphasis */
  --periwinkle: #5B6BA9;   /* Dusk Periwinkle — mid accent    */
  --lavender:   #8E8DB8;   /* Lavender Haze — cloud shadow    */
  --lilac:      #BEB5D4;   /* Lilac Mist — soft borders       */
  --blush:      #F2B8C6;   /* Blush Cloud — warm pink         */
  --peach-dusk: #F4C4A1;   /* Peach Dusk — warm glow          */
  --apricot:    #F9D8BC;   /* Soft Apricot — highlight        */
  --cream:      #FCEADE;   /* Cream Peach — brightest warmth  */
  --coral:      #E07C8E;   /* Coral Glow — warm accent        */
  --terra:      #D98B72;   /* Terra Peach — deep warm accent  */
  --star-white: #F5F0FF;   /* Star White — sparkles / bg tint */

  /* Backward-compat aliases */
  --indigo: #2D3561;
  --rose:   #E07C8E;
  --peach:  #F9D8BC;
  --mint:   #BEB5D4;

  /* Soft tints */
  --blush-soft:      #fce8ed;
  --rose-soft:       #fce4e8;
  --periwinkle-soft: #eceef9;
  --indigo-soft:     #e8eaf4;
  --mint-soft:       #f0edf7;
  --peach-soft:      #fdf5ee;

  /* Neutrals */
  --bg:            #faf9fc;
  --surface:       rgba(255,255,255,0.88);
  --surface-solid: #ffffff;
  --border:        rgba(190,181,212,0.3);
  --text:          #2c2a38;
  --text-muted:    #6b6880;
  --text-light:    #a8a4be;

  /* Typography */
  --font-sans:  'DM Sans', system-ui, sans-serif;
  --font-serif: 'DM Serif Display', Georgia, serif;

  /* Spacing */
  --section-pad: 6rem 1.5rem;
  --radius:      1rem;
  --radius-sm:   0.5rem;
  --radius-pill: 999px;
}

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

body {
  font-family: var(--font-sans);
  color: var(--text);
  line-height: 1.7;
  font-size: 0.9rem;
  -webkit-font-smoothing: antialiased;
  /* Cloud background — fixed so it stays as you scroll */
  background-image: url('clouds-background.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

nav, section, footer { position: relative; z-index: 1; }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ── Container ───────────────────────────────────────── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }

/* ═══════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 2.5rem;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(190,181,212,0.2);
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  background: rgba(250, 249, 252, 0.97);
  box-shadow: 0 2px 20px rgba(91,107,169,0.1);
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--text);
  letter-spacing: 0.01em;
}
.nav-logo span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--midnight); }

.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: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ═══════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 1.5rem 5rem;
  text-align: center;
  background: #faf9fc;
}

/* ── Magical floating orbs ─────────────────────────── */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.blob-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, #F2B8C6 0%, rgba(242,184,198,0) 70%);
  top: -100px; left: -160px;
  filter: blur(60px);
  opacity: 0.85;
  animation: drift 12s ease-in-out infinite;
}
.blob-2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #8E8DB8 0%, rgba(142,141,184,0) 70%);
  bottom: 40px; right: -100px;
  filter: blur(70px);
  opacity: 0.65;
  animation: drift 15s ease-in-out infinite reverse;
}
.blob-3 {
  width: 340px; height: 340px;
  background: radial-gradient(circle, #E07C8E 0%, rgba(224,124,142,0) 70%);
  top: 50%; left: 60%;
  filter: blur(55px);
  opacity: 0.55;
  animation: drift 10s ease-in-out infinite 2s;
}
.blob-4 {
  width: 260px; height: 260px;
  background: radial-gradient(circle, #BEB5D4 0%, rgba(190,181,212,0) 70%);
  top: 20%; left: 15%;
  filter: blur(50px);
  opacity: 0.6;
  animation: drift 17s ease-in-out infinite 1s reverse;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(18px, -24px) scale(1.04); }
  66%       { transform: translate(-14px, 16px) scale(0.97); }
}

/* ── Floating sparkle particles ────────────────────── */
.sparkle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: sparkle-float linear infinite;
}
.sparkle-1  { width:6px;  height:6px;  background:#E07C8E; opacity:0.6; top:15%; left:25%; animation-duration:8s;  animation-delay:0s;   filter:blur(1px); }
.sparkle-2  { width:4px;  height:4px;  background:#8E8DB8; opacity:0.5; top:70%; left:10%; animation-duration:11s; animation-delay:2s;   filter:blur(1px); }
.sparkle-3  { width:8px;  height:8px;  background:#F2B8C6; opacity:0.55;top:35%; left:80%; animation-duration:9s;  animation-delay:1s;   filter:blur(1px); }
.sparkle-4  { width:5px;  height:5px;  background:#2D3561; opacity:0.35;top:80%; left:65%; animation-duration:13s; animation-delay:3s;   filter:blur(1px); }
.sparkle-5  { width:6px;  height:6px;  background:#BEB5D4; opacity:0.6; top:55%; left:45%; animation-duration:10s; animation-delay:0.5s; filter:blur(1px); }
.sparkle-6  { width:3px;  height:3px;  background:#E07C8E; opacity:0.7; top:90%; left:35%; animation-duration:7s;  animation-delay:4s;   filter:blur(0px); }
.sparkle-7  { width:7px;  height:7px;  background:#5B6BA9; opacity:0.45;top:10%; left:55%; animation-duration:14s; animation-delay:1.5s; filter:blur(1px); }
.sparkle-8  { width:4px;  height:4px;  background:#F4C4A1; opacity:0.65;top:45%; left:5%;  animation-duration:9s;  animation-delay:2.5s; filter:blur(0px); }

@keyframes sparkle-float {
  0%   { transform: translateY(0px)   rotate(0deg);   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.8; }
  100% { transform: translateY(-120px) rotate(360deg); opacity: 0; }
}

.hero-content { position: relative; z-index: 2; max-width: 680px; }

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.5rem;
}

.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 0.5rem;
}
/* no underline on hero name */

.hero-tagline {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 400;
  color: var(--lavender);
  margin: 1rem 0 1.25rem;
}

.hero-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  line-height: 1.85;
}

.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
}
.btn-primary {
  background: linear-gradient(135deg, #E07C8E, #8E8DB8, #5B6BA9);
  color: #fff;
  box-shadow: 0 4px 16px rgba(142,141,184,0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #cc6a7c, #7a79a8, #4a5898);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(142,141,184,0.4);
}
.btn-ghost {
  background: rgba(255,255,255,0.7);
  color: var(--text-muted);
  border: 1.5px solid rgba(190,181,212,0.4);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: var(--coral);
  color: var(--midnight);
  transform: translateY(-2px);
}


/* ═══════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════ */
.section {
  padding: var(--section-pad);
  background: rgba(255, 255, 255, 0.82);
}

/* Star White tint — very soft lavender-white from the palette */
.section-tinted {
  background: rgba(245, 240, 255, 0.78);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--text);
  margin-bottom: 0.5rem;
}
.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  margin-top: 0.5rem;
  background: linear-gradient(to right, #E07C8E, #8E8DB8, #5B6BA9);
  border-radius: 2px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 0.87rem;
  margin: 0.75rem 0 2.5rem;
}

/* ═══════════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.85;
  font-size: 0.88rem;
}
.about-text strong { color: var(--text); }

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

/* Info cards */
.info-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.2s, box-shadow 0.2s;
}
.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(91,107,169,0.14);
}
.card-lavender { border-color: rgba(142,141,184,0.35); }
.card-mint     { border-color: rgba(190,181,212,0.5); }
.card-peach    { border-color: rgba(249,216,188,0.6); }
.card-sky      { border-color: rgba(224,124,142,0.32); }

.info-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.info-card strong { display: block; font-size: 0.85rem; color: var(--text); }
.info-card p { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.muted { color: var(--text-light) !important; font-size: 0.74rem !important; }

/* ═══════════════════════════════════════════════════════
   SPOTLIGHT CARD (Senior Project)
   ═══════════════════════════════════════════════════════ */
.spotlight-card {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(190,181,212,0.3);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2.5rem;
  align-items: start;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s;
}
/* Full palette gradient strip across the top */
.spotlight-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-full);
}
/* Soft shimmer blob inside the card */
.spotlight-card::after {
  content: '';
  position: absolute;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242,184,198,0.25) 0%, transparent 70%);
  bottom: -120px; right: -80px;
  pointer-events: none;
}
.spotlight-card:hover {
  box-shadow: 0 24px 64px rgba(91,107,169,0.16);
}

.spotlight-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.spotlight-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-right: 0.4rem;
}
.spotlight-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.spotlight-desc {
  color: var(--text-muted);
  font-size: 0.87rem;
  line-height: 1.85;
  margin-bottom: 1.25rem;
}
.spotlight-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.spotlight-highlights li {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-left: 1.1rem;
  position: relative;
}
.spotlight-highlights li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--coral);
  font-size: 0.78rem;
}

/* Stats — vertical list */
.spotlight-right-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}
.spotlight-stat-grid {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(190,181,212,0.25);
}
.spotlight-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(190,181,212,0.15);
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
  flex: 1;
}
.stat-num {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 600;
  text-align: right;
}

@media (max-width: 780px) {
  .spotlight-card { grid-template-columns: 1fr; padding: 1.75rem; }
}

/* ═══════════════════════════════════════════════════════
   PROJECTS
   ═══════════════════════════════════════════════════════ */

/* Filter bar */
.filter-bar {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(190,181,212,0.22);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  white-space: nowrap;
  min-width: 80px;
}

.filter-tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.filter-btn {
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(190,181,212,0.35);
  background: rgba(255, 255, 255, 0.6);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover {
  border-color: var(--coral);
  color: var(--midnight);
}
.filter-btn.active {
  background: linear-gradient(135deg, #E07C8E, #8E8DB8, #5B6BA9);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 12px rgba(142,141,184,0.3);
}

/* Results count */
.results-count {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* Projects footer */
.projects-footer { text-align: center; margin-top: 2.5rem; }
.expand-btn { font-size: 0.87rem; padding: 0.7rem 2rem; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-muted);
}
.empty-state p { margin-bottom: 1.5rem; }

/* Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

/* Card */
.project-card {
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(190,181,212,0.22);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 48px rgba(91,107,169,0.16);
}
.project-card.hidden { display: none; }

/* Accent strip */
.card-accent { height: 3px; }
.accent-lavender { background: linear-gradient(90deg, #E07C8E, #8E8DB8); }
.accent-mint     { background: linear-gradient(90deg, #BEB5D4, #8E8DB8); }
.accent-sky      { background: linear-gradient(90deg, #8E8DB8, #5B6BA9); }
.accent-peach    { background: linear-gradient(90deg, #F2B8C6, #E07C8E); }

.card-body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; gap: 0.7rem; }

.card-header { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.card-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-pill);
}
/* badge colours — drawn from the new palette */
.badge-lavender { background: rgba(142,141,184,0.18); color: #2D3561; }
.badge-mint     { background: rgba(190,181,212,0.28); color: #5B6BA9; }
.badge-sky      { background: rgba(91,107,169,0.14);  color: #2D3561; }
.badge-peach    { background: rgba(244,196,161,0.38); color: #7a3c18; }
.badge-rose     { background: rgba(242,184,198,0.38); color: #a83050; }

.project-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.2;
}

.project-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.75;
  flex: 1;
}

.card-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.card-highlights li {
  font-size: 0.79rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}
.card-highlights li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--coral);
  font-size: 1.2rem;
  line-height: 1.2;
}

/* ── Tag & pill colour system ─────────────────────────
   4 semantic colours from the new palette:
   blue       = Languages & Systems   (periwinkle / midnight)
   pink       = Web / Full-Stack      (blush / coral)
   orange     = Security / Cyber      (terra peach)
   green      = Tools / Cloud / DevOps (lilac mist)
   ─────────────────────────────────────────────────── */

/* Project card tags */
.card-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: auto; }
.tag {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
}

/* blue — Languages & Systems — light cool periwinkle */
.tag-blue,
.tag-purple  { background: #cdd7f5; color: #2D3561; }

/* pink — Web / Full-Stack — light blush */
.tag-pink    { background: #fadae5; color: #7a1a30; }

/* orange — Security / Cyber — light peach */
.tag-orange  { background: #fde5cc; color: #7a2c10; }

/* green → lilac/tools — light lilac */
.tag-green   { background: #ddd8ef; color: #4a4488; }

/* ═══════════════════════════════════════════════════════
   SKILLS  — flat rows, no cards
   ═══════════════════════════════════════════════════════ */

.skill-block {
  margin-bottom: 3rem;
}
.skill-block:last-child { margin-bottom: 0; }

.skill-block-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(to right, #E07C8E, #8E8DB8, #5B6BA9, transparent) 1;
}

.skill-rows {
  display: flex;
  flex-direction: column;
}

.skill-row {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(190,181,212,0.15);
}
.skill-row:last-child { border-bottom: none; }

.skill-row-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--midnight);
  opacity: 0.65;
  white-space: nowrap;
  min-width: 130px;
  padding-top: 0.3rem;
  flex-shrink: 0;
}

.skill-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.pill {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.28rem 0.85rem;
  border-radius: var(--radius-pill);
  transition: transform 0.15s;
}
.pill:hover { transform: translateY(-1px); }

/* blue / lavender = Languages & Systems — light cool periwinkle */
.pill-blue,
.pill-lavender { background: #cdd7f5; color: #2D3561; }

/* pink = Web / Full-Stack — light blush */
.pill-pink     { background: #fadae5; color: #7a1a30; }

/* peach / orange = Security & Cyber — light peach */
.pill-peach,
.pill-orange   { background: #fde5cc; color: #7a2c10; }

/* green = Tools / Cloud / DevOps — light lilac (warm purple hue, distinct from the blue above) */
.pill-green    { background: #ddd8ef; color: #4a4488; }

/* ═══════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════ */

/* Fully solid section — cloud is hidden behind it */
.section-solid {
  background: #ede8f7;
}

/* Give contact info the same frosted card treatment as the form */
.contact-info-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(190,181,212,0.35);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}
.contact-info-card::before {
  content: '';
  position: absolute;
  inset: -10px;
  background-image: url('clouds-background.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  filter: blur(6px);
  z-index: 0;
}
.contact-info-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.68);
  z-index: 1;
}
.contact-info-card > * {
  position: relative;
  z-index: 2;
}
.contact-info-card .contact-info-intro,
.contact-info-card .contact-link strong,
.contact-info-card .contact-link span { color: #2D3561; }

.contact-form label,
.contact-form input,
.contact-form textarea { color: #2D3561; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #5B6BA9; }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  align-items: stretch;
}

.contact-info-intro {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.contact-links-flat {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(190,181,212,0.2);
  transition: opacity 0.2s, transform 0.2s;
}
.contact-link:hover { opacity: 0.75; transform: translateX(3px); }
.contact-link:last-child { border-bottom: none; }

.cl-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: #fad5e2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-link strong {
  display: block;
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 600;
}
.contact-link span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Right column — form */
.contact-form {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(190,181,212,0.35);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.contact-form::before {
  content: '';
  position: absolute;
  inset: -10px;
  background-image: url('clouds-background.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  filter: blur(6px);
  z-index: 0;
}
.contact-form::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.68);
  z-index: 1;
}
.contact-form > * {
  position: relative;
  z-index: 2;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Message textarea group grows to fill remaining form height */
.form-group:has(textarea) { flex: 1; }
.form-group textarea { height: 100%; min-height: 130px; }

.form-group input,
.form-group textarea {
  font-family: var(--font-sans);
  font-size: 0.87rem;
  color: var(--text);
  background: rgba(255,255,255,0.7);
  border: 1.5px solid rgba(190,181,212,0.3);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-light); }

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(224,124,142,0.14);
}

.form-submit {
  align-self: flex-end;
  margin-top: auto;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  padding-left: 1.4rem;
  padding-right: 1.4rem;
  font-size: 0.82rem;
}
.form-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
}

/* Feedback messages */
.form-feedback {
  display: none;
  font-size: 0.84rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.form-feedback.success {
  background: rgba(190,181,212,0.25);
  color: #2D3561;
  border: 1px solid rgba(190,181,212,0.4);
}
.form-feedback.error {
  background: rgba(242,184,198,0.3);
  color: #8a2030;
  border: 1px solid rgba(242,184,198,0.5);
}
.form-feedback.visible { display: block; }

@media (max-width: 820px) {
  .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.footer {
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-light);
  background: rgba(245, 240, 255, 0.75);
  border-top: 1px solid rgba(190,181,212,0.22);
}

/* ═══════════════════════════════════════════════════════
   FADE-IN ANIMATION
   ═══════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav { padding: 0.9rem 1.25rem; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #faf9fc;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(190,181,212,0.22);
    gap: 1.2rem;
    box-shadow: 0 8px 24px rgba(91,107,169,0.1);
  }
  .nav-toggle { display: flex; }

  .projects-grid { grid-template-columns: 1fr; }
  .about-cards   { grid-template-columns: 1fr; }
  .contact-links { flex-direction: column; align-items: center; }
  .section { padding: 4rem 1rem; }
}
