/* ═══════════════════════════════════════════════════════════ */
/*                   ILLAC & REI — style.css                  */
/* ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300&family=Crimson+Pro:ital,wght@0,300;1,300&display=swap');

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'VT323', monospace; background: #000; overflow-x: hidden; }


/* ══════════════════════════════════════════════════════════ */
/*                  1. NHIELL'S SECTION                       */
/* ══════════════════════════════════════════════════════════ */

#nhiell-section {
  position: relative;
  min-height: 100vh;
  background: #000;
  padding: 40px 20px 80px;
  overflow: hidden;
}

/* CRT scanlines overlay */
.scanlines {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.15) 2px,
    rgba(0,0,0,0.15) 4px
  );
}

/* CRT flicker animation */
.crt-flicker {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,80,0.4) 100%);
  animation: flicker 8s infinite;
}
@keyframes flicker {
  0%,100%   { opacity: 1; }
  92%        { opacity: 1; }
  93%        { opacity: 0.85; }
  94%        { opacity: 1; }
  96%        { opacity: 0.9; }
  97%        { opacity: 1; }
}

/* Dot-matrix background */
#nhiell-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, #003366 1px, transparent 1px),
    radial-gradient(circle, #330000 1px, transparent 1px);
  background-size: 30px 30px, 60px 60px;
  background-position: 0 0, 15px 15px;
  opacity: 0.3;
  z-index: 0;
}

.nhiell-container {
  position: relative; z-index: 3;
  max-width: 1100px; margin: 0 auto;
}

/* Boot bar */
.boot-bar {
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  color: #00ff41;
  background: #0a0a0a;
  border: 1px solid #00ff41;
  padding: 6px 14px;
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 0 12px #00ff4140;
  animation: type-in 2s steps(60) forwards;
  overflow: hidden;
  white-space: nowrap;
}
@keyframes type-in {
  from { width: 0; }
  to   { width: 100%; }
}

.blink-cursor {
  animation: blink 0.8s step-end infinite;
  color: #00ff41;
}
@keyframes blink { 50% { opacity: 0; } }

/* Header box */
.nhiell-header-box {
  position: relative;
  border: 3px solid #fff;
  padding: 28px 36px;
  margin-bottom: 30px;
  background: #000;
  box-shadow:
    0 0 0 6px #0d47a1,
    0 0 0 9px #b71c1c,
    0 0 40px #0d47a180,
    inset 0 0 60px #0a0a2a;
  text-align: center;
}

