/* Main CSS file for domain website */

/* ===== BASE STYLES ===== */
:root {
  --color-bg: #0f111a;
  --color-accent: #ffb800;
  --color-bg-secondary: #121826;
  --color-text-primary: #ffffff;
  --color-text-secondary: #a3b3c7;
  --gradient-button: linear-gradient(135deg, #ffb800, #ff5f6d);
}

* {
  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: "Arial", sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: var(--color-text-primary);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-accent);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
}

.section-title:after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-accent);
  margin: 15px auto;
}

.section-subtitle {
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

section {
  padding: 80px 0;
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--gradient-button);
  color: var(--color-text-primary);
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: bold;
  display: inline-block;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 184, 0, 0.2);
  color: var(--color-text-primary);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--color-accent);
  color: var(--color-text-primary);
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: bold;
  display: inline-block;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn-secondary:hover {
  background: var(--color-accent);
  color: var(--color-bg);
}

/* ===== HEADER STYLES ===== */
header {
  background-color: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--color-accent);
}

/* CSS-only burger menu */
.menu-container {
  position: relative;
}

.menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
}

.menu-icon span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--color-text-primary);
  transition: all 0.3s ease;
}

.nav-menu ul {
  display: flex;
  list-style: none;
}

.nav-menu ul li {
  margin-left: 25px;
}

.nav-menu ul li a {
  font-weight: 500;
}

/* ===== HERO SECTION ===== */
.hero {
  background-image: url("./img/HbhIA.jpg");
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 17, 26, 0.7);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--color-text-secondary);
}

/* ===== ABOUT SECTION ===== */
.about {
  background-color: var(--color-bg-secondary);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.about-image {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
}

.about-text {
  flex: 1;
}

.about h2 {
  margin-bottom: 20px;
}

/* ===== ADVANTAGES SECTION ===== */
.advantages-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.advantage-item {
  background-color: var(--color-bg-secondary);
  padding: 30px;
  border-radius: 10px;
  transition: transform 0.3s ease;
  text-align: center;
}

.advantage-item:hover {
  transform: translateY(-10px);
}

.advantage-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg);
  border-radius: 50%;
  color: var(--color-accent);
  font-size: 2rem;
}

/* ===== SERVICES SECTION ===== */
.services {
  background-color: var(--color-bg-secondary);
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background-color: var(--color-bg);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(255, 184, 0, 0.15);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-content {
  padding: 25px;
}

.service-content h3 {
  margin-bottom: 15px;
  color: var(--color-accent);
}

/* ===== WHY US SECTION ===== */
.why-us-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.why-us-item {
  text-align: center;
  padding: 20px;
}

.why-us-icon {
  font-size: 2.5rem;
  color: var(--color-accent);
  margin-bottom: 15px;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
  background-color: var(--color-bg-secondary);
}

.testimonial-container {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.testimonial-item {
  background-color: var(--color-bg);
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 30px;
  position: relative;
}

.testimonial-text {
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
}

.testimonial-author-name {
  font-weight: bold;
}

.testimonial-author-title {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

/* ===== CONTACT FORM ===== */
.contact-form-container {
  background: linear-gradient(
    135deg,
    rgba(18, 24, 38, 0.9),
    rgba(15, 17, 26, 0.9)
  );
  border: 1px solid var(--color-accent);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 25px rgba(255, 184, 0, 0.1);
  max-width: 600px;
  margin: 0 auto;
}

.form-title {
  text-align: center;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-label {
  color: var(--color-text-primary);
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.form-control {
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  border: 1px solid #2a2f42;
  border-radius: 5px;
  padding: 12px 15px;
  width: 100%;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(255, 184, 0, 0.2);
  outline: none;
}

.form-check {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  position: relative;
}

.form-check-input {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background-color: var(--color-bg);
  border: 1px solid #2a2f42;
  border-radius: 4px;
  margin-right: 10px;
  margin-top: 2px;
  cursor: pointer;
  position: relative;
}

.form-check-input:checked {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}

.form-check-input:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-bg);
  font-size: 12px;
}

.form-check-label {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  cursor: pointer;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 35px;
}

/* Custom select styling */
.form-select option {
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  padding: 10px;
}

select.form-select {
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  appearance: none;
  padding: 12px 15px;
  border: 1px solid #2a2f42;
  border-radius: 5px;
  width: 100%;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 35px;
}

.form-actions {
  text-align: center;
  margin-top: 30px;
}

/* ===== FAQ SECTION ===== */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  background-color: var(--color-bg-secondary);
  border-radius: 8px;
  overflow: hidden;
}

/* CSS-only accordion using checkbox hack */
.faq-question {
  display: none;
}

.faq-label {
  display: block;
  padding: 15px 20px;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s ease;
}

.faq-label:hover {
  background-color: rgba(255, 184, 0, 0.1);
}

.faq-label:after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.5s ease, padding 0.5s ease;
}

.faq-question:checked ~ .faq-answer {
  max-height: 500px;
  padding: 0 20px 20px;
}

.faq-question:checked ~ .faq-label:after {
  content: "−";
}

/* ===== FOOTER STYLES ===== */
footer {
  background-color: var(--color-bg-secondary);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-info {
  margin-bottom: 20px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-accent);
  margin-bottom: 15px;
}

.footer-description {
  color: var(--color-text-secondary);
}

.footer-contact h3,
.footer-legal h3 {
  margin-bottom: 20px;
  color: var(--color-accent);
}

.footer-contact p {
  margin-bottom: 10px;
}

.footer-legal ul {
  list-style: none;
}

.footer-legal ul li {
  margin-bottom: 10px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(163, 179, 199, 0.2);
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

/* ===== COOKIE POPUP ===== */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 400px;
  background-color: var(--color-bg-secondary);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.cookie-popup.show {
  transform: translateY(0);
  opacity: 1;
}

.cookie-content h3 {
  margin-bottom: 10px;
  color: var(--color-accent);
}

.cookie-content p {
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

/* ===== POLICY PAGES ===== */
.policy-container {
  max-width: 900px;
  margin: 40px auto;
  background-color: var(--color-bg-secondary);
  padding: 40px;
  border-radius: 10px;
  border: 1px solid rgba(163, 179, 199, 0.1);
}

.policy-header {
  text-align: center;
  margin-bottom: 40px;
}

.policy-content h2 {
  color: var(--color-accent);
  margin: 30px 0 15px;
}

.policy-content p,
.policy-content ul {
  margin-bottom: 15px;
}

.policy-content ul {
  padding-left: 20px;
}

/* Thank you page */
.thank-you-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
  text-align: center;
  max-width: 600px;
  margin: 5rem auto;
  padding: 40px;
  background-color: var(--color-bg-secondary);
  border-radius: 10px;
  border: 1px solid rgba(163, 179, 199, 0.1);
}

.thank-you-icon {
  font-size: 4rem;
  color: var(--color-accent);
  margin-bottom: 20px;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
  .section-title {
    font-size: 2rem;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .about-content {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .menu-icon {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--color-bg-secondary);
    width: 250px;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  }

  .menu-toggle:checked ~ .nav-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-menu ul {
    flex-direction: column;
  }

  .nav-menu ul li {
    margin: 10px 0;
    margin-left: 0;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  section {
    padding: 60px 0;
  }

  .policy-container {
    padding: 20px;
    margin: 20px;
  }
}

@media (max-width: 576px) {
  .header-content {
    padding: 10px 0;
  }

  .logo {
    font-size: 1.5rem;
  }

  .hero {
    height: 80vh;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .contact-form-container {
    padding: 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}
