:root {
  --red: #883CF0;
  --navy: #180f26;
  --cream: #191127;
  --gold: #883CF0;
  --dark: #0a0f1a;
  --light-gray: #e8e4de;
  --text: #d1d1d1;
  --text-light: #d6d6d6;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
}

/* PRELOADER */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 900;
  color:#fff;
  letter-spacing: 0.05em;
  animation: pulse 1.2s ease-in-out infinite;
}
.preloader-text span { color: var(--red); }
@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1); }
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.25rem 3rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.4s, box-shadow 0.4s, padding 0.4s;
}
nav.scrolled {
  background: #180f26;
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
  padding: 0.75rem 3rem;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 900; font-size: 1.4rem;
  color: white; text-decoration: none;
  letter-spacing: 0.04em;
}
.nav-logo span { color: var(--red); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.8); text-decoration: none;
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--red);
  transition: width 0.3s;
}
.nav-links a:hover { color: white; }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--red); color: white !important;
  padding: 0.6rem 1.5rem; border-radius: 4px;
  font-weight: 600 !important; letter-spacing: 0.06em !important;
  transition: background 0.3s, transform 0.3s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: #883cf0e0; transform: translateY(-1px); }
.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 30px; height: 20px; position: relative; z-index: 200;
}
.menu-toggle span {
  display: block; width: 100%; height: 2px; background: white;
  position: absolute; left: 0; transition: 0.3s;
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { top: 18px; }

/* HERO */
.hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(118, 17, 206, 0.15), transparent),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(155, 90, 196, 0.1), transparent),
    linear-gradient(180deg, rgba(18, 10, 26, 0.3), transparent 40%, rgba(21, 10, 26, 0.5));
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}
@keyframes gridMove { to { transform: translate(60px, 60px); } }
.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 2rem;
  max-width: 900px;
}
.hero-badge {
  display: inline-block;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--gold); border: 1px solid #3a1c63;
  padding: 0.5rem 1.5rem; border-radius: 100px;
  margin-bottom: 2rem;
  opacity: 0; animation: fadeUp 0.8s ease 1.4s forwards;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900; color: white;
  line-height: 0.95; letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  opacity: 0; animation: fadeUp 1s ease 1.6s forwards;
}
.hero h1 em {
  font-style: italic; color: var(--red);
  display: block; font-size: 0.5em;
  letter-spacing: 0.02em; margin-top: 0.2em;
}
.hero-sub {
  font-family: 'Crimson Pro', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: rgba(255,255,255,0.6);
  font-weight: 300; line-height: 1.6;
  max-width: 600px; margin: 0 auto 2.5rem;
  opacity: 0; animation: fadeUp 1s ease 1.8s forwards;
}
.hero-buttons {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 1s ease 2s forwards;
}
.btn {
  padding: 0.9rem 2.2rem; font-size: 0.85rem;
  font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; text-decoration: none;
  border-radius: 4px; cursor: pointer;
  transition: all 0.35s ease; border: none;
  font-family: 'DM Sans', sans-serif;
}
.btn-primary { background: var(--red); color: white; }
.btn-primary:hover { background: #883cf0e0; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(146, 17, 206, 0.3); }
.btn-outline { background: transparent; color: white; border: 1.5px solid #3a1c63; }
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.05); }
.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  opacity: 0; animation: fadeUp 1s ease 2.4s forwards;
}
.scroll-indicator span {
  display: block; width: 1px; height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* STATS RIBBON */
.stats-ribbon {
  background: #1f1232;
  padding: 3rem 2rem;
  display: flex; justify-content: center; gap: 4rem; flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900; color: var(--red);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem; color: rgba(255,255,255,0.5);
  text-transform: uppercase; letter-spacing: 0.15em;
  margin-top: 0.5rem; font-weight: 500;
}

/* SECTIONS COMMON */
section { padding: clamp(4rem, 10vw, 8rem) clamp(1.5rem, 5vw, 4rem); }
.section-label {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--red); margin-bottom: 1rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900; line-height: 1.1;
  margin-bottom: 1.5rem; letter-spacing: -0.01em;
}
.section-desc {
  font-family: 'Crimson Pro', serif;
  font-size: 1.15rem; line-height: 1.7;
  color: var(--text-light);
  max-width: 600px;
}

