/* ═══════════════════════════════════════════════════════════
   ASTRA NAJMIA — SMP AL-FURQAN 2025/2026
   Official Yearbook Website — Netflix Theme
   Style: style-astra.css
═══════════════════════════════════════════════════════════ */

/* ── CSS Variables ──────────────────────────────────────── */
:root {
  --ntf-red:      #E50914;
  --ntf-red-dark: #B00610;
  --ntf-blue:     #0055FF;
  --ntf-blue-dark:#0033BB;
  --bg-black:     #0a0a0a;
  --bg-dark:      #111111;
  --bg-card:      #181818;
  --bg-card-2:    #222222;
  --text-white:   #FFFFFF;
  --text-grey:    #a0a0a0;
  --text-light:   #d4d4d4;
  --border:       rgba(255,255,255,0.08);
  --shadow-red:   rgba(229,9,20,0.4);
  --shadow-blue:  rgba(0,85,255,0.4);
  --font-display: 'Bebas Neue', sans-serif;
  --font-cond:    'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;
  --radius:       6px;
  --radius-lg:    12px;
  --trans:        0.3s ease;
}

/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
  background: var(--bg-black);
  color: var(--text-white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }
input, textarea { outline: none; font-family: inherit; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.ntf-red { color: var(--ntf-red); }
.ntf-red-bg { background: var(--ntf-red) !important; }

/* ── LOADING SCREEN ─────────────────────────────────────── */
#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#loading-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loading-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.loading-streaks {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  gap: 0;
}

.streak {
  position: absolute;
  width: 2px;
  height: 0%;
  top: 0;
  border-radius: 2px;
  animation: streakDrop 2.5s ease-in-out infinite;
}
.streak-red { background: linear-gradient(to bottom, transparent, var(--ntf-red), transparent); }
.streak-blue { background: linear-gradient(to bottom, transparent, var(--ntf-blue), transparent); }

.s1  { left: 25%; animation-delay: 0s;    animation-duration: 2.1s; opacity: 0.7; }
.s2  { left: 28%; animation-delay: 0.3s;  animation-duration: 1.8s; opacity: 0.5; }
.s3  { left: 22%; animation-delay: 0.6s;  animation-duration: 2.4s; opacity: 0.9; }
.s4  { left: 30%; animation-delay: 0.1s;  animation-duration: 2.0s; opacity: 0.6; }
.s5  { left: 20%; animation-delay: 0.8s;  animation-duration: 1.9s; opacity: 0.4; }
.s6  { right: 25%; animation-delay: 0.2s; animation-duration: 2.1s; opacity: 0.7; }
.s7  { right: 28%; animation-delay: 0.5s; animation-duration: 1.8s; opacity: 0.5; }
.s8  { right: 22%; animation-delay: 0.7s; animation-duration: 2.4s; opacity: 0.9; }
.s9  { right: 30%; animation-delay: 0.15s;animation-duration: 2.0s; opacity: 0.6; }
.s10 { right: 20%; animation-delay: 0.9s; animation-duration: 1.9s; opacity: 0.4; }

@keyframes streakDrop {
  0%   { height: 0%; top: -10%; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { height: 120%; top: 100%; opacity: 0; }
}

.loading-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.loading-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.ntf-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 4px;
  color: var(--ntf-red);
  text-shadow: 0 0 30px var(--shadow-red);
}
.ntf-badge {
  font-family: var(--font-cond);
  font-size: 0.7rem;
  letter-spacing: 5px;
  color: var(--text-grey);
}

.loading-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 7rem);
  letter-spacing: 6px;
  color: var(--text-white);
  text-shadow: 0 0 60px rgba(255,255,255,0.1), 2px 2px 0 rgba(229,9,20,0.3);
  animation: titlePulse 3s ease-in-out infinite;
  line-height: 1;
}
@keyframes titlePulse {
  0%, 100% { text-shadow: 0 0 40px rgba(255,255,255,0.1); }
  50% { text-shadow: 0 0 80px rgba(229,9,20,0.3), 0 0 120px rgba(0,85,255,0.15); }
}

.loading-tagline {
  font-family: var(--font-cond);
  font-size: 0.8rem;
  letter-spacing: 5px;
  color: var(--text-grey);
}

.loading-bar-wrap {
  width: 200px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}
