/* ==========================================================================
   1. GLOBAL STYLES & CSS VARIABLES
   ========================================================================== */

:root {
  /* Color Palette */
  --primary-color: #731d77;      /* Deep Navy Blue */
  --secondary-color: #F4F7F9;    /* Light Gray */
  --accent-color: #df46e7;       /* Teal Green */
  --accent-hover-color: #9e33a3; /* Darker Teal */
  --white-color: #FFFFFF;
  --dark-text-color: #333333;
  --light-text-color: #666666;

  /* Typography */
  --font-primary: 'Poppins', sans-serif; /* Headings */
  --font-secondary: 'Lato', sans-serif;   /* Body */

  /* Layout & Sizing */
  --header-height: 80px;
  --border-radius: 8px;
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  color: var(--dark-text-color);
  line-height: 1.6;
  background-color: var(--white-color);
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 600;
  color: var(--primary-color);
}

a {
  text-decoration: none;
  color: var(--accent-color);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-hover-color);
}

ul {
  list-style: none;
}

/* ==========================================================================
   2. REUSABLE COMPONENTS & UTILITY CLASSES
   ========================================================================== */



   


.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.section-padding {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--light-text-color);
  max-width: 600px;
  margin-bottom: 40px;
}

.text-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--font-primary);
  font-weight: 500;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--white-color);
}

.btn-primary:hover {
  background-color: var(--accent-hover-color);
  color: var(--white-color);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(44, 165, 141, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--white-color);
  border-color: var(--white-color);
}

.btn-secondary:hover {
  background-color: var(--white-color);
  color: var(--primary-color);
}

/* ==========================================================================
   3. HEADER & NAVIGATION
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
  background-color: var(--white-color);
  box-shadow: var(--box-shadow);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.logo {
  font-family: var(--font-primary);
  font-size: 1.8rem;
  font-weight: 700;
  transition: color 0.3s ease;
}

.header:not(.scrolled) .logo {
  color: var(--accent-color);
}

.header.scrolled .logo, .logo:hover {
  color: var(--accent-color);
}

.nav-list {
  display: flex;
  gap: 30px;
}

.nav-link {
  font-family: var(--font-primary);
  font-weight: 500;
  position: relative;
  padding-bottom: 5px;
  transition: color 0.3s ease;
}

.header:not(.scrolled) .nav-link {
  color: var(--accent-color);
}

.header.scrolled .nav-link {
  color: var(--primary-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ==========================================================================
   4. PAGE SECTIONS
   ========================================================================== */

/* Banner Section */
.banner {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white-color);
}

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.banner-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 35, 66, 0.7);
}

.banner-content {
  max-width: 800px;
}

.banner-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--white-color);
  margin-bottom: 20px;
}

.banner-subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.banner-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* About Section */
.about {
  background-color: var(--secondary-color);
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

/* Services Section */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  background: var(--white-color);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.service-icon {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

/* Testimonials Section */
.testimonials {
  background-color: var(--secondary-color);
}

.testimonial-carousel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  background: var(--white-color);
  padding: 30px;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--box-shadow);
}

.testimonial-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid var(--accent-color);
}

.testimonial-rating {
  color: #FFC107;
  margin-bottom: 15px;
}

.testimonial-quote {
  font-style: italic;
  color: var(--light-text-color);
  margin-bottom: 20px;
}

.testimonial-name {
  font-size: 1.2rem;
  color: var(--primary-color);
}

.testimonial-role {
  font-size: 0.9rem;
  color: var(--light-text-color);
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: center;
}

.contact-list {
  margin-top: 30px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.contact-list i {
  color: var(--accent-color);
  font-size: 1.5rem;
  width: 25px; /* Ensures alignment */
  text-align: center;
}

.contact-form-wrapper {
  background-color: var(--white-color);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  position: relative;
  overflow: hidden;
}

.form-group {
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  border-radius: var(--border-radius);
  border: 1px solid #ddd;
  font-family: var(--font-secondary);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-color);
}

