/* ===== THEME VARIABLES ===== */
:root {
  --bg-body: #f4f6f9;
  --text-color: #333;
  --header-bg: #004d40;
  --header-text: #fff;
  --nav-hover-bg: #e0f2f1;
  --nav-hover-text: #004d40;
  --main-title-color: #00695c;
  --footer-bg: #e0f2f1;
  --footer-text: #004d40;
  --accent-color: #009688;
}

[data-theme="dark"] {
  --bg-body: #121212;
  --text-color: #e4e4e4;
  --header-bg: #1f1f1f;
  --header-text: #f4f4f4;
  --nav-hover-bg: #333;
  --nav-hover-text: #f4f4f4;
  --main-title-color: #80cbc4;
  --footer-bg: #1e1e1e;
  --footer-text: #ccc;
  --accent-color: #80cbc4;
}

/* ===== GLOBAL RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
    "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===== HEADER ===== */
header {
  background-color: var(--header-bg);
  color: var(--header-text);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 1rem 1rem;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.header-title {
  text-align: left;
  font-size: 2rem;
  font-weight: 600;
  cursor: pointer;
}

/* ===== NAVIGATION ===== */
nav {
  position: absolute;
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
  display: flex;
  gap: 1rem;
}

nav a {
  color: var(--header-text);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

nav a:hover {
  background-color: var(--nav-hover-bg);
  color: var(--nav-hover-text);
}

/* ===== TOGGLE BUTTON ===== */
.theme-toggle {
  background: none;
  border: 1px solid var(--header-text);
  color: var(--header-text);
  font-size: 1rem;
  padding: 0.4rem 0.8rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.theme-toggle:hover {
  background-color: var(--nav-hover-bg);
  color: var(--nav-hover-text);
}

/* ===== HERO SECTION ===== */
#hero {
  padding: 5rem 2rem;
  background: linear-gradient(to right, #e0f7fa, #fff);
  color: var(--text-color);
  transition: background 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] #hero {
  background: linear-gradient(to right, #1a1a1a, #121212);
  color: var(--text-color);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  animation: fadeInUp 1s ease forwards;
}

#hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--main-title-color);
  margin-bottom: 1.2rem;
}

#hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.cta-button {
  background-color: var(--accent-color);
  color: #fff;
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
  border: none;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
  background-color: #00796b;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== FEATURES SECTION ===== */
.section {
  padding: 5rem 2rem;
  background-color: var(--bg-body);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.section h2 {
  font-size: 2.2rem;
  color: var(--main-title-color);
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 700;
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.feature-item {
  background-color: #fff;
  color: var(--text-color);
  padding: 2rem 1.5rem;
  border-radius: 12px;
  max-width: 320px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .feature-item {
  background-color: #1e1e1e;
  color: var(--text-color);
  box-shadow: 0 6px 12px rgba(255, 255, 255, 0.05);
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.feature-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.feature-item h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--main-title-color);
}

.feature-item p {
  font-size: 1rem;
  line-height: 1.5;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-slider {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem 0;
}

.testimonial {
  min-width: 300px;
  background-color: var(--bg-body);
  color: var(--text-color);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
  scroll-snap-align: start;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.testimonial p {
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial span {
  font-weight: bold;
  color: var(--main-title-color);
}

/* ===== CTA SECTION ===== */
#cta {
  padding: 3rem 2rem;
  background-color: var(--accent-color);
  color: #fff;
  text-align: center;
}

#cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

#cta p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* ===== FOOTER ===== */
footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  text-align: center;
  padding: 1.2rem;
  font-size: 0.95rem;
  margin-top: auto;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header-title {
    font-size: 1.6rem;
    cursor: pointer;
  }

  nav {
    position: static;
    justify-content: center;
    transform: none;
    margin-top: 1rem;
    flex-wrap: wrap;
  }

  nav a {
    padding: 0.4rem 0.8rem;
    font-size: 0.95rem;
  }

  #hero h1 {
    font-size: 2rem;
  }

  .features-grid {
    flex-direction: column;
    align-items: center;
  }

  .testimonials-slider {
    flex-direction: column;
  }

  .feature-item {
    max-width: 90%;
  }
}

/* ===== AUTO SCROLL FOR TESTIMONIALS ===== */
.testimonials-slider::-webkit-scrollbar {
  height: 8px;
}

.testimonials-slider::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
  
}

.testimonials-slider::-webkit-scrollbar-track {
  background: transparent;
}

[data-theme="dark"] .testimonials-slider::-webkit-scrollbar-thumb {
  background-color: #555;
}

.testimonial>img{
  position: relative;
  left: 25%;
  border-radius: 50%;
}

.loading-text-global{
  font-weight: bold;
  font-size: 25px;
  color: var(--main-title-color, #00695c);
}