.loading-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--ntf-red), var(--ntf-blue));
  border-radius: 2px;
  animation: loadBar 2.5s ease-in-out forwards;
}
@keyframes loadBar {
  0%   { width: 0%; }
  100% { width: 100%; }
}

.loading-school {
  font-family: var(--font-cond);
  font-size: 0.7rem;
  letter-spacing: 4px;
  color: rgba(255,255,255,0.3);
  margin-top: 8px;
}

/* ── NAVIGATION ─────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background var(--trans), backdrop-filter var(--trans);
  padding: 0;
}
#navbar.scrolled {
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(8px);
}

.nav-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ntf-red), var(--ntf-blue));
  transition: width 0.1s linear;
  width: 0%;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-logo .ntf-red {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-family: var(--font-cond);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-grey);
  border-radius: 20px;
  transition: all var(--trans);
  text-transform: uppercase;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text-white); background: rgba(255,255,255,0.08); }
.nav-links a i { font-size: 0.85rem; }
.nav-links a span { display: none; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-page {
  font-family: var(--font-cond);
  font-size: 0.7rem;
  letter-spacing: 2px;
  background: var(--ntf-red);
  color: var(--text-white);
  padding: 4px 10px;
  border-radius: 3px;
  font-weight: 700;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-white);
  border-radius: 2px;
  transition: var(--trans);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: rgba(0,0,0,0.97);
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 12px 0;
  font-family: var(--font-cond);
  font-size: 1rem;
  letter-spacing: 1px;
  color: var(--text-grey);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  font-weight: 600;
}
.nav-mobile a:hover { color: var(--text-white); }

/* ── HERO SECTION ───────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 0 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-streaks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hstreak {
  position: absolute;
  width: 3px;
  height: 70%;
  border-radius: 3px;
  animation: heroStreak 4s ease-in-out infinite;
}
.hstreak-r { background: linear-gradient(to bottom, transparent, var(--ntf-red) 40%, transparent); }
.hstreak-b { background: linear-gradient(to bottom, transparent, var(--ntf-blue) 40%, transparent); }
.hr1 { left: 20%; top: -10%; animation-delay: 0s;   animation-duration: 3.5s; opacity: 0.6; }
.hr2 { left: 23%; top: -20%; animation-delay: 0.5s; animation-duration: 4.2s; opacity: 0.4; }
.hr3 { left: 17%; top: -5%;  animation-delay: 1s;   animation-duration: 3.8s; opacity: 0.8; }
.hb1 { right: 20%; top: -10%; animation-delay: 0.2s; animation-duration: 3.5s; opacity: 0.6; }
.hb2 { right: 23%; top: -15%; animation-delay: 0.7s; animation-duration: 4.2s; opacity: 0.4; }
.hb3 { right: 17%; top: -5%;  animation-delay: 1.2s; animation-duration: 3.8s; opacity: 0.8; }

@keyframes heroStreak {
  0%, 100% { transform: translateY(-10%); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(110%); opacity: 0; }
}

.hero-photo-bg {
  position: absolute;
  inset: 0;
}
.hero-photo-bg img {
  object-position: center top;
  filter: brightness(0.35);
}
.hero-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.3) 0%,
    rgba(0,0,0,0.1) 30%,
    rgba(0,0,0,0.6) 60%,
    rgba(0,0,0,0.95) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 48px;
  margin-left: 0;
}

.hero-only {
  font-family: var(--font-cond);
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: var(--text-grey);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.hero-rating .stars { color: #f5c518; }
.hero-rating .stars i { font-size: 0.85rem; }
.hero-rating .rating-score { font-weight: 700; font-size: 0.9rem; }
.hero-rating .rating-sep { color: var(--text-grey); }
.hero-rating span { font-size: 0.85rem; color: var(--text-grey); }

.hero-meta {
  font-family: var(--font-cond);
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: var(--text-grey);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  letter-spacing: 2px;
  line-height: 0.85;
  margin-bottom: 12px;
}
.hero-sub {
  display: block;
  font-size: 0.5em;
  color: var(--text-grey);
  letter-spacing: 4px;
  font-weight: 300;
  margin-bottom: 4px;
}

.hero-title .title-main {
  display: block;
  font-size: clamp(3rem, 9vw, 6rem);
  color: var(--text-white);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-tagline {
  font-family: var(--font-cond);
  font-size: 0.8rem;
  letter-spacing: 5px;
  color: var(--text-grey);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.prog-label {
  font-family: var(--font-cond);
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: var(--text-grey);
  white-space: nowrap;
}
.prog-bar {
  position: relative;
  flex: 1;
  min-width: 40px;
  height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
  overflow: visible;
}
.prog-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 100%;
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
}
.prog-fill-2 {
  width: 60%;
  background: linear-gradient(90deg, rgba(255,255,255,0.3), var(--ntf-red));
}
.prog-dot {
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: 2px solid rgba(255,255,255,0.3);
}
.prog-dot-2 {
  right: 40%;
  background: var(--ntf-red);
  border-color: var(--ntf-red);
  box-shadow: 0 0 8px var(--shadow-red);
  width: 14px;
  height: 14px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.btn-ntf-play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--text-white);
  color: #000;
  font-family: var(--font-cond);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 10px 28px;
  border-radius: var(--radius);
  transition: all var(--trans);
  text-transform: uppercase;
}
.btn-ntf-play:hover {
  background: rgba(255,255,255,0.85);
  transform: scale(1.03);
}
.btn-ntf-play i { font-size: 0.9rem; }

.hero-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.3);
  font-size: 0.9rem;
  transition: all var(--trans);
}
.hero-icon-btn:hover,
.hero-icon-btn.active {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.6);
}

.hero-desc {
  max-width: 580px;
  margin-bottom: 32px;
}
.hero-desc p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}

.hero-corner-labels {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 48px;
}
.hero-corner-labels span {
  font-family: var(--font-cond);
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: var(--text-grey);
  text-transform: uppercase;
  font-weight: 600;
}

/* ── ABOUT / VISION MISSION ─────────────────────────────── */
#about {
  padding: 80px 0;
  background: var(--bg-black);
}

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

