/* Base Styles and Variables */
:root {
  --primary-bg: #0b132b;
  --accent-color: #f8b400;
  --text-color: #e5e5e5;
  --button-gradient-from: #1d3557;
  --button-gradient-to: #457b9d;
  --border-color: #2a2e45;
  --shadow-color: rgba(0, 0, 0, 0.3);
  --transition-speed: 0.3s;
}

/* Global Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

section[id] {
  scroll-margin-top: 80px;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--primary-bg);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 0.5em;
  font-weight: 600;
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

a:hover {
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 25px;
  border: none;
  border-radius: 30px;
  background: linear-gradient(
    to right,
    var(--button-gradient-from),
    var(--button-gradient-to)
  );
  color: var(--text-color);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition-speed) ease,
    box-shadow var(--transition-speed) ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px var(--shadow-color);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(
    to right,
    var(--button-gradient-from),
    var(--button-gradient-to)
  );
  color: var(--text-color);
  border: none;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
}

.btn-outline:hover {
  background-color: var(--accent-color);
  color: var(--primary-bg);
}

/* Section Styles */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  color: var(--accent-color);
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--accent-color);
  margin: 15px auto 0;
}

section {
  padding: 80px 0;
}

/* Header */
header {
  background-color: var(--primary-bg);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 12px var(--shadow-color);
  transition: all var(--transition-speed) ease;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
}

.logo a {
  color: var(--accent-color);
  text-decoration: none;
}

.main-nav ul {
  display: flex;
  list-style: none;
}

.main-nav li {
  margin-left: 20px;
}

.main-nav a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 20px;
  transition: all var(--transition-speed) ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent-color);
  background-color: rgba(255, 255, 255, 0.1);
}

.menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  cursor: pointer;
}

.menu-icon span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 5px 0;
  transition: all var(--transition-speed) ease;
}

/* Hero Section */
.hero {
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  display: flex;
  align-items: center;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 19, 43, 0.8);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* About Section */
.about {
  background-color: rgba(42, 46, 69, 0.3);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  height: 400px;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  box-shadow: 0 10px 30px var(--shadow-color);
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background-color: rgba(42, 46, 69, 0.3);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 10px 30px var(--shadow-color);
  transition: transform var(--transition-speed) ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  margin-bottom: 15px;
}

.service-card h3 {
  color: var(--accent-color);
  margin-bottom: 15px;
}

