:root {
  --head: #8b7355;
  --gold: #d3a06b;
  --charcoal: #212529;
  --white: #f5f5f5;
  --bronze: #8b7355;
  --glass: rgba(255, 255, 255, 0.2);
  --hover-glass: rgba(255, 255, 255, 0.3);
  --transition: 300ms ease;
  --section: #d1b99d;
  --text-muted: rgba(245, 245, 245, 0.7);
  --border-top: 10px dotted rgba(245, 245, 245, 1);
}

.dark-mode {
  --head: #212529;
  --gold: #8b7355;
  --charcoal: #f5f5f5;
  --white: #212529;
  --bronze: #d3a06b;
  --glass: rgba(211, 160, 107, 0.25);
  --hover-glass: rgba(211, 160, 107, 0.35);
  --transition: 300ms ease;
  --filter: invert(1) sepia(1) saturate(5) hue-rotate(180deg);
  --section: rgba(212, 160, 23, 0.2);
  --text-muted: rgba(44, 42, 40, 0.7);
  --border-top: 10px dotted rgba(44, 42, 40, 1);
}

body.dark-mode {
  background: var(--charcoal);
  background-color: var(--charcoal);
  background-size: 300% 300%;
}

/* Base */
html,
body {
  height: 100%;
}
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  margin: 0;
  background: var(--white);
  color: var(--charcoal);
  transition: background var(--transition), color var(--transition);
}
.container-fluid {
  padding: 0.2rem 5%;
}
.glass {
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  padding: 20px;
}
a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--bronze);
  text-decoration: none;
}
p,
div li {
  color: var(--text-muted);
  font-size: 1.1rem;
}
/* Header */
header {
  position: sticky;
  top: 0;
  height: auto;
  z-index: 1030;
  background: var(--charcoal);
  color: var(--white);
  transition: background var(--transition);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
.logo {
  width: fit-content;
}
.nav-link {
  color: inherit;
}
.nav-link:hover {
  color: var(--gold);
}

.navbar-nav {
  background-color: var(--glass);
  padding: 0.5rem 5rem;
}
.nav-item {
  margin: 0 2rem;
}
@media screen and (max-width: 600px) {
  .nav-item {
    margin: 0;
    padding: 0;
  }
  .navbar-nav {
    padding: 1rem 2rem;
  }
  .logo {
    display: block;
    margin: 0 auto;
  }
  .navbar-brand {
    margin: 0 auto;
  }
}
.theme-toggle {
  border: 1px solid var(--glass);
  padding: 0.4rem 0.9rem;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  border-radius: 5px;
  cursor: pointer;
  background-color: var(--glass);
}
.theme-toggle:hover {
  background-color: var(--hover-glass);
}
.navbar-toggler {
  border: 1px solid var(--glass);
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  margin: 5px;
  background-color: var(--glass);
}
.navbar-toggler:hover {
  background-color: var(--hover-glass);
}
.navbar-toggler-icon {
  filter: invert(1) grayscale(100%) brightness(200%);
}
/* Hero */
.hero {
  height: 100vh;
  min-height: 560px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../assets/bg-hero.webp");
  background-size: cover;
  background-position: center;
  transform: translateZ(0);
  will-change: transform;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.45));
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--head);
}
.hero p.lead {
  font-size: 1.1rem;
  opacity: 0.95;
}

/* Buttons */
.btn-gold {
  background: var(--gold);
  color: var(--charcoal);
  border: 0;
  padding: 0.6rem 1.2rem;
  margin: 1rem 0.5rem;
}
.btn-bronze {
  background: var(--bronze);
  color: var(--white);
  border: 0;
  padding: 0.6rem 1.2rem;
  margin: 1rem 0.5rem;
}
.btn-gold:focus,
.btn-bronze:focus {
  box-shadow: 0 0 0 0.2rem rgba(212, 160, 23, 0.18);
}

/* Sections */
section {
  padding: 6rem 0;
  background: var(--charcoal);
  color: var(--white);

  transition: all var(--transition);
}
#about {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}
.about-text {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: justify;
}
.projects-section {
  background: var(--glass);
  padding: 2rem 1rem 6rem 1rem;
  border-radius: 15px;
}
.section-title {
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
}

/* Services */

.serviceContainer {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-around;
  gap: 2rem;
}

.serviceCard {
  width: 370px;
  background-color: var(--glass);
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.09);
  padding: 6rem 2rem 3rem;
  position: relative;
  overflow: hidden;
  text-align: center;
  margin: 1rem;
  border-radius: 15px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}