.about-card {
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border);
  position: relative;
}

.about-card-header { margin-bottom: 12px; }
.brand-small {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 3px;
}

.about-only {
  font-family: var(--font-cond);
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: var(--text-grey);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.about-title {
  font-family: var(--font-cond);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ntf-red);
  margin-bottom: 4px;
}
.about-subtitle {
  color: var(--text-grey);
  font-size: 1rem;
  margin-bottom: 20px;
}

.about-fields { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.about-field {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text-light);
}
.about-field i { color: var(--text-grey); }

.about-accord { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.accord-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.accord-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-card-2);
  cursor: pointer;
  font-family: var(--font-cond);
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 0.9rem;
  transition: background var(--trans);
  user-select: none;
}
.accord-header:hover { background: rgba(255,255,255,0.06); }
.accord-toggle { margin-left: auto; font-size: 0.85rem; color: var(--text-grey); }
.accord-body {
  padding: 16px;
  background: var(--bg-dark);
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.7;
}
.accord-body ol { padding-left: 16px; display: flex; flex-direction: column; gap: 6px; }
.accord-body li { font-size: 0.83rem; }

.btn-continue {
  width: 100%;
  background: var(--ntf-red);
  color: var(--text-white);
  font-family: var(--font-cond);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 14px;
  border-radius: var(--radius);
  text-transform: uppercase;
  transition: background var(--trans), transform var(--trans);
  margin-bottom: 16px;
}
.btn-continue:hover { background: var(--ntf-red-dark); transform: translateY(-1px); }

.remember-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-grey);
  cursor: pointer;
}
.remember-check input { accent-color: var(--ntf-red); width: 16px; height: 16px; }

.about-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 500px; }
.about-photo-frame { position: relative; height: 100%; min-height: 500px; }
.about-photo-frame img { position: absolute; inset: 0; }
.about-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(229,9,20,0.08), rgba(0,85,255,0.05));
}
.about-photo-badge {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(229,9,20,0.9);
  padding: 8px 20px;
  border-radius: var(--radius);
  font-family: var(--font-cond);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── HEADMASTER GREETINGS ───────────────────────────────── */
#greetings { padding: 80px 0; background: var(--bg-dark); }

.greet-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  min-height: 640px;
}

/* LEFT CONTENT */
.greet-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}

