/* Root Variables for Theming */
:root {
  --primary: #CDA45E; /* Adjusted gold to match the logo */
  --primary-hover: #B7904C;
  --dark-bg: #151e29; /* Deep navy blue from the background of the logo */
  --light-bg: #fafafa;
  --text-dark: #333333;
  --text-light: #f4f4f4;
  --transition: all 0.3s ease-in-out;
}

/* Override bootstrap dark backgrounds with theme navy */
.bg-dark, .bg-black {
  background-color: var(--dark-bg) !important;
}

p {
  text-align: justify;
}

.text-center p {
  text-align: center;
}

body {
  font-family: 'Outfit', sans-serif;
  color: var(--text-dark);
}

/* Utilities */
.text-primary-brand {
  color: var(--primary) !important;
}

.bg-primary-brand {
  background-color: var(--primary) !important;
}

.bg-primary-brand-light {
    background-color: rgba(203, 160, 82, 0.1) !important;
}

.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary) 0%, #b8860b 100%);
  border: none;
  color: #fff;
  font-weight: 600;
  transition: var(--transition);
}

.btn-primary-custom:hover, .btn-primary-custom:focus {
  background: linear-gradient(135deg, var(--primary-hover) 0%, #9e7309 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(205, 164, 94, 0.4);
}

.divider {
  height: 3px;
  width: 60px;
  background-color: var(--primary);
  border-radius: 2px;
}

/* Typography & Layout Spacing */
.page-section {
  padding: 6rem 0;
}

/* Navbar */
#mainNav {
  transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
  background-color: transparent;
}

#mainNav .navbar-brand {
  color: #fff;
  letter-spacing: 1px;
}

#mainNav .nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 0.5rem 1rem;
  transition: var(--transition);
}

#mainNav .nav-link:hover, #mainNav .nav-link.active {
  color: var(--primary);
}

#mainNav .navbar-toggler {
  color: #fff;
}

/* Navbar Scrolled State */
#mainNav.navbar-scrolled {
  background-color: rgba(21, 30, 41, 0.95) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  padding-top: 0.8rem !important;
  padding-bottom: 0.8rem !important;
}

#mainNav.navbar-scrolled .navbar-brand {
  color: #fff;
}

#mainNav.navbar-scrolled .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

#mainNav.navbar-scrolled .nav-link:hover, #mainNav.navbar-scrolled .nav-link.active {
  color: var(--primary);
}

#mainNav.navbar-scrolled .navbar-toggler {
  color: #fff;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1920&q=80') center center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(21, 30, 41, 0.75) 0%, rgba(21, 30, 41, 0.95) 100%);
}

.hero .container {
    padding-top: 4rem;
}

/* Animations in Hero */
.drop-in {
  animation: dropIn 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
  opacity: 0;
  transform: translateY(-30px);
}

.fade-in-up {
  animation: fadeInUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
  opacity: 0;
  transform: translateY(30px);
}

.delay-1 {
  animation-delay: 0.3s;
}

@keyframes dropIn {
  to { opacity: 1; transform: translateY(0); }
}

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

/* About Section */
.about-img {
    transition: transform 0.5s ease;
}
.about-img:hover {
    transform: scale(1.02);
}

.custom-list li {
    font-size: 1.05rem;
}

/* Services section */
.service-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 1rem 3rem rgba(0,0,0,0.1) !important;
  border-color: rgba(203, 160, 82, 0.2);
}

.service-card .icon-box {
    transition: all 0.3s ease;
}

.service-card:hover .icon-box {
    background-color: var(--primary) !important;
    color: #fff !important;
    transform: scale(1.1);
}

/* Contact Section Form */
.form-floating label {
    color: #6c757d;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(203, 160, 82, 0.25);
}

/* Footer elements */
.btn-social {
    width: 2.2rem;
    height: 2.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    transition: var(--transition);
    background: transparent;
}

.btn-social:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

/* Mobile responsive adjustments */
@media (max-width: 991.98px) {
  #mainNav {
    background-color: rgba(21, 30, 41, 0.98) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }
  #mainNav .navbar-brand, #mainNav .nav-link, #mainNav .navbar-toggler {
    color: #fff;
  }
  #mainNav .nav-link:hover, #mainNav .nav-link.active {
    color: var(--primary);
  }
}

/* Footer & Utilities */
.bg-dark-custom {
  background-color: #111820; /* Slightly darker than navy for depth */
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #fff;
  padding-left: 5px;
}

.letter-spacing {
  letter-spacing: 1.5px;
}


/* Floating Contact Button */
.floating-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.floating-button {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  position: relative;
  border: none;
  cursor: pointer;
  padding: 0;
}

.floating-button:hover {
  transform: translateY(-5px) scale(1.08);
  color: white;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.floating-button.whatsapp {
  background-color: #25d366;
}

.floating-button.phone {
  background-color: #3498db;
}

.floating-button.main-toggle {
  background: linear-gradient(135deg, var(--primary) 0%, #b8860b 100%);
}

.contact-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px) scale(0.8);
  transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.floating-container.active .contact-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.floating-container.active .main-toggle i {
  transform: scale(1.1);
}

.floating-button i {
    transition: transform 0.5s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

/* Pulse animation for WhatsApp if not active */
.whatsapp-pulse {
  position: relative;
}

.whatsapp-pulse::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #25d366;
  border-radius: 50%;
  z-index: -1;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}

@media (max-width: 576px) {
  .floating-container {
    bottom: 20px;
    right: 20px;
  }
  .floating-button {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}
