/* Global Styles */
:root {
  --bg-color: #0a0a23;
  --primary-color: #ff5f1f;
  --secondary-color: #6ef3d6;
  --text-color: #ffffff;
  --text-muted: #bfbfbf;
  --card-bg: #1a1a3a;
  --gradient-1: linear-gradient(
    135deg,
    rgba(255, 95, 31, 0.2) 0%,
    rgba(26, 26, 58, 0.7) 100%
  );
  --gradient-2: linear-gradient(
    135deg,
    rgba(110, 243, 214, 0.2) 0%,
    rgba(26, 26, 58, 0.7) 100%
  );
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

section {
  word-break: break-word;
  overflow-wrap: break-word;
}
section[id] {
  scroll-margin-top: 40px;
}

body {
  font-family: "Roboto", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  font-size: 1rem;
}

.btn:hover {
  background-color: #e64400;
  transform: translateY(-3px);
}

.btn:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--bg-color);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
  text-align: center;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background-color: var(--primary-color);
}

section {
  padding: 5rem 0;
}

/* Header */
header {
  background-color: rgba(10, 10, 35, 0.95);
  position: fixed;
  width: 100%;
  z-index: 1000;
  top: 0;
  backdrop-filter: blur(10px);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-color);
  text-decoration: none;
}

/* Navigation */
.nav-checkbox {
  display: none;
}

.nav-toggle {
  display: none;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--text-color);
  margin: 6px 0;
  transition: all 0.3s ease;
}

.nav-menu {
  display: flex;
  list-style-type: none;
}

.nav-menu li {
  margin-left: 1.5rem;
}

.nav-menu a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-menu a:hover {
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  background-image: url("./img/EFHRI.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;
  right: 0;
  bottom: 0;
  background-color: rgba(10, 10, 35, 0.7);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
  padding: 0 15px;
  width: 90%;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  color: var(--text-muted);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

/* About Section */
.about {
  background-color: var(--bg-color);
}

.about-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  align-items: center;
}

.about-image {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-content h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-card:nth-child(odd)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-1);
  z-index: -1;
}

