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

:root {
  --primary-bg: #0e1041;
  --text-light: #ffffff;
  --accent: #6a6da0;
  --section-dark: #1b1d4f;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #fff;
  color: var(--primary-bg);
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; }

/* NAVBAR */
.navbar {
  background-color: var(--primary-bg);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  height: 65px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-light);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover { color: var(--accent); }

/* HERO */
.hero {
  background: linear-gradient(to bottom, #f9fbff, #e6efff);
  height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.liit-text { font-size: 5rem; font-weight: 800; margin-bottom: 0.5rem; }
.main-title { font-size: 2rem; font-weight: 700; }

.tagline {
  font-style: italic;
  font-size: 0.95rem;
  margin: 0.5rem 0 1.5rem;
}

/* GENERIC BUTTONS */
.btn {
  background: #fff;
  color: var(--primary-bg);
  padding: 0.75rem 1.6rem;
  border-radius: 30px;
  font-weight: 600;
  border: 2px solid var(--primary-bg);
  transition: all 0.3s ease;
}

.btn:hover {
  background: var(--accent);
  color: #fff;
  border: none;
}

.btn-outline {
  background: #fff;
  color: var(--primary-bg);
  border: 2px solid var(--primary-bg);
}

.btn-outline:hover {
  background: var(--primary-bg);
  color: #fff;
}

/* Hero CTAs (Browse + WhatsApp in hero) */
.hero-ctas .btn,
.hero-ctas .btn-outline {
  padding: 0.75rem 1.6rem;
  border-radius: 30px;
  font-weight: 600;
  border: 2px solid var(--primary-bg);
  background: #fff;
  color: #0e1041;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.hero-ctas .btn:hover,
.hero-ctas .btn-outline:hover {
  background: var(--primary-bg);
  color: #fff;
}

.hero-ctas .btn-outline i {
  color: #25D366; /* WhatsApp green */
}

.hero-ctas .btn-outline:hover i {
  color: #25D366; /* stays green even on hover */
}

/* SECTIONS */
.section { padding: 4rem 2rem; text-align: center; }
.section.light { background: linear-gradient(to bottom, #fff, #e6efff); }

.section-heading {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  color: #0e1044;
}

/* PROGRAMS */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 2rem auto 0;
}

.card {
  background: #fff;
  color: var(--primary-bg);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.card:hover { transform: translateY(-5px); background: #d8e2ff; }

/* 4D PHASE */
.phase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem auto 0;
  max-width: 800px;
}

.phase-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.phase-number {
  font-size: 2rem;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 50%;
  display: inline-block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

/* CERTIFICATIONS GRID */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 2rem auto 0;
}

.cert-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.8rem 1.5rem;
  text-align: center;
  box-shadow: 0 8px 20px rgba(14,16,65,0.08);
  border: 1px solid rgba(14,16,65,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cert-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(14,16,65,0.15);
  border-color: rgba(14,16,65,0.18);
}

.cert-emoji { font-size: 2rem; margin-bottom: 0.5rem; }
.cert-title { font-size: 1.2rem; font-weight: 700; color: var(--primary-bg); margin-bottom: 0.5rem; }
.cert-desc { font-size: 0.95rem; line-height: 1.55; color: #374151; }

/* CONTACT */
.contact {
  background: linear-gradient(to bottom, #f9fbff, #e6efff);
  padding: 4rem 2rem;
}

.contact-grid {
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 1000px;
}

.contact-card {
  background: #fff;
  border: 1px solid rgba(14,16,65,0.08);
  border-radius: 14px;
  padding: 1.25rem 1rem;
  text-decoration: none;
  color: #111827;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 8px 20px rgba(14,16,65,0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(14,16,65,0.12);
  border-color: rgba(14,16,65,0.18);
}

.contact-emoji { font-size: 2rem; margin-bottom: 0.5rem; }
.contact-emoji.whatsapp-icon i { color: #25D366; font-size: 2rem; }
.contact-title { font-weight: 700; color: var(--primary-bg); margin-bottom: 0.15rem; }
.contact-value { font-weight: 600; color: #374151; text-align: center; }

/* MARQUEE (Career Paths) */
.marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
  padding: 1rem 0;
  background: linear-gradient(to bottom, #f9fbff, #e6efff);
}

.marquee {
  display: inline-flex;
  gap: 2rem;
  animation: scroll-left 30s linear infinite;
}

.reverse .marquee { animation: scroll-right 30s linear infinite; }

.marquee span {
  display: inline-block;
  background: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.08);
  font-weight: 600;
  color: #0e1041;
  font-size: 1rem;
}

.marquee-wrapper:hover .marquee { animation-play-state: paused; }

@keyframes scroll-left { 0% { transform: translateX(0%); } 100% { transform: translateX(-50%); } }
@keyframes scroll-right { 0% { transform: translateX(-50%); } 100% { transform: translateX(0%); } }

/* FOOTER */
footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  background-color: var(--section-dark);
  color: white;
}

/* ANIMATIONS */
.fade-element { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; cursor: pointer; }
  .hamburger span {
    display: block; width: 25px; height: 3px; margin: 5px; background: #fff; transition: 0.3s ease;
  }
  .nav-links.active {
    display: flex; flex-direction: column; background: var(--primary-bg);
    top: 60px; right: 0; width: 100%; padding: 1rem 0; text-align: center; position: absolute;
  }
  .liit-text { font-size: 3.2rem; }
  .main-title { font-size: 1.5rem; }
  .section-heading { font-size: 2rem; }
  .marquee span { font-size: 0.85rem; padding: 0.5rem 1rem; }
}

/* FORM */
.form-container {
  display: flex; flex-direction: column; gap: 1rem; max-width: 600px; margin: 0 auto;
}
.form-container input, .form-container textarea {
  font-family: 'Inter', sans-serif;
  padding: 0.75rem 1rem; border-radius: 8px; border: 1px solid #ccc; font-size: 1rem; width: 100%;
  background: #f9fbff;
}
.form-container input:focus, .form-container textarea:focus {
  outline: none; border-color: var(--primary-bg); box-shadow: 0 0 5px rgba(14,16,65,0.2);
}
.form-container button {
  align-self: center; background: #fff; color: #0e1041;
  padding: 0.75rem 1.6rem; border-radius: 30px; font-weight: 600;
  border: 2px solid var(--primary-bg); transition: all 0.3s ease; cursor: pointer;
}
.form-container button:hover { background: var(--primary-bg); color: #fff; }

/* PROGRAM EXTRA (CTAs under programs) */
.program-extra { max-width: 1100px; margin: 2.5rem auto 0; padding: 0 1rem; display: flow-root; }
.certificates {
  max-width: 980px; margin: 0 auto 1rem; font-size: 1.05rem; line-height: 1.6; color: #222; text-align: center;
}

.program-ctas .btn,
.program-ctas .btn-whatsapp {
  padding: 0.75rem 1.5rem; border-radius: 30px; font-weight: 600;
  border: 2px solid #0e1041; background: #fff; color: #0e1041;
  display: inline-flex; align-items: center; gap: 0.5rem; transition: all 0.3s ease;
}

/* Hover Apply Now */
.program-ctas .btn:hover { background: #0e1041; color: #fff; }

/* WhatsApp button special */
.program-ctas .btn-whatsapp i { color: #25D366; }
.program-ctas .btn-whatsapp:hover { background: #25D366; color: #fff; }
.program-ctas .btn-whatsapp:hover i { color: #fff; }

/* Active nav link */
.nav-links a.active { color: #aab3ff; }

/* Scroll-to-top floating button */
#toTop{
  position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px;
  border-radius: 999px; border: 2px solid #0e1041; background:#fff; color:#0e1041;
  display:flex; align-items:center; justify-content:center; font-weight:800;
  box-shadow: 0 8px 18px rgba(14,16,65,.15);
  opacity: 0; transform: translateY(20px); pointer-events:none;
  transition: opacity .25s ease, transform .25s ease, background .2s ease, color .2s ease;
  z-index: 999;
}
#toTop.show{ opacity:1; transform: translateY(0); pointer-events:auto; }
#toTop:hover{ background:#0e1041; color:#fff; }

/* Button ripple */
.ripple{
  position:absolute; border-radius:50%; transform:scale(0);
  background: rgba(14,16,65,.15); pointer-events:none; animation:ripple .6s ease-out;
}
@keyframes ripple{ to{ transform:scale(2.2); opacity:0; } }
/* Make buttons relative so ripple positions correctly */
.btn, .btn-whatsapp{ position:relative; overflow:hidden; }

/* Hero tilt (uses JS-set CSS vars) */
.hero{ transform: perspective(900px) rotateX(var(--tiltX,0)) rotateY(var(--tiltY,0));
       transition: transform .2s ease; will-change: transform; }
