/* ============================================================
   RTU PYQ Solutions – pyq-style.css
   Same theme: Dark editorial, lime green accent, Syne + DM Sans
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #0d0f14;
  --bg2:          #13161e;
  --bg3:          #191d27;
  --surface:      #1e2230;
  --surface2:     #252a38;
  --green:        #a3e635;
  --green-glow:   rgba(163, 230, 53, 0.18);
  --green-dim:    rgba(163, 230, 53, 0.08);
  --yellow:       rgba(250, 204, 21, 0.12);
  --yellow-b:     rgba(250, 204, 21, 0.25);
  --red:          rgba(239, 68, 68, 0.12);
  --red-b:        rgba(239, 68, 68, 0.25);
  --text:         #eef0f6;
  --text-muted:   #7a8099;
  --text-soft:    #b0b7cc;
  --border:       rgba(255,255,255,0.07);
  --border-green: rgba(163,230,53,0.25);
  --radius:       14px;
  --radius-lg:    22px;
  --transition:   0.28s cubic-bezier(.4,0,.2,1);
  --font-head:    'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
sup { font-size: 0.5em; vertical-align: super; }

/* ---------- Background Orbs ---------- */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  animation: orb-drift 20s ease-in-out infinite alternate;
}
.orb1 { width: 500px; height: 500px; background: rgba(163,230,53,0.06); top: -100px; left: -100px; }
.orb2 { width: 380px; height: 380px; background: rgba(99,102,241,0.07); top: 45%; right: -80px; animation-duration: 26s; animation-delay: -6s; }
.orb3 { width: 320px; height: 320px; background: rgba(163,230,53,0.04); bottom: 8%; left: 35%; animation-duration: 32s; animation-delay: -12s; }

@keyframes orb-drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(28px, 36px) scale(1.1); }
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  height: 68px;
  background: rgba(13,15,20,0.75);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(13,15,20,0.96);
  box-shadow: 0 2px 30px rgba(0,0,0,0.6);
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head);
  font-weight: 800; font-size: 1.1rem;
}
.logo-icon { font-size: 1.3rem; }
.accent { color: var(--green); }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none;
}
.nav-link {
  padding: 7px 13px;
  border-radius: 50px;
  font-size: 0.82rem; font-weight: 500;
  color: var(--text-soft);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.nav-link:hover { background: var(--surface); color: var(--text); }

.nav-yt-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 15px;
  background: var(--green);
  color: #0d0f14;
  border-radius: 50px;
  font-size: 0.82rem; font-weight: 700;
  transition: opacity var(--transition), transform var(--transition);
  white-space: nowrap;
}
.nav-yt-btn:hover { opacity: 0.88; transform: translateY(-1px); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: var(--transition); display: block;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; z-index: 1;
  min-height: 72vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 130px 5% 70px;
  background:
    radial-gradient(ellipse 65% 55% at 50% 0%, rgba(163,230,53,0.10) 0%, transparent 70%),
    var(--bg);
}

.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  background: var(--green-dim);
  border: 1px solid var(--border-green);
  border-radius: 50px;
  font-size: 0.78rem; font-weight: 600;
  color: var(--green);
  letter-spacing: 0.5px;
  margin-bottom: 26px;
  animation: fade-up 0.6s ease both;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2px;
  margin-bottom: 20px;
  animation: fade-up 0.65s 0.1s ease both;
}
.hero-highlight {
  color: var(--green);
  position: relative; display: inline-block;
}
.hero-highlight::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 3px; background: var(--green); border-radius: 3px; opacity: 0.45;
}

.hero-sub {
  max-width: 500px;
  font-size: 1rem; color: var(--text-muted);
  margin-bottom: 32px;
  animation: fade-up 0.65s 0.2s ease both;
}

.hero-tags {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  animation: fade-up 0.65s 0.3s ease both;
}
.hero-tags span {
  padding: 6px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.8rem; color: var(--text-soft);
}

/* ---------- Selector Section ---------- */
.selector-section {
  position: relative; z-index: 1;
  padding: 0 5% 80px;
  margin-top: -20px;
}

.selector-card {
  max-width: 860px; margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 40px 36px;
  box-shadow: 0 8px 60px rgba(0,0,0,0.4);
  animation: fade-up 0.7s 0.4s ease both;
}

.selector-header { margin-bottom: 28px; }
.selector-header h2 {
  font-family: var(--font-head);
  font-size: 1.4rem; font-weight: 800;
  margin-bottom: 6px;
}
.selector-header p { font-size: 0.875rem; color: var(--text-muted); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 14px;
  align-items: flex-end;
  margin-bottom: 24px;
}

.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label {
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-muted);
}

.select-wrap { position: relative; }
.select-wrap select {
  width: 100%;
  appearance: none;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  padding: 13px 40px 13px 16px;
  cursor: pointer;
  transition: border-color var(--transition);
  outline: none;
}
.select-wrap select:focus { border-color: var(--border-green); }
.select-wrap select option { background: var(--bg3); }
.select-arrow {
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted); font-size: 0.85rem;
  pointer-events: none;
}

.search-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 24px;
  background: var(--green);
  color: #0d0f14;
  border: none; border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 0.9rem; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(163,230,53,0.25);
  height: 48px;
}
.search-btn:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 6px 28px rgba(163,230,53,0.35); }

/* Quick search */
.divider {
  display: flex; align-items: center; gap: 14px;
  color: var(--text-muted); font-size: 0.78rem;
  margin-bottom: 16px;
}
.divider::before, .divider::after {
  content: ''; flex: 1;
  height: 1px; background: var(--border);
}