/* Pixel corners */
.corner { position: absolute; width: 14px; height: 14px; }
.corner.tl { top: -3px; left: -3px; border-top: 4px solid #ef5350; border-left: 4px solid #ef5350; }
.corner.tr { top: -3px; right: -3px; border-top: 4px solid #42a5f5; border-right: 4px solid #42a5f5; }
.corner.bl { bottom: -3px; left: -3px; border-bottom: 4px solid #42a5f5; border-left: 4px solid #42a5f5; }
.corner.br { bottom: -3px; right: -3px; border-bottom: 4px solid #ef5350; border-right: 4px solid #ef5350; }

.nhiell-name {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(1.4rem, 4vw, 2.6rem);
  color: #fff;
  line-height: 1.5;
  text-shadow:
    3px 3px 0 #0d47a1,
    6px 6px 0 #b71c1c,
    0 0 30px #1565c080;
  letter-spacing: 2px;
}
.nhiell-name .surname {
  color: #42a5f5;
  text-shadow:
    2px 2px 0 #0d47a1,
    0 0 25px #42a5f5aa;
}

.nhiell-tagline {
  font-family: 'VT323', monospace;
  font-size: 1.4rem;
  color: #ef5350;
  margin-top: 12px;
  letter-spacing: 3px;
  animation: glow-red 2s ease-in-out infinite alternate;
}
@keyframes glow-red {
  from { text-shadow: 0 0 6px #ef5350; }
  to   { text-shadow: 0 0 22px #f44336, 0 0 40px #b71c1c; }
}

/* Grid of windows */
.nhiell-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

/* Win95 window */
.win95-window {
  border: 2px solid #fff;
  background: #000010;
  box-shadow: 4px 4px 0 #0d47a1, inset 0 0 20px #00001a;
  animation: fadeUp 0.6s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.win95-titlebar {
  background: linear-gradient(90deg, #0d47a1, #1976d2, #b71c1c);
  padding: 5px 10px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  color: #fff;
  letter-spacing: 1px;
}
.win-btns { display: flex; gap: 6px; }
.win-btns span {
  width: 14px; height: 14px;
  background: #fff; color: #000;
  font-size: 0.55rem;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #888;
  cursor: pointer;
}

.win95-body { padding: 16px 14px; }

.pixel-text {
  font-family: 'VT323', monospace;
  font-size: 1.05rem;
  color: #cce8ff;
  line-height: 1.5;
}
.pixel-text.tiny { font-size: 1rem; color: #aad4f5; }
.hi { color: #64b5f6; }
.force-red { color: #ef5350; }

/* Lightsaber */
.lightsaber {
  display: flex; align-items: center; gap: 0;
  margin: 12px 0;
}
.ls-hilt {
  width: 30px; height: 10px;
  background: linear-gradient(90deg, #555, #aaa, #555);
  border-radius: 2px;
}
.ls-blade {
  height: 6px;
  border-radius: 0 20px 20px 0;
  animation: saberGlow 1.5s ease-in-out infinite alternate;
}
.ls-blade.red {
  width: 160px;
  background: linear-gradient(90deg, #ef5350, #fff 10%, #ef5350 50%, transparent);
  box-shadow: 0 0 10px #ef5350, 0 0 25px #b71c1c;
}
@keyframes saberGlow {
  from { box-shadow: 0 0 8px #ef5350, 0 0 20px #b71c1c; }
  to   { box-shadow: 0 0 18px #f44336, 0 0 45px #ef5350; }
}

/* Football field */
.field {
  background: #1b5e20;
  height: 55px;
  border: 2px solid #4caf50;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
  overflow: hidden;
}
.yard-line {
  position: absolute; top: 0; bottom: 0; width: 1px;
  background: rgba(255,255,255,0.4);
}
.yard-line:nth-child(1) { left: 25%; }
.yard-line:nth-child(2) { left: 50%; }
.yard-line:nth-child(3) { left: 75%; }
.football {
  font-size: 1.8rem;
  animation: bounce-ball 1s ease-in-out infinite alternate;
}
@keyframes bounce-ball {
  from { transform: translateX(-20px); }
  to   { transform: translateX(20px); }
}

/* F1 track */
.f1-track {
  background: #212121;
  border: 2px solid #616161;
  height: 55px;
  position: relative;
  display: flex; align-items: center;
  padding-left: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}
.f1-car {
  font-size: 1.8rem;
  position: relative; z-index: 2;
  animation: race 2.5s linear infinite;
}
@keyframes race {
  from { transform: translateX(-30px); }
  to   { transform: translateX(220px); }
}
.speed-lines { position: absolute; right: 0; display: flex; flex-direction: column; gap: 8px; }
.speed-lines span {
  display: block; height: 2px;
  background: linear-gradient(90deg, transparent, #ef5350);
  animation: speed 0.6s ease-in-out infinite alternate;
}
.speed-lines span:nth-child(1) { width: 80px; animation-delay: 0s; }
.speed-lines span:nth-child(2) { width: 120px; animation-delay: 0.1s; }
.speed-lines span:nth-child(3) { width: 60px; animation-delay: 0.2s; }
@keyframes speed {
  from { opacity: 0.4; }
  to   { opacity: 1; }
}

/* Intro window */
.intro-window { grid-column: span 1; }

/* Stats window */
.stats-window { margin-top: 0; }
.stats-body { display: flex; flex-direction: column; gap: 10px; }
.stat-row { display: flex; align-items: center; gap: 10px; }
.stat-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.45rem;
  color: #90caf9;
  width: 130px; flex-shrink: 0;
}
.stat-bar {
  flex: 1; height: 14px;
  background: #111; border: 1px solid #333;
  overflow: hidden;
}
.stat-fill {
  height: 100%; transition: width 1.5s ease;
  position: relative;
}
.stat-fill::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    90deg, transparent, transparent 4px, rgba(255,255,255,0.15) 4px, rgba(255,255,255,0.15) 6px
  );
}
.stat-fill.red { background: linear-gradient(90deg, #b71c1c, #ef5350); box-shadow: 0 0 10px #ef535080; }
.stat-fill.blue { background: linear-gradient(90deg, #0d47a1, #42a5f5); box-shadow: 0 0 10px #42a5f580; }
.stat-fill.both { background: linear-gradient(90deg, #0d47a1, #e91e63, #ef5350); box-shadow: 0 0 12px #e91e6380; }
.stat-val {
  font-family: 'VT323'; font-size: 1rem; color: #fff; width: 36px; text-align: right;
}

.blink-text { animation: blink 1s step-end infinite; }


/* ══════════════════════════════════════════════════════════ */
/*                  2. APPLE REI'S SECTION                    */
/* ══════════════════════════════════════════════════════════ */

#rei-section {
  position: relative;
  min-height: 100vh;
  background: #fdf6f0;
  padding: 80px 20px;
  overflow: hidden;
}

/* Floating background shapes */
.rei-bg-shapes { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.shape {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,182,193,0.4), rgba(255,218,185,0.1));
}
.shape.s1 { width: 400px; height: 400px; top: -100px; right: -80px; animation: float1 8s ease-in-out infinite; }
.shape.s2 { width: 250px; height: 250px; bottom: 100px; left: -60px; background: radial-gradient(circle, rgba(216,191,216,0.4), transparent); animation: float2 10s ease-in-out infinite; }
.shape.s3 { width: 180px; height: 180px; top: 40%; left: 30%; background: radial-gradient(circle, rgba(255,228,196,0.5), transparent); animation: float3 7s ease-in-out infinite; }
.shape.s4 { width: 120px; height: 120px; bottom: 200px; right: 100px; background: radial-gradient(circle, rgba(255,160,122,0.3), transparent); animation: float1 12s ease-in-out infinite reverse; }

@keyframes float1 {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}
@keyframes float2 {
  0%,100% { transform: translate(0,0); }
  50% { transform: translate(20px, -20px); }
}
@keyframes float3 {
  0%,100% { transform: rotate(0deg); }
  50% { transform: rotate(10deg) scale(1.1); }
}

.rei-container {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto;
}

/* Header */
.rei-header-area { text-align: center; margin-bottom: 60px; }
.rei-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #c77b8a;
  margin-bottom: 16px;
}
.rei-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  color: #3d2b2b;
  line-height: 1.1;
}
.rei-name em {
  font-style: italic;
  color: #c77b8a;
  display: block;
}
.rei-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #8b6870;
  margin-top: 16px;
}
.rei-divider {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin-top: 24px;
}
.rei-diamond { color: #c77b8a; font-size: 0.8rem; }
.rei-line { flex: 0 0 80px; height: 1px; background: linear-gradient(90deg, transparent, #c77b8a, transparent); }

/* Cards */
.rei-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-bottom: 60px;
}

.rei-card {
  background: #fff;
  border: 1px solid rgba(199,123,138,0.2);
  padding: 32px 28px;
  box-shadow: 0 8px 40px rgba(199,123,138,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.rei-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #f7c5cf, #e8a8b5, #d4a0a0);
}
.rei-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(199,123,138,0.2);
}
.rei-card-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.75rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #c77b8a;
  margin-bottom: 18px;
}
.beauty-icons, .food-icons {
  display: flex; gap: 12px; margin-bottom: 18px;
}
.b-icon, .f-icon {
  font-size: 1.8rem;
  animation: icon-pop 3s ease-in-out infinite;
  display: inline-block;
}
.b-icon:nth-child(2), .f-icon:nth-child(2) { animation-delay: 0.3s; }
.b-icon:nth-child(3), .f-icon:nth-child(3) { animation-delay: 0.6s; }
.b-icon:nth-child(4), .f-icon:nth-child(4) { animation-delay: 0.9s; }
@keyframes icon-pop {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.15) rotate(-5deg); }
}

.rei-card-text {
  font-family: 'Crimson Pro', serif;
  font-size: 1.05rem;
  color: #5a4040;
  line-height: 1.75;
  margin-bottom: 18px;
}

.rei-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.rei-tags span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border: 1px solid rgba(199,123,138,0.5);
  color: #c77b8a;
  background: rgba(247,197,207,0.1);
}

.rei-aura-list { display: flex; flex-direction: column; gap: 12px; }
.aura-item {
  font-family: 'Crimson Pro', serif;
  font-size: 1.05rem;
  color: #5a4040;
  display: flex; align-items: center; gap: 12px;
}
.aura-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, #f7c5cf, #c77b8a);
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(199,123,138,0.5);
}

/* Quote band */
.rei-quote-band {
  background: linear-gradient(135deg, #fce4ec, #fff0f3);
  border-left: 4px solid #c77b8a;
  padding: 28px 36px;
  text-align: center;
}
.rei-quote-band p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: #5a4040;
  margin-bottom: 8px;
}
.rei-quote-band span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  letter-spacing: 3px;
  color: #c77b8a;
  text-transform: uppercase;
}


/* ══════════════════════════════════════════════════════════ */
/*                  3. US SECTION (BOTH)                      */
/* ══════════════════════════════════════════════════════════ */

#us-section {
  background: #fafafa;
  padding: 80px 20px 60px;
  position: relative;
}
#us-section::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #0d47a1, #42a5f5, #fce4ec, #c77b8a, #ef5350);
}

.us-container { max-width: 900px; margin: 0 auto; }

/* Header / Timer */
.us-header { text-align: center; margin-bottom: 70px; }
.us-eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 24px;
}

.us-timer-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 20px;
  margin-bottom: 28px;
}
.time-block { display: flex; flex-direction: column; align-items: center; }
.time-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, #0d47a1, #42a5f5 40%, #c77b8a 70%, #ef5350);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.time-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #aaa;
  margin-top: 4px;
}
.time-sep {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: #ccc;
  font-style: italic;
}

.us-names {
  font-family: 'Playfair Display', serif;
  font-size: clamp(0.9rem, 2.5vw, 1.3rem);
  font-weight: 400;
  color: #555;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.us-name-nhiell { color: #1565c0; }
.us-name-rei { color: #c77b8a; }
.us-amp { font-size: 1.5em; color: #ddd; }
.us-heart {
  font-size: 2rem; color: #e91e63;
  margin-top: 20px;
  animation: heartbeat 1.2s ease-in-out infinite;
  display: block;
}
@keyframes heartbeat {
  0%,100% { transform: scale(1); }
  14% { transform: scale(1.3); }
  28% { transform: scale(1); }
  42% { transform: scale(1.15); }
  70% { transform: scale(1); }
}

/* Story section */
.us-story {
  margin-bottom: 70px;
  padding-bottom: 60px;
  border-bottom: 1px solid #eee;
}
.story-label, .album-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.75rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #aaa;
  text-align: center;
  margin-bottom: 12px;
}
.story-title, .album-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 400;
  color: #333;
  text-align: center;
  margin-bottom: 32px;
}
.story-text {
  font-family: 'Crimson Pro', serif;
  font-size: 1.15rem;
  line-height: 1.9;
  color: #555;
  max-width: 680px; margin: 0 auto;
}
.story-text p { margin-bottom: 20px; }
.story-text em { color: #c77b8a; font-style: italic; }

/* Album */
.us-album { margin-bottom: 60px; }
.album-hint {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  letter-spacing: 1px;
  color: #bbb;
  text-align: center;
  margin-bottom: 30px;
}
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.photo-slot {
  aspect-ratio: 1;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.photo-slot:hover { transform: scale(1.02); }
.photo-slot.drag-over .photo-inner { border-color: #c77b8a; background: #fce4ec; }

.photo-inner {
  width: 100%; height: 100%;
  border: 2px dashed #ddd;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
  background: #fafafa;
  transition: all 0.3s ease;
  overflow: hidden;
}
.photo-inner:hover { border-color: #c77b8a; background: #fff8f9; }
.photo-inner img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}
.plus-icon {
  font-size: 2rem; color: #ccc;
  transition: color 0.2s;
  font-family: sans-serif;
}
.photo-inner:hover .plus-icon { color: #c77b8a; }
.add-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #ccc;
  transition: color 0.2s;
}
.photo-inner:hover .add-label { color: #c77b8a; }

.add-more-btn {
  display: block; margin: 0 auto;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #c77b8a;
  background: transparent;
  border: 1px solid rgba(199,123,138,0.4);
  padding: 10px 28px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.add-more-btn:hover {
  background: #c77b8a;
  color: #fff;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.9);
  align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90vw; max-height: 90vh;
  object-fit: contain;
  border: 2px solid rgba(255,255,255,0.1);
  box-shadow: 0 30px 100px rgba(0,0,0,0.8);
}
.lightbox-close {
  position: absolute; top: 20px; right: 28px;
  background: none; border: none;
  color: #fff; font-size: 2rem; cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }

/* Footer */
.us-footer { text-align: center; padding-top: 20px; }
.footer-sig {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: #aaa;
}
.footer-sig span { color: #e91e63; }


/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 600px) {
  .nhiell-name { font-size: 1.2rem; }
  .boot-text { font-size: 0.75rem; }
  .nhiell-grid { grid-template-columns: 1fr; }
  .rei-grid { grid-template-columns: 1fr; }
  .us-timer-display { flex-direction: column; align-items: center; gap: 4px; }
  .time-sep { font-size: 1.2rem; }
  .album-grid { grid-template-columns: repeat(2, 1fr); }
  .us-names { flex-direction: column; gap: 4px; }
}

.pol_23 {
  color: #c77b8a;
}

.illac_11 {
  color: #0d47a1;
}