.greet-meta { }
.greet-only {
  font-family: var(--font-cond);
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: var(--text-grey);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.greet-stars { color: #f5c518; display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.greet-stars span { color: var(--text-grey); font-size: 0.8rem; }
.greet-sub-meta { font-family: var(--font-cond); font-size: 0.8rem; letter-spacing: 2px; color: var(--text-grey); text-transform: uppercase; margin-bottom: 16px; }

.greet-title {
  font-family: var(--font-cond);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--text-white);
}
.greet-title-bold { font-weight: 900; font-size: 1.3em; }

.greet-actions-sm { display: flex; gap: 12px; margin-top: 16px; }
.btn-notfor, .btn-loveit {
  font-family: var(--font-cond);
  font-size: 0.8rem;
  letter-spacing: 1px;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
}
.btn-notfor { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); }
.btn-loveit { background: var(--ntf-red); display: flex; align-items: center; gap: 6px; }

.greet-text-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  flex: 1;
}
.greet-col { display: flex; flex-direction: column; gap: 10px; }
.greet-col p { font-size: 0.82rem; color: var(--text-light); line-height: 1.75; }

.greet-footer-bar {
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-family: var(--font-cond);
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: var(--text-grey);
  text-transform: uppercase;
}

/* RIGHT PHOTO */
.greet-photo-side {
  position: relative;
  overflow: hidden;
}
.greet-photo-side > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.greet-photo-edge {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg-card) 0%, transparent 35%),
              linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 40%);
}
.greet-speaker-tag {
  position: absolute;
  bottom: 20px;
  left: 16px;
  right: 16px;
  background: rgba(229, 9, 20, 0.92);
  backdrop-filter: blur(4px);
  padding: 12px 16px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.spk-role {
  font-family: var(--font-cond);
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 2px;
}
.spk-name {
  font-family: var(--font-cond);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
}
.spk-plus { font-size: 1rem; color: #fff; flex-shrink: 0; }

/* ── ABOUT / STATISTICS ─────────────────────────────────── */
#about-section { padding: 80px 0; background: var(--bg-black); }

.stats-header { text-align: center; margin-bottom: 48px; }
.section-label {
  font-family: var(--font-cond);
  font-size: 0.75rem;
  letter-spacing: 5px;
  color: var(--text-grey);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-bigname {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: 6px;
  color: var(--text-white);
  text-shadow: 2px 2px 0 rgba(229,9,20,0.2);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-bottom: 60px;
}
.stat-item {
  background: var(--bg-card);
  padding: 40px 20px;
  text-align: center;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.stat-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ntf-red), var(--ntf-blue));
  transform: scaleX(0);
  transition: transform 0.5s ease;
}
.stat-item:hover::before { transform: scaleX(1); }
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  letter-spacing: 2px;
  color: var(--text-white);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-family: var(--font-cond);
  font-size: 0.8rem;
  letter-spacing: 3px;
  color: var(--text-grey);
  text-transform: uppercase;
}

.about-story { max-width: 800px; margin: 0 auto; text-align: center; }
.story-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  justify-content: center;
}
.story-divider span {
  font-family: var(--font-cond);
  font-size: 0.7rem;
  letter-spacing: 5px;
  color: var(--text-grey);
  text-transform: uppercase;
}
.story-divider::before, .story-divider::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: var(--border);
}
.about-story p { color: var(--text-light); line-height: 1.8; margin-bottom: 16px; }

/* ── eBOOK SECTION ──────────────────────────────────────── */
#ebook { padding: 80px 0; background: var(--bg-dark); }

.section-title-wrap { text-align: center; margin-bottom: 48px; }
.section-title-main {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: 4px;
  color: var(--text-white);
  margin-bottom: 8px;
}
.section-desc {
  font-family: var(--font-cond);
  font-size: 0.9rem;
  color: var(--text-grey);
  letter-spacing: 1px;
}
.section-title-sub {
  font-family: var(--font-cond);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-grey);
}

.ebook-main-cards {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
  align-items: start;
}

.ebook-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform var(--trans), box-shadow var(--trans);
  cursor: pointer;
}
.ebook-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.5);
}
.ebook-card-featured { border-color: rgba(229,9,20,0.4); box-shadow: 0 0 30px rgba(229,9,20,0.1); }
.ebook-card-featured:hover { box-shadow: 0 24px 60px rgba(229,9,20,0.25); }

