/* Global Styles */
:root {
  --primary: #1d3557;
  --accent-1: #f26419;
  --accent-2: #2a9d8f;
  --background: #f4f1de;
  --text: #2b2d42;
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

section[id] {
  scroll-margin-top: 40px;
}

body {
  font-family: "Poppins", "Roboto", sans-serif;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 700;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--accent-1);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-2);
}

.btn {
  display: inline-block;
  background-color: var(--accent-1);
  color: var(--white);
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: var(--accent-2);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px var(--shadow);
}

section {
  padding: 80px 0;
}

.section-title {
  position: relative;
  margin-bottom: 50px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--accent-1);
}

/* Header Styles */
header {
  background-color: var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px var(--shadow);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li {
  margin-left: 30px;
}

.nav-menu a {
  color: var(--white);
  font-weight: 600;
}

.nav-menu a:hover {
  color: var(--accent-1);
}

.menu-toggle-checkbox {
  display: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--white);
  transition: all 0.3s ease;
}

.menu-toggle-checkbox:checked ~ .nav-menu {
  left: 0;
}

/* Hero Section */
.hero {
  min-height: 90vh;
  background-image: linear-gradient(
      rgba(29, 53, 87, 0.7),
      rgba(29, 53, 87, 0.7)
    ),
    url("./img/tqpNi.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--white);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* About Section */
.about {
  background-color: var(--white);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Benefits Section */
.benefits {
  background-color: var(--background);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
}

.benefit-card {
  background-color: var(--white);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px var(--shadow);
  transition: all 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-10px);
}

.benefit-icon {
  font-size: 2.5rem;
  color: var(--accent-1);
  margin-bottom: 15px;
}

/* Services Section */
.services {
  background-color: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background-color: var(--background);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px var(--shadow);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  background-color: var(--primary);
  color: var(--white);
}

.service-card:hover h3 {
  color: var(--white);
}

/* Why Us Section */
.why-us {
  background-color: var(--background);
}

.why-us-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.why-us-text {
  flex: 1;
}

.why-us-image {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow);
}

.why-us-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Case Studies Section */
.cases {
  background-color: var(--white);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.case-card {
  background-color: var(--background);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px var(--shadow);
}

.case-card h3 {
  color: var(--primary);
}

/* FAQ Section */
.faq {
  background-color: var(--background);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.faq-question {
  display: block;
  position: relative;
  background-color: var(--white);
  padding: 15px;
  cursor: pointer;
  font-weight: 600;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
}

.faq-answer {
  background-color: var(--white);
  padding: 0 15px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item input[type="checkbox"] {
  display: none;
}

.faq-item input[type="checkbox"]:checked + .faq-question::after {
  content: "-";
}

.faq-item input[type="checkbox"]:checked ~ .faq-answer {
  max-height: 500px;
  padding: 15px;
}

/* Contact Form Section */
.contact {
  background-color: var(--white);
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--background);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-2);
}

.checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.checkbox-group input {
  margin-right: 10px;
}

.submit-btn {
  width: 100%;
  background-color: var(--accent-1);
  color: var(--white);
  border: none;
  padding: 15px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background-color: var(--accent-2);
}

/* Footer */
footer {
  background-color: var(--primary);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h3 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column a {
  color: var(--white);
  opacity: 0.8;
}

.footer-column a:hover {
  opacity: 1;
  color: var(--accent-1);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--white);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow);
  max-width: 400px;
  width: 90%;
  z-index: 1001;
  display: none;
}

.cookie-popup.show {
  display: block;
  animation: fadeIn 0.5s;
}

.cookie-popup p {
  margin-bottom: 15px;
}

.cookie-buttons {
  display: flex;
  justify-content: space-between;
}

.cookie-btn {
  padding: 8px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
}

.accept-cookies {
  background-color: var(--accent-1);
  color: var(--white);
}

.reject-cookies {
  background-color: #f1f1f1;
  color: var(--text);
}

/* Policy Pages */
.policy-page {
  max-width: 800px;
  margin: 40px auto;
  background-color: white;
  padding: 40px;
  border-radius: 10px;
  border: 2px solid var(--primary);
  box-shadow: 0 5px 15px var(--shadow);
}

.policy-page h1 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary);
  font-size: 2.2rem;
  border-bottom: 2px solid var(--accent-1);
  padding-bottom: 15px;
}

.policy-page h2 {
  text-align: left;
  margin-top: 30px;
  color: var(--accent-2);
  font-size: 1.5rem;
}

.policy-page h3 {
  color: var(--accent-1);
  margin-top: 20px;
}

.policy-page ul {
  margin-left: 20px;
  margin-bottom: 20px;
}

.policy-page ul li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 15px;
}

.policy-page ul li:before {
  content: "•";
  color: var(--accent-1);
  position: absolute;
  left: 0;
}

.policy-page .btn {
  margin-top: 30px;
  display: inline-block;
}

/* Thank You Page */
.thank-you {
  max-width: 600px;
  margin: 100px auto;
  background-color: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow);
  text-align: center;
}

.thank-you h1 {
  margin-bottom: 20px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive Styles */
@media (max-width: 992px) {
  .about-content,
  .why-us-content {
    flex-direction: column;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    flex-direction: column;
    background-color: var(--primary);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 20px 0;
    z-index: 999;
  }

  .nav-menu li {
    margin: 15px 0;
  }

  .hero h1 {
    font-size: 2rem;
  }
}
