/* ============================================================
   Wabil Institute — Vision 2026
   Design Language: Liquid Glass Elite
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

:root {
  /* Core Palette (Permanent Dark Mode) */
  --clr-bg: #000000;
  --clr-bg-alt: #1d1d1f;
  --clr-text: #f5f5f7;
  --clr-text-alt: #86868b;
  --clr-primary: #00a3f5;
  --clr-primary-hover: #0174ee;

  /* Glass tokens */
  --glass-bg: rgba(29, 29, 31, 0.72);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-blur: 24px;

  /* Design Tokens */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-xl: 44px;

  --shadow-subtle: 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-premium: 0 20px 60px rgba(0, 0, 0, 0.6);

  --font-main: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;

  --ease-standard: cubic-bezier(0.28, 0.11, 0.32, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-main);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.45;
  overflow-x: hidden;
  transition: background 0.6s var(--ease-expo), color 0.6s var(--ease-expo);
  cursor: none;
}

/* ─── Custom Liquid Cursor ───────────────────────────────── */
#cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--clr-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-spring), height 0.3s var(--ease-spring);
}

#cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border: 1px solid var(--clr-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.4s var(--ease-spring), height 0.4s var(--ease-spring), border-color 0.4s;
}

body.cursor-hover #cursor-dot {
  width: 4px;
  height: 4px;
}

body.cursor-hover #cursor-ring {
  width: 56px;
  height: 56px;
  background: rgba(0, 113, 227, 0.05);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  user-select: none;
}

/* ─── Layout ───────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: 120px 0;
}

/* ─── Navigation ───────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  transition: height 0.4s var(--ease-standard);
}

#nav .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--clr-text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--clr-text);
  opacity: 0.8;
  transition: all 0.3s var(--ease-standard);
  letter-spacing: 0.01em;
}

.nav-links a:hover {
  opacity: 1;
  letter-spacing: 0.03em;
}

.nav-cta {
  background: var(--clr-text);
  color: var(--clr-bg) !important;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  opacity: 1 !important;
}

/* ─── Hero ─────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 52px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 10;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-primary);
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--clr-text-alt);
  max-width: 600px;
  margin: 0 auto 48px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.btn {
  padding: 16px 32px;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.4s var(--ease-expo);
}

.btn-primary {
  background: var(--clr-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--clr-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(1, 116, 238, 0.3);
}

.btn-secondary {
  background: var(--clr-bg-alt);
  color: var(--clr-text);
}

.btn-secondary:hover {
  background: var(--clr-border);
  transform: translateY(-2px);
}

/* ─── Visuals ──────────────────────────────────────────── */
.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

/* ─── Sections ─────────────────────────────────────────── */
.section-tag {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--clr-primary);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--clr-text-alt);
  max-width: 640px;
  margin-bottom: 60px;
}

/* ─── Grid ─────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.card {
  background: var(--clr-bg-alt);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 48px;
  transition: all 0.6s var(--ease-expo);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.05),
      transparent);
  transform: skewX(-25deg);
  transition: none;
}

.card:hover {
  transform: translateY(-12px) scale(1.02);
  background: var(--clr-bg);
  box-shadow: var(--shadow-premium);
  border-color: var(--clr-primary);
}

.card:hover::before {
  left: 150%;
  transition: left 0.8s var(--ease-expo);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 32px;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.card-text {
  font-size: 1rem;
  color: var(--clr-text-alt);
  line-height: 1.6;
}

/* ─── Testimonials ─────────────────────────────────────── */
.testimonial-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 40px 0;
  scrollbar-width: none;
}

.testimonial-card {
  min-width: 400px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.testimonial-text {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 32px;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h4 {
  font-size: 1rem;
  font-weight: 600;
}

.author-info p {
  font-size: 0.875rem;
  color: var(--clr-text-alt);
}

/* ─── Footer ───────────────────────────────────────────── */
#footer {
  padding: 80px 0 40px;
  background: var(--clr-bg-alt);
  border-top: 1px solid var(--glass-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.footer-desc {
  color: var(--clr-text-alt);
  max-width: 300px;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  text-decoration: none;
  color: var(--clr-text-alt);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--clr-primary);
}

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--clr-text-alt);
}

/* ─── Reveal ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 1.2s var(--ease-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.d1 {
  transition-delay: 0.1s;
}

.d2 {
  transition-delay: 0.2s;
}

.d3 {
  transition-delay: 0.3s;
}

/* ─── Flagship Course Bento & Components ─────────────────── */
.course-bento {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  margin-bottom: 60px;
}

@media (max-width: 992px) {
  .course-bento {
    grid-template-columns: 1fr;
  }
}

.bento-card {
  background: var(--clr-bg-alt);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 48px;
  position: relative;
  overflow: hidden;
  transition: all 0.6s var(--ease-expo);
}

.bento-card:hover {
  background: var(--clr-bg);
  box-shadow: var(--shadow-premium);
  border-color: var(--clr-primary);
  transform: translateY(-6px);
}

.bento-header {
  margin-bottom: 24px;
}

.bento-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(1, 116, 238, 0.1);
  color: var(--clr-primary);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.bento-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.15;
}

.bento-desc {
  font-size: 1.05rem;
  color: var(--clr-text-alt);
  line-height: 1.65;
  margin-bottom: 24px;
}

.bento-desc:last-child {
  margin-bottom: 0;
}

.highlight-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.highlight-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.highlight-icon {
  font-size: 1.75rem;
  background: var(--clr-bg);
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--glass-border);
  flex-shrink: 0;
}

