/* ==========================================================================
   CROSK-T — UPGRADE YOUR HUSTLE
   Design System & Advanced Motion UI Engine (Refined to Image 5 Palette)
   Colors:
     Deep Midnight   : #0B1020 (Primary dark canvas)
     Dark Navy       : #10152B (Secondary dark surface)
     Deep Violet     : #7560C9 (Primary signature accent & glow)
     Lavender        : #B59AF5 (Secondary gradient & focus)
     Soft Blue       : #B9DBFF (Technological highlight & active nodes)
     Pale Lavender   : #E4D4FF (Soft border glow & subtle text)
     Off-White       : #F6F8FF (Light corporate section background)
     Muted Text      : #B8C3DA (Clean readable body text on dark)
     Electric Blue   : #4263EB (Brand accent)
   Typography:
     Heading Font    : Space Grotesk
     Body Font       : Inter
     Code Font       : JetBrains Mono
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700;800&display=swap');

:root {
  --color-deep-midnight: #0B1020;
  --color-dark-navy: #10152B;
  --color-deep-violet: #7560C9;
  --color-deep-violet-hover: #634eb5;
  --color-lavender: #B59AF5;
  --color-soft-blue: #B9DBFF;
  --color-pale-lavender: #E4D4FF;
  --color-off-white: #F6F8FF;
  --color-muted-text: #B8C3DA;
  --color-electric-blue: #4263EB;
  --color-pure-white: #FFFFFF;
  --color-slate-dark: #1E293B;

  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --shadow-glow-violet: 0 0 35px rgba(117, 96, 201, 0.35);
  --shadow-glow-lavender: 0 0 30px rgba(181, 154, 245, 0.3);
  --shadow-glow-softblue: 0 0 30px rgba(185, 219, 255, 0.25);
  --shadow-card-dark: 0 20px 45px -15px rgba(11, 16, 32, 0.8);
  --shadow-card-light: 0 12px 32px -8px rgba(117, 96, 201, 0.08);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: var(--color-pure-white);
  background-color: var(--color-deep-midnight);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Headings */
h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.025em;
  font-weight: 700;
}

.font-mono {
  font-family: var(--font-mono);
}

/* Section Theming: Controlled Alternation */
.section-dark-primary {
  background-color: var(--color-deep-midnight);
  color: var(--color-pure-white);
  position: relative;
}

.section-dark-secondary {
  background-color: var(--color-dark-navy);
  color: var(--color-pure-white);
  position: relative;
}

.section-light {
  background-color: var(--color-off-white);
  color: #1E293B;
  position: relative;
}

.section-light h1,
.section-light h2,
.section-light h3,
.section-light h4 {
  color: #0B1020;
}

/* Futuristic Ambient Background Effects */
.bg-grid-cyber {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(181, 154, 245, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(181, 154, 245, 0.04) 1px, transparent 1px);
}

.bg-radial-glow {
  background: radial-gradient(circle at 50% 30%, rgba(117, 96, 201, 0.18) 0%, rgba(11, 16, 32, 0) 70%);
}

.bg-radial-lavender {
  background: radial-gradient(circle at 80% 20%, rgba(181, 154, 245, 0.14) 0%, transparent 60%);
}

.bg-radial-softblue {
  background: radial-gradient(circle at 20% 80%, rgba(185, 219, 255, 0.12) 0%, transparent 60%);
}

