/* ============================================================
   IZYSCO Education Solutions — Premium UI v2.0
   3D Glassmorphism · Animated Icons · Deep Visual Depth
   ============================================================ */

/* ── Google Fonts loaded in HTML ── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand */
  --red:          #E8291C;
  --red2:         #FF4D2E;
  --red-glow:     rgba(232,41,28,0.35);
  --blue:         #1565C0;
  --blue2:        #2979FF;
  --blue-glow:    rgba(41,121,255,0.35);
  --gold:         #FFD060;
  --green:        #22D17A;

  /* Dark palette */
  --bg:           #07070F;
  --bg2:          #0D0D1C;
  --bg3:          #12122A;
  --bg4:          #161630;
  --surface:      rgba(255,255,255,0.045);
  --surface2:     rgba(255,255,255,0.075);
  --border:       rgba(255,255,255,0.10);
  --border2:      rgba(255,255,255,0.18);

  /* Text */
  --t1:  #F2F2FF;
  --t2:  #9898BB;
  --t3:  #55556A;

  /* Gradients */
  --g-red:   linear-gradient(135deg,#E8291C 0%,#FF6B2C 100%);
  --g-blue:  linear-gradient(135deg,#1565C0 0%,#2979FF 100%);
  --g-gold:  linear-gradient(135deg,#FFD060 0%,#FF9500 100%);
  --g-glass: linear-gradient(135deg,rgba(255,255,255,0.09),rgba(255,255,255,0.03));

  /* Shadows */
  --sh-red:  0 0 40px rgba(232,41,28,0.4),  0 0 80px rgba(232,41,28,0.15);
  --sh-blue: 0 0 40px rgba(41,121,255,0.4), 0 0 80px rgba(41,121,255,0.15);
  --sh-card: 0 20px 60px rgba(0,0,0,0.5), 0 1px 0 rgba(255,255,255,0.06) inset;

  /* Radius */
  --r:   14px;
  --r2:  22px;
  --r3:  32px;

  /* Motion */
  --ease:  cubic-bezier(0.25,0.46,0.45,0.94);
  --ease2: cubic-bezier(0.16,1,0.3,1);
  --dur:   0.38s;

  /* Type */
  --ff-display: 'Syne', sans-serif;
  --ff-body:    'Inter', sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--t1);
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ─────────────────────────────── */
h1,h2,h3,h4,h5 { font-family: var(--ff-display); line-height: 1.18; font-weight: 800; }
h1 { font-size: clamp(2.6rem,6vw,5.2rem); }
h2 { font-size: clamp(2rem,4vw,3.4rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem,2vw,1.55rem); font-weight: 600; }
p  { color: var(--t2); line-height: 1.8; }
a  { text-decoration: none; color: inherit; }

/* ── Scrollbar ───────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }

/* ── Selection ───────────────────────────────── */
::selection { background: rgba(232,41,28,0.35); color: #fff; }

/* ── Canvas ──────────────────────────────────── */
#particles-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0; opacity: 0.5;
}

/* ── Noise texture overlay ───────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
}

/* ======================================================
   SHARED UTILITIES
   ====================================================== */
.container { max-width: 1220px; margin: 0 auto; padding: 0 1.5rem; }
section { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--red2);
  background: rgba(232,41,28,0.10);
  border: 1px solid rgba(232,41,28,0.28);
  padding: 0.32rem 1rem; border-radius: 50px;
  margin-bottom: 1.1rem;
}
.eyebrow i { font-size: 0.85rem; }

.section-head { text-align: center; margin-bottom: 3.5rem; }
.section-head h2 { margin-bottom: 0.85rem; }
.section-head h2 em { font-style: normal; color: var(--red2); }
.section-head h2 .b  { color: var(--blue2); }
.section-head p  { max-width: 580px; margin: 0 auto; font-size: 1.02rem; }

/* Glow underline on headings */
.glow-word {
  position: relative; color: var(--red2);
}
.glow-word::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 3px; background: var(--g-red); border-radius: 2px;
  box-shadow: var(--sh-red); filter: blur(1px);
}

/* ── Glass card ──────────────────────────────── */
.glass {
  background: var(--g-glass);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--sh-card);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur);
}
.glass:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: var(--border2);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 1px 0 rgba(255,255,255,0.1) inset;
}

/* 3D tilt on mouse — applied via JS */
.tilt-card { transform-style: preserve-3d; perspective: 900px; }
.tilt-card .tilt-inner { transform-style: preserve-3d; transition: transform 0.1s linear; }

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.9rem 2.1rem; border-radius: 50px;
  font-family: var(--ff-display); font-weight: 700; font-size: 0.92rem;
  letter-spacing: 0.02em; cursor: pointer; border: none;
  position: relative; overflow: hidden;
  transition: transform var(--dur) var(--ease2), box-shadow var(--dur) var(--ease2);
}
.btn i { font-size: 1.1rem; transition: transform 0.3s var(--ease2); }
.btn:hover i { transform: translateX(3px) scale(1.15); }
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg,rgba(255,255,255,0.18),transparent);
  opacity: 0; transition: opacity 0.3s;
}
.btn:hover::after { opacity: 1; }
.btn-red {
  background: var(--g-red); color: #fff;
  box-shadow: 0 8px 32px rgba(232,41,28,0.45);
}
.btn-red:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 16px 48px rgba(232,41,28,0.6); }
.btn-blue {
  background: var(--g-blue); color: #fff;
  box-shadow: 0 8px 32px rgba(41,121,255,0.45);
}
.btn-blue:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 16px 48px rgba(41,121,255,0.6); }
.btn-ghost {
  background: transparent; color: var(--t1);
  border: 1.5px solid var(--border2);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: var(--surface2); border-color: rgba(255,255,255,0.35); transform: translateY(-3px); }

/* Ripple on click */
.btn .ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: scale(0); animation: ripple-anim 0.55s linear;
  pointer-events: none;
}
@keyframes ripple-anim { to { transform: scale(4); opacity: 0; } }

/* ── Animated icon wrapper ───────────────────── */
.icon-box {
  width: 58px; height: 58px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  position: relative; flex-shrink: 0;
  transition: transform var(--dur) var(--ease2), box-shadow var(--dur);
}
.icon-box i { font-size: 1.55rem; }
.icon-box.red  { background: rgba(232,41,28,0.12); border: 1px solid rgba(232,41,28,0.28); color: var(--red2); }
.icon-box.blue { background: rgba(41,121,255,0.12); border: 1px solid rgba(41,121,255,0.28); color: var(--blue2); }
.icon-box.gold { background: rgba(255,208,96,0.12); border: 1px solid rgba(255,208,96,0.28); color: var(--gold); }
.icon-box.green{ background: rgba(34,209,122,0.12); border: 1px solid rgba(34,209,122,0.28); color: var(--green); }

.glass:hover .icon-box.red  { transform: rotate(-8deg) scale(1.15); box-shadow: 0 0 24px rgba(232,41,28,0.5); }
.glass:hover .icon-box.blue { transform: rotate(-8deg) scale(1.15); box-shadow: 0 0 24px rgba(41,121,255,0.5); }
.glass:hover .icon-box.gold { transform: rotate(-8deg) scale(1.15); box-shadow: 0 0 24px rgba(255,208,96,0.5); }
.glass:hover .icon-box.green{ transform: rotate(-8deg) scale(1.15); box-shadow: 0 0 24px rgba(34,209,122,0.5); }