/* ABOUT */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem; align-items: center;
  max-width: 1200px; margin: 0 auto;
}
.about-visual {
  position: relative; height: 500px;
}
.about-card {
  position: absolute; border-radius: 12px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  transition: transform 0.5s ease;
}
.about-card:hover { transform: scale(1.03); }
.about-card img { width: 100%; height: 100%; object-fit: cover; }
.about-card-1 { top: 0; left: 0; width: 65%; height: 60%; }
.about-card-2 { bottom: 0; right: 0; width: 55%; height: 55%; z-index: 2; }
.about-card-accent {
  position: absolute; top: 50%; left: 40%;
  width: 80px; height: 80px; background: var(--red);
  border-radius: 8px; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem; font-weight: 900; color: white;
  transform: translate(-50%, -50%) rotate(-5deg);
  box-shadow: 0 10px 30px rgba(146, 17, 206, 0.4);
}

/* ACADEMICS TABS */
.academics { background: #180f26; color: white; }
.academics .section-desc { color: rgba(255,255,255,0.5); }
.academics-header {
  text-align: center; margin-bottom: 3rem;
  max-width: 700px; margin-left: auto; margin-right: auto;
}
.tab-nav {
  display: flex; justify-content: center; gap: 0.5rem;
  margin-bottom: 3rem; flex-wrap: wrap;
}
.tab-btn {
  background: #1f1232;
  border: 1px solid #3a1c63;
  color: rgba(255,255,255,0.6);
  padding: 0.7rem 1.5rem; border-radius: 100px;
  font-size: 0.82rem; font-weight: 500;
  cursor: pointer; transition: all 0.3s;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.03em;
}
.tab-btn:hover { background: #23133a; color: white; }
.tab-btn.active {
  background: var(--red); border-color: var(--red); color: white;
}
.tab-content { display: none; animation: fadeIn 0.5s ease; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem; max-width: 1100px; margin: 0 auto;
}
.program-card {
  background: #23133a;
  border: 1px solid #3a1c63;
  border-radius: 12px; padding: 2rem;
  transition: all 0.4s ease; cursor: default;
  position: relative; overflow: hidden;
}
.program-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; width: 4px; height: 0;
  background: var(--red);
  transition: height 0.4s ease;
}
.program-card:hover {
  background: #1f1232;
  border-color: #5e309d;
  transform: translateY(-4px);
}
.program-card:hover::before { height: 100%; }
.program-icon {
  font-size: 2rem; margin-bottom: 1rem;
  display: block;
}
.program-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-weight: 700;
  margin-bottom: 0.6rem;
}
.program-card p {
  font-size: 0.88rem; color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

/* CAMPUS LIFE */
.campus-life { background: var(--cream); }
.campus-header {
  max-width: 1200px; margin: 0 auto 3rem;
}
.campus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1.5rem; max-width: 1200px; margin: 0 auto;
}
.campus-card {
  background: #7c5cfc1f; border-radius: 16px;
  overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.4s ease; cursor: default;
  position: relative;
}
.campus-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.12); }
.campus-card.featured { grid-column: span 2; }
.campus-card-img {
  width: 100%; height: 220px; object-fit: cover;
  transition: transform 0.6s ease;
}
.campus-card:hover .campus-card-img { transform: scale(1.05); }
.campus-card-img-wrap { overflow: hidden; }
.campus-card-body { padding: 1.5rem; }
.campus-card-tag {
  display: inline-block; font-size: 0.65rem;
  font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--red);
  background: #23133a;
  padding: 0.3rem 0.8rem; border-radius: 100px;
  margin-bottom: 0.75rem;
}
.campus-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem; font-weight: 700;
  margin-bottom: 0.5rem; line-height: 1.3;
}
.campus-card p {
  font-size: 0.88rem; color: var(--text-light);
  line-height: 1.6;
}

/* VIRTUAL TOUR / INTERACTIVE MAP */
.virtual-section {
  background: var(--navy); color: white;
  text-align: center;
}
.virtual-header { max-width: 600px; margin: 0 auto 3rem; }
.virtual-header .section-desc { color: rgba(255,255,255,0.5); margin: 0 auto; }
.hotspots-container {
  position: relative;
  max-width: 900px; margin: 0 auto;
  aspect-ratio: 16/9;
  background:
    radial-gradient(circle at 30% 40%, rgba(124, 17, 206, 0.08), transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(143, 90, 196, 0.08), transparent 50%),
    linear-gradient(135deg, #23133a, #2a1647);
  border-radius: 20px; border: 1px solid #3a1c63;
  overflow: hidden;
}
.campus-map-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hotspot {
  position: absolute; z-index: 5;
  cursor: pointer;
}
.hotspot-dot {
  width: 18px; height: 18px;
  background: var(--red); border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.8);
  box-shadow: 0 0 0 4px rgba(149, 17, 206, 0.3);
  transition: transform 0.3s;
  animation: hotspotPulse 2.5s ease infinite;
}
.hotspot:hover .hotspot-dot { transform: scale(1.3); }
@keyframes hotspotPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(140, 17, 206, 0.3); }
  50% { box-shadow: 0 0 0 10px rgba(206,17,38,0); }
}
.hotspot-label {
  position: absolute; bottom: calc(100% + 12px); left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.85); backdrop-filter: blur(10px);
  color: white; padding: 0.75rem 1.2rem;
  border-radius: 10px; white-space: nowrap;
  font-size: 0.78rem; font-weight: 500;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  transform: translateX(-50%) translateY(5px);
  border: 1px solid #3a1c63;
}
.hotspot-label::after {
  content: ''; position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(0,0,0,0.85);
}
.hotspot:hover .hotspot-label {
  opacity: 1; transform: translateX(-50%) translateY(0);
}
.hotspot-label strong { color: var(--gold); display: block; margin-bottom: 2px; }