.quick-search {
  display: flex; align-items: center;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 4px 4px 16px;
  gap: 10px;
  transition: border-color var(--transition);
}
.quick-search:focus-within { border-color: var(--border-green); }
.quick-search svg { color: var(--text-muted); flex-shrink: 0; }
.quick-search input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-family: var(--font-body); font-size: 0.9rem;
  padding: 9px 0;
}
.quick-search input::placeholder { color: var(--text-muted); }
.search-icon-btn {
  padding: 9px 18px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--green);
  font-family: var(--font-head);
  font-size: 0.82rem; font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.search-icon-btn:hover { background: var(--green-dim); border-color: var(--border-green); }

/* ---------- Info Section ---------- */
.info-section {
  position: relative; z-index: 1;
  padding: 80px 5%;
  background: var(--bg2);
}

.section-label {
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--green); margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800; letter-spacing: -1px;
  margin-bottom: 40px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color var(--transition), transform var(--transition);
}
.info-card:hover { border-color: rgba(255,255,255,0.12); transform: translateY(-3px); }

.info-card-top { display: flex; align-items: center; justify-content: space-between; }

.info-icon-wrap {
  width: 48px; height: 48px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.info-icon-wrap.green { background: var(--green-dim); border: 1px solid var(--border-green); }
.info-icon-wrap.yellow { background: var(--yellow); border: 1px solid var(--yellow-b); }
.info-icon-wrap.red    { background: var(--red);    border: 1px solid var(--red-b); }

.info-tag {
  padding: 4px 12px;
  background: var(--green-dim);
  border: 1px solid var(--border-green);
  border-radius: 50px;
  font-size: 0.7rem; font-weight: 700;
  color: var(--green); text-transform: uppercase; letter-spacing: 0.5px;
}
.info-tag.premium {
  background: rgba(239,68,68,0.1);
  border-color: rgba(239,68,68,0.25);
  color: #f87171;
}

.info-card h3 {
  font-family: var(--font-head);
  font-size: 1.05rem; font-weight: 700;
}
.info-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; }

.info-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem; color: var(--text-muted);
}
.info-link { color: var(--green); font-weight: 600; transition: opacity var(--transition); }
.info-link:hover { opacity: 0.75; }

/* ---------- Years Section ---------- */
.years-section {
  position: relative; z-index: 1;
  padding: 80px 5%;
  background: var(--bg);
}

.years-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 0;
}

.year-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  display: flex; align-items: center; gap: 20px;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
  position: relative; overflow: hidden;
}
.year-tile::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at top left, var(--green-dim) 0%, transparent 60%);
  opacity: 0; transition: opacity var(--transition);
}
.year-tile:hover { border-color: var(--border-green); transform: translateX(4px); }
.year-tile:hover::before { opacity: 1; }

.year-tile-num {
  font-family: var(--font-head);
  font-size: 2.4rem; font-weight: 800;
  color: var(--green); line-height: 1;
  flex-shrink: 0; min-width: 56px;
}

.year-tile-info { flex: 1; position: relative; z-index: 1; }
.year-tile-info h4 {
  font-family: var(--font-head);
  font-size: 1rem; font-weight: 700; margin-bottom: 2px;
}
.year-tile-info p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 6px; }
.year-tile-subjects {
  font-size: 0.75rem; color: var(--text-muted);
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 3px 12px;
  display: inline-block;
}

.year-tile-arrow {
  font-size: 1.2rem; color: var(--text-muted);
  transition: transform var(--transition), color var(--transition);
  position: relative; z-index: 1;
}
.year-tile:hover .year-tile-arrow { transform: translateX(4px); color: var(--green); }

/* ---------- Footer ---------- */
.footer {
  position: relative; z-index: 1;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding: 60px 5% 50px;
  max-width: 1200px; margin: 0 auto;
}
.footer-brand .logo-text {
  font-family: var(--font-head);
  font-size: 1.1rem; font-weight: 800;
}
.footer-brand p { color: var(--text-muted); font-size: 0.875rem; margin: 10px 0 18px; }

.footer-yt {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px;
  background: rgba(255,0,0,0.1);
  border: 1px solid rgba(255,0,0,0.2);
  border-radius: 50px;
  color: #f87171;
  font-size: 0.82rem; font-weight: 600;
  transition: background var(--transition);
}
.footer-yt:hover { background: rgba(255,0,0,0.18); }

.footer-links-col h5 {
  font-family: var(--font-head);
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--text-muted); margin-bottom: 18px;
}
.footer-links-col a {
  display: block; font-size: 0.875rem;
  color: var(--text-soft); margin-bottom: 10px;
  transition: color var(--transition);
}
.footer-links-col a:hover { color: var(--green); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 5%;
  text-align: center;
  font-size: 0.78rem; color: var(--text-muted);
}
.footer-bottom a { color: var(--green); font-weight: 600; }

/* ---------- Animations ---------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .search-btn { grid-column: 1 / -1; justify-self: start; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .navbar { padding: 0 4%; }
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 16px; gap: 4px;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }

  .hero { padding: 110px 4% 60px; }
  .hero-title { letter-spacing: -1px; }

  .selector-section { padding: 0 4% 60px; }
  .selector-card { padding: 28px 20px 26px; }
  .form-row { grid-template-columns: 1fr; }
  .search-btn { width: 100%; justify-content: center; }

  .info-section, .years-section { padding: 60px 4%; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }

  .hero-tags { gap: 8px; }
  .hero-tags span { font-size: 0.72rem; padding: 5px 12px; }
}