.serviceContainer .serviceCard:hover {
  transform: scale(1.1, 1.1);
}
.serviceContainer:hover > .serviceCard:not(:hover) {
  filter: blur(2px);
  transform: scale(0.9, 0.9);
}
@media (max-width: 768px) {
  .serviceContainer:hover > .serviceCard:not(:hover) {
    filter: blur(0);
    transform: scale(0.1, 0.1);
  }
}
.serviceCard,
.serviceContainer {
  transition: all 0.3s ease;
  cursor: pointer;
}

.serviceCard > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0.75rem;
}

.serviceCircle {
  width: 6rem;
  height: 6rem;
  background-color: var(--bronze);
  border-radius: 9999px;
  position: absolute;
  right: -1.25rem;
  top: -1.75rem;
}
.serviceNumber {
  position: absolute;
  top: 2.5rem;
  left: 1.75rem;
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 2rem;
}

.card-title {
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.75rem;
  color: var(--bronze);
}

.card-description {
  font-size: 1.2rem;
  color: #71717a;
  line-height: 2rem;
}

/* Project cards */
.project-card {
  border: 1px solid rgba(44, 42, 40, 0.06);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
  background: var(--white);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease-in-out;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}
.project-card .card-img-top {
  height: 160px;
  object-fit: cover;
}

/* Contact form */
.form-feedback {
  display: none;
}
.form-feedback.show {
  display: block;
}

/* Footer */
.site-footer {
  background: var(--charcoal);
  color: var(--white);
  padding: 3rem 0;
}
@media (max-width: 600px) {
  .site-footer .row > div {
    text-align: center;
  }
}
.social a {
  color: inherit;
  margin-right: 0.6rem;
  display: inline-block;
}
.social a:hover {
  color: var(--gold);
}
.boxed-content {
  padding-right: 4rem;
  text-align: justify;
  border-radius: 15px;
}

/* Small/utility */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.fade-in.show {
  opacity: 1;
  transform: none;
}

/* Responsive tweaks */
@media (max-width: 767px) {
  .hero {
    min-height: 520px;
    padding-top: 56px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.badge {
  background-color: var(--gold);
  color: var(--white);
  padding: 0.8em 1em;
}
.card-text {
  color: var(--charcoal);
}
hr {
  width: 25%;

  border-top: var(--border-top);
  margin: 2rem auto 5rem;
  height: 10px;
}
.hr {
  margin: -50px 0;
  padding: 50px;
}

address ul {
  list-style-type: none;
}
address ul li {
  margin-left: -30px;
  margin-bottom: 1.2rem;
}
/* SOCIAL ICON */

.wrapper {
  display: inline-flex;
  list-style: none;
  height: 120px;
  width: 100%;
  padding-top: 40px;
  justify-content: center;
}

.wrapper .icon {
  position: relative;
  background: var(--bronze);
  border-radius: 50%;
  margin: 10px;
  width: 50px;
  height: 50px;
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.wrapper .tooltip {
  position: absolute;
  top: 0;
  font-size: 14px;
  background: var(--white);
  color: var(--charcoal);
  padding: 5px 8px;
  border-radius: 5px;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.wrapper .tooltip::before {
  position: absolute;
  content: "";
  height: 8px;
  width: 8px;
  background: var(--white);
  bottom: -3px;
  left: 50%;
  transform: translate(-50%) rotate(45deg);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.wrapper .icon:hover .tooltip {
  top: -45px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.wrapper .icon:hover span,
.wrapper .icon:hover .tooltip {
  text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.1);
}

.wrapper .facebook:hover,
.wrapper .facebook:hover .tooltip,
.wrapper .facebook:hover .tooltip::before {
  background: #1877f2;
  color: var(--white);
}

.wrapper .twitter:hover,
.wrapper .twitter:hover .tooltip,
.wrapper .twitter:hover .tooltip::before {
  background: #1da1f2;
  color: var(--white);
}

.wrapper .instagram:hover,
.wrapper .instagram:hover .tooltip,
.wrapper .instagram:hover .tooltip::before {
  background: #e4405f;
  color: var(--white);
}

img.d-block.w-100 {
  height: 50vh;
  object-fit: cover;
}

.modal-title {
  color: var(--white);
}
.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background-color: #25d366;
  color: white;
  width: 60px;
  text-decoration: none;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;

  font-size: 35px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.whatsapp-btn:hover {
  background-color: #20b857;
  transform: scale(1.1);
  color: white;
}