*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --white: #fffdf7;
  --dark: #2d2d2d;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #e0f7fa 0%, #fce4ec 50%, #f3e5f5 100%);
  min-height: 120vh;
}
img {
  display: block;
  width: 100%;
}
/* ══════════════ TOP BAR ══════════════ */
.top-bar {
  background: #b41e8c;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

.top-bar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Contact info side */
.top-contact {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.top-contact a {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.92;
  transition:
    opacity 0.18s,
    transform 0.18s;
  white-space: nowrap;
}

.top-contact a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.top-contact svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Divider dot */
.top-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

/* Social icons side */
.top-social {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-social a {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.2s;
  flex-shrink: 0;
}

.top-social a:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.top-social svg {
  width: 14px;
  height: 14px;
}

/* Mobile: hide email on very small screens */
@media (max-width: 480px) {
  .top-bar-inner {
    height: auto;
    padding: 8px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .hide-mobile {
    display: none;
  }

  .top-divider {
    display: none;
  }

  nav {
    top: 152px;
  }
}

/* ══════════════ STICKY WRAPPER ══════════════ */
.site-top {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* ══════════════ HEADER ══════════════ */
header {
  background: var(--white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  width: 300px;
}

/* ══════════════ HAMBURGER ══════════════ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  border: 2px solid #eee;
  border-radius: 12px;
  background: none;
  padding: 8px;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  height: 3px;
  border-radius: 3px;
  transition: all 0.3s;
}

.hamburger span:nth-child(1) {
  background: #ff6b35;
}

.hamburger span:nth-child(2) {
  background: #3a86ff;
  width: 70%;
}

.hamburger span:nth-child(3) {
  background: #ff6ec7;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  width: 100%;
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  width: 100%;
}

/* ══════════════ DESKTOP NAV ══════════════ */
nav {
  display: flex;
  align-items: center;
  font-family: "Londrina Solid", sans-serif;
  font-weight: 100;
  font-style: normal;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.07rem;
  padding: 8px 14px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 1.3rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.18s;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  background: transparent;
}

/* Colourful text only */
.nav-item:nth-child(1) .nav-link {
  color: #e91e8c;
}

.nav-item:nth-child(2) .nav-link {
  color: #2e7d32;
}

.nav-item:nth-child(3) .nav-link {
  color: #1565c0;
}

.nav-item:nth-child(4) .nav-link {
  color: #e65100;
}

.nav-item:nth-child(5) .nav-link {
  color: #6a1b9a;
}

.nav-item:nth-child(6) .nav-link {
  color: #00695c;
}

.nav-link:hover {
  transform: translateY(-2px);
}

.arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.25s;
  flex-shrink: 0;
}

.nav-item:hover > .nav-link .arrow,
.nav-item.open > .nav-link .arrow {
  transform: rotate(180deg);
}

/* ══════════════ DESKTOP SUBMENU ══════════════ */
.submenu {
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--white);
  border-radius: 20px;
  padding: 10px;
  min-width: 230px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.13);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.22s,
    transform 0.22s,
    visibility 0.22s;
}

.submenu::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-bottom-color: var(--white);
  border-top: none;
}

.nav-item:hover > .submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.submenu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
  transition:
    background 0.18s,
    transform 0.18s;
}

.submenu li a:hover {
  transform: translateX(4px);
}

/* .nav-item:nth-child(1) .submenu li a {
  color: #e91e8c;
}

.nav-item:nth-child(2) .submenu li a {
  color: #2e7d32;
}

.nav-item:nth-child(3) .submenu li a {
  color: #1565c0;
}

.nav-item:nth-child(4) .submenu li a {
  color: #e65100;
}

.nav-item:nth-child(5) .submenu li a {
  color: #6a1b9a;
}

.nav-item:nth-child(6) .submenu li a {
  color: #00695c;
} */

.submenu li a:hover {
  background: #f5f5f5;
}

/* ══════════════ CTA ══════════════ */
.cta-btn {
  margin-left: 14px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #ff6b35, #ff6ec7);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.4);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 107, 53, 0.5);
}

/* ══════════════ MOBILE ══════════════ */
@media (max-width: 860px) {
  .hamburger {
    display: flex;
  }

  nav {
    position: fixed;
    top: 118px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
  }

  nav.open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }

  .nav-link {
    border-radius: 14px;
    padding: 14px 18px;
    font-size: 1.05rem;
    justify-content: space-between;
    width: 100%;
    background: transparent;
  }

  /* ── FIX: Mobile submenu shown as block underneath parent ── */
  .submenu {
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    display: none;
    /* hidden by default */
    box-shadow: none;
    background: #f7f7f7;
    border-radius: 14px;
    padding: 8px;
    margin-top: 6px;
    width: 100%;
  }

  .submenu::before {
    display: none;
  }

  .nav-item.open > .submenu {
    display: block;
  }

  .nav-item.open > .nav-link .arrow {
    transform: rotate(180deg);
  }

  /* prevent desktop hover from showing submenu on mobile */
  .nav-item:hover > .submenu {
    opacity: 1;
    visibility: visible;
  }

  .submenu li a {
    padding: 12px 14px;
    font-size: 0.92rem;
    border-radius: 10px;
  }

  .cta-btn {
    display: block;
    margin: 16px 0 0;
    text-align: center;
    padding: 14px;
    font-size: 1rem;
    border-radius: 14px;
  }
}

