@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --primary-blue: #1A237E;
  --primary-cyan: #00BCD4;
  --primary-green: #5BB35F;
  --whatsapp-green: #25D366;
  --dark-bg: #0A1118;
}

body {
  font-family: 'Poppins', sans-serif;
  -webkit-font-smoothing: antialiased;
}

section {
  scroll-margin-top: 80px;
  /* Adjust based on your header height */
}

html {
  scroll-behavior: smooth;
}

/* Header Glassmorphism & Color Transitions */
#main-header {
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#main-header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  padding-top: 1rem;
  padding-bottom: 1rem;
  color: var(--primary-blue);
}

#main-header.scrolled .nav-link {
  color: #333333;
}

#main-header.scrolled .nav-link:hover {
  color: var(--primary-cyan);
}

#main-header.scrolled #language-switcher {
  color: var(--primary-blue);
}

/* Custom Gradients */
.bg-hero-split {
  background: #FFFFFF;
  position: relative;
}

.bg-hero-split::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(to bottom right, #0F174A, #00BCD4);
  z-index: 0;
}

@media (max-width: 1024px) {
  .bg-hero-split::before {
    width: 100%;
  }
}

/* Card Styling */
.treatment-card {
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  border-radius: 30px;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.01);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
  overflow: hidden;
}

.treatment-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

/* Form Styles */
.form-input {
  background: #F8FAFC;
  border: 2px solid transparent;
  padding: 24px 32px;
  border-radius: 9999px;
  width: 100%;
  transition: all 0.4s ease;
  font-size: 1rem;
  color: #1a1a1a;
}

.form-input:focus {
  background: #FFFFFF;
  border-color: var(--primary-cyan);
  outline: none;
  box-shadow: 0 15px 30px rgba(0, 188, 212, 0.1);
}

.form-textarea {
  border-radius: 35px;
  min-height: 180px;
  resize: none;
}

/* Animation Utilities - Professional Clinic Reveal System */
.reveal-item {
  opacity: 0;
  transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-slide-left {
  transform: translateX(-40px);
}

.reveal-slide-right {
  transform: translateX(40px);
}

.reveal-zoom-out {
  transform: scale(1.05);
}

.reveal-item.visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Staggered transition delays */
.delay-100 {
  transition-delay: 0.1s;
}

.delay-200 {
  transition-delay: 0.2s;
}

.delay-300 {
  transition-delay: 0.3s;
}

/* Staggered transition delays for lists/grids */
.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

.reveal-delay-5 {
  transition-delay: 0.5s;
}

.reveal-delay-6 {
  transition-delay: 0.6s;
}

/* For older fade-in-up (backwards compatibility) */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}



/* Navigation Link Hover */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-cyan);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Footer Specific Styling */
footer h2,
footer h4 {
  letter-spacing: -0.02em;
}

footer a {
  transition: opacity 0.3s ease;
}

footer a:hover {
  opacity: 1;
}

/* Mobile Menu Overlay Fix - Drawer logic is handled via Tailwind and JS */
#mobile-menu:not(.hidden) {
  display: flex !important;
}
/* Spinner Animation */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-spin {
  animation: spin 1s linear infinite !important;
  display: inline-block;
}
