/* Main CSS for MediConnect Telemedicine Platform */

/* ==================== GENERAL STYLES ==================== */
:root {
  /* Color palette */
  --primary-color: #1a73e8;
  --primary-dark: #0d47a1;
  --primary-light: #e8f0fe;
  --accent-color: #00bfa5;
  --success-color: #4caf50;
  --warning-color: #ff9800;
  --danger-color: #f44336;
  --text-dark: #333333;
  --text-medium: #666666;
  --text-light: #999999;
  --background-light: #f8f9fa;
  --background-white: #ffffff;
  --border-color: #e0e0e0;
  --shadow-color: rgba(0, 0, 0, 0.08);

  /* Typography */
  --font-primary: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-secondary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, sans-serif;
}

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

html {
  font-size: 62.5%; /* Sets 1rem = 10px */
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-light);
}

.container {
  width: 100%;
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 2rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

h1 {
  font-size: 4rem;
}

h2 {
  font-size: 3.2rem;
}

h3 {
  font-size: 2.4rem;
}

h4 {
  font-size: 2rem;
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-medium);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 1rem 2rem;
  font-size: 1.6rem;
  line-height: 1.5;
  border-radius: 0.4rem;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}

.btn-secondary {
  color: var(--primary-color);
  background-color: transparent;
  border-color: var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-light);
}

.btn-outline {
  color: var(--primary-color);
  background-color: transparent;
  border: 1px solid var(--primary-color);
}

.btn-outline:hover {
  color: #fff;
  background-color: var(--primary-color);
}

.btn-lg {
  padding: 1.2rem 2.4rem;
  font-size: 1.8rem;
}

/* ==================== HEADER ==================== */
.main-header {
  background-color: var(--background-white);
  box-shadow: 0 2px 10px var(--shadow-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 8rem;
}

.logo h1 {
  font-size: 2.4rem;
  margin-bottom: 0;
  color: var(--primary-color);
}

.main-nav ul {
  display: flex;
  list-style: none;
}

.main-nav li {
  margin-left: 3rem;
}

.main-nav a {
  color: var(--text-medium);
  font-weight: 500;
  font-size: 1.6rem;
  position: relative;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--primary-color);
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.8rem;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 1.5px;
}

.auth-buttons {
  display: flex;
  align-items: center;
}

.auth-buttons .btn {
  margin-left: 1.5rem;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--background-white);
  min-width: 20rem;
  box-shadow: 0 0.8rem 1.6rem 0 var(--shadow-color);
  z-index: 1;
  border-radius: 0.4rem;
  right: 0;
}

.dropdown-content a {
  color: var(--text-medium);
  padding: 1.2rem 1.6rem;
  text-decoration: none;
  display: block;
  font-size: 1.4rem;
}

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

.dropdown:hover .dropdown-content {
  display: block;
}

.mobile-menu-toggle {
  display: none;
  font-size: 2.4rem;
  color: var(--text-dark);
  cursor: pointer;
}

/* ==================== HERO SECTION ==================== */
.hero {
  padding: 8rem 0;
  background-color: var(--primary-light);
  overflow: hidden;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 4.8rem;
  margin-bottom: 2rem;
  color: var(--primary-dark);
}

.hero-content p {
  font-size: 1.8rem;
  margin-bottom: 3rem;
  color: var(--text-medium);
}

.cta-buttons {
  display: flex;
  gap: 2rem;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

/* ==================== FEATURES SECTION ==================== */
.features {
  padding: 8rem 0;
  background-color: var(--background-white);
}

.section-header {
  text-align: center;
  max-width: 70rem;
  margin: 0 auto 6rem;
}

.section-header h2 {
  margin-bottom: 1.5rem;
}

.section-header p {
  font-size: 1.8rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 3rem;
}

.feature-card {
  background-color: var(--background-white);
  padding: 3rem;
  border-radius: 0.8rem;
  box-shadow: 0 0.5rem 1.5rem var(--shadow-color);
  transition: transform 0.3s ease;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-0.5rem);
}

.feature-icon {
  width: 8rem;
  height: 8rem;
  background-color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
}

.feature-icon i {
  font-size: 3.2rem;
  color: var(--primary-color);
}

.feature-card h3 {
  margin-bottom: 1.5rem;
}

/* ==================== PROCESS SECTION ==================== */
.process {
  padding: 8rem 0;
  background-color: var(--background-light);
}

.process-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100rem;
  margin: 0 auto;
}

.step {
  text-align: center;
  position: relative;
  width: 20rem;
}

.step-number {
  width: 4rem;
  height: 4rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 2rem;
  margin: 0 auto 2rem;
}

