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

:root {
  --primary: #0f172a;
  --secondary: #3b82f6; /* More visible Electric Blue */
  --accent: #F3F4F6;
  --text: #1F2937;
  --liquid-glass: rgba(255, 255, 255, 0.1);
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
}

/* Custom Utilities */
.bg-navy { background-color: var(--primary); }
.text-navy { color: var(--primary); }
.bg-teal { background-color: var(--secondary); }
.text-teal { color: var(--secondary); }
.bg-topbar { background-color: #2A3FF4; }

/* Glassmorphism & Liquid Glass */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

.liquid-glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2rem;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05),
              0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink {
  from, to { border-color: transparent }
  50% { border-color: var(--secondary) }
}

.animate-fadeInUp { animation: fadeInUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.animate-float { animation: float 5s ease-in-out infinite; }
.animate-gradient {
  background: linear-gradient(-45deg, #0f172a, #3b82f6, #0f172a, #1d4ed8);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
}

/* Premium Hero Animations */
@keyframes imageZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.15); }
}

@keyframes textReveal {
  0% { opacity: 0; transform: translateY(40px) skewY(2deg); }
  100% { opacity: 1; transform: translateY(0) skewY(0deg); }
}

@keyframes progressFill {
  0% { width: 0%; }
  100% { width: 100%; }
}

.slide-zoom {
  animation: imageZoom 8s linear infinite alternate;
}

.reveal-stagger {
  opacity: 0;
  animation: textReveal 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.noise-overlay {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
  z-index: 5;
}

.mesh-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.25) 0%, transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(30, 58, 138, 0.3) 0%, transparent 50%),
              radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.35) 0%, transparent 70%);
  filter: blur(60px);
  z-index: 1;
  animation: liquidMove 15s ease-in-out infinite alternate;
}

@keyframes liquidMove {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.1) translate(2%, 2%); }
  100% { transform: scale(1) translate(-1%, 1%); }
}

/* Ambient Orbs */
.ambient-orb-1 {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  top: -10%;
  left: -10%;
  filter: blur(80px);
  animation: orbit 25s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.ambient-orb-2 {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 64, 175, 0.2) 0%, transparent 70%);
  bottom: -15%;
  right: -10%;
  filter: blur(100px);
  animation: orbit 30s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}

@keyframes orbit {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(8%, 6%) scale(1.08); }
  100% { transform: translate(-4%, -4%) scale(0.92); }
}

/* Floating Animations for Info Cards */
@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes float-fast {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(-1.5deg); }
}

.animate-float-slow {
  animation: float-slow 6s ease-in-out infinite;
}

.animate-float-fast {
  animation: float-fast 4.5s ease-in-out infinite;
}

/* Glassmorphism Badge */
.glass-badge {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Diagonal Mask for Slider Image */
.hero-image-mask {
  clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
  border-radius: 2rem;
}

@media (max-width: 1024px) {
  .hero-image-mask {
    clip-path: none;
    border-radius: 1.5rem;
  }
}

/* Slide elements individual entry transition */
.slide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 10;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s;
}

.slide.opacity-100 {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 20;
}

.slide .reveal-stagger {
  animation: none;
  transform: translateY(30px);
  opacity: 0;
  transition: transform 1s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 1s ease;
}

.slide.opacity-100 .reveal-stagger {
  transform: translateY(0);
  opacity: 1;
}

/* Image zoom transition */
.slide .slide-zoom-wrapper {
  transform: scale(1.1) rotate(1deg);
  opacity: 0;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1s ease;
}

.slide.opacity-100 .slide-zoom-wrapper {
  transform: scale(1) rotate(0deg);
  opacity: 1;
}

/* Floating badge transition */
.slide .floating-badge-el {
  transform: translateY(20px) scale(0.9);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.8s ease;
}

.slide.opacity-100 .floating-badge-el {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.progress-indicator {
  height: 4px;
  width: 80px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.progress-indicator:hover {
  background: rgba(255, 255, 255, 0.3);
  height: 5px;
}

.progress-indicator.active .progress-fill {
  background: var(--secondary);
  height: 100%;
  width: 0%;
  animation: progressFill 6s linear forwards;
}

.progress-indicator.completed .progress-fill {
  width: 100%;
  background: var(--secondary);
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* Enhanced Hover */
.hover-premium {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-premium:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.hover-glow:hover {
  box-shadow: 0 0 20px rgba(0, 168, 168, 0.4);
}

/* FAQ Accordion */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-content {
  max-height: 500px;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-icon {
  transition: transform 0.3s ease;
}
/* Geometric Background */
.bg-geometric {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l25.98 15v30L30 60 4.02 45V15z' fill-rule='evenodd' stroke='%23e5e7eb' fill='none'/%3E%3C/svg%3E");
}

/* Back to Top Button */
#back-to-top {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* ═══════════════════════════════════════════════════════
   DARK / LIGHT MODE TOGGLE — PILL STYLE
═══════════════════════════════════════════════════════ */
#theme-toggle {
  position: fixed;
  bottom: 80px;
  left: 20px;
  z-index: 9000;
  width: 176px;
  height: 52px;
  border-radius: 100px;
  border: 2px solid #d1d5db;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px;
  background: #f3f4f6;
  box-shadow: 0 4px 18px rgba(0,0,0,0.12);
  transition: background 0.35s ease,
              border-color 0.35s ease,
              box-shadow 0.35s ease;
  font-family: 'Outfit', sans-serif;
}
#theme-toggle:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}

/* Label inside the pill */
#theme-toggle .tt-label {
  flex: 1;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #111827;
  user-select: none;
  padding: 0 2px;
  transition: color 0.3s ease;
}

/* Icon circle */
#theme-toggle .tt-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #374151;
  transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

/* ── Dark state ── */
html.dark #theme-toggle {
  background: #0f172a;
  border-color: #334155;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
html.dark #theme-toggle .tt-label {
  color: #f1f5f9;
}
html.dark #theme-toggle .tt-icon {
  background: transparent;
  border-color: #475569;
  color: #e2e8f0;
}

/* ═══════════════════════════════════════════════════════
   DARK MODE — CSS CUSTOM PROPERTIES
═══════════════════════════════════════════════════════ */
html.dark {
  --dm-bg:          #0a0f1a;
  --dm-surface:     #111827;
  --dm-surface2:    #1a2436;
  --dm-border:      rgba(255,255,255,0.08);
  --dm-text:        #e2e8f0;
  --dm-text-muted:  #94a3b8;
  --dm-card:        #131e30;
}

/* Base body */
html.dark body {
  background-color: var(--dm-bg) !important;
  color: var(--dm-text);
}

/* ── Header ── */
html.dark header {
  background: rgba(10, 15, 26, 0.95) !important;
  border-bottom-color: var(--dm-border) !important;
}
html.dark header a,
html.dark header nav a {
  color: var(--dm-text) !important;
}
html.dark header a:hover,
html.dark header nav a:hover {
  color: #3b82f6 !important;
}
html.dark #mobile-menu {
  background: var(--dm-surface) !important;
  border-top-color: var(--dm-border) !important;
}
/* Dropdown menus */
html.dark header nav .absolute {
  background: var(--dm-surface) !important;
  border-color: var(--dm-border) !important;
}
html.dark header nav .absolute a:hover {
  background-color: var(--dm-surface2) !important;
}