/* ── Pill tags ───────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.3rem 0.85rem; border-radius: 50px;
  font-size: 0.75rem; font-weight: 600;
}
.pill-red  { background: rgba(232,41,28,0.12); border: 1px solid rgba(232,41,28,0.3); color: var(--red2); }
.pill-blue { background: rgba(41,121,255,0.12); border: 1px solid rgba(41,121,255,0.3); color: var(--blue2); }
.pill-gold { background: rgba(255,208,96,0.12); border: 1px solid rgba(255,208,96,0.3); color: var(--gold); }

/* ── Scroll reveal ───────────────────────────── */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.72s var(--ease2), transform 0.72s var(--ease2); }
.reveal.visible { opacity: 1; transform: none; }
.reveal.from-left  { transform: translateX(-40px); }
.reveal.from-right { transform: translateX( 40px); }
.reveal.from-left.visible, .reveal.from-right.visible { transform: none; }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }
.d5 { transition-delay: 0.40s; }

/* ======================================================
   ANIMATED BACKGROUND MESH
   ====================================================== */
.mesh-bg {
  position: absolute; inset: 0; overflow: hidden;
  pointer-events: none; z-index: 0;
}
.mesh-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.18;
  animation: orb-drift 12s ease-in-out infinite alternate;
}
.mesh-orb.r1 { width:520px;height:520px; background:var(--red);   top:-12%;left:-8%;    animation-duration:14s; }
.mesh-orb.r2 { width:380px;height:380px; background:var(--blue2); bottom:-10%;right:-6%;animation-duration:18s; animation-delay:-5s; }
.mesh-orb.r3 { width:280px;height:280px; background:var(--red2);  top:40%;right:15%;   animation-duration:10s; animation-delay:-3s; }
@keyframes orb-drift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(40px,30px) scale(1.12); }
}

/* ── Grid lines overlay ──────────────────────── */
.grid-lines {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ======================================================
   NAVBAR
   ====================================================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.2rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: all 0.4s var(--ease);
}
.navbar.scrolled {
  background: rgba(7,7,15,0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 2rem;
  box-shadow: 0 4px 40px rgba(0,0,0,0.4);
}
/* Logo */
.nav-logo { display:flex; align-items:center; gap:0.75rem; }
.logo-mark {
  width:42px; height:42px; border-radius:12px;
  background: var(--g-red);
  display:flex; align-items:center; justify-content:center;
  font-family: var(--ff-display); font-weight:900; font-size:1.05rem;
  color:#fff; letter-spacing:-0.02em;
  box-shadow: 0 4px 20px rgba(232,41,28,0.5);
  position:relative; overflow:hidden;
}
.logo-mark::after {
  content:''; position:absolute; inset:0;
  background:linear-gradient(135deg,rgba(255,255,255,0.25),transparent);
}
.logo-text-wrap { line-height:1; }
.logo-text-main {
  font-family:var(--ff-display); font-weight:900; font-size:1.35rem;
  color:#fff; letter-spacing:-0.02em; display:block;
}
.logo-text-main em { font-style:normal; color:var(--red2); }
.logo-text-sub {
  font-size:0.52rem; letter-spacing:0.2em; text-transform:uppercase;
  color:var(--blue2); font-weight:700; display:block; margin-top:1px;
}
.logo-text-sub em { font-style:normal; color:var(--red2); }

/* Nav links */
.nav-menu { display:flex; align-items:center; gap:0.25rem; list-style:none; }
.nav-menu a {
  display:flex; align-items:center; gap:0.35rem;
  padding:0.45rem 0.9rem; border-radius:8px;
  font-size:0.875rem; font-weight:500; color:var(--t2);
  transition:all 0.25s; position:relative;
}
.nav-menu a i { font-size:0.9rem; opacity:0.7; }
.nav-menu a:hover, .nav-menu a.active {
  color:var(--t1); background:var(--surface);
}
.nav-menu a.active { color:var(--red2); }
.nav-cta-btn {
  padding:0.55rem 1.4rem !important; border-radius:50px !important;
  background: var(--g-red) !important; color:#fff !important;
  box-shadow:0 4px 20px rgba(232,41,28,0.4) !important;
  font-weight:700 !important; font-size:0.85rem !important;
}
.nav-cta-btn:hover { box-shadow:0 8px 32px rgba(232,41,28,0.6) !important; transform:translateY(-2px); }

.hamburger { display:none; flex-direction:column; gap:5px; cursor:pointer; background:none; border:none; padding:4px; }
.hamburger span { display:block; width:24px; height:2px; background:var(--t1); border-radius:2px; transition:all 0.3s; }
.hamburger.open span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity:0; transform:scaleX(0); }
.hamburger.open span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

/* ======================================================
   HERO SECTION
   ====================================================== */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 8rem 0 5rem;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(232,41,28,0.18) 0%, transparent 70%),
              radial-gradient(ellipse 60% 50% at 90% 80%,  rgba(41,121,255,0.12) 0%, transparent 70%),
              var(--bg);
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center; position: relative; z-index: 1;
}
.hero-badge-strip {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border2);
  border-radius: 50px; padding: 0.4rem 1.1rem 0.4rem 0.4rem;
  margin-bottom: 1.6rem;
}
.badge-dot {
  width:28px;height:28px;border-radius:50%;
  background:var(--g-red); display:flex; align-items:center; justify-content:center;
  font-size:0.85rem; box-shadow:0 0 12px rgba(232,41,28,0.5);
  animation: badge-pulse 2s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%,100% { box-shadow:0 0 12px rgba(232,41,28,0.5); }
  50%      { box-shadow:0 0 24px rgba(232,41,28,0.8); }
}
.badge-text { font-size:0.78rem; font-weight:600; color:var(--t2); }
.badge-text strong { color:var(--t1); }

