/* -------------------
   Global Styles
-------------------- */
:root {
  --primary-color: #1e88e5;
  --secondary-color: #1565c0;
  --accent-color: #43a047;
  --light-color: #f5f5f5;
  --dark-color: #212121;
  --text-color: #333;
  --white: #fff;
  --max-width: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  background-color: var(--light-color);
  line-height: 1.6;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  color: var(--dark-color);
}

/* -------------------
   Container
-------------------- */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: auto;
}

/* -------------------
   Navbar
-------------------- */
.header {
  background-color: var(--white);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 999;
}

.navbar .nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.nav-logo h2 {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.nav-logo i {
  margin-right: 8px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu li a {
  color: var(--dark-color);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-menu li a:hover {
  color: var(--primary-color);
}

/* Hamburger Menu (Mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--dark-color);
  border-radius: 2px;
}

/* -------------------
   Hero Section
-------------------- */
.hero {
  background-color: var(--white);
  padding: 4rem 0;
}

.hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
  justify-content: space-between;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--text-color);
}

.hero-buttons .btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  margin-right: 1rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  font-weight: bold;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
}

.btn-secondary {
  background-color: var(--accent-color);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: #388e3c;
}

/* -------------------
   About Section
-------------------- */
.about {
  background-color: var(--light-color);
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: center;
}

.about-text {
  flex: 1;
}

.about-text h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.about-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.stat h4 {
  font-size: 1.5rem;
  color: var(--secondary-color);
}

.stat p {
  color: var(--text-color);
}

/* -------------------
   Why Choose Us
-------------------- */
.why-choose-us {
  background-color: var(--white);
  padding: 4rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--light-color);
  padding: 2rem;
  text-align: center;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.feature-card i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.feature-card h3 {
  margin-bottom: 0.5rem;
}

/* -------------------
   Services Tabs
-------------------- */
.services {
  background-color: var(--light-color);
  padding: 4rem 0;
}

.services-tabs {
  text-align: center;
  margin-bottom: 2rem;
}

.tab-btn {
  padding: 0.75rem 1.25rem;
  margin: 0.5rem;
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.tab-btn:hover,
.tab-btn.active {
  background-color: var(--primary-color);
  color: var(--white);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.service-card i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* -------------------
   Responsive
-------------------- */
@media (max-width: 768px) {
  .nav-menu {
    position: absolute;
    top: 60px;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    width: 200px;
    padding: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: none;
  }

  .nav-menu.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .hero-container {
    flex-direction: column;
  }

  .about-content {
    flex-direction: column;
  }
}

/* -----------------------
   Testimonials Section
------------------------ */
.testimonials {
  background-color: var(--white);
  padding: 4rem 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background-color: var(--light-color);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-card .stars {
  color: #fbc02d;
  margin-bottom: 1rem;
}

.testimonial-card p {
  font-style: italic;
  color: #555;
  margin-bottom: 1.5rem;
}

.client-info h4 {
  margin-bottom: 0.25rem;
  color: var(--dark-color);
}

.client-info span {
  font-size: 0.9rem;
  color: #777;
}

/* -----------------------
   FAQ Section
------------------------ */
.faq {
  background-color: var(--light-color);
  padding: 4rem 0;
}

.faq-container {
  max-width: 800px;
  margin: auto;
}

.faq-item {
  border-bottom: 1px solid #ddd;
  padding: 1rem 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question h3 {
  font-size: 1.1rem;
  color: var(--dark-color);
}

.faq-question i {
  transition: transform 0.3s;
}

.faq-answer {
  display: none;
  padding-top: 0.75rem;
  color: #555;
}

.faq-answer.active {
  display: block;
}

.faq-question.active i {
  transform: rotate(180deg);
}

/* -----------------------
   Contact Section
------------------------ */
.contact {
  background-color: var(--white);
  padding: 4rem 0;
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.contact-info {
  flex: 1;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.contact-item h3 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.contact-form {
  flex: 1;
  background-color: var(--light-color);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.form-group {
  margin-bottom: 1.25rem;
}

/* General Button Styles */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background-color: var(--primary-color);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
}

/* Primary Button */
.btn-primary {
  background-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Focus Styles for Accessibility */
.btn:focus {
  outline: 3px solid rgba(100, 149, 237, 0.5);
  outline-offset: 2px;
}

/* Newsletter Specific (optional for spacing) */
.newsletter-form .btn {
  width: 100%;
  margin-top: 1rem;
}

/* Contact Form Specific (optional for alignment) */
.contact-form .btn {
  width: 100%;
}


.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

textarea {
  resize: vertical;
}

/* -----------------------
   Footer
------------------------ */
.footer {
  background-color: var(--dark-color);
  color: var(--white);
  padding: 3rem 0 1rem 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.footer-section h3,
.footer-section h4 {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #ccc;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: var(--white);
}

.social-links a {
  display: inline-block;
  margin-right: 10px;
  color: var(--white);
  font-size: 1.2rem;
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

/* -----------------------
   Modal Styles
------------------------ */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.modal-content {
  background-color: var(--white);
  margin: 5% auto;
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 700px;
  position: relative;
  animation: fadeInModal 0.3s ease;
}

@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.modal-header h2 {
  font-size: 1.5rem;
}

.modal-header .close {
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark-color);
}

.modal-body h3 {
  margin-top: 1rem;
  color: var(--primary-color);
}

.modal-body p {
  margin-bottom: 1rem;
  color: #444;
}

.confirmation-icon {
  font-size: 3rem;
  color: var(--accent-color);
  text-align: center;
  margin-bottom: 1rem;
}

/* Newsletter Form */
.newsletter-form .form-group {
  margin-bottom: 1rem;
}

.newsletter-form label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #333;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.checkbox-group label {
  margin-top: 0.2rem;
}

/* -----------------------
   Responsive Fixes
------------------------ */
@media (max-width: 768px) {
  .contact-content {
    flex-direction: column;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-section h4 {
    margin-top: 1rem;
  }
}

