/* FONT-FACES */
@font-face {
  font-family: "DIN Medium";
  src: url("fonts/DIN Medium.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Arima";
  src: url("fonts/Arima-SemiBold.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "FontAwesomeBrands";
  src: url("fonts/Font Awesome 6 Brands-Regular-400.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* GLOBALS */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "DIN Medium", sans-serif;
  background-color: #f4f4f4;
  color: #333;
  transition: background-color 0.3s, color 0.3s;
}

a {
  text-decoration: none;
}

.dark-mode {
  background-color: #222;
  color: #ddd;
}

/* ANIMATIONS */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* FORM VALIDATION STYLES */
.error {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.field-error {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

/* HEADER / NAVIGATION */
header {
  background-color: #2c5f2d;
  padding: 10px 20px;
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.header-logo {
  height: 60px;
  width: auto;
}

/* Desktop Navigation */
nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
}

nav ul li a {
  color: #ffffff;
  font-weight: 500;
  margin: 5px 15px;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.3s, transform 0.2s;
  display: block;
}

nav ul li a:hover {
  background-color: #3c773c;
  transform: translateY(-2px);
}

.nav-link {
  display: inline-block;
}

/* Hamburger Menu Button */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.hamburger-btn:hover {
  background-color: #3c773c;
}

.hamburger-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 5px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Hamburger Animation */
.hamburger-btn.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #2c5f2d;
  border-top: 1px solid #3c773c;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.mobile-nav.active {
  display: block;
  animation: slideDown 0.3s ease-out;
}

.mobile-nav ul {
  flex-direction: column;
  padding: 0;
  margin: 0;
}

.mobile-nav ul li {
  border-bottom: 1px solid #3c773c;
}

.mobile-nav ul li:last-child {
  border-bottom: none;
}

.mobile-nav ul li a {
  display: block;
  padding: 15px 20px;
  margin: 0;
  border-radius: 0;
  transition: background-color 0.3s;
  color: #ffffff; /* Make links white */
  font-weight: 500; /* Match desktop nav weight */
}

.mobile-nav ul li a:hover {
  background-color: #3c773c;
  transform: none;
  color: #ffffff; /* Keep white on hover */
}

/* Also add dark mode consistency */
.dark-mode .mobile-nav ul li a {
  color: #ffffff;
}

.dark-mode .mobile-nav ul li a:hover {
  color: #ffffff;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* DARK MODE TOGGLE */
#dark-mode-toggle {
  position: fixed;
  top: 10px;
  right: 10px;
  background-color: #1e4620;
  color: white;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 6px;
  font-size: 14px;
  z-index: 1001;
  transition: background-color 0.3s, transform 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#dark-mode-toggle:hover {
  background-color: #3c773c;
  transform: translateY(-1px);
}

/* HERO SECTION */
#hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 20px 0;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 95, 45, 0.4);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  padding: 20px;
  animation: fadeIn 1s ease-out;
  width: 100%;
}

.hero-content h1 {
  font-family: "Arima", cursive;
  font-size: 3.5rem;
  margin-bottom: 0.5em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-content h2 {
  font-size: 2rem;
  margin-bottom: 1em;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 1em;
  line-height: 1.4;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* QR CODE DOWNLOAD SECTION */
.qr-download-section {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 25px;
  margin: 25px auto;
  max-width: 550px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  animation: fadeInUp 1.2s ease-out 0.5s both;
}

.qr-title {
  color: #2c5f2d;
  font-size: 1.8rem;
  margin-bottom: 10px;
  font-family: "Arima", cursive;
  text-align: center;
}

.qr-subtitle {
  color: #555;
  font-size: 1rem;
  margin-bottom: 25px;
  text-align: center;
}

.qr-codes-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.qr-code-item {
  text-align: center;
  background: white;
  padding: 15px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 160px;
}

.qr-code-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.qr-code-item img {
  width: 120px;
  height: 120px;
  border-radius: 10px;
  margin-bottom: 15px;
}

.qr-platform {
  font-weight: 600;
  color: #2c5f2d;
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.qr-instruction {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
}

.qr-or-divider {
  text-align: center;
  color: #666;
  font-weight: 600;
  margin: 20px 0;
  position: relative;
}

.qr-or-divider::before,
.qr-or-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: #ddd;
}

.qr-or-divider::before {
  left: 0;
}

.qr-or-divider::after {
  right: 0;
}

/* CTA BUTTONS */
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.cta-buttons .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #28a745;
  color: white;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 16px;
  gap: 10px;
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.cta-buttons .btn:hover {
  background-color: #218838;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.btn.disabled {
  background-color: #aaa;
  color: #eee;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

.btn .fa-brands {
  font-family: "FontAwesomeBrands";
  font-size: 20px;
}

/* FEATURES SECTION */
#features {
  padding: 60px 20px;
  text-align: center;
  background-color: #f1f8e9;
}

#features h2 {
  font-family: "Arima", cursive;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #2c5f2d;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 0 auto;
  max-width: 1200px;
}

.feature-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 30px 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
}

.feature-card.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.feature-card img {
  width: 100%;
  max-width: 200px;
  margin-bottom: 20px;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.feature-card:hover img {
  transform: scale(1.05);
}

.feature-card h3 {
  font-family: "DIN Medium";
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  color: #333;
}

.feature-card p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

.feature-wide {
  margin-top: 40px;
}

.feature-wide img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* CALCULATOR SECTION */
#calculator {
  padding: 60px 20px;
  background-color: #fff;
  text-align: center;
}

#calculator h2 {
  font-family: "Arima", cursive;
  font-size: 2rem;
  color: #2c5f2d;
  margin-bottom: 1rem;
}

#calculator p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 2rem;
}

.calculator-container {
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
}

.calculator-container form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.calculator-container label {
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.calculator-container input,
.calculator-container select {
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.calculator-container input:focus,
.calculator-container select:focus {
  outline: none;
  border-color: #2c5f2d;
  box-shadow: 0 0 0 0.2rem rgba(44, 95, 45, 0.25);
}

.calculator-container button {
  background-color: #2c5f2d;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  transition: background-color 0.3s, transform 0.2s;
}

.calculator-container button:hover {
  background-color: #3c773c;
  transform: translateY(-1px);
}

.calculator-result {
  margin-top: 30px;
  background-color: #f1f8e9;
  padding: 25px;
  border-radius: 12px;
  border-left: 4px solid #2c5f2d;
  animation: fadeIn 0.5s ease-out;
}

.calculator-result h3 {
  margin-bottom: 15px;
  color: #2c5f2d;
  font-size: 1.3rem;
}

.calculator-result p {
  margin-bottom: 10px;
  line-height: 1.6;
}

/* TESTIMONIALS SECTION */
#testimonials {
  background-color: #f4f4f4;
  padding: 60px 20px;
  text-align: center;
}

#testimonials h2 {
  font-family: "Arima", cursive;
  font-size: 2rem;
  color: #2c5f2d;
  margin-bottom: 2rem;
}

.carousel-container {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  min-height: 150px;
}

.carousel-slide {
  display: none;
  padding: 30px;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
  display: block;
  opacity: 1;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

blockquote {
  font-style: italic;
  margin-bottom: 15px;
  color: #333;
  font-size: 1.1rem;
  line-height: 1.6;
}

cite {
  font-weight: 600;
  color: #2c5f2d;
  font-size: 1rem;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 10px;
}

.carousel-btn {
  background: #2c5f2d;
  color: #fff;
  border: none;
  padding: 12px 16px;
  margin: 0 5px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background-color 0.3s, transform 0.2s;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: #3c773c;
  transform: scale(1.1);
}

/* SUPPORT SECTION */
#support {
  padding: 60px 20px;
  text-align: center;
  background-color: #fff;
}

#support h2 {
  font-family: "Arima", cursive;
  color: #2c5f2d;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

#support h3 {
  font-family: "DIN Medium";
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 1rem;
}