.hero-h1 { margin-bottom:1.4rem; }
.hero-h1 .line1 { display:block; color:var(--t2); font-size:0.62em; font-weight:600; letter-spacing:0.05em; margin-bottom:0.3rem; }
.hero-h1 .accent { color:var(--red2); }
.hero-h1 .grad {
  background: linear-gradient(135deg,#fff 0%,#aab4ff 100%);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}

/* Typewriter cursor */
.typewriter::after { content:'|'; animation:blink 0.75s step-end infinite; margin-left:2px; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-desc { color:var(--t2); font-size:1.05rem; margin-bottom:2.2rem; max-width:520px; line-height:1.8; }
.hero-actions { display:flex; gap:1rem; flex-wrap:wrap; margin-bottom:2.8rem; }

.hero-trust {
  display:flex; align-items:center; gap:1.2rem;
  padding:1.2rem 1.5rem; border-radius:var(--r2);
  background:var(--surface); border:1px solid var(--border);
  backdrop-filter:blur(12px);
}
.trust-avatars { display:flex; }
.trust-avatars .av {
  width:32px;height:32px;border-radius:50%;
  border:2px solid var(--bg);
  background: var(--g-red);
  display:flex;align-items:center;justify-content:center;
  font-size:0.75rem;font-weight:700;color:#fff;
  margin-left:-8px;
}
.trust-avatars .av:first-child { margin-left:0; }
.av.b { background:var(--g-blue); }
.av.g { background:linear-gradient(135deg,#22D17A,#059669); }
.av.p { background:linear-gradient(135deg,#a855f7,#7c3aed); }
.trust-text { font-size:0.82rem; }
.trust-text strong { color:var(--t1); display:block; }
.trust-text span { color:var(--t2); }
.trust-stars { color:var(--gold); font-size:0.75rem; letter-spacing:1px; }

/* ── Hero stats strip ────────────────────────── */
.hero-stats {
  display:flex; gap:0; margin-top:2rem;
  border:1px solid var(--border); border-radius:var(--r2);
  overflow:hidden; background:var(--surface);
  backdrop-filter:blur(12px);
}
.hstat {
  flex:1; padding:1.1rem 1.2rem; text-align:center;
  border-right:1px solid var(--border); position:relative;
}
.hstat:last-child { border-right:none; }
.hstat::before {
  content:''; position:absolute; top:0; left:50%; transform:translateX(-50%);
  width:40%; height:2px; border-radius:0 0 2px 2px;
  background:var(--g-red);
}
.hstat:nth-child(even)::before { background:var(--g-blue); }
.hstat .val {
  font-family:var(--ff-display); font-size:1.7rem; font-weight:800;
  color:var(--t1); display:block; line-height:1;
}
.hstat .val em { font-style:normal; color:var(--red2); }
.hstat .lbl { font-size:0.72rem; color:var(--t3); margin-top:0.25rem; text-transform:uppercase; letter-spacing:0.06em; }

/* ── Hero 3D Visual ──────────────────────────── */
.hero-visual-wrap {
  position:relative; display:flex; align-items:center; justify-content:center;
}
.hero-3d-scene {
  width:440px; height:440px; position:relative;
  transform-style:preserve-3d; perspective:800px;
}
.h3d-core {
  width:260px;height:260px;border-radius:50%;
  position:absolute; top:50%;left:50%;
  transform:translate(-50%,-50%);
  background:radial-gradient(circle at 35% 35%, #1e1e3a, #06060F);
  border:1px solid rgba(41,121,255,0.25);
  box-shadow:
    0 0 60px rgba(41,121,255,0.25),
    0 0 120px rgba(232,41,28,0.12),
    inset 0 0 40px rgba(41,121,255,0.08);
  display:flex;align-items:center;justify-content:center;
  animation:globe-breathe 5s ease-in-out infinite;
}
@keyframes globe-breathe {
  0%,100%{box-shadow:0 0 60px rgba(41,121,255,0.25),0 0 120px rgba(232,41,28,0.12)}
  50%    {box-shadow:0 0 80px rgba(41,121,255,0.4), 0 0 160px rgba(232,41,28,0.2)}
}
.h3d-core-inner { text-align:center; }
.h3d-core-inner .globe-icon { font-size:4.5rem; filter:drop-shadow(0 0 20px rgba(41,121,255,0.6)); animation:globe-spin 8s linear infinite; display:block; }
@keyframes globe-spin { 0%{filter:drop-shadow(0 0 20px rgba(41,121,255,0.6))} 50%{filter:drop-shadow(0 0 30px rgba(232,41,28,0.7))} 100%{filter:drop-shadow(0 0 20px rgba(41,121,255,0.6))} }

/* Orbit rings */
.orbit {
  position:absolute; border-radius:50%;
  border:1px solid;
  top:50%;left:50%; transform:translate(-50%,-50%);
  animation:ring-spin linear infinite;
}
.orbit-1 { width:310px;height:310px; border-color:rgba(232,41,28,0.2); animation-duration:12s; }
.orbit-2 { width:380px;height:380px; border-color:rgba(41,121,255,0.15); animation-duration:20s; animation-direction:reverse; }
.orbit-3 { width:435px;height:435px; border-color:rgba(255,208,96,0.1); animation-duration:30s; }
@keyframes ring-spin { to { transform:translate(-50%,-50%) rotate(360deg); } }

/* Orbit dots */
.orbit-dot {
  width:10px;height:10px;border-radius:50%;
  position:absolute; top:-5px; left:50%; transform:translateX(-50%);
}
.orbit-1 .orbit-dot { background:var(--red2); box-shadow:0 0 12px var(--red2); }
.orbit-2 .orbit-dot { background:var(--blue2); box-shadow:0 0 12px var(--blue2); }
.orbit-3 .orbit-dot { background:var(--gold); box-shadow:0 0 12px var(--gold); }

/* Floating badges on hero */
.float-badge {
  position:absolute; z-index:10;
  background:rgba(13,13,28,0.85); border:1px solid var(--border2);
  backdrop-filter:blur(16px); border-radius:var(--r);
  padding:0.7rem 1.1rem;
  display:flex; align-items:center; gap:0.6rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.float-badge .fb-icon { font-size:1.5rem; }
.float-badge .fb-val { font-family:var(--ff-display); font-weight:800; color:var(--t1); font-size:0.95rem; display:block; line-height:1.1; }
.float-badge .fb-lbl { font-size:0.68rem; color:var(--t3); }
.fb-1 { top:6%;  right:3%;  animation:float1 5s ease-in-out infinite; }
.fb-2 { bottom:18%; left:0%;    animation:float2 6s ease-in-out infinite; }
.fb-3 { top:48%; right:-2%; animation:float1 7s ease-in-out infinite 1s; }
@keyframes float1 { 0%,100%{transform:translateY(0)}   50%{transform:translateY(-14px)} }
@keyframes float2 { 0%,100%{transform:translateY(-8px)} 50%{transform:translateY(6px)} }

/* ── Ticker ──────────────────────────────────── */
.ticker-wrap {
  background:var(--bg2); border-top:1px solid var(--border); border-bottom:1px solid var(--border);
  padding:0.9rem 0; overflow:hidden; position:relative; z-index:1;
}
.ticker-wrap::before, .ticker-wrap::after {
  content:''; position:absolute; top:0; bottom:0; width:80px; z-index:2; pointer-events:none;
}
.ticker-wrap::before { left:0;  background:linear-gradient(90deg,var(--bg2),transparent); }
.ticker-wrap::after  { right:0; background:linear-gradient(270deg,var(--bg2),transparent); }
.ticker-track {
  display:flex; gap:2rem; width:max-content;
  animation:ticker 35s linear infinite;
}
.ticker-track:hover { animation-play-state:paused; }
.t-item {
  display:flex; align-items:center; gap:0.55rem;
  font-size:0.82rem; font-weight:500; color:var(--t2);
  white-space:nowrap; padding:0 0.5rem;
}
.t-item i { color:var(--red2); font-size:0.9rem; }
@keyframes ticker { to { transform:translateX(-50%); } }

/* ======================================================
   METRICS BAND
   ====================================================== */
#metrics {
  padding:5rem 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}
.metrics-grid {
  display:grid; grid-template-columns:repeat(4,1fr); gap:1.5rem;
}
.metric-card {
  padding:2.2rem 1.8rem; border-radius:var(--r2); text-align:center;
  position:relative; overflow:hidden;
}
.metric-card::before {
  content:''; position:absolute; top:0; left:50%; transform:translateX(-50%);
  width:60%; height:3px; border-radius:0 0 4px 4px;
  background:var(--g-red); box-shadow:0 0 20px rgba(232,41,28,0.5);
}
.metric-card:nth-child(even)::before { background:var(--g-blue); box-shadow:0 0 20px rgba(41,121,255,0.5); }
.metric-card .m-icon {
  width:54px;height:54px;border-radius:14px;
  display:flex;align-items:center;justify-content:center;
  font-size:1.5rem; margin:0 auto 1.2rem;
}
.metric-card:nth-child(1) .m-icon { background:rgba(232,41,28,0.12); color:var(--red2); }
.metric-card:nth-child(2) .m-icon { background:rgba(41,121,255,0.12); color:var(--blue2); }
.metric-card:nth-child(3) .m-icon { background:rgba(255,208,96,0.12); color:var(--gold); }
.metric-card:nth-child(4) .m-icon { background:rgba(34,209,122,0.12); color:var(--green); }
.metric-card .m-val {
  font-family:var(--ff-display); font-size:2.8rem; font-weight:900;
  color:var(--t1); display:block; line-height:1; margin-bottom:0.3rem;
}
.metric-card .m-val em { font-style:normal; color:var(--red2); }
.metric-card:nth-child(even) .m-val em { color:var(--blue2); }
.metric-card .m-lbl { font-size:0.82rem; color:var(--t3); font-weight:500; }

/* ======================================================
   WHY MALAYSIA
   ====================================================== */
#why-malaysia {
  padding:7rem 0;
  background:var(--bg2);
}
.malaysia-grid { display:grid; grid-template-columns:1fr 1fr; gap:5rem; align-items:center; }
.reasons-wrap { display:grid; grid-template-columns:1fr 1fr; gap:1.2rem; }
.reason-card { padding:1.6rem; border-radius:var(--r2); cursor:default; }
.reason-card .rc-icon { font-size:1.7rem; margin-bottom:0.8rem; display:block; transition:transform 0.4s var(--ease2); }
.reason-card:hover .rc-icon { transform:scale(1.2) rotate(-8deg); }
.reason-card h4 { color:var(--t1); font-weight:700; font-size:0.95rem; margin-bottom:0.4rem; }
.reason-card p  { font-size:0.82rem; color:var(--t2); line-height:1.6; }

/* Malaysia 3D card */
.malaysia-card-3d {
  border-radius:var(--r3); overflow:hidden;
  background:linear-gradient(145deg, var(--bg3), var(--bg4));
  border:1px solid var(--border); min-height:500px;
  position:relative; transform-style:preserve-3d;
}
.malaysia-card-3d .bg-glow {
  position:absolute; inset:0;
  background:radial-gradient(ellipse at 50% 0%, rgba(232,41,28,0.18),transparent 70%);
  pointer-events:none;
}
.malaysia-inner { padding:2.5rem; position:relative; z-index:1; }
.my-flag { font-size:5rem; display:block; margin-bottom:0.5rem; filter:drop-shadow(0 8px 20px rgba(0,0,0,0.5)); }
.my-grid { display:grid; grid-template-columns:1fr 1fr; gap:0.85rem; margin:1.5rem 0; }
.my-cell {
  padding:1rem; border-radius:var(--r); text-align:center;
  background:var(--surface); border:1px solid var(--border);
  transition:all 0.3s;
}
.my-cell:hover { background:var(--surface2); border-color:var(--border2); transform:scale(1.04); }
.my-cell .c-val { font-family:var(--ff-display); font-size:1.5rem; font-weight:800; display:block; }
.my-cell .c-lbl { font-size:0.72rem; color:var(--t3); margin-top:2px; }
.my-pills { display:flex; flex-wrap:wrap; gap:0.5rem; }

/* ======================================================
   SERVICES
   ====================================================== */
#services {
  padding:7rem 0;
  background:var(--bg);
}
.services-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.5rem; }
.srv-card { padding:2rem; border-radius:var(--r2); cursor:default; position:relative; overflow:hidden; }
.srv-card::after {
  content:''; position:absolute; bottom:0; left:0; right:0; height:3px;
  background:var(--g-red); transform:scaleX(0); transform-origin:left;
  transition:transform 0.4s var(--ease2);
}
.srv-card:hover::after { transform:scaleX(1); }
.srv-card:nth-child(3n+2)::after { background:var(--g-blue); }
.srv-card:nth-child(3n+3)::after { background:var(--g-gold); }
.srv-card .sc-top { display:flex; align-items:flex-start; justify-content:space-between; margin-bottom:1.2rem; }
.srv-arrow {
  width:32px;height:32px;border-radius:8px;
  background:var(--surface); border:1px solid var(--border);
  display:flex;align-items:center;justify-content:center;
  font-size:0.9rem; color:var(--t2);
  transition:all 0.3s; flex-shrink:0;
}
.srv-card:hover .srv-arrow { background:var(--red2); border-color:var(--red2); color:#fff; transform:rotate(-45deg); }
.srv-card h3 { color:var(--t1); font-weight:700; font-size:1.05rem; margin-bottom:0.5rem; }
.srv-card p  { font-size:0.84rem; color:var(--t2); line-height:1.65; }

/* ======================================================
   UNIVERSITIES
   ====================================================== */
#universities {
  padding:7rem 0;
  background:var(--bg2);
}
.uni-controls {
  display:flex; flex-direction:column; align-items:center; gap:1.2rem;
  margin-bottom:2.8rem;
}
.filter-row { display:flex; gap:0.6rem; flex-wrap:wrap; justify-content:center; }
.filter-btn {
  display:flex; align-items:center; gap:0.35rem;
  padding:0.45rem 1.1rem; border-radius:50px;
  font-size:0.8rem; font-weight:600; cursor:pointer;
  border:1.5px solid var(--border); background:transparent; color:var(--t2);
  transition:all 0.25s;
}
.filter-btn i { font-size:0.85rem; }
.filter-btn:hover, .filter-btn.active {
  background:var(--g-red); border-color:transparent; color:#fff;
  box-shadow:0 4px 18px rgba(232,41,28,0.4);
}
.search-bar {
  display:flex; align-items:center; gap:0.75rem;
  background:var(--surface); border:1.5px solid var(--border);
  border-radius:50px; padding:0.65rem 1.4rem;
  max-width:460px; width:100%;
  transition:border-color 0.25s;
}
.search-bar:focus-within { border-color:var(--red2); box-shadow:0 0 0 3px rgba(232,41,28,0.1); }
.search-bar i { color:var(--t3); }
.search-bar input {
  flex:1; background:none; border:none; outline:none;
  color:var(--t1); font-family:var(--ff-body); font-size:0.9rem;
}
.search-bar input::placeholder { color:var(--t3); }

.uni-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.25rem; }
.uni-card { padding:1.4rem 1.5rem; border-radius:var(--r2); cursor:default; position:relative; overflow:hidden; }
.uni-card::before {
  content:''; position:absolute; top:0; right:0;
  width:60px; height:60px; border-radius:0 var(--r2) 0 60px;
  transition:all 0.4s; opacity:0.06;
}
.uni-card[data-country="malaysia"]::before { background:var(--red); opacity:0.08; }
.uni-card[data-country="usa"]::before     { background:#002868; opacity:0.08; }
.uni-card[data-country="canada"]::before  { background:#FF0000; opacity:0.08; }
.uni-card[data-country="australia"]::before { background:#003399; opacity:0.08; }
.uni-card .uc-top { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:0.8rem; }
.uni-flag { font-size:1.8rem; line-height:1; }
.uni-type-tag {
  font-size:0.68rem; font-weight:700; text-transform:uppercase; letter-spacing:0.08em;
  padding:0.2rem 0.6rem; border-radius:50px;
  background:rgba(41,121,255,0.12); color:var(--blue2); border:1px solid rgba(41,121,255,0.25);
}
.uni-name { font-weight:700; color:var(--t1); font-size:0.9rem; margin-bottom:0.25rem; line-height:1.35; }
.uni-loc  { font-size:0.76rem; color:var(--t3); display:flex; align-items:center; gap:0.3rem; }
.uni-loc i { font-size:0.7rem; }
.show-more-wrap { text-align:center; margin-top:2.5rem; }

/* ======================================================
   INTERNATIONAL SCHOOLS
   ====================================================== */
#schools {
  padding:7rem 0;
  background:var(--bg);
}
.schools-section-title {
  display:flex; align-items:center; gap:0.75rem;
  margin-bottom:1.5rem; padding-bottom:1rem;
  border-bottom:1px solid var(--border);
}
.schools-section-title i { font-size:1.4rem; }
.schools-section-title h3 { font-size:1.1rem; font-weight:700; color:var(--t1); }
.schools-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:1rem; margin-bottom:3rem; }
.school-card { padding:1.3rem; border-radius:var(--r2); text-align:center; cursor:default; }
.school-card .sc-ico { font-size:2rem; margin-bottom:0.7rem; display:block; transition:transform 0.4s var(--ease2); }
.school-card:hover .sc-ico { transform:scale(1.25) rotate(-5deg); }
.school-card .sc-name { font-weight:700; color:var(--t1); font-size:0.82rem; margin-bottom:0.2rem; line-height:1.35; }
.school-card .sc-loc  { font-size:0.72rem; color:var(--t3); display:flex; align-items:center; justify-content:center; gap:0.25rem; }

/* ======================================================
   STUDENT JOURNEY
   ====================================================== */
#journey {
  padding:7rem 0;
  background:linear-gradient(180deg,var(--bg2),var(--bg));
}
.journey-track {
  position:relative; margin-top:1rem;
}
.journey-line-wrap {
  position:absolute; top:38px; left:calc(100%/14); right:calc(100%/14);
  height:2px; z-index:0;
  background:var(--border);
}
.journey-progress-line {
  height:100%; width:0%; background:var(--g-red);
  border-radius:2px; transition:width 1.5s var(--ease2);
  box-shadow:0 0 12px rgba(232,41,28,0.5);
}
.journey-steps { display:grid; grid-template-columns:repeat(7,1fr); gap:0.75rem; position:relative; z-index:1; }
.j-step { text-align:center; cursor:default; }
.j-bubble-wrap { display:flex; justify-content:center; margin-bottom:1rem; }
.j-bubble {
  width:76px;height:76px;border-radius:50%;
  background:var(--surface); border:2px solid var(--border);
  display:flex;align-items:center;justify-content:center;
  font-size:1.9rem;
  transition:all 0.4s var(--ease2);
  position:relative; cursor:default;
}
.j-bubble::before {
  content:''; position:absolute; inset:-4px; border-radius:50%;
  border:2px solid transparent;
  background:linear-gradient(var(--bg),var(--bg)) padding-box,
             var(--g-red) border-box;
  opacity:0; transition:opacity 0.4s;
}
.j-step:hover .j-bubble { transform:scale(1.15) translateY(-6px); border-color:var(--red2); box-shadow:0 12px 32px rgba(232,41,28,0.3); }
.j-step:hover .j-bubble::before { opacity:1; }
.j-step-num { font-size:0.65rem; font-weight:700; color:var(--red2); text-transform:uppercase; letter-spacing:0.1em; margin-bottom:0.3rem; }
.j-step-name { font-weight:700; color:var(--t1); font-size:0.82rem; margin-bottom:0.25rem; }
.j-step-desc { font-size:0.72rem; color:var(--t3); line-height:1.5; }

/* ======================================================
   WHY IZYSCO
   ====================================================== */
#why-izysco {
  padding:7rem 0;
  background:var(--bg2);
}
.why-grid { display:grid; grid-template-columns:1fr 1fr; gap:5rem; align-items:center; }
.advantages { display:flex; flex-direction:column; gap:1.4rem; }
.adv-item {
  display:flex; gap:1.2rem; align-items:flex-start;
  padding:1.4rem; border-radius:var(--r2); cursor:default;
  border:1px solid transparent; transition:all 0.3s;
}
.adv-item:hover { background:var(--surface); border-color:var(--border); }
.adv-item .adv-text h4 { color:var(--t1); font-weight:700; margin-bottom:0.3rem; font-size:0.95rem; }
.adv-item .adv-text p  { font-size:0.84rem; color:var(--t2); line-height:1.65; }

.why-vis { display:grid; grid-template-columns:1fr 1fr; gap:1.2rem; }
.why-stat-card { padding:1.8rem 1.4rem; border-radius:var(--r2); text-align:center; }
.why-stat-card .ws-val {
  font-family:var(--ff-display); font-size:2.3rem; font-weight:900;
  display:block; line-height:1; margin-bottom:0.3rem;
}
.why-stat-card .ws-lbl { font-size:0.78rem; color:var(--t3); font-weight:500; }

/* ======================================================
   APPLICATION FORM
   ====================================================== */
#apply {
  padding:7rem 0;
  background:var(--bg);
}
.form-shell {
  max-width:920px; margin:0 auto;
  border-radius:var(--r3); overflow:hidden;
  background:var(--surface);
  border:1px solid var(--border);
  box-shadow:0 40px 100px rgba(0,0,0,0.6);
  backdrop-filter:blur(20px);
}
.form-top-bar {
  background:var(--bg2); padding:1.5rem 2.2rem;
  border-bottom:1px solid var(--border);
  display:flex; align-items:center; justify-content:space-between;
}
.form-steps-nav { display:flex; gap:0; position:relative; }
.fstep {
  display:flex; flex-direction:column; align-items:center;
  gap:0.4rem; flex:1; position:relative; cursor:default;
}
.fstep::after {
  content:''; position:absolute; top:16px; left:60%; right:-40%;
  height:2px; background:var(--border); z-index:0;
}
.fstep:last-child::after { display:none; }
.fstep.done::after { background:var(--g-red); }
.fstep-dot {
  width:32px;height:32px;border-radius:50%;
  background:var(--bg); border:2px solid var(--border);
  display:flex;align-items:center;justify-content:center;
  font-size:0.78rem;font-weight:700;color:var(--t3);
  position:relative;z-index:1;
  transition:all 0.35s;
}
.fstep.active .fstep-dot { background:var(--red2); border-color:var(--red2); color:#fff; box-shadow:0 0 18px rgba(232,41,28,0.5); }
.fstep.done   .fstep-dot { background:var(--green); border-color:var(--green); color:#fff; }
.fstep-lbl { font-size:0.65rem; color:var(--t3); font-weight:600; white-space:nowrap; }
.fstep.active .fstep-lbl { color:var(--red2); }
.fstep.done   .fstep-lbl { color:var(--green); }

.form-body { padding:2.5rem 2.2rem; }
.f-step { display:none; }
.f-step.active { display:block; animation:fadeUp 0.4s var(--ease2) both; }
@keyframes fadeUp { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:none} }
.f-step-head { margin-bottom:2rem; }
.f-step-head h3 { color:var(--t1); font-size:1.25rem; margin-bottom:0.35rem; }
.f-step-head p  { font-size:0.875rem; color:var(--t2); }

.f-grid { display:grid; grid-template-columns:1fr 1fr; gap:1.3rem; }
.f-group { display:flex; flex-direction:column; gap:0.45rem; }
.f-group.span2 { grid-column:1/-1; }
.f-label { font-size:0.8rem; font-weight:600; color:var(--t2); display:flex; align-items:center; gap:0.25rem; }
.f-label em { color:var(--red2); font-style:normal; }
.f-input, .f-select, .f-textarea {
  padding:0.8rem 1.1rem;
  background:rgba(255,255,255,0.04); border:1.5px solid var(--border);
  border-radius:var(--r); color:var(--t1);
  font-family:var(--ff-body); font-size:0.9rem;
  transition:border-color 0.25s, box-shadow 0.25s; outline:none;
}
.f-input:focus, .f-select:focus, .f-textarea:focus {
  border-color:var(--red2); box-shadow:0 0 0 3px rgba(232,41,28,0.12);
}
.f-input::placeholder { color:var(--t3); }
.f-select option { background:var(--bg2); }
.f-textarea { resize:vertical; min-height:95px; }
.f-input.err { border-color:#f87171 !important; }
.f-errmsg { font-size:0.73rem; color:#f87171; display:none; }

.drop-zone {
  border:2px dashed var(--border); border-radius:var(--r2);
  padding:1.8rem; text-align:center; cursor:pointer;
  transition:all 0.3s; position:relative;
}
.drop-zone:hover, .drop-zone.over { border-color:var(--red2); background:rgba(232,41,28,0.04); }
.drop-zone input { display:none; }
.dz-icon { font-size:2.2rem; margin-bottom:0.6rem; display:block; }
.dz-title { font-weight:700; color:var(--t1); font-size:0.9rem; margin-bottom:0.2rem; }
.dz-sub   { font-size:0.76rem; color:var(--t3); }
.dz-files { margin-top:0.75rem; display:flex; flex-wrap:wrap; gap:0.4rem; }
.f-chip {
  display:flex;align-items:center;gap:0.35rem;
  padding:0.25rem 0.7rem; border-radius:50px;
  background:rgba(41,121,255,0.12); border:1px solid rgba(41,121,255,0.25);
  font-size:0.73rem; color:var(--blue2);
}
.f-chip button { background:none;border:none;cursor:pointer;color:var(--t3);font-size:0.85rem;padding:0;line-height:1; }

.form-nav { display:flex; justify-content:space-between; align-items:center; margin-top:2.2rem; padding-top:1.8rem; border-top:1px solid var(--border); }
.form-nav-info { font-size:0.76rem; color:var(--t3); }
.submit-note {
  background:rgba(34,209,122,0.08); border:1px solid rgba(34,209,122,0.2);
  border-radius:var(--r); padding:1rem 1.3rem; margin-bottom:1.5rem;
  display:flex; gap:0.75rem; align-items:flex-start; font-size:0.83rem; color:var(--t2);
}
.submit-note i { color:var(--green); font-size:1.2rem; flex-shrink:0; margin-top:1px; }

.f-success { display:none; text-align:center; padding:4rem 2rem; }
.f-success-icon { font-size:4.5rem; margin-bottom:1.2rem; animation:success-pop 0.6s var(--ease2) both; }
@keyframes success-pop { from{transform:scale(0.3)rotate(-20deg);opacity:0} to{transform:scale(1)rotate(0);opacity:1} }
.f-success h3 { color:var(--t1); margin-bottom:0.75rem; }
.f-success p  { color:var(--t2); font-size:0.9rem; }

/* ======================================================
   TESTIMONIALS
   ====================================================== */
#testimonials {
  padding:7rem 0;
  background:var(--bg2);
}
.testi-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.5rem; }
.testi-card { padding:2rem; border-radius:var(--r2); position:relative; overflow:hidden; }
.testi-card::before {
  content:'"'; position:absolute; top:-0.5rem; right:1.2rem;
  font-size:7rem; line-height:1; color:var(--red2); opacity:0.08;
  font-family:Georgia,serif; pointer-events:none;
}
.tc-stars { color:var(--gold); font-size:0.85rem; letter-spacing:2px; margin-bottom:1rem; }
.tc-text { color:var(--t2); font-size:0.88rem; line-height:1.75; margin-bottom:1.5rem; font-style:italic; }
.tc-author { display:flex; align-items:center; gap:0.85rem; }
.tc-av {
  width:46px;height:46px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-weight:800;font-size:1.05rem;color:#fff;
  flex-shrink:0;
}
.tc-name { font-weight:700; color:var(--t1); font-size:0.9rem; }
.tc-info { font-size:0.73rem; color:var(--t3); margin-top:1px; }

/* ======================================================
   FAQ
   ====================================================== */
#faq {
  padding:7rem 0;
  background:var(--bg);
}
.faq-list { max-width:820px; margin:0 auto; display:flex; flex-direction:column; gap:0.7rem; }
.faq-item { border-radius:var(--r2); overflow:hidden; }
.faq-q {
  padding:1.3rem 1.6rem; cursor:pointer;
  display:flex; justify-content:space-between; align-items:center; gap:1rem;
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r2);
  font-weight:700; color:var(--t1); font-size:0.92rem;
  transition:all 0.25s;
}
.faq-q:hover { background:var(--surface2); border-color:var(--border2); }
.faq-q.open { border-bottom-left-radius:0; border-bottom-right-radius:0; border-color:rgba(232,41,28,0.4); color:var(--red2); }
.faq-icon { font-size:1.3rem; color:var(--red2); transition:transform 0.35s var(--ease2); flex-shrink:0; }
.faq-q.open .faq-icon { transform:rotate(45deg); }
.faq-body {
  max-height:0; overflow:hidden; transition:max-height 0.42s var(--ease);
  background:rgba(232,41,28,0.03); border:1px solid rgba(232,41,28,0.18);
  border-top:none; border-bottom-left-radius:var(--r2); border-bottom-right-radius:var(--r2);
}
.faq-body p { padding:1.2rem 1.6rem; color:var(--t2); font-size:0.88rem; line-height:1.75; }

/* ======================================================
   OFFICES
   ====================================================== */
#offices {
  padding:7rem 0;
  background:var(--bg2);
}
.offices-grid { display:grid; grid-template-columns:1fr 1fr; gap:2rem; }
.office-card { border-radius:var(--r3); overflow:hidden; }
.ofc-map { height:230px; position:relative; background:var(--bg3); }
.ofc-map iframe { width:100%; height:100%; border:none; display:block; }
.ofc-map-label {
  position:absolute; top:1rem; left:1rem;
  background:rgba(7,7,15,0.85); border:1px solid var(--border2);
  border-radius:var(--r); padding:0.4rem 0.85rem;
  font-size:0.75rem; font-weight:700; color:var(--t1);
  backdrop-filter:blur(12px);
  display:flex; align-items:center; gap:0.4rem;
}
.ofc-map-label i { color:var(--red2); }
.ofc-body { padding:1.8rem 2rem; background:var(--surface); border:1px solid var(--border); border-top:none; border-radius:0 0 var(--r3) var(--r3); }
.ofc-country { font-size:0.72rem; font-weight:700; letter-spacing:0.14em; text-transform:uppercase; color:var(--red2); margin-bottom:0.45rem; display:flex; align-items:center; gap:0.4rem; }
.ofc-name { font-size:1.1rem; font-weight:700; color:var(--t1); margin-bottom:1.1rem; }
.ofc-rows { display:flex; flex-direction:column; gap:0.6rem; margin-bottom:1.4rem; }
.ofc-row { display:flex; gap:0.65rem; align-items:flex-start; font-size:0.84rem; color:var(--t2); }
.ofc-row i { color:var(--red2); font-size:1rem; flex-shrink:0; margin-top:1px; }
.ofc-btns { display:flex; gap:0.6rem; flex-wrap:wrap; }
.ofc-btn {
  display:inline-flex; align-items:center; gap:0.4rem;
  padding:0.48rem 1rem; border-radius:50px;
  font-size:0.76rem; font-weight:700; cursor:pointer;
  border:1.5px solid var(--border); background:transparent; color:var(--t2);
  transition:all 0.25s;
}
.ofc-btn:hover { background:var(--surface2); border-color:var(--border2); color:var(--t1); }
.ofc-btn.wa { border-color:rgba(37,211,102,0.35); color:#25D366; background:rgba(37,211,102,0.06); }
.ofc-btn.wa:hover { background:#25D366; border-color:#25D366; color:#fff; }
.ofc-btn i { font-size:0.85rem; }

/* ======================================================
   FINAL CTA
   ====================================================== */
#cta-final {
  padding:9rem 0;
  background:radial-gradient(ellipse 80% 60% at 50% 50%, rgba(232,41,28,0.14), transparent 70%), var(--bg);
  text-align:center; overflow:hidden;
}
.cta-headline {
  font-size:clamp(2.8rem,6vw,5.5rem); font-weight:900; font-family:var(--ff-display);
  line-height:1.1; margin-bottom:1.4rem;
  background:linear-gradient(135deg,#fff 0%,rgba(255,255,255,0.6) 100%);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}
.cta-headline em { font-style:normal;
  background:var(--g-red); -webkit-background-clip:text;
  -webkit-text-fill-color:transparent; background-clip:text;
}
.cta-sub { color:var(--t2); font-size:1.05rem; max-width:540px; margin:0 auto 2.5rem; }
.cta-btns { display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; }
.cta-trust { margin-top:2.5rem; display:flex; gap:2.5rem; justify-content:center; flex-wrap:wrap; }
.cta-trust-item { display:flex; align-items:center; gap:0.5rem; font-size:0.82rem; color:var(--t3); }
.cta-trust-item i { color:var(--green); font-size:0.9rem; }

/* ======================================================
   FOOTER
   ====================================================== */
footer {
  background:var(--bg2);
  border-top:1px solid var(--border);
  padding:4.5rem 0 2rem;
}
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1.5fr; gap:3rem; margin-bottom:3rem; }
.footer-logo { margin-bottom:1rem; }
.footer-desc { color:var(--t2); font-size:0.84rem; line-height:1.75; margin-bottom:1.5rem; }
.f-socials { display:flex; gap:0.65rem; }
.f-social {
  width:38px;height:38px;border-radius:10px;
  background:var(--surface); border:1px solid var(--border);
  display:flex;align-items:center;justify-content:center;
  font-size:1rem; transition:all 0.3s; color:var(--t2);
}
.f-social:hover { background:var(--g-red); border-color:transparent; color:#fff; transform:translateY(-3px); box-shadow:0 6px 20px rgba(232,41,28,0.4); }
.footer-col h4 { font-size:0.88rem; font-weight:700; color:var(--t1); margin-bottom:1.2rem; }
.footer-links { display:flex; flex-direction:column; gap:0.55rem; }
.footer-links a { font-size:0.83rem; color:var(--t2); transition:all 0.22s; display:flex; align-items:center; gap:0.4rem; }
.footer-links a i { font-size:0.75rem; color:var(--t3); }
.footer-links a:hover { color:var(--red2); padding-left:4px; }
.f-contact { display:flex; flex-direction:column; gap:0.75rem; }
.f-contact-row { display:flex; gap:0.6rem; align-items:flex-start; font-size:0.82rem; color:var(--t2); }
.f-contact-row i { color:var(--red2); font-size:0.95rem; flex-shrink:0; margin-top:2px; }
.footer-bottom { border-top:1px solid var(--border); padding-top:1.8rem; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:1rem; }
.footer-bottom p { font-size:0.78rem; color:var(--t3); }

/* ======================================================
   FLOATING ACTIONS
   ====================================================== */
.float-actions { position:fixed; bottom:2rem; right:2rem; display:flex; flex-direction:column; align-items:center; gap:0.75rem; z-index:900; }
.fab-wa {
  width:60px;height:60px;border-radius:50%;
  background:#25D366; color:#fff;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 6px 28px rgba(37,211,102,0.5);
  transition:all 0.3s var(--ease2);
  animation:float1 4s ease-in-out infinite;
  position:relative;
}
.fab-wa i { font-size:1.8rem; }
.fab-wa:hover { transform:scale(1.12); box-shadow:0 10px 40px rgba(37,211,102,0.7); }
.fab-wa-pulse {
  position:absolute; inset:-4px; border-radius:50%;
  border:2px solid #25D366; opacity:0;
  animation:wa-pulse 2.5s ease-out infinite;
}
@keyframes wa-pulse { 0%{transform:scale(1);opacity:0.6} 100%{transform:scale(1.6);opacity:0} }
.fab-tip {
  position:absolute; right:calc(100% + 12px);
  background:var(--bg2); color:var(--t1); border:1px solid var(--border2);
  font-size:0.75rem; font-weight:600; padding:0.4rem 0.85rem;
  border-radius:8px; white-space:nowrap;
  opacity:0; pointer-events:none; transition:opacity 0.25s;
}
.fab-wa:hover .fab-tip { opacity:1; }
.fab-top {
  width:46px;height:46px;border-radius:50%;
  background:var(--surface); border:1px solid var(--border2);
  color:var(--t1); font-size:1.1rem; cursor:pointer;
  display:none;align-items:center;justify-content:center;
  transition:all 0.3s; backdrop-filter:blur(12px);
}
.fab-top:hover { background:var(--g-red); border-color:transparent; transform:translateY(-4px); }
.fab-top i { font-size:1rem; }

/* ======================================================
   COOKIE BANNER
   ====================================================== */
.cookie-bar {
  position:fixed; bottom:1.5rem; left:1.5rem;
  max-width:430px; z-index:950;
  background:rgba(13,13,28,0.95); border:1px solid var(--border2);
  border-radius:var(--r2); padding:1.3rem 1.5rem;
  backdrop-filter:blur(20px);
  box-shadow:0 12px 50px rgba(0,0,0,0.6);
  animation:fadeUp 0.5s var(--ease2) both;
  display:flex; flex-direction:column; gap:1rem;
}
.cookie-bar.hidden { display:none; }
.cookie-bar p { font-size:0.82rem; color:var(--t2); line-height:1.65; }
.cookie-bar p a { color:var(--blue2); text-decoration:underline; }
.cookie-btns { display:flex; gap:0.6rem; }

/* ======================================================
   RESPONSIVE
   ====================================================== */
@media(max-width:1100px) {
  .hero-grid { grid-template-columns:1fr; }
  .hero-visual-wrap { display:none; }
  .metrics-grid { grid-template-columns:repeat(2,1fr); }
  .malaysia-grid { grid-template-columns:1fr; }
  .why-grid { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr 1fr; gap:2rem; }
  .offices-grid { grid-template-columns:1fr; }
}
@media(max-width:900px) {
  .nav-menu { display:none; }
  .hamburger { display:flex; }
  .nav-menu.open {
    display:flex; flex-direction:column;
    position:fixed;inset:0;
    background:rgba(7,7,15,0.97);
    justify-content:center;align-items:center;
    gap:1.5rem;z-index:999;
  }
  .nav-menu.open a { font-size:1.2rem; }
  .services-grid { grid-template-columns:1fr 1fr; }
  .uni-grid { grid-template-columns:1fr 1fr; }
  .schools-grid { grid-template-columns:1fr 1fr; }
  .testi-grid { grid-template-columns:1fr; }
  .journey-steps { grid-template-columns:repeat(4,1fr); }
  .journey-line-wrap { display:none; }
}
@media(max-width:640px) {
  .services-grid { grid-template-columns:1fr; }
  .uni-grid { grid-template-columns:1fr; }
  .schools-grid { grid-template-columns:1fr 1fr; }
  .metrics-grid { grid-template-columns:1fr 1fr; }
  .f-grid { grid-template-columns:1fr; }
  .f-group.span2 { grid-column:1; }
  .footer-grid { grid-template-columns:1fr; }
  .hero-stats { flex-direction:column; }
  .hstat { border-right:none; border-bottom:1px solid var(--border); }
  .journey-steps { grid-template-columns:1fr 1fr; }
  .reasons-wrap { grid-template-columns:1fr; }
  .cta-headline { font-size:2.4rem; }
  .why-vis { grid-template-columns:1fr 1fr; }
}
@media(max-width:440px) {
  .schools-grid { grid-template-columns:1fr; }
  .filter-row { gap:0.4rem; }
  .filter-btn { font-size:0.73rem; padding:0.4rem 0.8rem; }
  .form-top-bar { padding:1.2rem 1rem; }
  .form-body { padding:1.5rem 1rem; }
  .fstep-lbl { display:none; }
}

/* ── Reduced motion ──────────────────────────── */
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation-duration:0.01ms !important; transition-duration:0.01ms !important; }
  #particles-canvas { display:none; }
}

/* ============================================================
   ADDITIONS & FIXES — v3.0
   ============================================================ */

/* Let JS handle 3D hover transforms — override the CSS hover
   so cards don't fight JS tilt */
.glass:hover {
  border-color: var(--border2);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 1px 0 rgba(255,255,255,0.1) inset;
  /* transform is now handled by JS */
}

/* Shake keyframe for form validation */
@keyframes shake {
  0%,100%{transform:translateX(0)}
  20%{transform:translateX(-7px)}
  40%{transform:translateX(7px)}
  60%{transform:translateX(-4px)}
  80%{transform:translateX(4px)}
}
.shake { animation: shake 0.45s ease both !important; }

/* Form error state - new class name .f-err */
.f-err {
  border-color: #f87171 !important;
  box-shadow: 0 0 0 3px rgba(248,113,113,0.15) !important;
}

/* Journey progress line transition */
.journey-progress-line {
  transition: width 1.8s cubic-bezier(0.16,1,0.3,1);
}

/* Boxicons spin utility */
@keyframes bx-spin {
  to { transform: rotate(360deg); }
}

/* Fix: fab-top needs display:flex not display:none by default for toggle */
.fab-top { display: none; }

/* Typewriter cursor */
.typewriter::after {
  content: '|';
  animation: blink-caret 0.75s step-end infinite;
  color: var(--red2);
  margin-left: 2px;
  font-weight: 300;
}
@keyframes blink-caret {
  0%,100% { opacity: 1; }
  50%     { opacity: 0; }
}

/* Fix: service card arrow icon rotation */
.srv-card:hover .srv-arrow i {
  transform: rotate(-45deg);
}

/* Cookie bar transition */
.cookie-bar {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Ripple keyframe */
@keyframes ripple-anim {
  to { transform: scale(4); opacity: 0; }
}

/* University type tag colors for non-malaysia */
.uni-type-tag.pub {
  background: rgba(34,209,122,0.12);
  color: var(--green);
  border-color: rgba(34,209,122,0.28);
}

/* Form shell scrolls cleanly */
.form-shell {
  scroll-margin-top: 100px;
}

/* Extra: bx icon size normalisation inside buttons */
.btn i.bx {
  font-size: 1.05rem;
  line-height: 1;
}

/* Metric card icon animated border on hover */
.metric-card:hover .m-icon {
  transform: scale(1.15) rotate(-5deg);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}

/* Fix: hero badge strip on very small screens */
@media (max-width: 420px) {
  .hero-badge-strip { display: none; }
  .float-badge      { display: none; }
}

/* Fix: offices grid on mobile */
@media (max-width: 640px) {
  .offices-grid { grid-template-columns: 1fr; }
  .ofc-btns     { flex-wrap: wrap; }
  .cta-btns     { flex-direction: column; align-items: center; }
  .fstep-lbl    { display: none; }
  .form-top-bar { padding: 1rem; }
  .form-body    { padding: 1.5rem 1.1rem; }
}

/* Fix: hero stats wrap on medium */
@media (max-width: 520px) {
  .hero-stats { flex-direction: column; }
  .hstat {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 0.85rem 1rem;
  }
  .hstat:last-child { border-bottom: none; }
}

/* Ensure fab-wa doesn't overlap content on small screens */
@media (max-width: 480px) {
  .float-actions { bottom: 1.2rem; right: 1.2rem; }
  .fab-wa { width: 52px; height: 52px; }
  .fab-wa i { font-size: 1.55rem; }
}

/* Active nav link */
.nav-menu a.active {
  color: var(--red2) !important;
  background: rgba(232,41,28,0.08) !important;
}

/* Section background rhythm */
#hero           { background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(232,41,28,0.16) 0%, transparent 70%), radial-gradient(ellipse 60% 50% at 90% 80%, rgba(41,121,255,0.1) 0%, transparent 70%), var(--bg); }
#metrics        { background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%); }
#why-malaysia   { background: var(--bg2); }
#services       { background: var(--bg); }
#universities   { background: var(--bg2); }
#schools        { background: var(--bg); }
#journey        { background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%); }
#why-izysco     { background: var(--bg2); }
#apply          { background: var(--bg); }
#testimonials   { background: var(--bg2); }
#faq            { background: var(--bg); }
#offices        { background: var(--bg2); }
#cta-final      { background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(232,41,28,0.12), transparent 70%), var(--bg); }

/* Scroll margin for all sections (navbar offset) */
section[id] { scroll-margin-top: 78px; }