/* Glassmorphism Classes */
.glass-panel-dark {
  background: rgba(16, 21, 43, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(181, 154, 245, 0.12);
}

.glass-panel-light {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(181, 154, 245, 0.18);
}

.glass-nav {
  background: rgba(11, 16, 32, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(181, 154, 245, 0.1);
}

/* 3D Tilt Card Component */
.card-3d-tilt {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.25s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.card-3d-tilt:hover {
  transform: translateY(-6px) rotateX(2deg) rotateY(-2deg);
  box-shadow: var(--shadow-glow-violet);
  border-color: rgba(181, 154, 245, 0.4);
}

/* Interactive Glowing Borders */
.border-glow-violet {
  border: 1px solid rgba(117, 96, 201, 0.35);
  box-shadow: inset 0 0 15px rgba(117, 96, 201, 0.08), 0 0 25px rgba(117, 96, 201, 0.2);
}

.border-glow-lavender {
  border: 1px solid rgba(181, 154, 245, 0.35);
  box-shadow: inset 0 0 15px rgba(181, 154, 245, 0.08), 0 0 25px rgba(181, 154, 245, 0.2);
}

/* Brand Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #7560C9 0%, #4263EB 100%);
  color: var(--color-pure-white);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(117, 96, 201, 0.45);
  transition: all 0.25s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #8771de 0%, #4f6ff2 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(117, 96, 201, 0.65);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--color-pure-white);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(181, 154, 245, 0.25);
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-secondary:hover {
  background-color: rgba(181, 154, 245, 0.12);
  border-color: var(--color-lavender);
  color: var(--color-lavender);
  transform: translateY(-2px);
}

.btn-lavender {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #B59AF5 0%, #E4D4FF 100%);
  color: #0B1020;
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  border: none;
  box-shadow: 0 4px 20px rgba(181, 154, 245, 0.45);
  transition: all 0.25s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-lavender:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(181, 154, 245, 0.65);
  background: linear-gradient(135deg, #c4aef7 0%, #ede1ff 100%);
}

/* Badges */
.badge-tech {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(117, 96, 201, 0.15);
  color: var(--color-lavender);
  border: 1px solid rgba(181, 154, 245, 0.3);
}

.badge-blue {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(185, 219, 255, 0.12);
  color: var(--color-soft-blue);
  border: 1px solid rgba(185, 219, 255, 0.3);
}

/* ==========================================================================
   IMAGE 2 — REDESIGNED PROGRAMME CARDS STYLING
   ========================================================================== */
.programme-card {
  position: relative;
  border-radius: 1.5rem;
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.programme-card-light {
  background: #FFFFFF;
  border: 1px solid rgba(181, 154, 245, 0.25);
  color: #1E293B;
  box-shadow: 0 10px 30px -10px rgba(117, 96, 201, 0.08);
}

.programme-card-light:hover {
  transform: translateY(-8px);
  border-color: var(--color-deep-violet);
  box-shadow: 0 20px 40px -15px rgba(117, 96, 201, 0.2);
}

.programme-card-dark {
  background: var(--color-dark-navy);
  border: 1px solid rgba(181, 154, 245, 0.15);
  color: var(--color-pure-white);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.programme-card-dark:hover {
  transform: translateY(-8px);
  border-color: var(--color-lavender);
  box-shadow: var(--shadow-glow-violet);
}

.programme-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.programme-card:hover .programme-card-icon {
  transform: scale(1.1) rotate(2deg);
}

.programme-card-arrow {
  transition: transform 0.3s ease;
}

.programme-card:hover .programme-card-arrow {
  transform: translateX(6px);
}

/* ==========================================================================
   IMAGE 3 — FLOATING WHATSAPP BUTTON (MANDATORY ON EVERY PAGE)
   ========================================================================== */
.floating-whatsapp {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  cursor: pointer;
}

.whatsapp-btn-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.whatsapp-btn-circle::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.5);
  animation: pulseWhatsapp 2s infinite;
}

@keyframes pulseWhatsapp {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}

.floating-whatsapp:hover .whatsapp-btn-circle {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.65);
}

.whatsapp-tooltip {
  background: var(--color-dark-navy);
  color: #FFFFFF;
  border: 1px solid rgba(181, 154, 245, 0.3);
  padding: 0.5rem 0.875rem;
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.25s ease;
}

.floating-whatsapp:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 640px) {
  .whatsapp-btn-circle {
    width: 48px;
    height: 48px;
  }
  .whatsapp-tooltip {
    display: none;
  }
}

/* ==========================================================================
   HEADER REDESIGN — RIGHT SLIDE-OUT SIDEBAR NAVIGATION
   ========================================================================== */
#sidebarNavOverlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(11, 16, 32, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

#sidebarNavOverlay.active {
  opacity: 1;
  pointer-events: auto;
}

#sidebarNavDrawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  z-index: 101;
  background: #10152B;
  border-left: 1px solid rgba(181, 154, 245, 0.2);
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

#sidebarNavOverlay.active #sidebarNavDrawer {
  transform: translateX(0);
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  color: #E2E8F0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-bottom: 0.375rem;
  opacity: 1 !important;
}

.sidebar-nav-item:hover {
  background: rgba(117, 96, 201, 0.25);
  border-color: rgba(181, 154, 245, 0.45);
  color: #FFFFFF !important;
  transform: translateX(4px);
}

.sidebar-nav-item.active {
  background: rgba(117, 96, 201, 0.35);
  border-color: #B59AF5;
  color: #FFFFFF !important;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(117, 96, 201, 0.25);
}

/* ==========================================================================
   IMAGE 4 — ADVANCED STUDENT CODING SIMULATOR (C, C++, Java, Python)
   ========================================================================== */
.simulator-container {
  background: #0B1020;
  border: 1px solid rgba(181, 154, 245, 0.25);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8);
}

.simulator-editor-pane {
  background: #070B16;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.65;
  color: #E2E8F0;
  position: relative;
}

.simulator-terminal-pane {
  background: #0D1224;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  border-left: 1px solid rgba(181, 154, 245, 0.15);
}

/* Header Scrolled State */
header#mainHeader.scrolled {
  height: 4.25rem;
  background: rgba(11, 16, 32, 0.96) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  border-bottom-color: rgba(181, 154, 245, 0.25);
}

/* Legacy intro styles superseded by V4 Cinematic Intro */
.logo-intro-halo {
  display: none;
}

/* Stacked Programme Card Showcase (Video 2 Specification) */
.stacked-cards-deck {
  position: relative;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .stacked-cards-deck {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: stretch;
  }
  .stacked-card-featured {
    grid-column: span 7;
    z-index: 10;
  }
  .stacked-card-offset-1 {
    grid-column: span 5;
    transform: translateY(12px) translateX(-8px);
    z-index: 8;
  }
  .stacked-card-row2-left {
    grid-column: span 5;
    transform: translateY(-8px);
    z-index: 9;
  }
  .stacked-card-row2-right {
    grid-column: span 7;
    transform: translateY(4px) translateX(-8px);
    z-index: 11;
  }
}

.stacked-card {
  position: relative;
  border-radius: 1.75rem;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  overflow: hidden;
}

.stacked-card:hover {
  transform: translateY(-10px) scale(1.015) !important;
  z-index: 30 !important;
  box-shadow: 0 25px 50px -12px rgba(117, 96, 201, 0.35);
}

.stacked-card:hover .stacked-card-icon {
  transform: scale(1.15) rotate(3deg);
}

.stacked-card:hover .stacked-card-arrow {
  transform: translateX(6px);
}

.stacked-card-dark {
  background: #10152B;
  border: 1px solid rgba(181, 154, 245, 0.25);
  color: #F6F8FF;
}

.stacked-card-dark:hover {
  border-color: rgba(181, 154, 245, 0.65);
}

.stacked-card-light {
  background: #FFFFFF;
  border: 1px solid rgba(117, 96, 201, 0.2);
  color: #0B1020;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.stacked-card-light:hover {
  border-color: #7560C9;
}

/* Sidebar Drawer Staggered Item Transition */
#sidebarNavOverlay.active .sidebar-nav-item {
  animation: sidebarItemSlide 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes sidebarItemSlide {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Animations */
@keyframes pulseGlow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.06); }
}

