/* ================================
   RESET & BASE
================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #f8fafc;
}

/* ================================
   CSS VARIABLES
================================== */
:root {
  --axiom-cyan: #00AEEF;
  --axiom-navy: #1B1464;
  --axiom-dark: #0f0c35;
  --axiom-light: #f0f9ff;
}

/* ================================
   TYPOGRAPHY
================================== */
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ================================
   CUSTOM SCROLLBAR
================================== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #00AEEF;
}

/* ================================
   NAVBAR
================================== */
.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
  transition: transform 0.3s ease;
}

.navbar.navbar-hidden {
  transform: translateY(-100%);
}

/* Logo */
.logo-img {
  height: 7rem;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s;
}

.group:hover .logo-img {
  transform: scale(1.05);
}

.logo-fallback {
  display: none;
  flex-direction: column;
}

.fallback-main {
  font-size: 2rem;
  font-weight: 800;
  color: var(--axiom-cyan);
}

.fallback-sub {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--axiom-navy);
}

.logo-text {
  display: none;
}

/* Desktop Nav Links */
.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--axiom-cyan);
}

/* CTA Button */
.nav-cta {
  background: var(--axiom-cyan);
  color: #fff;
  padding: 0.7rem 1.7rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(56, 189, 248, 0.35);
  transition: 0.2s;
}

.nav-cta:hover {
  background: #0ea5e9;
  transform: translateY(-2px);
}

/* Hamburger Icon */
.mobile-btn {
  padding: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

.hamburger {
  width: 30px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background: #475569;
  border-radius: 4px;
  transition: 0.35s;
}

.mobile-btn:hover .hamburger span {
  background: var(--axiom-cyan);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Menu Wrapper */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #e2e8f0;
}

.mobile-menu.open {
  max-height: 500px;
}

/* Mobile Link */
.mobile-link {
  display: block;
  padding: 1.1rem 1.2rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  border-radius: 0.6rem;
  line-height: 1.55;
  transition: background 0.25s, color 0.25s;
}

.mobile-link:hover {
  background: var(--axiom-light);
  color: var(--axiom-navy);
}

.mobile-link+.mobile-link {
  border-top: 1px solid #d9dde2;
}

/* Mobile CTA */
.mobile-cta {
  display: block;
  padding: 1rem 1.2rem;
  margin-top: 1rem;
  border-radius: 0.75rem;
  background: var(--axiom-cyan);
  color: white;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(56, 189, 248, 0.3);
}

/* Mobile Dropdown Courses */
#mobile-courses-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.2rem;
  font-size: 1.05rem;
  font-weight: 600;
  border: none;
  background: transparent;
  width: 100%;
  cursor: pointer;
}

#mobile-courses-panel .mobile-link {
  padding-left: 2rem;
  font-size: 0.95rem;
}

.rotate-180 {
  transform: rotate(180deg);
}

/* ================================
   HERO
================================== */
.hero-with-image {
  background-image:
    linear-gradient(to right,
      rgba(248, 250, 252, 0.97),
      rgba(248, 250, 252, 0.93)),
    url("https://images.unsplash.com/photo-1523580846011-d3a5bc25702b?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


/* ================================
   FLOATING BLOBS
================================== */
.hero-blob-1 {
  animation: heroBlob1 20s ease-in-out infinite alternate;
}

.hero-blob-2 {
  animation: heroBlob2 22s ease-in-out infinite alternate;
}

@keyframes heroBlob1 {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(20px, -30px, 0) scale(1.05);
  }
}

@keyframes heroBlob2 {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-20px, 20px, 0) scale(1.04);
  }
}

/* ================================
   HERO VIDEO FLOAT
================================== */
.hero-float {
  animation: heroFloat 10s ease-in-out infinite alternate;
}

@keyframes heroFloat {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(0, -14px, 0);
  }
}

/* ================================
   ORBIT EFFECT
================================== */
.hero-orbit {
  position: absolute;
  inset: -35px;
  border-radius: 50%;
  border: 1px solid rgba(0, 174, 239, 0.25);
  box-shadow: 0 0 60px rgba(0, 174, 239, 0.25);
  pointer-events: none;
  animation: heroOrbit 26s linear infinite;
  z-index: 0;
}

@keyframes heroOrbit {
  from {
    transform: rotate(0deg);
    opacity: .8;
  }
  to {
    transform: rotate(360deg);
    opacity: 1;
  }
}

/* Video wrapper should stay above orbit */
.video-frame {
  position: relative;
  z-index: 1;
}

/* ================================
   HERO UNDERLINE
================================== */
.hero-underline {
  position: relative;
}

