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

:root {
  --primary: #0077b6;
  /* Premium Medical Blue Vibrant */
  --primary-dark: #023e8a;
  --secondary: #2b2d42;
  /* Anthracite Gray */
  --secondary-light: #8d99ae;
  --accent: #00b4d8;
  --bg: #ffffff;
  /* Pure White */
  --text: #2b2d42;
  /* Anthracite Gray */
  --text-muted: #6b7280;
  --white: #ffffff;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-hero: 0 25px 50px -12px rgb(0 0 0 / 0.25);

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: 'Outfit', sans-serif;
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg);
  color: var(--text);
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

/* Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--secondary);
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary);
}

.text-secondary {
  color: var(--secondary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px 0 rgba(0, 119, 182, 0.39);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 119, 182, 0.4);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--secondary-light);
  transform: translateY(-2px);
}

/* Flashing Effect (Vibrant Blue now) */
@keyframes flash-blue {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 119, 182, 0.7);
    background: var(--primary);
  }

  50% {
    box-shadow: 0 0 0 15px rgba(0, 119, 182, 0);
    background: #00b4d8;
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 119, 182, 0);
    background: var(--primary);
  }
}

.btn-emergency {
  animation: flash-blue 2s infinite;
  font-size: 1.1rem;
  padding: 1rem 2rem;
  border-radius: 50px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.header-bottom {
  padding: 1rem 0;
}

.header-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

nav a {
  font-weight: 600;
  color: var(--secondary);
  position: relative;
  font-size: 1rem;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  min-width: 250px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  overflow: hidden;
  z-index: 1001;
  padding: 0.5rem 0;
}

.dropdown:hover .dropdown-content {
  display: flex;
  flex-direction: column;
}

.dropdown-content a {
  padding: 0.75rem 1.5rem;
  display: block;
  font-size: 0.95rem;
  border-bottom: 1px solid #f3f4f6;
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background-color: #f8f9fc;
  color: var(--primary);
}

.dropdown-content a::after {
  display: none;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 100px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--white) 0%, #f0f4f8 100%);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 600px;
  animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(30px);
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  color: var(--secondary);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--secondary-light);
}

/* Image overlay completely circular */
.image-overlay {
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  width: 50%;
  height: 80vh;
  z-index: 2;
  animation: slideLeft 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translate(50px, -50%);
  }

  to {
    opacity: 1;
    transform: translate(0, -50%);
  }
}

/* Sharp filter on image */
.image-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
  border: 8px solid var(--white);
  animation: float 6s ease-in-out infinite;
}

/* Marquee Partners */
.marquee-container {
  width: 100%;
  overflow: hidden;
  background: var(--white);
  padding: 3rem 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.marquee-container h4 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--secondary-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
}

.marquee {
  display: flex;
  width: max-content;
  animation: scroll 30s linear infinite;
  gap: 4rem;
  align-items: center;
  padding-left: 4rem;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.partner-logo {
  font-weight: 800;
  font-size: 1.5rem;
  color: #cbd5e1;
  /* Elegant Gray */
  transition: var(--transition);
  text-transform: uppercase;
  white-space: nowrap;
}

.partner-logo:hover {
  color: var(--primary);
  transform: scale(1.05);
}

/* Symptom Grid */
.symptom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.symptom-card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.symptom-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.symptom-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* Contact Form */
.smart-form {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 800px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--secondary);
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

/* Reviews Carousel */
.carousel-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 2rem;
  padding: 2rem 0;
  scrollbar-width: none;
}

.carousel-container::-webkit-scrollbar {
  display: none;
}

.review-card {
  min-width: 350px;
  scroll-snap-align: start;
  background: var(--bg);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
}

.stars {
  color: #fbbf24;
  /* Gold */
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* Services Section */
.services {
  padding: 6rem 0;
  background: var(--bg);
}

.grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  transition: var(--transition);
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: #f0f9ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  color: var(--primary);
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--primary);
  color: var(--white);
}

/* Page Headers for Services */
.page-header {
  padding-top: 140px;
  padding-bottom: 60px;
  background: var(--secondary);
  color: var(--white);
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.page-header p {
  color: var(--secondary-light);
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
}

.content-section {
  padding: 5rem 0;
  background: var(--white);
}

.contact-card {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  color: var(--white);
  margin: 4rem 0;
  box-shadow: var(--shadow-lg);
}

.contact-card h2 {
  color: var(--white);
}

/* Chatbot AI Assistant */
#chatbot-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 65px;
  height: 65px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  transition: var(--transition);
  animation: bounce 2s infinite;
}

#chatbot-btn:hover {
  transform: scale(1.1);
  background: var(--primary-dark);
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-15px);
  }

  60% {
    transform: translateY(-7px);
  }
}

.chatbot-window {
  position: fixed;
  bottom: 110px;
  right: 30px;
  width: 350px;
  height: 500px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hero);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.9);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border: 1px solid #e2e8f0;
}

.chatbot-window.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}

.chatbot-header {
  background: var(--secondary);
  color: var(--white);
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.chatbot-messages {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #f8f9fc;
}

.msg {
  max-width: 80%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  position: relative;
  animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.msg.ai {
  background: var(--white);
  color: var(--text);
  border-bottom-left-radius: 0;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
}

.msg.user {
  background: var(--primary);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 0;
}

.chatbot-input {
  display: flex;
  padding: 1rem;
  background: var(--white);
  border-top: 1px solid #e2e8f0;
}

.chatbot-input input {
  flex: 1;
  border: 1px solid #e2e8f0;
  border-radius: 50px;
  padding: 0.75rem 1rem;
  outline: none;
  font-family: inherit;
  transition: var(--transition);
}

.chatbot-input input:focus {
  border-color: var(--primary);
}

.chatbot-input button {
  background: var(--primary);
  color: var(--white);
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  margin-left: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.chatbot-input button:hover {
  background: var(--primary-dark);
}

/* Floating Action Button for mobile */
.fab-emergency {
  display: none;
}

/* Responsive */
@media (max-width: 992px) {
  h1 {
    font-size: 2.8rem;
  }

  .image-overlay {
    width: 45%;
    right: -10%;
  }
}

@media (max-width: 768px) {
  .header-top {
    display: none;
  }

  nav ul {
    display: none;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 120px;
  }

  .image-overlay {
    position: relative;
    width: 90%;
    right: 0;
    transform: none;
    animation: slideLeftMobile 1.2s forwards;
    margin-top: 2rem;
  }

  @keyframes slideLeftMobile {
    from {
      opacity: 0;
      transform: translateY(50px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .hero-content {
    margin: 0 auto;
  }

  h1 {
    font-size: 2.2rem;
  }

  .page-header {
    padding-top: 120px;
  }

  .chatbot-window {
    width: 90%;
    right: 5%;
    height: 60vh;
    bottom: 100px;
  }
}