.animate-pulse-glow {
  animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes floatAnim {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.animate-float {
  animation: floatAnim 6s ease-in-out infinite;
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  #logoRevealOverlay {
    display: none !important;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: #0B1020;
}
::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #7560C9;
}


/* ============================================================
   V3 PREMIUM ADDITIONS — appended by cssworker
   ============================================================ */

/* Premium CROSK-T Custom Cursor */
body.custom-cursor-active { cursor: none; }
body.custom-cursor-active a,
body.custom-cursor-active button,
body.custom-cursor-active [role="button"] { cursor: none; }
body.custom-cursor-active input,
body.custom-cursor-active textarea,
body.custom-cursor-active select { cursor: text; }

#crosk-cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 8px; height: 8px;
  background: #B59AF5;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.15s ease, height 0.15s ease, background 0.15s ease, opacity 0.15s ease;
  will-change: transform;
}
#crosk-cursor-ring {
  position: fixed; top: 0; left: 0;
  width: 32px; height: 32px;
  border: 1.5px solid rgba(181, 154, 245, 0.55);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.2s ease, opacity 0.2s ease;
  will-change: transform;
}
body.cursor-hover-btn #crosk-cursor-dot { width: 12px; height: 12px; background: #fff; }
body.cursor-hover-btn #crosk-cursor-ring { width: 48px; height: 48px; border-color: rgba(181,154,245,0.9); }
body.cursor-hover-card #crosk-cursor-ring { width: 44px; height: 44px; border-color: #7560C9; }
body.cursor-hover-link #crosk-cursor-dot { background: #4DD9E8; }
body.cursor-hover-link #crosk-cursor-ring { border-color: rgba(77, 217, 232, 0.6); }
@media (prefers-reduced-motion: reduce) {
  #crosk-cursor-dot, #crosk-cursor-ring { transition: none; }
}