.ebook-card-img {
  position: relative;
  padding-bottom: 140%;
  overflow: hidden;
}
.ebook-card-img img {
  position: absolute;
  inset: 0;
}
.ebook-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  gap: 4px;
  opacity: 0;
  transition: opacity var(--trans);
}
.ebook-card:hover .ebook-card-overlay { opacity: 1; }
.ebook-card-tag {
  font-family: var(--font-cond);
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: var(--text-grey);
  text-transform: uppercase;
}

.ebook-card-info { padding: 16px; }
.ebook-card-info h3 {
  font-family: var(--font-cond);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.ebook-card-info p { font-size: 0.8rem; color: var(--text-grey); line-height: 1.6; }

.design-detail-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--trans);
}
.detail-card:hover {
  border-color: rgba(229,9,20,0.3);
  background: var(--bg-card-2);
}
.detail-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: rgba(229,9,20,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--ntf-red);
  margin-bottom: 16px;
}
.detail-card h4 {
  font-family: var(--font-cond);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.detail-card p { font-size: 0.85rem; color: var(--text-grey); line-height: 1.7; }
.detail-swatches { display: flex; gap: 8px; margin-top: 12px; }
.swatch { width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.2); }
.detail-fonts { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.detail-fonts span { font-size: 0.9rem; color: var(--text-light); }

/* ── GALLERY / DOWNLOAD ─────────────────────────────────── */
#gallery { padding: 80px 0; background: var(--bg-black); }

.download-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.dl-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all var(--trans);
  position: relative;
  overflow: hidden;
}
.dl-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.dl-card-featured {
  border-color: rgba(229,9,20,0.3);
}
.dl-card-featured:hover {
  box-shadow: 0 20px 50px rgba(229,9,20,0.15);
}

.dl-card-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229,9,20,0.15), transparent 70%);
  pointer-events: none;
}

.dl-card-icon {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--text-grey);
  border: 1px solid var(--border);
}
.dl-card-featured .dl-card-icon {
  background: rgba(229,9,20,0.15);
  border-color: rgba(229,9,20,0.3);
  color: var(--ntf-red);
}

.dl-card-badge {
  display: inline-block;
  background: rgba(255,255,255,0.08);
  font-family: var(--font-cond);
  font-size: 0.7rem;
  letter-spacing: 2px;
  padding: 4px 10px;
  border-radius: 3px;
  color: var(--text-grey);
  text-transform: uppercase;
  width: fit-content;
}

.dl-card h3 {
  font-family: var(--font-cond);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.dl-card p {
  font-size: 0.85rem;
  color: var(--text-grey);
  line-height: 1.7;
  flex: 1;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-family: var(--font-cond);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-white);
  transition: all var(--trans);
  cursor: pointer;
  margin-top: auto;
}
.btn-download:hover { background: rgba(255,255,255,0.12); transform: translateY(-1px); }
.btn-download-primary {
  background: var(--ntf-red);
  border-color: var(--ntf-red);
}
.btn-download-primary:hover { background: var(--ntf-red-dark); }

/* ── PREVIEW / FLIPBOOK ─────────────────────────────────── */
#preview { padding: 80px 0; background: var(--bg-dark); }

.flipbook-wrap {
  max-width: 900px;
  margin: 0 auto;
  min-height: 600px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}
.df-flipbook { min-height: 600px; }
.flipbook-fallback {
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flipbook-fallback-inner {
  text-align: center;
  color: var(--text-grey);
}
.flipbook-fallback-inner i { font-size: 3rem; margin-bottom: 16px; display: block; }
.flipbook-fallback-inner a { color: var(--ntf-red); text-decoration: underline; }

/* ── MESSAGES / PESAN & KESAN ───────────────────────────── */
#messages { padding: 80px 0; background: var(--bg-black); }

.messages-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 32px;
  align-items: start;
}

.msg-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.msg-form-card h3 {
  font-family: var(--font-cond);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.msg-form-card h3 i { color: var(--ntf-red); }

.msg-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.msg-field label {
  font-family: var(--font-cond);
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--text-grey);
  text-transform: uppercase;
  font-weight: 600;
}
.msg-field input,
.msg-field textarea {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text-white);
  font-size: 0.9rem;
  transition: border-color var(--trans);
  resize: none;
}
.msg-field input:focus,
.msg-field textarea:focus { border-color: rgba(229,9,20,0.5); }
.msg-field input::placeholder,
.msg-field textarea::placeholder { color: rgba(255,255,255,0.2); }

