body { background-color: #11221c; color: #f9f6f0; overflow-x: hidden; }
.logo-entrance {
  animation: logo-entrance 1.35s cubic-bezier(.16, 1, .3, 1) both;
  will-change: opacity, transform, filter;
}
@keyframes logo-entrance {
  0% { opacity: 0; transform: translate3d(0, 14px, 0) scale(.94); filter: blur(7px) drop-shadow(0 0 0 rgba(212,175,55,0)); }
  55% { opacity: 1; transform: translate3d(0, -2px, 0) scale(1.008); filter: blur(0) drop-shadow(0 10px 24px rgba(212,175,55,.10)); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); filter: blur(0) drop-shadow(0 5px 16px rgba(212,175,55,.06)); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-entrance { animation: none; }
}
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #11221c; }
::-webkit-scrollbar-thumb { background: rgba(249,246,240,.2); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: rgba(249,246,240,.4); }

.noise-bg { position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.reveal { opacity: 0; transform: translateY(40px); transition: all .8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

.glass { background: rgba(249,246,240,.03); border: 1px solid rgba(249,246,240,.1); backdrop-filter: blur(10px); }
.btn-red-glow { box-shadow: 0 4px 20px rgba(206,43,55,.4); }
.btn-red-glow:hover { box-shadow: 0 6px 30px rgba(206,43,55,.6); }

/* Timeline */
.timeline-container::before { content: ''; position: absolute; top: 0; bottom: 0; left: 24px; width: 2px; background: rgba(249,246,240,.2); }
@media (min-width: 768px) { .timeline-container::before { left: 50%; transform: translateX(-50%); } }

/* Navbar */
.site-nav { position: fixed; top: 4px; left: 0; right: 0; z-index: 45; transition: background .3s, box-shadow .3s; }
.site-nav.scrolled { background: rgba(13,31,25,.92); backdrop-filter: blur(12px); box-shadow: 0 4px 24px rgba(0,0,0,.35); }
.nav-link { position: relative; font-size: .85rem; letter-spacing: .04em; color: rgba(249,246,240,.8); transition: color .2s; }
.nav-link:hover, .nav-link.active-link { color: #d4af37; }
.nav-link::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: #d4af37; transition: width .25s; }
.nav-link:hover::after, .nav-link.active-link::after { width: 100%; }

/* Hero logo — enlarged */
.logo-img { width: clamp(300px, 52vw, 720px); height: auto; transition: transform .5s ease; margin-inline: auto; display: block; }
.logo-img:hover { transform: scale(1.03); }
.nav-logo { height: 46px; width: auto; }

/* University cards */
.uni-card { display: flex; flex-direction: column; border-radius: 1.25rem; overflow: hidden; background: rgba(249,246,240,.04); border: 1px solid rgba(249,246,240,.1); transition: transform .35s, border-color .35s, box-shadow .35s; }
.uni-card:hover { transform: translateY(-6px); border-color: rgba(212,175,55,.5); box-shadow: 0 18px 40px rgba(0,0,0,.4); }
.uni-img-wrap { position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: #0d1f19; }
.uni-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.uni-card:hover .uni-img-wrap img { transform: scale(1.07); }
.uni-fallback { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem;
  background: linear-gradient(135deg, #18372c 0%, #11221c 55%, #3a1a1f 100%); }
.uni-fallback span { font-family: 'Playfair Display', serif; font-size: 3.2rem; font-weight: 700; color: #d4af37; letter-spacing: .08em; }
.uni-fallback small { color: rgba(249,246,240,.55); letter-spacing: .2em; text-transform: uppercase; font-size: .7rem; }
.uni-img-wrap::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(17,34,28,.75), transparent 55%); pointer-events: none; }
.uni-badge { position: absolute; z-index: 2; top: .75rem; left: .75rem; font-size: .7rem; font-weight: 600; padding: .25rem .65rem; border-radius: 999px; background: rgba(17,34,28,.85); color: #d4af37; border: 1px solid rgba(212,175,55,.4); }
.uni-year { position: absolute; z-index: 2; top: .75rem; right: .75rem; font-size: .7rem; padding: .25rem .65rem; border-radius: 999px; background: rgba(206,43,55,.9); color: #fff; }
.chip { display: inline-block; font-size: .68rem; padding: .2rem .6rem; border-radius: 999px; background: rgba(249,246,240,.08); color: rgba(249,246,240,.8); border: 1px solid rgba(249,246,240,.12); }

/* Filters */
.filter-btn { padding: .5rem 1.2rem; border-radius: 999px; font-size: .8rem; font-weight: 600; border: 1px solid rgba(249,246,240,.2); color: rgba(249,246,240,.75); transition: all .2s; cursor: pointer; }
.filter-btn:hover { border-color: #d4af37; color: #d4af37; }
.filter-btn.on { background: #d4af37; color: #11221c; border-color: #d4af37; }

/* Detail modal */
.uni-modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-start; justify-content: center; padding: 1rem; overflow-y: auto; background: rgba(8,18,14,.9); backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity .3s; }
.uni-modal.open { opacity: 1; pointer-events: auto; }
.uni-modal .panel { margin: 2rem 0; width: 100%; max-width: 56rem; border-radius: 1.5rem; overflow: hidden; background: #11221c; border: 1px solid rgba(249,246,240,.12); transform: translateY(24px); transition: transform .3s; }
.uni-modal.open .panel { transform: translateY(0); }
.prog-list li { position: relative; padding-left: 1.2rem; margin-bottom: .45rem; font-size: .88rem; color: rgba(249,246,240,.82); }
.prog-list li::before { content: ''; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: #d4af37; }
.prog-list.ms li::before { background: #ce2b37; }
.feat-list li { position: relative; padding-left: 1.5rem; margin-bottom: .5rem; font-size: .88rem; color: rgba(249,246,240,.82); }
.feat-list li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; color: #009246; font-size: .75rem; top: .2em; }

.form-input { width: 100%; background: #11221c; border: 1px solid rgba(249,246,240,.2); border-radius: .5rem; padding: .75rem 1rem; color: #f9f6f0; outline: none; transition: border-color .2s; }
.form-input:focus { border-color: #ce2b37; box-shadow: 0 0 0 1px #ce2b37; }

/* Modal hero image is wider */
.uni-modal .uni-img-wrap { aspect-ratio: 21 / 9; min-height: 220px; }
@media (max-width: 640px) { .uni-modal .uni-img-wrap { aspect-ratio: 4 / 3; } }