/* ── Top bar ── */
html.dark .bg-topbar {
  background-color: #0d1526 !important;
}

/* ── White/Light sections → dark ── */
html.dark .bg-white,
html.dark [class*="bg-white"] {
  background-color: var(--dm-surface) !important;
}
html.dark .bg-gray-50,
html.dark [class*="bg-gray-50"] {
  background-color: var(--dm-surface2) !important;
}
html.dark .bg-gray-100,
html.dark [class*="bg-gray-100"] {
  background-color: #1e293b !important;
}
html.dark [class*="bg-\[#f8fafc\]"] {
  background-color: var(--dm-bg) !important;
}

/* ── Text colours ── */
html.dark .text-gray-600,
html.dark [class*="text-gray-600"] { color: var(--dm-text-muted) !important; }
html.dark .text-gray-500,
html.dark [class*="text-gray-500"] { color: #64748b !important; }
html.dark .text-gray-400,
html.dark [class*="text-gray-400"] { color: #64748b !important; }
html.dark .text-gray-300,
html.dark [class*="text-gray-300"] { color: #94a3b8 !important; }
html.dark .text-navy,
html.dark [class*="text-navy"]     { color: #e2e8f0 !important; }

/* ── Borders ── */
html.dark .border-gray-100,
html.dark [class*="border-gray-100"] { border-color: var(--dm-border) !important; }
html.dark .border-gray-200,
html.dark [class*="border-gray-200"] { border-color: rgba(255,255,255,0.1) !important; }
html.dark .border-gray-800,
html.dark [class*="border-gray-800"] { border-color: rgba(255,255,255,0.07) !important; }

/* ── Cards / elevated surfaces ── */
html.dark .rounded-3xl.shadow-xl,
html.dark .rounded-3xl.shadow-lg,
html.dark .rounded-\[2\.5rem\],
html.dark .rounded-\[3rem\] {
  background-color: var(--dm-card) !important;
  border-color: var(--dm-border) !important;
}

/* ── Shadow adjustments ── */
html.dark .shadow-xl  { box-shadow: 0 20px 40px rgba(0,0,0,0.5) !important; }
html.dark .shadow-lg  { box-shadow: 0 10px 24px rgba(0,0,0,0.4) !important; }
html.dark .shadow-2xl { box-shadow: 0 24px 60px rgba(0,0,0,0.6) !important; }
html.dark [class*="shadow-gray"] { box-shadow: none !important; }

/* ── Form inputs ── */
html.dark input[type="text"],
html.dark input[type="email"],
html.dark textarea,
html.dark select {
  background-color: var(--dm-surface2) !important;
  border-color: rgba(255,255,255,0.1) !important;
  color: var(--dm-text) !important;
}
html.dark input::placeholder,
html.dark textarea::placeholder {
  color: #475569 !important;
}

/* ── Footer ── */
html.dark footer {
  background-color: #040912 !important;
}

/* ── Geometric BG pattern (invert for dark) ── */
html.dark .bg-geometric {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l25.98 15v30L30 60 4.02 45V15z' fill-rule='evenodd' stroke='%23334155' fill='none'/%3E%3C/svg%3E") !important;
}

/* ── Nav "Appointment" / CTA button in header ── */
html.dark header a.bg-teal {
  background-color: #3b82f6 !important;
  color: #ffffff !important;
}

/* ── Keep navy/teal branded sections unchanged ── */
html.dark .bg-navy,
html.dark section.bg-navy,
html.dark [class*="from-navy"],
html.dark footer.bg-\[#050C16\] {
  /* these are already dark, keep them */
}

/* Smooth transition for all theme changes */
body,
header,
section,
footer,
div,
a,
p,
h1,h2,h3,h4,h5,h6,
input,textarea,button {
  transition: background-color 0.3s ease, color 0.2s ease, border-color 0.3s ease;
}