.char-count {
  align-self: flex-end;
  font-size: 0.7rem;
  color: var(--text-grey);
  font-family: var(--font-cond);
  letter-spacing: 1px;
}

.btn-submit-msg {
  width: 100%;
  background: var(--ntf-red);
  color: var(--text-white);
  font-family: var(--font-cond);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 14px;
  border-radius: var(--radius);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background var(--trans), transform var(--trans);
}
.btn-submit-msg:hover { background: var(--ntf-red-dark); transform: translateY(-1px); }

.msg-display-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.msg-display-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--bg-card-2);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-cond);
  font-size: 0.85rem;
  letter-spacing: 1px;
  font-weight: 600;
  text-transform: uppercase;
}
.msg-count { color: var(--ntf-red); }

.msg-list { max-height: 500px; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.msg-list::-webkit-scrollbar { width: 4px; }
.msg-list::-webkit-scrollbar-track { background: var(--bg-dark); }
.msg-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.msg-empty { text-align: center; padding: 48px 20px; color: var(--text-grey); }
.msg-empty i { font-size: 2.5rem; display: block; margin-bottom: 12px; opacity: 0.3; }
.msg-empty p { font-size: 0.85rem; }

.msg-item {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  animation: msgSlideIn 0.4s ease;
}
@keyframes msgSlideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.msg-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 8px;
}
.msg-item-name {
  font-family: var(--font-cond);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-white);
  text-transform: uppercase;
}
.msg-item-class {
  font-family: var(--font-cond);
  font-size: 0.7rem;
  letter-spacing: 1px;
  background: rgba(229,9,20,0.15);
  color: var(--ntf-red);
  padding: 2px 8px;
  border-radius: 3px;
  white-space: nowrap;
}
.msg-item-time {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.25);
  font-family: var(--font-cond);
}
.msg-item-text { font-size: 0.85rem; color: var(--text-light); line-height: 1.7; }

/* ── FOOTER ─────────────────────────────────────────────── */
#footer {
  position: relative;
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
  overflow: hidden;
}

.footer-streaks { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.fstreak {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.08;
}
.fr1 { background: var(--ntf-red); top: -50px; left: -50px; }
.fb1 { background: var(--ntf-blue); bottom: -50px; right: -50px; }

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-ntf {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 3px;
  display: block;
  margin-bottom: 12px;
}
.footer-desc { font-size: 0.85rem; color: var(--text-grey); line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-grey);
  transition: all var(--trans);
}
.footer-social a:hover { background: var(--ntf-red); border-color: var(--ntf-red); color: #fff; }

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-col h4 {
  font-family: var(--font-cond);
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: var(--text-grey);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  transition: color var(--trans);
}
.footer-col li:hover,
.footer-col a:hover { color: var(--text-white); }
.footer-col li i { color: var(--text-grey); width: 14px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.3); }
.footer-nano {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.2);
}
.footer-nano strong { color: rgba(255,255,255,0.4); }

/* ── BACK TO TOP ────────────────────────────────────────── */
.btn-backtotop {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 900;
  width: 44px;
  height: 44px;
  background: var(--ntf-red);
  color: var(--text-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--trans);
  box-shadow: 0 4px 20px var(--shadow-red);
}
.btn-backtotop.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.btn-backtotop:hover { background: var(--ntf-red-dark); transform: translateY(-3px); }

/* ── TOAST ──────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 90px;
  right: 32px;
  z-index: 1100;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  font-family: var(--font-cond);
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: var(--text-white);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--trans);
  max-width: 300px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.toast.success { border-color: rgba(34,197,94,0.3); }
.toast.error { border-color: rgba(229,9,20,0.4); }

/* ── RESPONSIVE ─────────────────────────────────────────── */

/* ── 1024px ── */
@media (max-width: 1024px) {
  .about-grid          { grid-template-columns: 1fr; }
  .about-photo,
  .about-photo-frame   { min-height: 280px; }
  .greet-wrap          { grid-template-columns: 1fr; min-height: auto; }
  .greet-photo-side    { min-height: 340px; }
  .greet-text-cols     { grid-template-columns: 1fr; }
  .stats-grid          { grid-template-columns: repeat(2, 1fr); }
  .ebook-main-cards    { grid-template-columns: 1fr; }
  .design-detail-cards { grid-template-columns: 1fr 1fr; }
  .messages-layout     { grid-template-columns: 1fr; }
  .footer-top          { grid-template-columns: 1fr; gap: 32px; }
  .footer-links        { grid-template-columns: repeat(3, 1fr); }
  .nav-links a span    { display: none; }
}