.service-card:nth-child(even)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-2);
  z-index: -1;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-image {
  width: 100%;
  height: 150px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 20px;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

/* Features Section */
.features {
  background-color: var(--bg-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-item {
  text-align: center;
  padding: 20px;
  border-radius: 8px;
  background-color: var(--card-bg);
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* Testimonials */
.testimonials {
  background-color: var(--bg-color);
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-1);
  opacity: 0.1;
  z-index: 0;
}

.testimonials-container {
  position: relative;
  z-index: 1;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.testimonial-text {
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author-name {
  font-weight: 600;
  color: var(--secondary-color);
}

.testimonial-author-title {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Contact Form */
.contact-form {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.contact-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-2);
  z-index: -1;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-color);
  transition: all 0.3s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  font-size: 16px; /* Ensures text is readable on iOS without zooming */
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: rgba(255, 255, 255, 0.1);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

select.form-control option {
  background-color: var(--card-bg);
  color: var(--text-color);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  padding: 5px 0;
}

.checkbox-input {
  margin-right: 10px;
  margin-top: 4px;
  min-width: 20px;
  min-height: 20px;
}

.checkbox-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 3px 0;
}

.checkbox-label a {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* FAQ Section */
.faq {
  background-color: var(--bg-color);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 6px;
  background-color: var(--card-bg);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: none;
}

.faq-label {
  display: block;
  padding: 15px 20px;
  cursor: pointer;
  position: relative;
  font-weight: 600;
  transition: all 0.3s ease;
}

.faq-label:hover {
  background-color: rgba(255, 95, 31, 0.1);
}

.faq-label::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  padding: 0 20px;
}

.faq-question:checked ~ .faq-label::after {
  content: "-";
}

.faq-question:checked ~ .faq-content {
  max-height: 500px;
  padding: 0 20px 20px;
}

/* Contact Section */
.contact {
  background-color: var(--bg-color);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.contact-info {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 8px;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.contact-info-item {
  display: flex;
  margin-bottom: 15px;
}

.contact-info-icon {
  color: var(--primary-color);
  margin-right: 15px;
  font-size: 1.2rem;
}

.contact-map {
  height: 300px;
  border-radius: 8px;
  overflow: hidden;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Footer */
footer {
  background-color: rgba(10, 10, 35, 0.9);
  padding: 3rem 0 1.5rem;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 2rem;
}

.footer-widget h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--secondary-color);
  position: relative;
  padding-bottom: 10px;
}

.footer-widget h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(10, 10, 35, 0.95);
  padding: 20px;
  z-index: 9999;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.5s ease;
  display: none;
}

.cookie-consent.active {
  transform: translateY(0);
  display: block;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.cookie-text {
  flex: 1;
  min-width: 280px;
}

/* Thank You Page */
.thank-you {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
}

.thank-you-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  border: 2px solid var(--primary-color);
}

.thank-you-title {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.thank-you-message {
  color: var(--text-color);
  margin-bottom: 2rem;
}

/* Policy Pages */
.policy-container {
  max-width: 900px;
  margin: 120px auto 60px;
  padding: 40px;
  background-color: var(--card-bg);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  word-break: break-word;
  overflow-wrap: break-word;
}

.policy-title {
  color: var(--primary-color);
  margin-bottom: 2rem;
  text-align: center;
}

.policy-section {
  margin-bottom: 2rem;
}

.policy-section h2 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.policy-section p,
.policy-section ul {
  margin-bottom: 1rem;
}

.policy-section ul {
  padding-left: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .header-container {
    height: 70px;
    padding: 0 15px;
  }

  .nav-toggle {
    display: block;
    z-index: 1001;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--bg-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.5s ease;
    z-index: 1000;
  }

  .nav-menu li {
    margin: 15px 0;
  }

  #nav-toggle:checked ~ .nav-menu {
    right: 0;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
  }

  #nav-toggle:checked ~ .nav-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }

  #nav-toggle:checked ~ .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  #nav-toggle:checked ~ .nav-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -8px);
  }

  .hero {
    height: 90vh;
  }

  .hero-title {
    font-size: 2.2rem;
    padding: 0 10px;
  }

  .hero-subtitle {
    font-size: 1rem;
    padding: 0 15px;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 90%;
    max-width: 300px;
    margin-bottom: 10px;
  }

  .cookie-content {
    flex-direction: column;
  }

  .cookie-buttons {
    width: 100%;
    display: flex;
    justify-content: space-between;
  }

  section {
    padding: 3rem 0;
  }

  .about-container {
    grid-template-columns: 1fr;
  }

  .about-image {
    margin-bottom: 2rem;
  }

  .service-card {
    padding: 20px;
  }

  .testimonial-card,
  .feature-item,
  .contact-form,
  .contact-info {
    padding: 20px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-info {
    order: 2;
  }

  .contact-form {
    order: 1;
    margin-bottom: 2rem;
  }

  /* Fix for mobile menu */
  .nav-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 1.2rem;
  }

  /* Add overlay when menu is open */
  #nav-toggle:checked ~ .nav-menu:before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 30%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
  }

  /* Fix for sticky header on mobile */
  header {
    backdrop-filter: blur(5px);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-widget {
    margin-bottom: 2rem;
  }

  .thank-you-card {
    padding: 25px;
  }

  .thank-you-title {
    font-size: 1.8rem;
  }

  .policy-container {
    padding: 25px;
    margin-top: 90px;
  }

  .policy-title {
    font-size: 1.5rem;
  }

  .policy-section h2 {
    font-size: 1.2rem;
  }
}

/* Fix for iOS form elements */
input,
select,
textarea,
button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 6px;
}

/* Custom checkbox styling */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  padding: 5px 0;
  position: relative;
}

.checkbox-input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkbox-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 3px 0 3px 35px;
  position: relative;
  cursor: pointer;
  display: block;
}

.checkbox-label:before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  border: 2px solid var(--secondary-color);
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  box-shadow: 0 0 5px rgba(110, 243, 214, 0.3);
}

.checkbox-input:checked + .checkbox-label:before {
  background-color: var(--secondary-color);
}

.checkbox-input:checked + .checkbox-label:after {
  content: "✓";
  position: absolute;
  left: 5px;
  top: 2px;
  color: var(--bg-color);
  font-size: 16px;
  font-weight: bold;
}

.checkbox-label a {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Add touch target size for mobile */
.checkbox-group {
  min-height: 30px;
}

/* Fix for iOS */
@supports (-webkit-touch-callout: none) {
  .hero {
    background-attachment: scroll;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }
}
