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

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

html {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: 'Questrial', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1d1d1f;
  background-color: #f7fcfa;
  background-image: linear-gradient(180deg, #edf9f7 0%, #ffffff 32%, #f2faf8 70%, #ffffff 100%);
  background-attachment: fixed;
  min-height: 100vh;
  min-height: 100dvh;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
  margin: 0;
  padding: 0;
}

button, input, select, textarea {
  font-family: 'Questrial', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Ensure RemixIcon fonts render crisply without interference with proper container alignment */
i[class*="ri-"], [class^="ri-"], [class*=" ri-"] {
  font-family: 'remixicon' !important;
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
i[class*="ri-"]::before, [class^="ri-"]::before, [class*=" ri-"]::before {
  font-family: 'remixicon' !important;
  display: inline-block;
  line-height: 1;
}

/* Master Site Container Matching CodiCat */
.site-container {
  width: 100%;
  max-width: 80rem; /* 1280px / 7xl */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) {
  .site-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .site-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Hide scrollbars globally */
* {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

*::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

/* Primary Theme Color: #009788 (Tech School by CodiCat) */
:root {
  --ts-primary: #009788;
  --ts-primary-hover: #008275;
  --ts-primary-dark: #00695c;
  --ts-primary-light: #e0f2f1;
  --ts-primary-50: #eefaf8;
  --ts-primary-100: #d7f2ee;
  --ts-primary-border: rgba(0, 151, 136, 0.25);
  --radius: 10px;
}

.ts-primary-text {
  color: #009788 !important;
}

.ts-primary-bg {
  background-color: #009788 !important;
}

.ts-primary-bg:hover {
  background-color: #008275 !important;
}

.ts-primary-border {
  border-color: #009788 !important;
}

.ts-link {
  color: #009788;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.ts-link:hover {
  text-decoration: underline;
  opacity: 0.85;
}

/* Hero Section Subtle Grid Pattern with #009788 Theme */
.hero-grid-pattern,
.ts-grid-pattern {
  position: relative;
  overflow: hidden;
}

.hero-grid-pattern::before,
.ts-grid-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(0, 151, 136, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 151, 136, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at 50% 45%, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0) 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0) 75%);
  pointer-events: none;
  z-index: 0;
}

/* Enforce Strict 10px Border Radius System Across All Elements */
:root {
  --radius: 10px;
}

.rounded-10px,
.rounded-15px,
.apple-card,
.ts-card,
.modal-card,
.modal-container,
.dropdown-menu,
.custom-dropdown,
.custom-dropdown button,
.dropdown-trigger,
.faq-item,
.faq-card,
.course-card,
.offer-card,
.feedback-card,
.curriculum-card,
.tech-marquee-card,
.rounded-sm,
.rounded,
.rounded-md,
.rounded-lg,
.rounded-xl,
.rounded-2xl,
.rounded-3xl,
.rounded-full,
.navbar-floating,
.nav-link,
.btn-pill,
.ts-badge,
button,
input,
select,
textarea,
nav,
[class*="rounded-"] {
  border-radius: 10px !important;
}

/* Glassmorphism & Card styling */
.apple-card,
.ts-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.apple-card-hover,
.ts-card-hover {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

.apple-card-hover:hover,
.ts-card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 151, 136, 0.08);
  border-color: rgba(0, 151, 136, 0.3);
}

/* Floating Navbar Entrance Animation */
@keyframes floating-top-down {
  0% {
    opacity: 0;
    transform: translateY(-16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Floating Navbar Transition on Scroll */
.navbar-floating {
  position: fixed !important;
  top: 12px !important;
  left: 12px !important;
  right: 12px !important;
  width: auto !important;
  max-width: 1280px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 0 !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
  border-radius: 10px !important;
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.08) !important;
  z-index: 40 !important;
  animation: floating-top-down 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  transition: padding 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}

#navbar.navbar-floating .site-container {
  width: 100% !important;
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

@media (max-width: 1024px) {
  .navbar-floating {
    left: 8px !important;
    right: 8px !important;
    top: 8px !important;
    width: auto !important;
    max-width: none !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

/* Logo Hover Subtle Rotate & Scale Effect matching CodiCat */
.nav-logo-img {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}
a:hover .nav-logo-img,
.nav-logo-img:hover {
  transform: rotate(-6deg) scale(1.05);
}

/* Fullscreen Mobile Menu Drawer with Smooth Slide and Fade */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: min(380px, 100vw);
  height: 100vh;
  height: 100dvh;
  min-height: 100dvh;
  max-height: 100dvh;
  z-index: 101;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  overflow: hidden;
}

.mobile-drawer.drawer-closed {
  transform: translateX(100%);
}

.mobile-drawer.drawer-open,
.mobile-drawer.active {
  transform: translateX(0);
}

/* Floating Action Buttons (FABs) */
.fab-container {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: auto;
}

.fab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 10px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, opacity 0.25s ease;
  cursor: pointer;
  text-decoration: none !important;
  border: none;
}

@media (min-width: 640px) {
  .fab-container {
    bottom: 24px;
    right: 24px;
    gap: 12px;
  }
  .fab-btn {
    width: 52px;
    height: 52px;
  }
}

.fab-btn:hover {
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

/* Clean pulse animation for WhatsApp FAB */
@keyframes fab-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6), 0 4px 16px rgba(0, 0, 0, 0.15);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0), 0 4px 16px rgba(0, 0, 0, 0.15);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 4px 16px rgba(0, 0, 0, 0.15);
  }
}

.fab-whatsapp-pulse {
  border-radius: 10px !important;
  animation: fab-pulse 2.5s infinite;
}

/* Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Toast Notifications */
#ts-toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  width: min(420px, calc(100vw - 32px));
}

.ts-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid rgba(0, 151, 136, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  font-size: 13px;
  color: #1d1d1f;
  animation: ts-toast-slide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ts-toast-slide {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ts-toast.fade-out {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Infinite Scrolling Technology Marquee (Right to Left with Hover Pause) */
@keyframes tech-scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.tech-marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.tech-marquee-track {
  display: flex;
  width: max-content;
  animation: tech-scroll-left 32s linear infinite;
  will-change: transform;
}

#tech-marquee-section:hover .tech-marquee-track,
.tech-marquee-container:hover .tech-marquee-track,
.tech-marquee-track:hover {
  animation-play-state: paused !important;
}

.tech-marquee-card {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.tech-marquee-card:hover {
  transform: translateY(-2px);
  border-color: #009788 !important;
}

