/* === GLOBAL STYLES === */

/* Background color */
body {
  background-color: #f5f5f5;
  padding-top: 150px; /* For fixed navbar */
  font-family: "DM Sans", sans-serif !important;
  font-optical-sizing: auto !important;
  font-weight: 400 !important;
  font-style: normal !important;
}

/* Animation base style */
.pre-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.bolder-icon {
  -webkit-text-stroke: 1px; /* Adjust thickness as needed */
}

@media (max-width: 767.98px) {
  body {
    padding-top: 126.7px;
  }
}

/* Navbar and small-screen tweaks */
@media (max-width: 991.98px) {
  .navbar {
    padding: 10px 8px;
  }

  .navbar .container-fluid {
    padding-left: 12px;
    padding-right: 12px;
  }

  .no-wrap-navbar {
    white-space: normal;
    flex-wrap: wrap !important;
    gap: 8px;
  }

  .navbar-brand img {
    height: 80px;
    width: 80px;
  }
}

@media (max-width: 575.98px) {
  .navbar {
    padding: 8px 6px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
  }

  .footerbg .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .navbar-brand img {
    height: 60px;
    width: 60px;
  }

  .no-wrap-navbar {
    justify-content: flex-end;
  }
}

/* === NAVBAR STYLES === */

.navbar {
  background: linear-gradient(135deg, #1b2214, #262f1b) !important;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 15px 0;
}

.navbarbg {
  background: linear-gradient(135deg, #1b2214, #262f1b);
}

.navbar-nav .btn {
  background: none;
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  position: relative;
  transition: color 0.3s ease;
}

@media (max-width: 575.98px) {
  .schedule-btn-nav {
    display: none !important;
  }
}

.navbar-nav .btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.2rem;
  width: 0%;
  height: 2px;
  background-color: #ffffff;
  transition: width 0.3s ease;
}

.navbar-nav .btn:hover {
  color: #d4af37 !important;
}

.navbar-nav .btn:hover::after {
  width: 100%;
}

.no-wrap-navbar {
  white-space: nowrap;
  flex-wrap: nowrap !important;
}

/* Dropdown styles */
.dropdown-divider {
  border-top: 1px solid #ffd700;
  opacity: 1;
  margin: 0.5rem 0;
}

.dropdown-menu.navbarbg {
  min-width: 10rem;
  max-width: 300px;
  white-space: normal;
  right: 0 !important;
  left: auto !important;
}

.dropdown-menu {
  max-height: 300px;
  overflow-y: auto;
}

.dropdown-item {
  position: relative;
  transition: color 0.3s ease;
  background-color: transparent !important;
}

.dropdown-item::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  bottom: 0.25rem;
  width: 0;
  height: 1px;
  background-color: #d4af37;
  transition: width 0.3s ease;
}

.dropdown-item:hover {
  color: #d4af37 !important;
  background-color: transparent !important;
}

.dropdown-item:hover::after {
  width: calc(100% - 1rem);
}

/* === FOOTER STYLES === */

.footerbg {
  margin-top: 0;
  padding: 50px 50px 20px;
  background-color: #333333;
  position: relative;
}

.footerbg .container {
  padding-left: 50px;
  padding-right: 50px;
}

.socials i {
  font-size: 1.2rem;
  transition: all 0.3s ease-in-out;
  color: #ffffff;
}

.socials i:hover {
  color: #d4af37 !important;
  transform: translateY(-3px) scale(1.1);
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.socials i:nth-child(1):hover {
  transition-delay: 0.05s;
}
.socials i:nth-child(2):hover {
  transition-delay: 0.1s;
}
.socials i:nth-child(3):hover {
  transition-delay: 0.15s;
}
.socials i:nth-child(4):hover {
  transition-delay: 0.2s;
}

@media (max-width: 767.98px) {
  .footerbg {
    padding: 30px 30px 20px;
  }

  .footerbg .container {
    padding-left: 30px;
    padding-right: 30px;
  }

  .footer-content {
    text-align: center;
  }

  .socials {
    justify-content: center !important;
  }
}

.text-gold {
  background: linear-gradient(to top, #544516 0%, #d4af37 60%, #c8a832 100%);
  color: #4b3e14;
  transition: transform 0.3s ease-in-out;
  border: none !important;
  outline: none !important;
  box-shadow: none;
}

.text-green {
  background: linear-gradient(to top, #354227 0%, #3c4c29 60%, #516a32 100%);
  color: #ffffff;
  transition: transform 0.3s ease-in-out;
  border: none !important;
  outline: none !important;
  box-shadow: none;
}

.custom-divider-green {
  margin-top: 2rem;
  margin-bottom: 2rem;
  width: 25%;
  border: 0;
  border-top: 3px solid #394826;
}

.custom-divider-gold {
  margin-top: 2rem;
  margin-bottom: 2rem;
  width: 25%;
  border: 0;
  border-top: 3px solid #d4af37;
}

.hover-bounce:hover {
  animation: bounce 0.5s ease infinite alternate;
  transform: scale(1.05);
}

@keyframes bounce {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-5px);
  }
}

/* Contact icons */
.contact-icon {
  cursor: pointer;
  transition: all 0.3s ease;
  color: #ffffff;
}

.contact-icon:hover {
  color: #d4af37 !important;
  transform: translateY(-3px) scale(1.1);
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
  animation: bounce 0.5s ease infinite alternate;
}

/* Tooltip */
.tooltip-inner {
  background-color: #d4af37;
  color: #333;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 70px;
  right: 50px;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.back-to-top.visible {
  display: block;
  opacity: 0.8;
  pointer-events: auto;
}

.back-to-top:hover {
  opacity: 1;
  transform: translateY(-3px);
}

/* Responsive adjustment for nowrap */
@media (max-width: 991.98px) {
  .no-wrap-navbar > * {
    flex-shrink: 0;
  }
}

a.developer-link {
  color: inherit;
  text-decoration: none;
  transition: text-decoration 0.2s ease;
}

a.developer-link:hover {
  text-decoration: underline;
}

/* Lock aspect ratio for very small screens (phone size) */
@media (max-width: 479.98px) {
  .hero-video,
  .hero-section {
    aspect-ratio: 9/16;
    height: auto !important;
    min-height: 320px;
    max-height: 100vw;
  }
  .outer-div,
  .inner-div {
    aspect-ratio: 9/16;
    height: auto !important;
    min-height: 320px;
    max-height: 100vw;
    padding: 20px !important;
  }
  .service-card {
    aspect-ratio: 4/5;
    min-width: 180px;
    max-width: 100vw;
  }
  .column-image {
    aspect-ratio: 4/5;
    min-width: 120px;
    max-width: 100vw;
  }
}