.hero-gradient {
  background: linear-gradient(90deg, #00AEEF 0%, #2563eb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.cta-gradient{
    background: linear-gradient(
        135deg,
        var(--axiom-navy) 0%,
        var(--axiom-dark) 100%
    );
}

.hero-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(to right,
      #00AEEF,
      #2563eb);
  animation: heroUnderline 1.3s ease-out .4s forwards;
}

@keyframes heroUnderline {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 100%;
    opacity: 1;
  }
}

/* ================================
   FADE ANIMATION
================================== */
.fade-in-up {
  animation: fadeInUp .8s cubic-bezier(.16, 1, .3, 1) forwards;
  opacity: 0;
  transform: translateY(30px);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.delay-100 {
  animation-delay: .1s;
}
.delay-200 {
  animation-delay: .2s;
}
.delay-300 {
  animation-delay: .3s;
}

/* ================================
   SCROLL FADE
================================== */
.scroll-fade {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity .6s ease-out,
    transform .6s ease-out;
}

.scroll-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================
   MOBILE/TABLET HERO FIX
================================== */
@media(max-width:1024px) {
  .hero-orbit {
    inset: -20px;
  }

  .hero-float {
    animation-duration: 12s;
  }
}

@media(max-width:640px) {
  .hero-with-image {
    background-position: center;
  }

  .hero-orbit {
    inset: -15px;
  }

  .hero-float {
    transform: none;
  }

  .video-frame video {
    min-height: 220px;
    object-fit: cover;
  }
}

/* ================================
   FLOAT BUTTON
================================== */
.float-btn {
  transition: transform .3s cubic-bezier(.175, .885, .32, 1.275);
}

.float-btn:hover {
  transform:
    scale(1.1) translateY(-5px);
}

/* ================================
   GLASS
================================== */
.glass {
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .5);
}

/* ================================
   COURSES SLIDER
================================== */
.courses-track {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.course-card {
  scroll-snap-align: start;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ================================
   VIDEO FRAMES
================================== */
.video-frame {
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
}

.video-card {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* ================================
   FOOTER
================================== */
.axiom-body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #020617;
  color: #94a3b8;
}

.axiom-footer {
  background-color: #0f0c35;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(71, 85, 105, 0.5);
  position: relative;
  overflow: hidden;
}

.axiom-footer-top-border {
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(to right, #00AEEF, #3b82f6, #9333ea);
}

.axiom-footer-ambient {
  position: absolute;
  top: -6rem;
  right: -6rem;
  width: 24rem;
  height: 24rem;
  background: rgba(0, 174, 239, 0.08);
  filter: blur(100px);
  border-radius: 50%;
}

.footer-container {
  max-width: 1280px;
  margin: auto;
  padding: 0 2rem;
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: #00AEEF;
  color: white;
  font-weight: bold;
  font-size: 1.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 0.75rem;
  box-shadow: 0 0 15px rgba(0, 174, 239, 0.25);
}

.brand-title {
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
}

.brand-subtitle {
  text-transform: uppercase;
  font-size: 0.6rem;
  color: #64748b;
  margin-top: 0.25rem;
}

.brand-desc {
  margin-top: 1rem;
  color: #94a3b8;
  line-height: 1.7;
}

.footer-social {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.75rem;
}

.social {
  width: 42px;
  height: 42px;
  background: #1e293b;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.3s;
}

.social.instagram:hover {
  background: linear-gradient(to top right, #facc15, #ef4444, #a855f7);
  color: white;
}

.social.facebook:hover {
  background: #1877F2;
  color: white;
}

.social.google:hover {
  background: white;
  color: #4285F4;
}

.social.whatsapp:hover {
  background: #25D366;
  color: white;
}

.footer-title {
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
}

.footer-list {
  list-style: none;
}

.footer-link {
  color: #94a3b8;
  text-decoration: none;
  transition: 0.3s;
}

.footer-link:hover {
  color: #00AEEF;
}

.footer-contact li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.contact-text {
  color: #94a3b8;
  font-size: 0.875rem;
  transition: 0.3s;
}

.contact-text:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-copy {
  color: #64748b;
  font-size: 0.75rem;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-link {
  color: #64748b;
  font-size: 0.75rem;
  transition: 0.3s;
}

.footer-legal-link:hover {
  color: #00AEEF;
}

/* ================================
   UTILITIES
================================== */
/* FAQ accordion */
.faq-answer.hidden {
  display: none;
}

/* ================================
   MOBILE CAROUSEL
================================== */
#reviewsCarousel {
  overflow: hidden;
}

#reviewsCarousel .carousel-inner {
  height: 260px;
}

#reviewsCarousel .carousel-item {
  height: 260px;
  display: none;
}

#reviewsCarousel .carousel-item.active {
  display: block;
}

.review-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-text {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}