/* ══════════════ FIXED BOTTOM FLOATING UI ══════════════ */

/* Left fixed button – Call */
.fixed-left {
  position: fixed;
  bottom: 32px;
  left: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Right fixed button – WhatsApp */
.fixed-right {
  position: fixed;
  bottom: 32px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.fixed-fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.22s,
    box-shadow 0.22s;
  position: relative;
}

.fixed-fab svg {
  width: 26px;
  height: 26px;
}

.fixed-fab:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

/* Pulse ring animation */
.fixed-fab::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  opacity: 0;
  animation: pulseRing 2.4s ease-out infinite;
}

@keyframes pulseRing {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
  }

  70% {
    transform: scale(1.35);
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

/* Call – orange */
.fab-call {
  background: linear-gradient(135deg, #ff6b35, #ff9a3c);
  color: #fff;
}

.fab-call::before {
  background: rgba(255, 107, 53, 0.4);
}

/* WhatsApp – green */
.fab-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
}

.fab-whatsapp::before {
  background: rgba(37, 211, 102, 0.35);
}

/* Tooltip label */
.fab-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #555;
  margin-top: 2px;
}

/* Wrap so we can position + rotate independently */
.fixed-center {
  position: fixed;
  right: 0;
  top: 30%;
  z-index: 999;
}

.admission-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 14px;
  width: 42px;
  height: 210px;
  background: #2197d1;
  background-size: 200% 200%;
  animation: gradShift 3s ease infinite;
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  text-decoration: none;
  border-radius: 12px 0 0 12px;
  box-shadow: -4px 4px 24px rgba(155, 93, 229, 0.4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  writing-mode: vertical-lr;
  transition:
    width 0.22s,
    box-shadow 0.22s;
  white-space: nowrap;
}

@keyframes gradShift {
  0% {
    background-position: 0% 0%;
  }

  50% {
    background-position: 0% 100%;
  }

  100% {
    background-position: 0% 0%;
  }
}

.admission-btn:hover {
  width: 52px;
  box-shadow: -8px 4px 32px rgba(155, 93, 229, 0.55);
}

.admission-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transform: rotate(90deg);
}

/* Pulsing dot on admission btn */
.adm-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffd93d;
  animation: blink 1.2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.6);
  }
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .fixed-left {
    bottom: 80px;
    left: 14px;
  }

  .fixed-right {
    bottom: 80px;
    right: 14px;
  }

  .fixed-fab {
    width: 48px;
    height: 48px;
  }

  .fixed-fab svg {
    width: 22px;
    height: 22px;
  }

  .admission-btn {
    height: 150px;
    font-size: 0.72rem;
    width: 36px;
  }

  .admission-btn:hover {
    width: 44px;
  }
}

/* ══════════════ DEMO ══════════════ */
.demo-body {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 24px;
  text-align: center;
}

.demo-body h1 {
  font-size: 2.8rem;
  background: linear-gradient(90deg, #ff6b35, #ff6ec7, #9b5de5, #3a86ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.demo-body p {
  color: #888;
  margin-top: 12px;
  font-size: 1.05rem;
}
