@import url('https://api.fontshare.com/v2/css?f[]=satoshi@300,400,500,700&f[]=melodrama@700&display=swap');

:root {
  --bg-color: #f4f0e8;
  --text-color: #222;
  --border-color: #000;
  --footer-bg: #000000;
  --footer-text: rgba(255, 255, 255, 0.72);
  --button-bg: #000;
  --button-text: #fff;
  --modal-bg: rgba(0, 0, 0, 0.95);
  --carousel-bg: rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] {
  --bg-color: #000;
  --text-color: #e0e0e0;
  --border-color: #fff;
  --footer-bg: #000000;
  --footer-text: rgba(255, 255, 255, 0.9);
  --button-bg: #fff;
  --button-text: #000;
  --modal-bg: rgba(255, 255, 255, 0.95);
  --carousel-bg: rgba(255, 255, 255, 0.5);
}

html {
  color: var(--text-color);
  font-size: 1em;
  line-height: 1.4;
  transition: color 0.3s ease;
}

body {
  background: var(--bg-color) !important;
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.border-top-black {
  border-top: 1px solid var(--border-color);
  transition: border-color 0.3s ease;
}

.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.footer a {
  color: var(--footer-text);
  transition: color 0.3s ease;
}

.contact-links a {
  color: var(--text-color);
  opacity: 0.7;
  transition: color 0.3s ease;
}

/* Carousel controls */
.carousel-control-prev,
.carousel-control-next {
  color: var(--text-color);
  transition: color 0.3s ease;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--carousel-bg);
  transition: background-color 0.3s ease;
}

/* Modal updates */
.modal-fullscreen-custom .modal-content {
  background: var(--modal-bg);
  transition: background-color 0.3s ease;
}

.modal-close-btn {
  background: var(--carousel-bg);
  color: var(--text-color);
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
}

.modal-close-btn:hover {
  background: var(--button-bg);
  color: var(--button-text);
}

.carousel-nav-btn {
  background: var(--carousel-bg);
  color: var(--text-color);
  transition: all 0.3s ease;
}

.carousel-nav-btn:hover {
  background: var(--button-bg);
  color: var(--button-text);
}

.image-counter {
  background: var(--carousel-bg);
  color: var(--text-color);
  transition: all 0.3s ease;
}

/* Service cards styling */
.service-card {
  transition: all 0.3s ease;
}

.service-icon {
  color: var(--text-color);
  transition: color 0.3s ease;
}

/* Map container for dark mode */
[data-theme="dark"] .leaflet-control-container {
  filter: invert(1) hue-rotate(180deg);
}

[data-theme="dark"] .leaflet-tile {
  filter: invert(1) hue-rotate(180deg);
}

/* Additional styles from your CSS */
::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

textarea {
  resize: vertical;
}

.hidden,
[hidden] {
  display: none !important;
}

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

.invisible {
  visibility: hidden;
}

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

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

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-family: 'Melodrama', cursive;
  font-weight: 700;
  color: var(--text-color);
  transition: color 0.3s ease;
}

h2, h3, h4, h5, h6 {
  font-family: 'Satoshi', sans-serif;
  font-weight: 700;
  color: var(--text-color) !important;
  transition: color 0.3s ease;
}

p {
  font-size: 1rem;
  opacity: 0.9;
  font-family: 'Satoshi', serif;
  color: var(--text-color);
  transition: color 0.3s ease;
}

.semi-bold {
  font-weight: 600;
}

.contact-links #wa {
  font-size: 1.5em;
  color: #25d366;
}

.contact-links #ig {
  font-size: 1.5em;
}

#ig {
  background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-logo {
  height: 8.5rem;
}

.header {
  width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
}

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
}

section {
  width: 600px;
  padding-bottom: 2em;
}

#logo {
  width: 100px;
  height: auto;
}

.main-content {
  flex: 1;
  overflow-y: scroll;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0px 50px;
}

.footer-logo {
  height: 80px;
}

.footer p {
  font-size: 0.8em;
  line-height: 1.6;
  margin: 0;
  color: var(--footer-text);
}

.footer-links a:hover {
  opacity: 1;
}

.carousel-inner {
  height: 400px;
}

.carousel-item {
  height: 100%;
}

.carousel-item img {
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.carousel-item img:hover {
  opacity: 0.9;
}

.modal-fullscreen-custom {
  max-width: 100vw;
  margin: 0;
}

.modal-fullscreen-custom .modal-body {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.modal-fullscreen-custom img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.events-photo {
  width: 100%;
  min-height: 184px;
  max-width: 600px;
  margin: auto;
  object-fit: cover;
}

.text-decoration-none {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

#map {
  height: 300px;
  width: 100%;
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.upcase {
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .header {
    width: 100%;
    padding: 10px;
  }

  section {
    width: 100%;
    padding: 10px;
  }

  .footer {
    flex-direction: column;
    align-items: center;
    height: auto;
    padding: 20px;
  }

  .footer p {
    text-align: center;
    font-size: 0.9em;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
  }

  .footer-links a {
    padding: 5px;
  }
}

@media (max-width: 768px) {
  .mobile-none {
    display: none;
  }
}

/* Dark mode toggle switch */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  width: 60px;
  height: 30px;
  background: var(--border-color);
  border: 2px solid var(--border-color);
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.toggle-slider {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 30px;
  background: var(--bg-color);
  transition: all 0.3s ease;
}

.toggle-circle {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  background: var(--border-color);
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .toggle-circle {
  transform: translateX(30px);
}

@media (max-width: 600px) {
  .theme-toggle {
    top: 10px;
    right: 10px;
    width: 50px;
    height: 25px;
  }

  .toggle-circle {
    width: 19px;
    height: 19px;
  }

  [data-theme="dark"] .toggle-circle {
    transform: translateX(25px);
  }
}
