/* Main CSS styles for domain website */

/* Global styles */
:root {
  --background: #0f1e26;
  --accent-yellow: #ffba08;
  --accent-teal: #3bc8a1;
  --text-color: #ffffff;
  --heading-color: #ffba08;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

body {
  font-family: "Arial", sans-serif;
  background-color: var(--background);
  color: var(--text-color);
  line-height: 1.6;
}

section[id] {
  scroll-margin-top: 40px;
}

a {
  color: var(--accent-yellow);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-teal);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  margin-bottom: 1rem;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header styles */
header {
  background-color: var(--background);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--accent-yellow);
}

/* Navigation */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
}

.menu-icon {
  display: block;
  position: relative;
  width: 30px;
  height: 22px;
}

.menu-icon span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--accent-yellow);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.menu-icon span:nth-child(1) {
  top: 0;
}

.menu-icon span:nth-child(2) {
  top: 9px;
}

.menu-icon span:nth-child(3) {
  top: 18px;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: var(--text-color);
  font-weight: 500;
}

nav ul li a:hover {
  color: var(--accent-teal);
}

/* Hero section */
.hero {
  height: 600px;
  background-image: url("./img/MA9Q3.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 30, 38, 0.7);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 20px;
  margin-bottom: 30px;
}

/* Button styles */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(135deg, var(--accent-teal), var(--background));
  color: var(--text-color);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: var(--text-color);
}

/* Services section */
.services {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.service-card-content {
  padding: 20px;
}

.service-card h3 {
  margin-bottom: 10px;
}

/* FAQ section */
.faq {
  padding: 80px 0;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.faq-check {
  display: none;
}

.faq-question {
  display: block;
  padding: 15px 20px;
  background-color: rgba(255, 186, 8, 0.1);
  color: var(--accent-yellow);
  font-weight: bold;
  cursor: pointer;
  position: relative;
}

.faq-question:hover {
  background-color: rgba(255, 186, 8, 0.2);
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 20px;
  transition: all 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.05);
  transition: max-height 0.3s ease;
}

.faq-answer-content {
  padding: 15px 20px;
}

.faq-check:checked + .faq-question::after {
  content: "-";
  transform: rotate(180deg);
}

.faq-check:checked + .faq-question + .faq-answer {
  max-height: 500px;
}

/* Form styles */
.contact {
  padding: 80px 0;
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  color: var(--text-color);
  font-size: 16px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-teal);
}

.form-group select {
  appearance: none;
}

.form-group select option {
  background-color: var(--background);
  color: var(--text-color);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-right: 10px;
  margin-top: 5px;
}

.required {
  color: var(--accent-yellow);
}

.error-message {
  color: #ff5252;
  margin-top: 5px;
  font-size: 14px;
}

/* Policy pages */
.policy-page {
  padding: 60px 0;
}

.policy-container {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 10px;
}

.policy-container h1 {
  margin-bottom: 30px;
}

.policy-container h2 {
  margin-top: 30px;
  margin-bottom: 15px;
}

.policy-container p {
  margin-bottom: 15px;
}

.policy-container ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

/* Thank you page */
.thank-you {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  text-align: center;
  padding: 40px 0;
}

.thank-you-container {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 10px;
  margin: 0 auto;
  max-width: 600px;
  gap: 20px;
  display: flex;
  flex-direction: column;
}

.thank-you h1 {
  margin-bottom: 20px;
}

/* Footer */
footer {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 50px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section h3 {
  margin-bottom: 20px;
  color: var(--accent-yellow);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  font-size: 14px;
}

/* Cookie popup */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: rgba(15, 30, 38, 0.95);
  border: 1px solid var(--accent-teal);
  padding: 20px;
  border-radius: 10px;
  max-width: 400px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  display: none;
}

.cookie-popup p {
  margin-bottom: 15px;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.cookie-btn {
  padding: 8px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.accept-cookies {
  background-color: var(--accent-teal);
  color: var(--background);
}

.decline-cookies {
  background-color: transparent;
  border: 1px solid var(--accent-teal);
  color: var(--accent-teal);
}

/* Responsive styles */
@media (max-width: 768px) {
  .header-container {
    padding: 15px;
  }

  .nav-toggle-label {
    display: block;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--background);
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
  }

  nav ul {
    flex-direction: column;
    padding: 0;
  }

  nav ul li {
    margin: 0;
    text-align: center;
  }

  nav ul li a {
    display: block;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-toggle:checked ~ nav {
    height: auto;
    max-height: 300px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
  }

  .nav-toggle:checked ~ .nav-toggle-label .menu-icon span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
  }

  .nav-toggle:checked ~ .nav-toggle-label .menu-icon span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked ~ .nav-toggle-label .menu-icon span:nth-child(3) {
    transform: rotate(-45deg);
    top: 9px;
  }

  .hero {
    height: 500px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 18px;
  }

  .form-container {
    padding: 20px;
  }

  .policy-container {
    padding: 20px;
  }
}