/* ATHLETICS */
.athletics {
  background: var(--red);
  color: white;
  position: relative; overflow: hidden;
}
.athletics::before {
  content: ''; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(
      45deg, transparent, transparent 40px,
      rgba(255,255,255,0.02) 40px, rgba(255,255,255,0.02) 80px
    );
}
.athletics-inner {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.athletics .section-label { color: var(--gold); }
.athletics .section-desc { color: rgba(255,255,255,0.7); }
.athletics-features { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
.ath-feature {
  display: flex; align-items: flex-start; gap: 1rem;
  background: rgba(255,255,255,0.1);
  padding: 1.2rem 1.5rem; border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: background 0.3s, transform 0.3s;
}
.ath-feature:hover { background: rgba(255,255,255,0.18); transform: translateX(6px); }
.ath-icon {
  font-size: 1.8rem; flex-shrink: 0;
}
.ath-feature h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.2rem; }
.ath-feature p { font-size: 0.82rem; color: rgba(255,255,255,0.65); }
.athletics-visual {
  display: flex; flex-direction: column;
  align-items: center; gap: 1.5rem;
}
.hotty-toddy {
  font-family: 'Playfair Display', serif;
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 900;
  color: rgba(255,255,255,0.08);
  text-align: center;
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  user-select: none;
}
.hotty-toddy-sub {
  font-size: 0.85rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: rgba(255,255,255,0.5);
  font-weight: 500;
}

/* OXFORD */
.oxford { background: #23133a; }
.oxford-container { max-width: 1200px; margin: 0 auto; }
.oxford-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.oxford-highlights { display: flex; flex-direction: column; gap: 1.2rem; margin-top: 2rem; }
.oxford-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  background: var(--cream);
  transition: transform 0.3s, box-shadow 0.3s;
}
.oxford-item:hover { transform: translateX(6px); box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.oxford-item-icon { font-size: 1.6rem; flex-shrink: 0; }
.oxford-item h4 { font-size: 0.95rem; font-weight: 600; }
.oxford-item p { font-size: 0.82rem; color: var(--text-light); }
.oxford-quote {
  font-family: 'Crimson Pro', serif;
  font-size: 1.4rem; font-style: italic;
  color: var(--text-light);
  border-left: 3px solid var(--red);
  padding-left: 1.5rem;
  line-height: 1.5;
}
.oxford-quote-attr {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem; font-style: normal;
  font-weight: 600; color: var(--red);
  margin-top: 0.5rem;
}

/* CTA */
.cta {
  background: var(--navy);
  text-align: center; color: white;
  position: relative; overflow: hidden;
}
.cta::before {
  content: ''; position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124, 17, 206, 0.15), transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.cta-content { position: relative; z-index: 2; max-width: 700px; margin: 0 auto; }
.cta .section-title { color: white; }
.cta .section-desc { color: rgba(255,255,255,0.6); margin: 0 auto 2rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* FOOTER */
footer {
  background: #180f26; color: rgba(255,255,255,0.4);
  padding: 4rem 3rem 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; max-width: 1200px; margin: 0 auto 3rem;
}
.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 900;
  color: white; margin-bottom: 1rem;
}
.footer-brand span { color: var(--red); }
.footer-desc { font-size: 0.85rem; line-height: 1.7; }
.footer-col h4 {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a {
  color: rgba(255,255,255,0.4); text-decoration: none;
  font-size: 0.85rem; transition: color 0.3s;
}
.footer-col a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 2rem; text-align: center;
  font-size: 0.78rem; max-width: 1200px; margin: 0 auto;
}

/* REVEAL ANIMATION */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .about { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual { height: 350px; }
  .campus-grid { grid-template-columns: 1fr; }
  .campus-card.featured { grid-column: span 1; }
  .athletics-inner { grid-template-columns: 1fr; }
  .oxford-split { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .stats-ribbon { gap: 2rem; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.5rem, 12vw, 4rem); }
}