/* V3 Cinematic Intro */
@keyframes introLogoScale {
  0% { opacity: 0; transform: scale(0.7); }
  60% { opacity: 1; transform: scale(1.04); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes introTextSlide {
  0% { opacity: 0; transform: translateY(16px) letterSpacing 0.5em; }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes introLineDraw {
  0% { width: 0; }
  100% { width: 4rem; }
}
@keyframes introOverlayExit {
  0% { opacity: 1; clip-path: inset(0 0 0 0); }
  100% { opacity: 0; clip-path: inset(0 0 100% 0); }
}
@keyframes introAuraExpand {
  0% { transform: scale(0.6); opacity: 0; }
  50% { transform: scale(1.3); opacity: 0.4; }
  100% { transform: scale(1); opacity: 0.2; }
}

#logoRevealOverlay {
  position: fixed; inset: 0; z-index: 9999;
  background: #0B1020;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1), visibility 1.1s ease;
}
#logoRevealOverlay.reveal-hidden {
  opacity: 0; visibility: hidden; pointer-events: none;
}
.intro-logo-container {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 160px; height: 160px;
  margin-bottom: 2.5rem;
}
.intro-logo-aura {
  position: absolute; inset: -24px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(117,96,201,0.35) 0%, rgba(181,154,245,0.08) 55%, transparent 80%);
  animation: introAuraExpand 1.4s ease-out forwards;
}
.intro-logo-aura-pulse {
  position: absolute; inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(181,154,245,0.3);
  animation: pulseHalo 2.5s ease-in-out 1.4s infinite;
}
.intro-logo-img {
  width: 128px; height: 128px;
  object-fit: contain; position: relative; z-index: 2;
  animation: introLogoScale 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
  filter: drop-shadow(0 0 32px rgba(181,154,245,0.25));
}
.intro-brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.75rem; font-weight: 800;
  letter-spacing: 0.22em; color: #fff;
  animation: introTextSlide 0.8s cubic-bezier(0.16,1,0.3,1) 1.1s both;
  line-height: 1;
}
.intro-brand-line {
  width: 0;
  height: 1.5px;
  background: linear-gradient(to right, transparent, #7560C9, transparent);
  margin: 0.9rem auto;
  animation: introLineDraw 0.6s ease 1.7s both;
}
.intro-brand-motto {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.28em; color: #B59AF5;
  text-transform: uppercase;
  animation: introTextSlide 0.8s cubic-bezier(0.16,1,0.3,1) 1.85s both;
}
.intro-corner-tl, .intro-corner-tr, .intro-corner-bl, .intro-corner-br {
  position: absolute; width: 18px; height: 18px;
  border-color: rgba(181,154,245,0.4);
  border-style: solid;
  opacity: 0;
  animation: introTextSlide 0.5s ease 0.5s both;
}
.intro-corner-tl { top: 1.5rem; left: 1.5rem; border-width: 2px 0 0 2px; }
.intro-corner-tr { top: 1.5rem; right: 1.5rem; border-width: 2px 2px 0 0; }
.intro-corner-bl { bottom: 1.5rem; left: 1.5rem; border-width: 0 0 2px 2px; }
.intro-corner-br { bottom: 1.5rem; right: 1.5rem; border-width: 0 2px 2px 0; }
.skip-intro-btn {
  position: absolute; bottom: 2rem; right: 2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(181,154,245,0.2);
  padding: 0.5rem 1.1rem; border-radius: 999px;
  cursor: pointer; transition: all 0.2s ease;
  animation: introTextSlide 0.5s ease 2.2s both;
}
.skip-intro-btn:hover { color: #fff; border-color: #7560C9; background: rgba(117,96,201,0.15); }

/* Stacked Programme Cards — V3 Aligned Layout */
.stacked-cards-deck {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .stacked-cards-deck {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1200px) {
  .stacked-cards-deck {
    grid-template-columns: repeat(12, 1fr);
    align-items: start;
    gap: 1.25rem;
  }
  .stacked-card-featured { grid-column: 1 / 8; margin-top: 0; }
  .stacked-card-offset-1 { grid-column: 8 / 13; margin-top: 2rem; }
  .stacked-card-row2-left { grid-column: 1 / 6; margin-top: 0; }
  .stacked-card-row2-right { grid-column: 6 / 13; margin-top: 2rem; }
}

.stacked-card {
  position: relative;
  border-radius: 1.5rem;
  padding: 2rem;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s ease, border-color 0.3s ease;
  transform-origin: center bottom;
  will-change: transform;
}
.stacked-card:hover {
  transform: translateY(-8px) scale(1.012);
  box-shadow: 0 20px 50px -10px rgba(117,96,201,0.4);
  z-index: 10;
}
.stacked-card:hover .stacked-card-icon { transform: scale(1.12) rotate(4deg); }
.stacked-card:hover .stacked-card-arrow { transform: translateX(8px); }
.stacked-card-icon { transition: transform 0.35s cubic-bezier(0.16,1,0.3,1); }
.stacked-card-arrow { transition: transform 0.3s ease; }

.stacked-card-dark { background: #10152B; border: 1px solid rgba(181,154,245,0.2); color: #F6F8FF; }
.stacked-card-dark:hover { border-color: rgba(181,154,245,0.6); }
.stacked-card-light { background: #FFFFFF; border: 1px solid rgba(117,96,201,0.18); color: #0B1020; box-shadow: 0 8px 30px rgba(0,0,0,0.07); }
.stacked-card-light:hover { border-color: #7560C9; }

/* ==========================================================================
   SCROLL REVEAL SYSTEM — FAIL-SAFE ARCHITECTURE
   Content is visible by default (opacity: 1). 
   Animated hiding is only activated when JS initializes successfully.
   ========================================================================== */
.reveal-on-scroll,
.reveal-on-scroll-left,
.reveal-on-scroll-scale {
  opacity: 1;
  transform: none;
}

html.js-reveal-active .reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
html.js-reveal-active .reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

html.js-reveal-active .reveal-on-scroll-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
html.js-reveal-active .reveal-on-scroll-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

html.js-reveal-active .reveal-on-scroll-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
html.js-reveal-active .reveal-on-scroll-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll, .reveal-on-scroll-left, .reveal-on-scroll-scale,
  html.js-reveal-active .reveal-on-scroll,
  html.js-reveal-active .reveal-on-scroll-left,
  html.js-reveal-active .reveal-on-scroll-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Premium Code Editor UI */
.code-editor-wrapper { font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace; }
.code-editor-toolbar { background: #0D1117; border-bottom: 1px solid rgba(255,255,255,0.08); }
.code-editor-surface {
  background: linear-gradient(135deg, #0D1117 0%, #0B1020 100%);
  border: 1px solid rgba(181,154,245,0.2);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(181,154,245,0.08);
}
.code-terminal-pane { background: #0A0E1A; }
.code-status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.code-status-dot.success { background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.code-status-dot.error { background: #ef4444; box-shadow: 0 0 8px #ef4444; }
.code-status-dot.running { background: #B59AF5; animation: pulseHalo 1s ease infinite; }
.code-status-dot.idle { background: #475569; }
.lang-tab {
  padding: 0.4rem 0.9rem; border-radius: 0.5rem;
  font-size: 0.72rem; font-weight: 700;
  cursor: pointer; transition: all 0.2s ease;
  border: 1px solid transparent; color: #64748b;
}
.lang-tab.active { background: rgba(117,96,201,0.25); border-color: rgba(181,154,245,0.4); color: #B59AF5; }
.lang-tab:hover:not(.active) { color: #fff; background: rgba(255,255,255,0.05); }
.terminal-output {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem; line-height: 1.65;
  color: #94a3b8; white-space: pre-wrap; word-break: break-word;
  max-height: 280px; overflow-y: auto;
}
.terminal-output.has-error { color: #f87171; }
.terminal-output.has-success { color: #86efac; }
.terminal-line-success { color: #22c55e; }
.terminal-line-error { color: #f87171; }
.terminal-line-info { color: #B59AF5; }
.terminal-line-system { color: #64748b; }

/* Premium Form Animations */
.form-input-field {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.form-input-field:focus {
  border-color: #7560C9 !important;
  box-shadow: 0 0 0 3px rgba(117,96,201,0.15), inset 0 1px 2px rgba(0,0,0,0.1);
  background: rgba(117,96,201,0.05) !important;
}


/* ==========================================================================
   V5 PREMIUM HIGH-VISIBILITY SOCIAL ICONS & BRAND ACCENTS
   ========================================================================== */
.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.85rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.social-icon-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.25s ease;
  position: relative;
  z-index: 2;
}

.social-icon-btn:hover svg {
  transform: scale(1.15);
}

/* LinkedIn Visible Accent */
.social-icon-linkedin {
  background: rgba(10, 102, 194, 0.18);
  border: 1px solid rgba(10, 102, 194, 0.45);
  color: #0A66C2;
  box-shadow: 0 4px 14px rgba(10, 102, 194, 0.15);
}
.social-icon-linkedin:hover {
  background: #0A66C2;
  color: #FFFFFF !important;
  border-color: #0A66C2;
  box-shadow: 0 8px 24px rgba(10, 102, 194, 0.55);
  transform: translateY(-3px);
}

/* Instagram Visible Gradient Accent */
.social-icon-instagram {
  background: rgba(225, 48, 108, 0.15);
  border: 1px solid rgba(225, 48, 108, 0.45);
  color: #E1306C;
  box-shadow: 0 4px 14px rgba(225, 48, 108, 0.15);
}
.social-icon-instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #FFFFFF !important;
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(225, 48, 108, 0.55);
  transform: translateY(-3px);
}

/* WhatsApp Visible Green Accent */
.social-icon-whatsapp {
  background: rgba(37, 211, 102, 0.18);
  border: 1px solid rgba(37, 211, 102, 0.45);
  color: #25D366;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.15);
}
.social-icon-whatsapp:hover {
  background: #25D366;
  color: #FFFFFF !important;
  border-color: #25D366;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.55);
  transform: translateY(-3px);
}

/* ==========================================================================
   V5 MOBILE RESPONSIVENESS & TOUCH TARGET POLISH
   ========================================================================== */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

@media (max-width: 768px) {
  /* Prevent horizontal layout expansion */
  .max-w-7xl, .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Code editor panel on mobile */
  #codeEditorArea {
    min-height: 220px !important;
    font-size: 13px !important;
  }
  
  #codeOutput {
    max-height: 220px !important;
    font-size: 12px !important;
  }

  /* Form padding adjustments on phones */
  .glass-panel-dark {
    padding: 1.25rem !important;
  }

  /* Ensure floating WhatsApp button never blocks submit buttons or text */
  .floating-whatsapp {
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 85;
  }
  .whatsapp-btn-circle {
    width: 48px;
    height: 48px;
  }

  /* Typography scale down for small viewports */
  h1 { font-size: clamp(2rem, 7vw, 3.25rem) !important; }
  h2 { font-size: clamp(1.65rem, 6vw, 2.5rem) !important; }

  /* Stacked card mobile spacing */
  .stacked-card {
    padding: 1.5rem !important;
    min-height: auto !important;
  }
}

/* CROSK-T corporate theme switcher: dark remains the original default. */
.croskt-site-theme-button {
  position:fixed;z-index:10000;right:18px;bottom:18px;padding:11px 16px;
  color:#fff;background:#243357;border:1px solid #a997f3;border-radius:14px;
  box-shadow:0 8px 26px #0004;font:700 12px Inter,sans-serif;cursor:pointer;
}
.croskt-site-theme-button:focus-visible{outline:3px solid #b59af5;outline-offset:3px}
html.croskt-light-mode {color-scheme:light}
html.croskt-light-mode body {
  background:#f5f7ff!important;color:#192b46!important;
}
html.croskt-light-mode #mainHeader {
  background:rgba(255,255,255,.95)!important;
  border-bottom:1px solid #cbd5ed!important;
  box-shadow:0 5px 30px rgba(20,40,80,.07);
}
html.croskt-light-mode #mainHeader .nav-link,
html.croskt-light-mode #mainHeader nav a,
html.croskt-light-mode #mainHeader a:not(.btn-primary-gradient):not([href="/student-portal"]) {
  color:#21334e!important;
}
html.croskt-light-mode #mainHeader a[href="/student-portal"] {
  background:#eaf0ff!important;color:#2748a3!important;
}
html.croskt-light-mode :is(section,main,article,footer) {
  --tw-bg-opacity:1;
}
html.croskt-light-mode :is(.bg-midnight-navy,.bg-deep-slate) {
  background-color:#edf2fc!important;color:#192b46!important;
}
html.croskt-light-mode :is(.bg-\[\#0B1020\],.bg-\[\#10152B\]) {
  background-color:#edf2fc!important;color:#192b46!important;
}
/* Light-surface text only. Never recolour every white/silver foreground globally,
   because gradient calls-to-action and dark cards stay intentionally dark. */
html.croskt-light-mode :is(.bg-midnight-navy,.bg-deep-slate,.bg-\[\#0B1020\],.bg-\[\#10152B\]):not(.croskt-dark-surface):not(.croskt-logo-badge) :is(.text-white,.text-slate-300,.text-slate-400) {
  color:#253953;
}
html.croskt-light-mode :is(.btn-primary-gradient,.text-white[data-preserve-white]) {
  color:#fff!important;
}
html.croskt-light-mode :is(h1,h2,h3,h4,h5,h6) {
  text-shadow:none;
}
html.croskt-light-mode .croskt-site-theme-button{
  color:#203653;background:#fff;border-color:#abb7d5;
}
@media(prefers-reduced-motion:reduce){
  .croskt-site-theme-button{transition:none!important}
}