.service-card p {
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-card .btn {
  align-self: flex-start;
}

/* Advantages Section */
.advantages {
  background-color: rgba(42, 46, 69, 0.3);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.advantage-item {
  text-align: center;
  padding: 30px 20px;
  background-color: rgba(29, 53, 87, 0.3);
  border-radius: 10px;
  transition: transform var(--transition-speed) ease;
}

.advantage-item:hover {
  transform: translateY(-5px);
}

.advantage-icon {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 15px;
}

.advantage-item h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}

/* Testimonials Section */
.testimonials-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.testimonial {
  flex: 1;
  min-width: 280px;
}

.testimonial-content {
  background-color: rgba(42, 46, 69, 0.3);
  padding: 30px;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 10px 30px var(--shadow-color);
}

.testimonial-content::before {
  content: '"';
  font-size: 5rem;
  color: var(--accent-color);
  position: absolute;
  top: -20px;
  left: 20px;
  opacity: 0.2;
}

.testimonial-author {
  margin-top: 20px;
}

.testimonial-author strong {
  color: var(--accent-color);
  display: block;
  margin-bottom: 5px;
}

.testimonial-author span {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* FAQ Section */
.faq {
  background-color: rgba(42, 46, 69, 0.3);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.faq-toggle {
  display: none;
}

.faq-question {
  display: block;
  padding: 20px;
  background-color: rgba(29, 53, 87, 0.5);
  color: var(--text-color);
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: background-color var(--transition-speed) ease;
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-color);
}

.faq-toggle:checked + .faq-question::after {
  content: "-";
}

.faq-toggle:checked + .faq-question {
  background-color: rgba(29, 53, 87, 0.8);
}

.faq-answer {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  background-color: rgba(42, 46, 69, 0.3);
  transition: all var(--transition-speed) ease;
}

.faq-toggle:checked ~ .faq-answer {
  padding: 20px;
  max-height: 500px;
}

/* Contact Section */
.contact {
  background-color: rgba(29, 53, 87, 0.3);
}

.contact-container {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.contact-info,
.contact-form {
  flex: 1;
}

.contact-info h3,
.contact-form h3 {
  margin-bottom: 20px;
  color: var(--accent-color);
}

.contact-form form {
  display: grid;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  background-color: rgba(42, 46, 69, 0.3);
  color: var(--text-color);
}

.form-group select {
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="6"><path d="M0 0l6 6 6-6z" fill="%23F8B400"/></svg>');
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 30px;
}

.form-group select option {
  background-color: var(--primary-bg);
  color: var(--text-color);
}

.checkbox-group {
  flex-direction: row;
  align-items: center;
}

.checkbox-group input {
  margin-right: 10px;
  width: auto;
}

.checkbox-group label {
  margin-bottom: 0;
}

/* Footer */
footer {
  background-color: rgba(29, 53, 87, 0.7);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-info,
.footer-contact,
.footer-links {
  margin-bottom: 20px;
}

.footer-info h3,
.footer-contact h3,
.footer-links h3 {
  color: var(--accent-color);
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-color);
  transition: color var(--transition-speed) ease;
}

.footer-links a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(229, 229, 229, 0.1);
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background-color: var(--primary-bg);
  padding: 20px;
  box-shadow: 0 -5px 20px var(--shadow-color);
  z-index: 1000;
  transition: bottom var(--transition-speed) ease;
}

.cookie-popup.show {
  bottom: 0;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.cookie-content p {
  margin-bottom: 0;
  flex: 1;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

/* Policy Pages */
.policy-page {
  background-color: #fff;
  color: #333;
  padding: 50px 0;
}

.policy-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px var(--shadow-color);
  word-break: break-word;
  overflow-wrap: break-word;
}

.policy-container h1 {
  color: var(--button-gradient-from);
  margin-bottom: 30px;
}

.policy-container h2 {
  color: var(--button-gradient-to);
  margin: 30px 0 15px;
}

/* Thank You Page */
.thank-you-page {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thank-you-container {
  max-width: 600px;
  text-align: center;
  padding: 50px;
  background-color: rgba(42, 46, 69, 0.3);
  border: 2px solid var(--accent-color);
  border-radius: 10px;
  box-shadow: 0 10px 30px var(--shadow-color);
}

.thank-you-container h1 {
  color: var(--accent-color);
  margin-bottom: 20px;
}

/* Animations */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-fade-in {
  animation: fadeIn 1s ease-out;
}

.animate-bounce {
  animation: bounce 2s infinite;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .about-content,
  .contact-container {
    flex-direction: column;
  }

  .about-image {
    width: 100%;
    margin-top: 30px;
    order: -1;
  }

  .hero h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .menu-icon {
    display: block;
    z-index: 1010;
  }

  .menu-toggle:checked ~ .menu-icon span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle:checked ~ .menu-icon span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle:checked ~ .menu-icon span:last-child {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--primary-bg);
    padding: 80px 30px;
    transition: right var(--transition-speed) ease;
    box-shadow: 0 0 20px var(--shadow-color);
    z-index: 1000;
  }

  .menu-toggle:checked ~ .main-nav {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
  }

  .main-nav li {
    margin: 15px 0;
  }

  .section-title {
    margin-bottom: 2rem;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-grid {
    gap: 20px;
  }
}

@media (max-width: 576px) {
  section {
    padding: 60px 0;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .about-image {
    height: 300px;
  }

  .service-card {
    padding: 15px;
  }

  .service-image {
    height: 180px;
  }

  .testimonial {
    min-width: 100%;
  }

  .advantage-item {
    padding: 20px 15px;
  }
}
