:root {
  --olive-green: #42522B;
  --cream-white: #F7F5EA;
  --dark-charcoal: #2B2B2A;
  --light-khaki: #CBB58B;

  --primary-blue: var(--olive-green);
  --dark-blue: var(--olive-green);
  --grey: #64748b;
  --off-white: var(--cream-white);
  --accent-blue: var(--olive-green);
  --text-dark: var(--dark-charcoal);
  --text-muted: #555554;
  --border-color: var(--light-khaki);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);

  /* Dynamic Variables */
  --bg-color: var(--off-white);
  --card-bg: var(--off-white);
  --text-color: var(--text-dark);
  --section-bg: var(--off-white);
  --input-bg: #ffffff;
  --header-bg: var(--off-white);
}

body.dark-mode {
  --bg-color: #1a1f11;
  --card-bg: #2a2f1a;
  --text-color: #f7f5ea;
  --section-bg: #1a1f11;
  --text-muted: #cbb58b;
  --border-color: #42522b;
  --input-bg: #2a2f1a;
  --header-bg: #13170c;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  font-family: "Inter", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Navigation Styles */
.navbar {
  background: var(--header-bg) !important;
  padding: 15px 0;
  position: relative;
  z-index: 1000;
  box-shadow: var(--shadow);
  border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
  font-family: "Poppins", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--olive-green) !important;
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-brand img {
  height: 45px;
  width: auto;
  border-radius: 6px;
}

.navbar-toggler {
  border-color: var(--border-color) !important;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem var(--accent-blue);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23000' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'%3e%3c/path%3e%3c/svg%3e");
}

body.dark-mode .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23fff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'%3e%3c/path%3e%3c/svg%3e");
}

.nav-link {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  color: var(--text-color) !important;
  margin: 0 8px;
  padding: 8px 16px !important;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--accent-blue) !important;
  background-color: rgba(0, 0, 0, 0.05);
}

.nav-link.active {
  color: var(--accent-blue) !important;
  font-weight: 600;
}

/* The Glowing Animation for the Edges */
@keyframes borderGlow {
  0% {
    box-shadow: 0 0 5px rgba(203, 181, 139, 0.5),
      0 0 10px rgba(203, 181, 139, 0.3);
    border-color: rgba(203, 181, 139, 0.5);
  }
  50% {
    box-shadow: 0 0 15px rgba(203, 181, 139, 0.9),
      0 0 25px rgba(203, 181, 139, 0.5);
    border-color: rgba(203, 181, 139, 1);
  }
  100% {
    box-shadow: 0 0 5px rgba(203, 181, 139, 0.5),
      0 0 10px rgba(203, 181, 139, 0.3);
    border-color: rgba(203, 181, 139, 0.5);
  }
}

/* Apply the glow to your specific button class */
.btn-order {
  background: var(--accent-blue);
  color: white !important;
  border: 2px solid transparent;
  border-radius: 25px;
  transition: all 0.3s ease;
  animation: borderGlow 2s infinite ease-in-out;
}

.btn-order:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(66, 82, 43, 0.4);
  background: var(--olive-green);
  filter: brightness(1.1);
}

/* Theme Toggle Button */
.theme-toggle {
  width: 40px;
  height: 40px;
  background: var(--card-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-color);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.theme-toggle:hover {
  background: var(--accent-blue);
  transform: rotate(15deg) scale(1.1);
  color: white;
}

.theme-toggle i {
  font-size: 18px;
}

body.dark-mode .theme-toggle {
  background: var(--accent-blue);
  color: var(--text-color);
}

main {
  flex: 1;
}

@media (max-width: 991px) {
  .navbar {
    padding: 25px 0 !important;
    min-height: 100px !important;
  }
  .navbar .container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .header-controls {
    display: flex !important;
    z-index: 10;
  }

  .centered-brand {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    z-index: 5;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
  }

  .brand-name {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--olive-green) !important;
    margin-top: 4px !important;
    text-align: center !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
  }

  .navbar-brand img {
    height: 45px !important;
    margin-bottom: 2px !important;
  }

  .navbar-toggler {
    padding: 4px 8px !important;
    font-size: 1rem !important;
  }

  .theme-toggle {
    width: 35px !important;
    height: 35px !important;
  }

  .navbar-collapse {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: var(--header-bg);
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    z-index: 1000;
  }
}

@media (max-width: 991px) {
  .navbar-nav {
    text-align: right !important;
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 12px !important;
  }
  .navbar-brand img {
    height: 38px !important;
  }
}

.brand-name {
  font-family: "Poppins", sans-serif;
  transition: color 0.3s ease;
}

.navbar-brand img {
  height: 40px;
  width: auto;
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}