.step-icon {
  width: 7rem;
  height: 7rem;
  background-color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
}

.step-icon i {
  font-size: 3rem;
  color: var(--primary-color);
}

.step h3 {
  margin-bottom: 1rem;
}

.step p {
  font-size: 1.4rem;
}

.step-connector {
  flex-grow: 1;
  height: 0.3rem;
  background-color: var(--primary-light);
  margin: 0 1rem;
  position: relative;
  top: -6rem;
}

/* ==================== DOCTORS SECTION ==================== */
.doctors {
  padding: 8rem 0;
  background-color: var(--background-white);
}

.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 3rem;
}

.doctor-card {
  background-color: var(--background-white);
  border-radius: 0.8rem;
  overflow: hidden;
  box-shadow: 0 0.5rem 1.5rem var(--shadow-color);
  transition: transform 0.3s ease;
  text-align: center;
  padding-bottom: 2rem;
}

.doctor-card:hover {
  transform: translateY(-0.5rem);
}

.doctor-image {
  height: 22rem;
  overflow: hidden;
  margin-bottom: 2rem;
}

.doctor-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-card h3 {
  margin-bottom: 0.5rem;
}

.specialty {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.doctor-rating {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  color: #ffc107;
}

.doctor-rating i {
  margin-right: 0.3rem;
}

.doctor-rating span {
  margin-left: 0.5rem;
  color: var(--text-medium);
}

/* ==================== TESTIMONIALS SECTION ==================== */
.testimonials {
  padding: 8rem 0;
  background-color: var(--primary-light);
}

.testimonials-slider {
  display: flex;
  gap: 3rem;
  max-width: 90rem;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial {
  background-color: var(--background-white);
  border-radius: 0.8rem;
  box-shadow: 0 0.5rem 1.5rem var(--shadow-color);
  padding: 3rem;
  flex: 1;
  min-width: 42rem;
}

.testimonial-content {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 2rem;
}

.testimonial-content::before {
  content: '"';
  font-size: 6rem;
  font-family: serif;
  color: var(--primary-light);
  position: absolute;
  top: -2rem;
  left: -1rem;
  line-height: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author img {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  margin-right: 1.5rem;
}

.testimonial-author h4 {
  margin-bottom: 0.3rem;
}

.testimonial-author p {
  color: var(--text-light);
  margin-bottom: 0;
  font-size: 1.4rem;
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}

.testimonial-controls button {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background-color: var(--background-white);
  border: none;
  box-shadow: 0 0.2rem 0.5rem var(--shadow-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.testimonial-controls button:hover {
  background-color: var(--primary-color);
  color: white;
}

/* ==================== CTA SECTION ==================== */
.cta {
  padding: 8rem 0;
  background-color: var(--primary-color);
  color: white;
}

.cta-content {
  max-width: 70rem;
  margin: 0 auto;
  text-align: center;
}

.cta-content h2 {
  color: white;
  margin-bottom: 2rem;
  font-size: 3.6rem;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.8rem;
  margin-bottom: 3rem;
}

.cta .btn-primary {
  background-color: white;
  color: var(--primary-color);
  border-color: white;
}

.cta .btn-primary:hover {
  background-color: transparent;
  color: white;
}

/* ==================== FOOTER ==================== */
.main-footer {
  background-color: #202842;
  color: #fff;
  padding: 6rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-about h3 {
  color: white;
  margin-bottom: 2rem;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--primary-color);
}

.footer-links h4,
.footer-contact h4 {
  color: white;
  margin-bottom: 2rem;
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-contact li {
  display: flex;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
  margin-right: 1rem;
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
  font-size: 1.4rem;
}

/* ==================== RESPONSIVE STYLES ==================== */
@media (max-width: 992px) {
  html {
    font-size: 60%;
  }
  
  .hero .container {
    flex-direction: column;
  }
  
  .hero-image {
    justify-content: center;
    margin-top: 3rem;
  }
  
  .process-steps {
    flex-direction: column;
    gap: 3rem;
  }
  
  .step-connector {
    width: 0.3rem;
    height: 3rem;
    margin: 0;
    top: 0;
  }
}

@media (max-width: 768px) {
  .main-nav,
  .auth-buttons {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .features-grid,
  .doctors-grid {
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  }
  
  .testimonials-slider {
    flex-direction: column;
  }
  
  .testimonial {
    min-width: auto;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 55%;
  }
  
  h1 {
    font-size: 3.2rem;
  }
  
  h2 {
    font-size: 2.8rem;
  }
  
  .hero-content h1 {
    font-size: 3.6rem;
  }
}
