/* College home page — 3D animated (no outside files) */
:root {
  --bg0: #050816; --bg1: #0B1030; --ink: #EEF2FF; --mut: #A5B0D6; --line: rgba(255,255,255,.12);
  --p1: #7C8BFF; --p2: #22D3EE; --p3: #F0ABFC; --gold: #FBBF24; --glass: rgba(16,22,56,.58);
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body.home { font: 16px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; color: var(--ink);
  background: radial-gradient(1200px 800px at 80% -10%, #1B2470 0%, transparent 60%), linear-gradient(180deg, var(--bg0), var(--bg1) 55%, #070A1E);
  background-attachment: fixed; overflow-x: hidden; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
.hic { width: 22px; height: 22px; flex: none; }

/* 3D layer behind everything */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s ease; }
#scene.on { opacity: 1; }
/* below the first screen the 3D scene steps back (darker, smaller) so headings and text stay easy to read */
.bg::after { content: ""; position: absolute; inset: 0; background: #070B1F; opacity: var(--dim, 0); }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; animation: drift 18s ease-in-out infinite alternate; }
.g1 { width: 46vw; height: 46vw; left: -12vw; top: 20vh; background: #3B2BD9; }
.g2 { width: 38vw; height: 38vw; right: -10vw; top: 55vh; background: #0E7490; animation-delay: -9s; }
@keyframes drift { to { transform: translate3d(6vw, -8vh, 0) scale(1.15); } }

/* top bar */
.hnav { position: fixed; z-index: 20; top: 12px; left: 50%; transform: translateX(-50%); width: min(1180px, calc(100% - 24px));
  display: flex; align-items: center; gap: 18px; padding: 10px 14px 10px 16px; border-radius: 18px; background: rgba(9,13,38,.62);
  border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.hbrand { display: flex; align-items: center; gap: 10px; font-size: 16px; min-width: 0; }
.hbrand b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hlogo { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #fff;
  background: linear-gradient(135deg, var(--p1), var(--p2)); box-shadow: 0 6px 22px rgba(124,139,255,.45); }
.hnav nav { margin-left: auto; display: flex; gap: 4px; }
.hnav nav a { padding: 8px 12px; border-radius: 10px; color: var(--mut); font-weight: 600; font-size: 14px; transition: .2s; }
.hnav nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.hbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: 12px; font-weight: 700;
  font-size: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.06); color: #fff; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; font-family: inherit; }
.hbtn:hover { transform: translateY(-2px); background: rgba(255,255,255,.12); }
.hbtn.solid { border: 0; background: linear-gradient(135deg, #6D5BFF, #2CB8F0); box-shadow: 0 10px 30px rgba(86,104,255,.45); }
.hbtn.solid:hover { box-shadow: 0 14px 40px rgba(86,104,255,.65); }
.hbtn.big { padding: 13px 22px; font-size: 16px; border-radius: 14px; }

/* hero */
main { position: relative; z-index: 2; }
.hero { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 20px;
  width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 110px 0 70px; position: relative; perspective: 1200px; }
.kicker { color: var(--p2); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; font-size: 12.5px; margin-bottom: 10px; }
.hero h1 { font-size: clamp(38px, 6.2vw, 76px); line-height: 1.04; font-weight: 900; letter-spacing: -.02em; }
.shine { background: linear-gradient(100deg, #fff 0%, #C7D2FE 28%, #67E8F9 50%, #F0ABFC 72%, #fff 100%); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 7s linear infinite; }
@keyframes shine { to { background-position: -220% 0; } }
.lead { font-size: clamp(17px, 2vw, 22px); color: var(--mut); margin: 16px 0 26px; max-width: 34ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.cta.center { justify-content: center; margin-top: 28px; }
.modes { display: flex; align-items: center; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.mode { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.mode .hic { color: var(--p2); width: 26px; height: 26px; }
.mode b { display: block; font-size: 14.5px; line-height: 1.2; }
.mode small { color: var(--mut); font-size: 12px; }
.plus { font-size: 26px; font-weight: 900; color: var(--gold); }
.scrollhint { position: absolute; left: 50%; bottom: 22px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255,255,255,.45); border-radius: 14px; }
.scrollhint span { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 80%, 100% { transform: translateY(14px); opacity: 0; } }

/* sections */
.sec { padding: 90px 0; position: relative; perspective: 1400px; }
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.wrap.two { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 22px; align-items: stretch; }
h2, .sub, .kicker { text-shadow: 0 2px 18px rgba(7,11,31,.9), 0 0 2px rgba(7,11,31,.8); }
h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.12; font-weight: 900; letter-spacing: -.01em; margin-bottom: 14px; }
.sub { color: var(--mut); max-width: 60ch; margin-bottom: 8px; }
.glass { background: var(--glass); border: 1px solid var(--line); border-radius: 22px; padding: 26px; position: relative;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.glass p { color: #D6DCF5; margin-top: 10px; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pillar { display: flex; flex-direction: column; gap: 6px; padding: 20px; }
.pillar .hic { width: 30px; height: 30px; color: var(--p2); }
.pillar b { font-size: 18px; }
.pillar span { color: var(--mut); font-size: 13.5px; line-height: 1.4; }

/* 3D tilt (JS sets --rx / --ry / --gx / --gy) */
.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0); transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s; will-change: transform; }
.tilt.hov { transition: transform .08s linear, box-shadow .3s, border-color .3s; border-color: rgba(124,139,255,.6); box-shadow: 0 30px 80px rgba(60,80,255,.35); }
.tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.16), transparent 45%); }
.tilt.hov::after { opacity: 1; }
.tilt > * { transform: translateZ(24px); }

/* programs */
.pgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; margin-top: 26px; }
.prog { padding: 24px 22px 22px; overflow: hidden; min-height: 190px; }
.pnum { position: absolute; right: 16px; top: 8px; font-size: 54px; font-weight: 900; color: rgba(255,255,255,.07); line-height: 1; }
.pic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 14px; color: #fff;
  background: linear-gradient(135deg, rgba(124,139,255,.9), rgba(34,211,238,.85)); box-shadow: 0 10px 26px rgba(34,211,238,.3); }
.pic .hic { width: 28px; height: 28px; }
.prog:nth-child(3n+2) .pic { background: linear-gradient(135deg, #F472B6, #A78BFA); box-shadow: 0 10px 26px rgba(244,114,182,.3); }
.prog:nth-child(3n) .pic { background: linear-gradient(135deg, #FBBF24, #FB7185); box-shadow: 0 10px 26px rgba(251,191,36,.3); }
.prog h3 { font-size: 20px; line-height: 1.2; }
.prog p { font-size: 14px; color: var(--mut); margin-top: 6px; }

/* portal features */
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-top: 24px; }
.feat { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 18px; }
.feat .hic { color: var(--p3); width: 26px; height: 26px; margin-top: 2px; }
.feat b { display: block; }
.feat span { color: var(--mut); font-size: 13.5px; line-height: 1.45; display: block; }

/* contact */
.cgrid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 20px; margin-top: 24px; align-items: stretch; }
.cinfo h3 { font-size: 22px; margin-bottom: 14px; }
.crow { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.crow .hic { color: var(--p2); margin-top: 4px; }
.crow small { display: block; color: var(--mut); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.crow b { font-size: 17px; }
.cinfo .cta { margin-top: 18px; }
.mapbox { padding: 8px; min-height: 360px; display: flex; }
.mapbox iframe { flex: 1; width: 100%; min-height: 344px; border: 0; border-radius: 16px; }
.hfoot { position: relative; z-index: 2; text-align: center; padding: 34px 20px 44px; color: var(--mut); display: flex; flex-direction: column; gap: 4px;
  border-top: 1px solid var(--line); background: rgba(5,8,22,.6); }
.hfoot b { color: #fff; font-size: 17px; }

/* scroll reveal (3D) */
.js .rv { opacity: 0; transform: perspective(900px) translateY(46px) rotateX(18deg) scale(.96); transform-origin: 50% 100%;
  transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); transition-delay: var(--rd, 0ms); }
.js .rv.in { opacity: 1; transform: none; }
.js .tilt.rv.in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

/* login dialog */
.ldlg { border: 1px solid var(--line); border-radius: 22px; padding: 26px; width: min(410px, calc(100% - 28px)); margin: auto; color: var(--ink);
  background: linear-gradient(160deg, rgba(22,28,72,.97), rgba(9,12,36,.98)); box-shadow: 0 40px 120px rgba(0,0,0,.7); }
.ldlg[open] { animation: pop .45s cubic-bezier(.2,.9,.3,1.2); }
@keyframes pop { from { opacity: 0; transform: perspective(800px) rotateX(-22deg) translateY(30px) scale(.9); } }
.ldlg::backdrop { background: rgba(3,5,18,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lclose { position: absolute; right: 12px; top: 10px; }
.lclose button { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.06); color: #fff; cursor: pointer; font-size: 15px; }
.lhead { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.lhead b { display: block; font-size: 17px; line-height: 1.2; }
.lhead small { color: var(--mut); }
.lform { display: flex; flex-direction: column; gap: 13px; }
.lform label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--mut); }
.lform input:not([type=checkbox]) { font: inherit; color: #fff; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.07); }
.lform input:focus { outline: 2px solid rgba(124,139,255,.7); border-color: transparent; }
.lform .lcheck { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; color: #D6DCF5; }
.lcheck input { width: 18px; height: 18px; }
.lnote { color: var(--mut); font-size: 12.5px; margin-top: 12px; line-height: 1.5; }

@media (max-width: 900px) {
  .hnav nav { display: none; }
  .hnav .hbtn { margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding: 96px 0 60px; align-content: start; }
  .herospace { height: 46vh; min-height: 300px; }
  .lead { max-width: none; }
  .wrap.two, .cgrid { grid-template-columns: 1fr; }
  .sec { padding: 64px 0; }
  .glass { padding: 20px; border-radius: 18px; }
  .tilt > * { transform: none; }
}
@media (max-width: 480px) {
  .hbrand b { font-size: 14px; }
  .modes .plus { display: none; }
  .mode { flex: 1 1 100%; }
  .pillars { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pillar { padding: 14px; }
  .cta .hbtn.big { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shine, .glow, .scrollhint span, .ldlg[open] { animation: none; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .tilt { transition: none; }
}
