/* 
==========================================================================
   BookMyDoc - Premium Healthcare SaaS Styles V2
   Inspired by top-tier platforms (Practo, Apollo)
========================================================================== 
*/

:root {
  /* Color Palette - Strict Blue & White Theme */
  --primary: #0052CC; /* Trustworthy Medical Blue */
  --primary-hover: #003d99;
  --primary-soft: rgba(0, 82, 204, 0.08);
  
  --secondary: #42526E; /* Slate Gray for secondary text */
  --dark: #091E42; /* Very dark blue for headings */
  
  --bg-white: #FFFFFF;
  --bg-light: #F4F5F7;
  --bg-light-blue: #F7F9FD;
  
  --success: #36B37E;
  --success-soft: rgba(54, 179, 126, 0.1);
  --warning: #FFAB00;
  
  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  /* Utilities */
  --transition: all 0.25s ease-in-out;
  --shadow-sm: 0 2px 4px rgba(9, 30, 66, 0.04), 0 4px 8px rgba(9, 30, 66, 0.04);
  --shadow-md: 0 8px 16px rgba(9, 30, 66, 0.06);
  --shadow-lg: 0 16px 32px rgba(9, 30, 66, 0.08);
  --shadow-2xl: 0 24px 48px rgba(9, 30, 66, 0.12);
}

/* Base Styles */
body {
  font-family: var(--font-sans);
  color: var(--secondary);
  background-color: var(--bg-white);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: var(--font-heading);
  color: var(--dark);
  letter-spacing: -0.02em;
}

/* Typography Utilities */
.tracking-wider { letter-spacing: 0.12em; }
.tracking-wide { letter-spacing: 0.05em; }
.fw-medium { font-weight: 500; }
.fw-semibold { font-weight: 600; }
.fw-extrabold { font-weight: 800; }

.text-primary { color: var(--primary) !important; }
.text-dark { color: var(--dark) !important; }
.text-secondary { color: var(--secondary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.bg-primary-soft { background-color: var(--primary-soft) !important; }
.bg-light-blue { background-color: var(--bg-light-blue) !important; }
.bg-success-soft { background-color: var(--success-soft) !important; }
.bg-dark { background-color: var(--dark) !important; }
.btn-white { background-color: var(--bg-white); color: var(--primary); }
.btn-white:hover { background-color: var(--bg-light); color: var(--primary-hover) !important; }

/* Buttons */
.btn {
  font-family: var(--font-sans);
  transition: var(--transition);
  letter-spacing: 0.01em;
}
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}
.hover-lift {
  transition: var(--transition);
}
.hover-lift:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md) !important;
}

/* Navbar */
.navbar {
  padding: 1.5rem 0;
}
.navbar.scrolled {
  padding: 1rem 0;
  background-color: rgba(255, 255, 255, 0.98) !important;
  box-shadow: var(--shadow-sm) !important;
  backdrop-filter: blur(10px);
}
.brand-logo {
  /* Logo originally ~40x40 to ~120x120 depending on state. 
     Reducing by 70% means making it very compact. */
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--primary-soft);
}
.brand-text {
  font-size: 1.25rem;
  color: var(--dark);
}
.nav-link {
  color: var(--secondary) !important;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--primary) !important;
}
.hover-primary {
  transition: var(--transition);
}
.hover-primary:hover {
  color: var(--primary) !important;
}

/* Sections Global */
.section-padding {
  padding: 120px 0;
}
@media (max-width: 991px) {
  .section-padding { padding: 80px 0; }
}

/* Hero Section */
.hero-section {
  padding-top: 80px; /* offset navbar */
}
.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
}
.hero-subtitle {
  font-size: 1.25rem;
}
.phone-frame {
  max-width: 300px;
  border-radius: 2.5rem;
}
.blur-blob {
  filter: blur(60px);
  width: 400px;
  height: 400px;
  z-index: -1;
}
.floating-card {
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}
.grayscale { filter: grayscale(100%); transition: var(--transition); }
.grayscale:hover { filter: grayscale(0%); opacity: 1 !important; }

/* How It Works (4 Steps) */
.step-card {
  transition: var(--transition);
}
.border-dashed {
  border-style: dashed !important;
}

/* Features */
.modern-feature-card {
  cursor: pointer;
}
.hover-border-primary {
  transition: var(--transition);
}
.hover-border-primary:hover {
  border-color: var(--primary) !important;
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}
.icon-square {
  width: 64px;
  height: 64px;
}

/* App Showcase Carousel */
.screenshot-carousel-container {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  padding-bottom: 2rem;
}
.screenshot-carousel-container::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}
.screenshot-track {
  display: flex;
  width: max-content;
  padding: 0 2rem;
}
.phone-frame-sm {
  width: 280px;
  height: 560px;
  border-radius: 2rem;
  background-color: var(--bg-white);
  padding: 8px;
  box-shadow: var(--shadow-lg);
  border: 4px solid #f8f9fa;
}
.phone-frame-sm img {
  height: 100%;
  width: 100%;
  border-radius: 1.5rem;
  object-fit: cover;
}
.screenshot-item {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.screenshot-item:hover {
  transform: translateY(-15px) scale(1.02);
}

/* Alternating Heights for Visual Rhythm */
.screenshot-item:nth-child(even) {
  margin-top: 30px;
}



/* Footer */
footer {
  font-size: 0.9rem;
}

/* Back to Top */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  display: none;
  z-index: 99;
  transition: var(--transition);
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .display-5 { font-size: 2.25rem; }
  .phone-frame { max-width: 250px; }
  .phone-frame img { height: 500px !important; }
}