#support p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

#support a {
  color: #2c5f2d;
  font-weight: 600;
  transition: color 0.3s;
}

#support a:hover {
  color: #3c773c;
  text-decoration: underline;
}

.dark-mode #support a {
  color: #4caf50;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 30px 15px;
  background-color: #2c5f2d;
  color: white;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.social-btn {
  color: #ffffff;
  font-size: 1.8rem;
  transition: color 0.3s, transform 0.2s;
  padding: 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
}

.social-btn:hover {
  color: #08bdbd;
  transform: translateY(-3px);
}

.icon {
  font-family: "FontAwesomeBrands", sans-serif;
  font-weight: 400;
  font-style: normal;
  display: inline-block;
}

/* SCROLL TO TOP */
#jump-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #28a745;
  color: white;
  padding: 12px 18px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  display: none;
  transition: background-color 0.3s, transform 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

#jump-to-top:hover {
  background-color: #218838;
  transform: translateY(-2px);
}

/* LEGAL PAGES STYLES */
#legal-hero {
  background-color: #2c5f2d;
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}

#legal-hero h1 {
  font-family: "Arima", cursive;
  font-size: 2.5rem;
  margin-bottom: 15px;
}

#legal-hero p {
  font-size: 1rem;
  margin: 0;
}

.legal-container {
  max-width: 900px;
  margin: 50px auto;
  padding: 40px 30px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.legal-container h3 {
  font-family: "DIN Medium", sans-serif;
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  color: #333;
  border-bottom: 2px solid #2c5f2d;
  padding-bottom: 0.5rem;
}

.legal-container p,
.legal-container ul,
.legal-container li {
  font-family: "DIN Medium", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 1.2em;
}

.legal-container ul {
  list-style-type: disc;
  margin-left: 25px;
}

.legal-container li {
  margin-bottom: 0.5em;
}

.legal-container a {
  color: #2c5f2d;
  font-weight: 600;
  transition: color 0.3s;
}

.legal-container a:hover {
  color: #3c773c;
  text-decoration: underline;
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 768px) {
  .header-content {
    justify-content: space-between;
  }

  .header-logo {
    height: 50px;
  }

  /* Hide desktop nav on mobile */
  nav {
    display: none;
  }

  /* Show hamburger button on mobile */
  .hamburger-btn {
    display: block;
  }

  /* Show mobile nav when active */
  .mobile-nav {
    display: none;
  }

  .mobile-nav.active {
    display: block;
  }

  #hero {
    height: 70vh;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content h2 {
    font-size: 1.6rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 280px;
    margin: 8px 0;
  }

  /* QR Code mobile styles */
  .qr-download-section {
    margin: 20px 10px;
    padding: 20px;
  }

  .qr-title {
    font-size: 1.5rem;
  }

  .qr-codes-container {
    gap: 20px;
  }

  .qr-code-item {
    min-width: 140px;
    padding: 15px;
  }

  .qr-code-item img {
    width: 100px;
    height: 100px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  #features,
  #calculator,
  #testimonials,
  #support {
    padding: 40px 15px;
  }

  #features h2,
  #calculator h2,
  #testimonials h2,
  #support h2 {
    font-size: 1.8rem;
  }

  .carousel-slide {
    padding: 20px;
  }

  .carousel-btn {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }

  .calculator-container {
    padding: 0 10px;
  }

  .social-icons {
    gap: 15px;
  }

  .social-btn {
    width: 45px;
    height: 45px;
    font-size: 1.6rem;
  }

  #jump-to-top {
    bottom: 20px;
    right: 20px;
    padding: 10px 15px;
  }

  #legal-hero {
    padding: 40px 15px;
  }

  #legal-hero h1 {
    font-size: 2rem;
  }

  .legal-container {
    margin: 30px 15px;
    padding: 25px 20px;
  }

  .legal-container h3 {
    font-size: 1.2rem;
  }

  .legal-container p,
  .legal-container li {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  header {
    padding: 10px 15px;
  }

  .header-logo {
    height: 45px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content h2 {
    font-size: 1.4rem;
  }

  .cta-buttons .btn {
    width: 250px;
    font-size: 14px;
    padding: 10px 14px;
  }

  .mobile-nav ul li a {
    padding: 12px 15px;
    font-size: 14px;
  }

  /* QR Code mobile styles for small screens */
  .qr-codes-container {
    flex-direction: column;
    align-items: center;
  }

  .qr-code-item {
    width: 100%;
    max-width: 200px;
  }

  .feature-card {
    padding: 20px 15px;
  }

  .calculator-container form {
    gap: 15px;
  }

  .calculator-result {
    padding: 20px;
  }

  .carousel-slide {
    padding: 15px;
  }

  blockquote {
    font-size: 1rem;
  }
}

/* DARK MODE SPECIFIC STYLES */
.dark-mode .feature-card,
.dark-mode .carousel-slide.active,
.dark-mode .calculator-result,
.dark-mode .legal-container {
  background-color: #333;
  color: #ddd;
}

.dark-mode .feature-card h3,
.dark-mode .legal-container h3 {
  color: #4caf50;
}

.dark-mode .calculator-container input,
.dark-mode .calculator-container select {
  background-color: #444;
  color: #ddd;
  border-color: #555;
}

.dark-mode .calculator-container input:focus,
.dark-mode .calculator-container select:focus {
  border-color: #4caf50;
  box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

.dark-mode blockquote {
  color: #ddd;
}

.dark-mode cite {
  color: #4caf50;
}

/* Dark mode QR code styles */
.dark-mode .qr-download-section {
  background: rgba(51, 51, 51, 0.95);
}

.dark-mode .qr-title {
  color: #4caf50;
}

.dark-mode .qr-subtitle {
  color: #ccc;
}

.dark-mode .qr-code-item {
  background-color: #444;
}

.dark-mode .qr-platform {
  color: #4caf50;
}

.dark-mode .qr-instruction {
  color: #ccc;
}

.dark-mode .qr-or-divider {
  color: #ccc;
}

.dark-mode .qr-or-divider::before,
.dark-mode .qr-or-divider::after {
  background: #555;
}

/* ACCESSIBILITY IMPROVEMENTS */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* HIGH CONTRAST MODE */
@media (prefers-contrast: high) {
  .feature-card,
  .carousel-slide.active,
  .calculator-result,
  .qr-code-item {
    border: 2px solid #000;
  }

  .btn {
    border: 2px solid #000;
  }
}

/* PRINT STYLES */
@media print {
  .hero-video,
  #dark-mode-toggle,
  .carousel-controls,
  #jump-to-top,
  .social-icons,
  .qr-download-section {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .feature-card,
  .calculator-result {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }
}