/* ── 768px ── */
@media (max-width: 768px) {
  /* Sections */
  #hero                { padding-bottom: 60px; }
  #about, #greetings,
  #ebook, #gallery,
  #preview, #messages  { padding: 60px 0; }
  #footer              { padding-top: 48px; }

  /* Nav */
  .nav-links           { display: none; }
  .nav-hamburger       { display: flex; }
  .nav-page            { display: none; }

  /* Hero */
  .hero-content        { padding: 0 20px; width: 100%; box-sizing: border-box; }
  .hero-corner-labels  { padding: 0 20px; }
  .hero-desc           { max-width: 100%; }

  /* About */
  .about-card          { padding: 24px; }
  .about-photo,
  .about-photo-frame   { min-height: 240px; }

  /* Greetings */
  .greet-photo-side    { min-height: 260px; }
  .greet-content       { padding: 24px; gap: 16px; }
  .greet-text-cols     { gap: 16px; }

  /* Download */
  .download-cards      { grid-template-columns: 1fr; }
  .dl-card             { padding: 24px 20px; }

  /* Flipbook */
  .flipbook-wrap       { min-height: 360px; }

  /* Messages */
  .msg-form-card       { padding: 24px; }
  .msg-list            { max-height: 400px; }

  /* Footer */
  .footer-links        { grid-template-columns: 1fr 1fr; }
  .footer-bottom       { flex-wrap: wrap; gap: 8px; }

  /* UI */
  .btn-backtotop       { bottom: 20px; right: 20px; }
  .toast               { right: 20px; max-width: calc(100vw - 40px); }
}

/* ── 480px ── */
@media (max-width: 480px) {
  /* Sections */
  #about, #greetings,
  #ebook, #gallery,
  #preview, #messages  { padding: 48px 0; }

  /* Container */
  .container           { padding: 0 16px; }

  /* Hero */
  .hero-content        { padding: 0 16px; }
  .hero-corner-labels  { padding: 0 16px; }
  .hero-title          { font-size: clamp(1.6rem, 8vw, 2.5rem); }
  .hero-progress       { display: none; }
  .hero-desc           { display: none; }
  .hero-actions        { gap: 8px; flex-wrap: wrap; }
  .btn-ntf-play        { padding: 10px 18px; font-size: 0.85rem; }
  .hero-only           { font-size: 0.65rem; }

  /* About */
  .about-card          { padding: 20px; }

  /* Greetings */
  .greet-photo-side    { min-height: 220px; }
  .greet-content       { padding: 20px; gap: 12px; }
  .greet-text-cols     { gap: 12px; }
  .greet-title         { font-size: 1.6rem; }
  .greet-stars span    { display: none; }
  .btn-notfor          { display: none; }

  /* Stats */
  .stats-grid          { grid-template-columns: repeat(2, 1fr); }

  /* eBook */
  .design-detail-cards { grid-template-columns: 1fr; }

  /* Download */
  .dl-card             { padding: 20px 16px; }

  /* Flipbook */
  .flipbook-wrap       { min-height: 240px; }

  /* Messages */
  .msg-form-card       { padding: 20px; }

  /* Footer */
  .footer-links        { grid-template-columns: 1fr; }
  .footer-bottom       { flex-direction: column; text-align: center; }

  /* UI */
  .btn-backtotop       { bottom: 16px; right: 16px; }
  .toast               { right: 16px; max-width: calc(100vw - 32px); }
}

/* ── 320px ── */
@media (max-width: 320px) {
  .container           { padding: 0 12px; }
  .nav-inner           { padding: 0 12px; }
  .hero-content        { padding: 0 12px; }
  .hero-corner-labels  { padding: 0 12px; }
  .about-card          { padding: 16px; }
  .greet-content       { padding: 14px; }
  .msg-form-card       { padding: 16px; }
  .dl-card             { padding: 14px 12px; }
  .loading-title       { font-size: 2.5rem; }
}

/* ── AOS Overrides ──────────────────────────────────────── */
[data-aos] { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }
