:root {
  --body-bg-color: #363636;
  --body-text-color: #ffffff;
  --heading-color: #f3cc50;
  --hero-gradient1: #f3cc50;
  --hero-gradient2: #ae2538;
  --footer-bg-color: #0d0d0d;
  --link-color: #f3cc50;
  --header-bg-color: #ffffff;
  --font-family: 'Lato', Arial, sans-serif;
  --nav-link-color: #141414;
  --footer-text-color: #ffffff;
  --header-text-color: #ffffffff;
}

body {
  background-color: var(--body-bg-color) !important;
  color: var(--body-text-color) !important;
  font-family: var(--font-family);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.5rem) !important;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2rem) !important;
}

h3 {
  font-size: clamp(1.4rem, 3vw, 1.7rem) !important;
}

p {
  margin-bottom: 0.5rem !important;
}

section {
  padding: 15px 0;
}

h3 {
  color: var(--heading-color) !important;
}

.content-area a {
  color: var(--link-color) !important;
  text-decoration: none !important;
}

.content-area a:hover {
  color: var(--link-color) !important;
  opacity: 0.8;
}

.footer {
  background-color: var(--footer-bg-color);
  color: var(--footer-text-color);
}

.footer a {
  text-decoration: none;
  color: var(--link-color) !important;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.footer-social i {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--link-color);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.footer-social i:hover {
  color: var(--body-text-color);
  background: linear-gradient(135deg, var(--hero-gradient1), var(--hero-gradient2));
  border-color: transparent;
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

/* Newsletter wrapper */
.footer-newsletter {
  max-width: 500px;
  margin: 0 auto 2rem;
}

.footer-newsletter p {
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

/* Form layout */
.newsletter-form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Email input */
.newsletter-form input[type="email"] {
  flex: 1 1 auto;
  min-width: 220px;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--footer-text-color);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.newsletter-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

/* Focus state */
.newsletter-form input[type="email"]:focus {
  border-color: var(--hero-gradient1);
  box-shadow: 0 0 0 4px rgba(243, 204, 80, 0.2);
  background: rgba(255, 255, 255, 0.12);
}

/* Submit button */
.newsletter-form button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--hero-gradient1), var(--hero-gradient2));
  color: var(--nav-link-color);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  color: var(--body-text-color);
}

.newsletter-form button:active {
  transform: translateY(0);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
}


.sidebar-page-list {
  padding: 0;
  margin: 0;
  margin-bottom: 17px;
  width: 279px;
}

.sidebar-page-list li {
  list-style-type: disc;
  list-style-position: inside;
  color: var(--heading-color);
}

.sidebar-page-list li::marker {
  color: var(--link-color);
  font-size: 1.2em;
}

.sidebar-page-list li:last-child {
  border-bottom: none;
}

.sidebar-page-list li a {
  padding: 12px 0;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  color: var(--link-color);
}

.sidebar-page-list li a:hover {
  padding-left: 11px;
}

.error_page {
  min-height: 70vh;
}


.navbar {
  background-color: var(--header-bg-color) !important;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.hero-section {
  padding: 55px 0;
  position: relative;
  overflow: hidden;
  color: var(--header-text-color);
}

.hero-section.gradient-bg {
  background: linear-gradient(135deg, var(--hero-gradient1), var(--hero-gradient2));
}

.hero-section.with-bg {
  background-image: url('/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-section.with-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgb(0, 0, 0));
  opacity: 0.5;
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

@media (max-width: 768px) {
  .hero-section {
    padding: 60px 0;
  }

}

.navbar-light .navbar-nav .nav-link {
  color: var(--nav-link-color, #141414) !important;
}

.navbar-light .navbar-nav .nav-link.active {
  color: var(--link-color) !important;
  font-weight: bold;
}

/* Mobile nav */
@media (max-width: 1199.98px) {
  .navbar-collapse {
    position: fixed;
    top: 61px;
    left: 15px;
    right: 15px;
    background-color: color-mix(in srgb, var(--header-bg-color) 65%, transparent);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    padding: 15px;
    margin: 0;
  }

  .navbar-nav {
    width: 100%;
  }

  .navbar-nav .nav-item {
    margin: 7px 0;
  }

  .navbar-nav .nav-item:hover {
    transform: translateY(-1px);
  }

  .navbar-nav .nav-link {
    font-size: 1.2rem;
    font-weight: 500;
    text-decoration: none;
    display: block;
    padding: 0;
  }

  .navbar-toggler {
    z-index: 10000;
    position: relative;
    border: var(--bs-border-width) solid var(--nav-link-color, #141414) !important;
  }
}

@media screen and (min-width: 1199.98px) {
  .dropdown-menu {
    top: 100%;
    left: 50% !important;
    transform: translateX(-50%);
  }
}

.navbar .dropdown-toggle::after {
  transition: transform .3s ease
}

.dropdown:hover .dropdown-toggle::after {
  transform: rotate(180deg)
}

.custom-dropdown {
  border: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .15);
  border-radius: 12px;
  padding: .5rem 0;
  margin-top: .5rem;
  min-width: 220px;
  background: color-mix(in srgb, var(--header-bg-color) 65%, transparent) !important;
  backdrop-filter: blur(12px)
}

.custom-dropdown .dropdown-item {
  padding: .75rem 1.5rem;
  transition: all .3s ease;
  color: var(--nav-link-color, #141414) !important;
  font-weight: 500;
  border-radius: 0;
  text-wrap: wrap
}

.custom-dropdown .dropdown-item:hover {
  color: #fff;
  background: color-mix(in srgb, var(--header-bg-color) 95%, transparent) !important;
}

.custom-dropdown .dropdown-item i {
  width: 16px;
  color: #6c757d;
  transition: color .3s ease
}

.custom-dropdown .dropdown-item:hover i {
  color: #fff
}

.dropdown-menu {
  opacity: 0;
  transition: all .3s ease;
  display: block;
  visibility: hidden
}

.dropdown-menu.show {
  opacity: 1;
  transform: translateY(0);
  visibility: visible
}

@media (min-width:1199.98px) {
  .custom-dropdown {
    max-width: 200px
  }
}

@media (max-width:1199.98px) {
  .custom-dropdown {
    display: none;
    background: #f8f9fa;
    box-shadow: none;
    border-radius: 0;
    margin-top: 0;
    border-top: 1px solid #dee2e6
  }

  .custom-dropdown .dropdown-item:hover {
    margin: 0;
    border-radius: 0;
    transform: none
  }
}

.dropdown-menu:hover,
.dropdown:hover .dropdown-menu {
  display: block !important;
  visibility: visible;
  opacity: 1
}

.dropdown-item.active,
.dropdown-item:active {
  color: #fff;
  text-decoration: none;
  background-color: #91919131 !important;
}

@media (max-width: 380px) {
  .navbar-brand {
    width: 220px;
  }
}

.error-text {
  display: inline-block;
  font-size: 8rem;
  font-weight: 900;
  color: var(--heading-color);
  text-shadow:
    0 0 10px var(--hero-gradient2),
    0 0 20px var(--hero-gradient1),
    0 0 40px var(--hero-gradient2);
  font-family: var(--font-family);
  letter-spacing: 8px;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    text-shadow:
      0 0 10px var(--hero-gradient1),
      0 0 20px var(--hero-gradient2),
      0 0 30px var(--hero-gradient1);
  }

  to {
    text-shadow:
      0 0 20px var(--hero-gradient2),
      0 0 40px var(--hero-gradient1),
      0 0 60px var(--hero-gradient2);
  }
}

.error_page_btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-size: 1.2rem;
  font-weight: 600;
  font-family: var(--font-family);
  color: var(--nav-link-color);
  background: linear-gradient(135deg, var(--hero-gradient1), var(--hero-gradient2));
  border: none;
  border-radius: 50px;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.error_page_btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  color: var(--body-text-color);
}

.error_page_btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

/* Contact section */
.contact-intro p {
  color: var(--body-text-color);
  margin-bottom: 1.5rem;
}

/* Wrapper */
.contact-form-wrapper {
  background: linear-gradient(180deg, rgba(243, 204, 80, 0.06), rgba(174, 37, 56, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* Form layout */
.contact-form {
  display: block;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .contact-form .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

/* Form groups */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: var(--font-family);
  color: var(--heading-color);
  font-weight: 700;
  letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  font-family: var(--font-family);
  font-size: 1rem;
  color: var(--body-text-color);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-group textarea {
  resize: vertical;
  min-height: 160px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Focus + valid states */
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--hero-gradient1);
  box-shadow: 0 0 0 4px rgba(243, 204, 80, 0.15);
  background: rgba(255, 255, 255, 0.06);
}

.form-group input:user-valid,
.form-group textarea:user-valid {
  border-color: var(--hero-gradient2);
}

/* Consent checkbox */
.form-consent .checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--body-text-color);
  font-size: 0.95rem;
}

.form-consent input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--hero-gradient2);
  margin-top: 0.15rem;
}

/* Hidden honeypot */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
}

/* Submit button (matches your theme) */
.contact_btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--font-family);
  color: var(--nav-link-color);
  background: linear-gradient(135deg, var(--hero-gradient1), var(--hero-gradient2));
  border: none;
  border-radius: 999px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.contact_btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  color: var(--body-text-color);
  filter: brightness(1.02);
}

.contact_btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

/* Error/required hints (optional helper classes) */
.input-error {
  border-color: #ff5a5f !important;
  box-shadow: 0 0 0 4px rgba(255, 90, 95, 0.15) !important;
}

.help-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}


/* ===== HERO SECTION ===== */
.hero-section {
  padding: 60px 0;
  position: relative;
  overflow: hidden;
  color: #fff;
  /* text is black */
  isolation: isolate;
}

.hero-section.gradient-bg {
  background:
    radial-gradient(900px 500px at 120% 20%, rgba(0, 0, 0, 0.18), transparent 60%),
    radial-gradient(900px 500px at -20% -10%, rgba(255, 255, 255, 0.08), transparent 60%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(-45deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(135deg, var(--hero-gradient1), var(--hero-gradient2));
  background-size: auto, auto, 28px 28px, 28px 28px, auto;
  background-position: center, center, 0 0, 14px 14px, center;
}

/* ensure content is above chips */
.hero-section .container {
  position: relative;
  z-index: 1;
}

/* ===== CHIP LAYER 1 (7 chips) ===== */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  /* behind */
  pointer-events: none;
  background-image:
    url("/images/chip.svg"),
    url("/images/chip.svg"),
    url("/images/chip.svg"),
    url("/images/chip.svg"),
    url("/images/chip.svg"),
    url("/images/chip.svg"),
    url("/images/chip.svg");
  background-repeat: no-repeat;
  background-size:
    100px 100px,
    140px 140px,
    110px 110px,
    80px 80px,
    90px 90px,
    72px 72px,
    88px 88px;
  background-position:
    8% 18%,
    92% 85%,
    6% 78%,
    86% 22%,
    44% 92%,
    20% 10%,
    25% 26%;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.35));
  animation: chips-drift-a 12s ease-in-out infinite;
}

/* ===== CHIP LAYER 2 (7 chips) ===== */
.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  /* behind */
  pointer-events: none;
  background-image:
    url("/images/chip.svg"),
    url("/images/chip.svg"),
    url("/images/chip.svg"),
    url("/images/chip.svg"),
    url("/images/chip.svg"),
    url("/images/chip.svg"),
    url("/images/chip.svg");
  background-repeat: no-repeat;
  background-size:
    64px 64px,
    96px 96px,
    68px 68px,
    82px 82px,
    95px 95px,
    76px 76px,
    120px 120px;
  background-position:
    73% 30%,
    88% 55%,
    15% 40%,
    35% 75%,
    70% 88%,
    55% 18%,
    80% 70%;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.3));
  animation: chips-drift-b 15s ease-in-out infinite reverse;
}

/* ===== ANIMATIONS ===== */
@keyframes chips-drift-a {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(8px, -10px);
  }
}

@keyframes chips-drift-b {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-10px, 8px);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

  .hero-section::before,
  .hero-section::after {
    animation: none !important;
  }
}

.hero-section .overlay {
  padding: 15px;
  background: color-mix(in srgb, var(--footer-bg-color) 50%, transparent) !important;
}

h2 {
  font-family: var(--font-family);
  font-weight: 700;
  text-align: center;
  color: var(--heading-color);
  letter-spacing: 1px;
  margin: 0 auto 1.5rem;
  position: relative;
  display: block;
  /* important for underline centering */
  padding-bottom: 0.5rem;
}

/* Gradient underline */
h2::after {
  content: "";
  position: absolute;
  left: 50%;
  /* center */
  bottom: 0;
  transform: translateX(-50%);
  /* align underline perfectly */
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, var(--hero-gradient1), var(--hero-gradient2));
  border-radius: 2px;
}

.service {
  background: linear-gradient(135deg, var(--hero-gradient1), var(--hero-gradient2));
  color: #fff;
  font-family: var(--font-family);
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), 0 0 10px rgba(243, 204, 80, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  height: 100%
}

/* Add a glowing overlay */
.service::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 150%;
  height: 150%;
  background: conic-gradient(from 0deg,
      var(--hero-gradient1),
      var(--hero-gradient2),
      var(--link-color),
      var(--hero-gradient1));
  animation: spin 10s linear infinite;
  opacity: 0.15;
  z-index: 0;
}

.service>* {
  position: relative;
  z-index: 1;
}

/* Hover effect */
.service:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35), 0 0 18px rgba(243, 204, 80, 0.7);
}

.service h3 {
  color: var(--body-text-color) !important;
  text-align: center;
}

.service a {
  color: var(--footer-bg-color) !important;
  text-decoration: underline !important;
}

.service a:hover {
  color: var(--footer-bg-color) !important;
  text-decoration: underline wavy !important;
}

/* Animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.box {
  border: 4px solid transparent;
  border-image: linear-gradient(135deg, var(--hero-gradient1), var(--hero-gradient2));
  border-image-slice: 1;
  border-radius: 20px;
  padding: 1.5rem;
  background-color: var(--body-bg-color);
  height: 100%
}