/* ==========================================================================
   Kadambatt Teleradiology - Main Stylesheet
   ========================================================================== */

/* --- Variables --- */
:root {
  /* Colors */
  --primary-color: #0B3C5D;
  /* Dark Blue */
  --secondary-color: #1CA7A6;
  /* Teal */
  --secondary-color-hover: #158584;
  --text-dark: #333333;
  --text-light: #ffffff;
  --text-muted: #666666;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border-color: #e0e0e0;

  /* Typography */
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.1 5);

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
}

/* --- CSS Reset --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-white);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--primary-color);
}

a {
  text-decoration: none;
  color: var(--secondary-color);
  transition: color var(--transition-normal);
}

a:hover {
  color: var(--primary-color);
}

ul {
  list-style: none;
}

/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.section-padding {
  padding: var(--spacing-xl) 0;
}

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary-color);
}

.text-secondary {
  color: var(--secondary-color);
}

.text-white {
  color: var(--text-light);
}

.bg-light {
  background-color: var(--bg-light);
}

.bg-primary {
  background-color: var(--primary-color);
}

.bg-secondary {
  background-color: var(--secondary-color);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 5px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  font-family: var(--font-body);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: #082d46;
  color: var(--text-light);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--text-light);
}

.btn-secondary:hover {
  background-color: var(--secondary-color-hover);
  color: var(--text-light);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

/* Section Titles */
.section-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-xs);
}

.section-title .underline {
  height: 4px;
  width: 60px;
  background-color: var(--secondary-color);
  margin: 0 auto;
  border-radius: 2px;
}

/* --- Layout & Structure --- */

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.footer-col .logo img {
  height: 60px;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-dark);
  font-weight: 500;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--secondary-color);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width var(--transition-normal);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--primary-color);
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.footer-col h3 {
  color: var(--text-light);
  font-size: 1.2rem;
  margin-bottom: var(--spacing-sm);
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary-color);
}

.footer-col p,
.footer-col ul li {
  color: #d1d5db;
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  color: #d1d5db;
}

.footer-col ul li a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--text-light);
  transition: all var(--transition-normal);
}

.social-links a:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  font-size: 0.9rem;
}

/* --- Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive Layouts --- */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--bg-white);
    flex-direction: column;
    align-items: center;
    padding-top: 2rem;
    transition: left var(--transition-normal);
    box-shadow: var(--shadow-md);
  }

  .nav-links.active {
    left: 0;
  }

  .section-padding {
    padding: var(--spacing-lg) 0;
  }
}

/* ==========================================================================
   Home Page Styles
   ========================================================================== */

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--text-light);
  text-align: center;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://images.unsplash.com/photo-1581594693702-fbdc51b2763b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  opacity: 0.15;
  mix-blend-mode: overlay;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-subheading {
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  font-weight: 300;
  letter-spacing: 1px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* --- About Preview --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-features {
  margin: 1.5rem 0;
}

.about-features li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.about-features i {
  color: var(--secondary-color);
  font-size: 1.2rem;
}

.rounded-img {
  width: 100%;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

/* --- Services Overview --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--bg-white);
  padding: 2.5rem 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  border-bottom: 4px solid transparent;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--secondary-color);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

/* --- Why Choose Us --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-box {
  padding: 2rem;
}

.stat-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(28, 167, 166, 0.1);
  color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
  transition: all var(--transition-normal);
}

.stat-box:hover .stat-icon {
  background-color: var(--secondary-color);
  color: var(--text-light);
  transform: rotateY(180deg);
}

/* --- Process Timeline --- */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  height: 100%;
  width: 2px;
  background-color: rgba(11, 60, 93, 0.2);
}

.timeline-step {
  display: flex;
  gap: 2rem;
  position: relative;
}

.step-number {
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 0 0 5px var(--bg-light);
  position: relative;
  z-index: 2;
}

.step-content {
  background-color: var(--bg-white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  flex-grow: 1;
  position: relative;
}

.step-content::before {
  content: '';
  position: absolute;
  top: 20px;
  left: -8px;
  width: 16px;
  height: 16px;
  background-color: var(--bg-white);
  transform: rotate(45deg);
}

/* --- Testimonials Slider --- */
.testimonial-slider {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  background-color: var(--bg-white);
  padding: 3rem;
  border-radius: 15px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.testimonial-container {
  display: flex;
  position: relative;
  min-height: 250px;
}

.testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.5s ease-in-out;
  pointer-events: none;
}

.testimonial-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
}

.quote-icon {
  font-size: 3rem;
  color: rgba(28, 167, 166, 0.2);
  margin-bottom: 1.5rem;
}

.testimonial-text {
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.testimonial-author {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.testimonial-hospital {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.slider-controls {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.slider-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.slider-btn:hover {
  color: var(--secondary-color);
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-color) 0%, #062438 100%);
  padding: 5rem 0;
  color: var(--text-light);
}

.cta-banner h2 {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.cta-banner p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-subheading {
    font-size: 1.2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image {
    order: -1;
  }

  /* Image on top for mobile */
  .timeline::before {
    left: 20px;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}