@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Poppins:wght@500;700&display=swap");

:root {
  --green-900: #0a362b;
  --green-800: #0d3f32;
  --green-700: #0f4c3a;
  --green-600: #11604a;
  --green-500: #15896a;
  --gold-500: #f7b731;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --white: #ffffff;
}

[data-theme="light"] {
  --green-900: #f9fbfa;
  --green-800: #f3f9f6;
  --green-700: #e9f6f2;
  --green-600: #d7efe6;
  --green-500: #c3e7dc;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #576b85;
  --slate-300: #8fa1b8;
  --slate-200: #5b6b83;
  --slate-100: #253147;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Noto Sans", "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--slate-100);
  background: linear-gradient(180deg, var(--green-800), var(--green-900));
}

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

#preloader {
  position: fixed;
  inset: 0;
  background: rgba(10, 54, 43, .9);
  display: grid;
  place-items: center;
  z-index: 1000;
}
.loading {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 4px solid var(--slate-200);
  border-top-color: var(--gold-500);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  background: linear-gradient(90deg, var(--gold-500), #ff7f50);
  z-index: 999;
}

.topbar {
  background: var(--green-900);
  color: var(--slate-200);
  font-size: 14px;
}
.topbar .container { display: flex; justify-content: space-between; padding: 10px 20px; }
.topbar a { color: var(--gold-500); text-decoration: none; }

.nav { position: sticky; top: 0; z-index: 998; background: rgba(15, 76, 58, .9); backdrop-filter: blur(6px); border-bottom: 1px solid rgba(255,255,255,.06); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.brand { font-family: Poppins, Inter; font-weight: 700; color: var(--white); text-decoration: none; letter-spacing: .3px; }
.nav-toggle { display: none; background: transparent; border: 0; color: var(--white); font-size: 22px; }
.nav-menu { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.nav-menu a { color: var(--slate-100); text-decoration: none; padding: 8px 12px; border-radius: 8px; transition: .2s ease; }
.nav-menu a:hover { background: rgba(255,255,255,.08); }
.nav-menu .cta { background: var(--gold-500); color: var(--slate-900); font-weight: 700; }

.theme-toggle { margin-left: 8px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); color: var(--white); border-radius: 10px; padding: 8px 10px; cursor: pointer; }
[data-theme="light"] .nav { background: rgba(255,255,255,.8); border-bottom: 1px solid rgba(0,0,0,.06); }
[data-theme="light"] .nav-menu a:hover { background: rgba(0,0,0,.06); }
[data-theme="light"] .theme-toggle { background: rgba(0,0,0,.06); color: var(--slate-900); border-color: rgba(0,0,0,.08); }
[data-theme="light"] .topbar { background: #ffffff; color: var(--slate-700); }

.hero { position: relative; padding: 80px 0 20px; overflow: hidden; background: radial-gradient(1000px 300px at 20% 0%, rgba(247,183,49,.12), transparent 60%); }
.hero-wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center; }
.hero h1 { font-family: Poppins, Inter; font-size: clamp(28px, 4vw, 44px); line-height: 1.1; margin: 0 0 12px; }
.hero p { font-size: 18px; color: var(--slate-300); }
.hero-cta { display: flex; gap: 12px; margin-top: 18px; }
.btn { display: inline-block; padding: 12px 18px; border-radius: 12px; text-decoration: none; font-weight: 600; }
.btn-primary { background: var(--gold-500); color: var(--slate-900); }
.btn-outline { border: 2px solid var(--slate-300); color: var(--slate-100); }
.hero-visual { position: relative; height: 320px; }
.hero-blob { position: absolute; border-radius: 24px; filter: blur(10px); opacity: .6; transform: translateZ(0); }
.blob1 { width: 200px; height: 200px; background: #23c4a1; top: 20%; left: 10%; }
.blob2 { width: 160px; height: 160px; background: #f7b731; bottom: 18%; right: 12%; }
.blob3 { width: 140px; height: 140px; background: #6c5ce7; top: 10%; right: 26%; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 24px 20px; }
.stat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); padding: 16px; border-radius: 14px; text-align: center; }
.counter { font-size: 32px; font-weight: 700; color: var(--white); }
.label { font-size: 14px; color: var(--slate-300); }

.section { padding: 72px 0; }
.section h2 { font-family: Poppins, Inter; font-size: 28px; margin: 0 0 10px; }
.section p { color: var(--slate-200); }

.grid { display: grid; gap: 22px; }
.grid.majors { grid-template-columns: repeat(3, 1fr); }
.major-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 18px; padding: 18px; transition: transform .2s ease, box-shadow .2s ease; }
.major-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.2); }
[data-theme="light"] .major-card, [data-theme="light"] .facility, [data-theme="light"] .contact-card, [data-theme="light"] .value, [data-theme="light"] .ppdb-form { background: #ffffff; border-color: rgba(0,0,0,.08); box-shadow: 0 4px 10px rgba(0,0,0,.05); }
[data-theme="light"] .stat { background: #ffffff; border-color: rgba(0,0,0,.08); }
.major-head { display: flex; align-items: center; gap: 12px; }
.major-head .icon { font-size: 28px; }
.bullets { margin: 12px 0; padding-left: 18px; }
.bullets li { margin: 6px 0; color: var(--slate-200); }
.detail-toggle { margin-top: 10px; padding: 10px 12px; border-radius: 10px; border: 0; background: var(--green-600); color: var(--white); font-weight: 600; cursor: pointer; }
.major-detail { margin-top: 16px; }
.detail-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.detail-cols h4 { margin: 0 0 8px; font-size: 16px; color: var(--gold-500); }
.detail-cols ul { margin: 0; padding-left: 18px; }
.detail-cols li { color: var(--slate-200); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: center; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.value { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 12px; }

.marquee { overflow: hidden; border-radius: 14px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.06); }
.marquee-track { display: inline-flex; gap: 40px; padding: 12px 20px; animation: slide 18s linear infinite; }
.marquee-track span { font-weight: 700; color: var(--gold-500); }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.facilities { grid-template-columns: repeat(3, 1fr); }
.facility { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 18px; text-align: center; }
.facility-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); color: var(--white); border-radius: 999px; padding: 8px 12px; cursor: pointer; }
.chip.active { background: var(--gold-500); color: var(--slate-900); border-color: transparent; }
[data-theme="light"] .chip { background: rgba(0,0,0,.06); border-color: rgba(0,0,0,.08); color: var(--slate-900); }
[data-theme="light"] .chip.active { background: var(--gold-500); color: var(--slate-900); }