.highlight-content h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.highlight-content p {
  font-size: 0.95rem;
  color: var(--clr-text-alt);
  line-height: 1.5;
}

/* Tech Badges */
.tech-container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.tech-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--clr-bg);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--clr-text);
  box-shadow: var(--shadow-subtle);
  transition: all 0.4s var(--ease-spring);
}

.tech-badge:hover {
  transform: translateY(-4px) scale(1.05);
  border-color: var(--clr-primary);
  background: var(--clr-primary);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(1, 116, 238, 0.25);
}

/* Syllabus Grid */
.syllabus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 60px;
}

@media (max-width: 992px) {
  .syllabus-grid {
    grid-template-columns: 1fr;
  }
}

.syllabus-card {
  background: var(--clr-bg-alt);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 48px;
  position: relative;
  transition: all 0.6s var(--ease-expo);
}

.syllabus-card:hover {
  background: var(--clr-bg);
  box-shadow: var(--shadow-premium);
  border-color: var(--clr-primary);
  transform: translateY(-6px);
}

.syllabus-phase {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--clr-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.syllabus-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.syllabus-subtitle {
  font-size: 1rem;
  color: var(--clr-text-alt);
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--glass-border);
}

.syllabus-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.syllabus-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 1rem;
  color: var(--clr-text);
  line-height: 1.5;
}

.syllabus-list li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(1, 116, 238, 0.1);
  color: var(--clr-primary);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.syllabus-sublist {
  list-style: none;
  margin-top: 8px;
  margin-left: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.syllabus-sublist li {
  font-size: 0.85rem;
  padding: 4px 12px;
  background: var(--clr-bg);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  color: var(--clr-text-alt);
}

.syllabus-sublist li::before {
  display: none;
}

/* Career Pathways */
.career-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.career-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--clr-bg);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--clr-text);
  box-shadow: var(--shadow-subtle);
  transition: all 0.4s var(--ease-spring);
}

.career-pill:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(1, 116, 238, 0.15);
}

/* ─── Contact Section Enhancements ───────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
  text-align: left;
  margin-top: 48px;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.contact-info-box {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-lg);
  padding: 48px;
  backdrop-filter: blur(var(--glass-blur));
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
}

.contact-detail-item:last-child {
  margin-bottom: 0;
}

.contact-detail-icon {
  font-size: 1.75rem;
  width: 56px;
  height: 56px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--clr-primary);
}

.contact-detail-content h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--clr-bg);
  margin-bottom: 6px;
}

.contact-detail-content p,
.contact-detail-content a {
  font-size: 1rem;
  color: var(--clr-bg);
  opacity: 0.85;
  text-decoration: none;
  line-height: 1.6;
  transition: all 0.3s;
}

.contact-detail-content a:hover {
  opacity: 1;
  color: var(--clr-primary);
}

/* Form Styles */
.contact-form-box {
  background: var(--clr-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-premium);
  color: var(--clr-text);
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--clr-text);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 16px 20px;
  background: var(--clr-bg-alt);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  color: var(--clr-text);
  font-family: inherit;
  transition: all 0.3s var(--ease-standard);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--clr-primary);
  background: var(--clr-bg);
  box-shadow: 0 0 0 4px rgba(1, 116, 238, 0.15);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-submit-btn {
  width: 100%;
  padding: 18px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 1.05rem;
}

.form-success-msg {
  display: none;
  padding: 20px;
  background: rgba(5, 239, 73, 0.1);
  border: 1px solid #05ef49;
  color: #05ef49;
  border-radius: var(--radius-sm);
  margin-top: 24px;
  font-weight: 600;
  text-align: center;
}

/* ─── Theme Toggle ─────────────────────────────────────── */
.theme-toggle {
  background: none;
  border: none;
  color: var(--clr-text);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease-standard);
}

.theme-toggle:hover {
  transform: scale(1.1);
}

/* ─── Rain & Water Ripple Effects ────────────────────────── */
#rain-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9995;
  overflow: hidden;
}

.raindrop {
  position: absolute;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.45));
  width: 1px;
  height: 32px;
  opacity: 0.65;
  box-shadow: 0 0 2px rgba(255, 255, 255, 0.2);
  animation: fall linear infinite;
}

@keyframes fall {
  0% {
    transform: translateY(-100px);
  }

  100% {
    transform: translateY(105vh);
  }
}

/* Water Ripples */
.water-ripple {
  position: fixed;
  border: 3px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0.85;
  z-index: 9997;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.2);
  animation: ripple-expand 0.8s var(--ease-expo) forwards;
}

.water-ripple-inner {
  position: fixed;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0.75;
  z-index: 9997;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.2);
  animation: ripple-expand 0.6s var(--ease-expo) forwards;
}

@keyframes ripple-expand {
  0% {
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 0.85;
  }

  100% {
    transform: translate(-50%, -50%) scale(4);
    opacity: 0;
  }
}

/* Water Splash Droplets */
.water-splash-droplet {
  position: fixed;
  width: 5px;
  height: 5px;
  background: #ffffff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  box-shadow: 0 0 8px #ffffff;
  animation: splash-out 0.6s var(--ease-expo) forwards;
}

@keyframes splash-out {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.9;
  }

  100% {
    transform: translate(var(--splash-x), var(--splash-y)) scale(0);
    opacity: 0;
  }
}

.spin-anim {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/* ─── Mobile ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .section {
    padding: 80px 0;
  }
}