.form-btn {
  width: 100%;
  padding: 15px;
}

.form-success-message {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.9);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.contact-form-wrapper.submitted .form-success-message {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.contact-form-wrapper.submitted .contact-form {
  opacity: 0;
  visibility: hidden;
}

.success-icon {
  font-size: 4rem;
  color: var(--accent-color);
  margin-bottom: 20px;
}

/* FAQ Section */
.faq {
  background-color: var(--secondary-color);
}

.faq-accordion {
  max-width: 800px;
  margin: 40px auto 0;
}

.faq-item {
  border-bottom: 1px solid #ddd;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px;
  text-align: left;
  font-family: var(--font-primary);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--primary-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question i {
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer p {
  padding: 0 20px 20px;
  color: var(--light-text-color);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

/* ==========================================================================
   5. FOOTER
   ========================================================================== */

.footer {
  background-color: var(--primary-color);
  color: var(--white-color);
  padding-top: 80px;
}

/* Newsletter in Footer */
.footer-newsletter {
  background-color: var(--accent-color);
  padding: 40px;
  border-radius: var(--border-radius);
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.footer-newsletter h3 {
  color: var(--white-color);
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
  align-items: center;
}

.newsletter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  width: 100%;
  max-width: 700px;
}

.newsletter-form input[type="text"],
.newsletter-form input[type="email"],
.newsletter-form input[type="tel"],
.newsletter-form input[type="date"] {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: var(--border-radius);
  font-family: var(--font-secondary);
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.checkbox-container input[type="checkbox"] {
  accent-color: var(--primary-color);
}

.checkbox-container a {
  color: var(--white-color);
  text-decoration: underline;
}

.unsubscribe-text {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 10px;
}

.unsubscribe-text a {
  color: rgba(255, 255, 255, 0.9);
}

.newsletter-form .btn {
  border: 2px solid var(--white-color);
  width: 100%;
  max-width: 300px;
  margin-top: 10px;
}

.newsletter-success-message {
  display: none;
  color: var(--white-color);
  font-weight: 500;
  margin-top: 15px;
}

/* Main Footer Content */
.footer-bottom {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 30px;
  padding-bottom: 40px;
}

.footer-col h4 {
  color: var(--white-color);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--white-color);
  padding-left: 5px;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.8);
}

.footer .logo {
  color: var(--white-color);
}

.footer-tagline {
  margin: 10px 0 20px;
}

.social-links a {
  color: var(--white-color);
  font-size: 1.5rem;
  margin-right: 15px;
  transition: transform 0.3s ease;
}

.social-links a:hover {
  transform: scale(1.2);
}

.footer-copyright {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   6. MODAL STYLES
   ========================================================================== */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1001;
  display: none; /* Hidden by default */
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.modal-content {
  position: relative;
  background: var(--white-color);
  padding: 40px;
  border-radius: var(--border-radius);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1002;
  animation: fadeIn 0.3s ease;
}

.modal-content h2 {
  margin-top: 0;
  margin-bottom: 20px;
}

.modal-content h4 {
  margin-top: 20px;
  margin-bottom: 10px;
}

.modal-content p {
  color: var(--light-text-color);
  margin-bottom: 15px;
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #aaa;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s ease;
}

.modal-close-btn:hover {
  color: var(--dark-text-color);
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   7. RESPONSIVE DESIGN
   ========================================================================== */

/* Tablets and smaller desktops */
@media (max-width: 992px) {
  .nav-list {
    display: none; /* For a real site, implement a hamburger menu here */
  }

  .section-title {
    font-size: 2rem;
  }

  .about-container,
  .contact-container {
    grid-template-columns: 1fr;
  }

  .testimonial-carousel {
    grid-template-columns: 1fr 1fr;
  }

  .testimonial-card:last-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  .banner-title {
    font-size: 2.5rem;
  }

  .testimonial-carousel {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col ul {
    padding: 0;
  }

  .newsletter-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input {
    max-width: 100%;
  }
}