.timeline { position: relative; display: grid; gap: 12px; }
.timeline-item { display: grid; grid-template-columns: 80px 1fr; align-items: center; gap: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 10px 12px; }
.time { font-weight: 700; color: var(--gold-500); }
[data-theme="light"] .timeline-item { background: #ffffff; border-color: rgba(0,0,0,.08); }

.steps { margin: 10px 0 14px; padding-left: 18px; }
.steps li { color: var(--slate-200); }
.ppdb-form { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 18px; padding: 18px; }
.form-row { display: grid; gap: 8px; margin-bottom: 12px; }
.form-row label { font-size: 14px; color: var(--slate-300); }
.form-row input, .form-row textarea, .form-row select { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 10px 12px; color: var(--white); }
.form-note { margin-top: 10px; font-size: 14px; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.contact-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 14px; }
.contact-card .label { color: var(--slate-300); font-size: 14px; }
.contact-card .value a { color: var(--gold-500); text-decoration: none; }

.footer { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; background: rgba(255,255,255,.03); }
.footer .container { display: flex; align-items: center; justify-content: space-between; color: var(--slate-200); }
.footer a { color: var(--slate-200); text-decoration: none; }
[data-theme="light"] .footer { background: #fafafa; border-top-color: rgba(0,0,0,.08); }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.features { grid-template-columns: repeat(3, 1fr); }
.feature-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 16px; display: grid; gap: 6px; transition: transform .2s ease, box-shadow .2s ease; }
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0,0,0,.2); }
.feature-icon { font-size: 28px; }
.feature-title { font-weight: 700; }
.feature-desc { color: var(--slate-200); }
.progress-wrap { display: grid; gap: 12px; margin-top: 16px; }
.progress-item { display: grid; gap: 6px; }
.progress-label { font-size: 14px; color: var(--slate-300); }
.progress-bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.08); overflow: hidden; }
.progress-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-500), #ff7f50); }
[data-theme="light"] .feature-card { background: #ffffff; border-color: rgba(0,0,0,.08); }
[data-theme="light"] .progress-bar { background: rgba(0,0,0,.06); border-color: rgba(0,0,0,.08); }

.gallery-grid { grid-template-columns: repeat(4, 1fr); }
.gallery-item { position: relative; overflow: hidden; border-radius: 14px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.06); }
.gallery-item img { width: 100%; height: 180px; object-fit: cover; display: block; transition: transform .3s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption { position: absolute; left: 0; bottom: 0; right: 0; padding: 8px 10px; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.6)); color: #fff; font-size: 14px; }
[data-theme="light"] .gallery-item { background: #ffffff; border-color: rgba(0,0,0,.08); }

.to-top { position: fixed; right: 16px; bottom: 16px; width: 40px; height: 40px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.12); color: var(--white); display: none; align-items: center; justify-content: center; cursor: pointer; z-index: 999; }
.to-top.show { display: flex; }
[data-theme="light"] .to-top { background: #fff; border-color: rgba(0,0,0,.08); color: var(--slate-900); }

.faq { display: grid; gap: 12px; }
.faq-item { border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.06); border-radius: 14px; }
.faq-question { width: 100%; text-align: left; padding: 12px 14px; background: transparent; color: var(--slate-100); border: 0; font-weight: 700; }
.faq-answer { padding: 0 14px 14px; color: var(--slate-200); display: none; }
.faq-item.open .faq-answer { display: block; }
[data-theme="light"] .faq-item { background: #ffffff; border-color: rgba(0,0,0,.08); }

@media (max-width: 980px) {
  .grid.majors { grid-template-columns: 1fr 1fr; }
  .detail-cols { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .facilities { grid-template-columns: 1fr 1fr; }
  .facility-stats { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-wrap { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-menu { position: fixed; top: 60px; right: 16px; background: rgba(15,76,58,.97); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 10px; display: none; flex-direction: column; gap: 6px; }
  .nav.open .nav-menu { display: flex; }
  .grid.majors { grid-template-columns: 1fr; }
  .facilities { grid-template-columns: 1fr; }
  .facility-stats { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
}