/* 
----------------------------------
            CSS Variables 
----------------------------------
*/
:root {
  --app-height: 100vh;
  --locked-vh: calc(100vh - 107px);
  --main-color: #A5907E;
  --secondary-color: #A5907E;
  --third-color: #A5907E;
  --text-highlight-color: linear-gradient(45deg, #A5907E 0%, #e4c7af 25%, #a69180 50%, #e4c7af 75%, #A5907E 100%);
  --main-section-color: #222;
  --secondary-section-color: var(#fff);
  --footer-background-color: #091413;
  --footer-subsection-background-color: #a69180;
  --icon-color: var(--main-color);
  --divider-icon-color: var(--main-color);
  --divider-color: linear-gradient(90deg, transparent, var(--main-color), transparent);
}

@media (min-width: 992px) {
  :root {
    --app-height: calc(100vh - 137px);
  }
}

@media (min-width: 1200px) {
  :root {
    --app-height: calc(100vh - 177px);
  }
}

/* 
----------------------------------
            Common 
----------------------------------
*/

body {
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: inherit;
}

i {
  color: var(--icon-color);
}

.section-title {
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 5px;
  background: var(--divider-color);
  border-radius: 3px;
}

.section-subtitle {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 300;
  margin-top: 1.5rem;
  letter-spacing: 0.3px;
}

.reveal-content {
  opacity: 0;
  animation: revealUp 1s forwards;
  animation-delay: 0.4s;
}

.reveal-img {
  opacity: 0;
  animation: fadeIn 1.2s forwards;
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translate(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes rotateBorder {
  to {
    --angle: 360deg;
  }
}

/* 
----------------------------------
            Navbar 
----------------------------------
*/

.navbar {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 1070;
  transition: background-color 0.3s ease, padding 0.3s ease;
}

.navbar-brand img {
  height: 80px;
  transition: height 0.2s ease-out;
}

.navbar-nav .nav-link {
  padding: 8px 18px !important;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
  color: #333 !important;
  font-weight: 500;
  font-size: 1.4rem;
  margin: 0 4px;
  border-radius: 10px;
  border: transparent solid 3px;
}

.navbar-nav .nav-link:hover {
  color: var(--main-color) !important;
  border: var(--main-color) solid 3px;
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.74);
}

.navbar-toggler {
  border: none;
  width: 30px;
  height: 24px;
  position: relative;
  padding: 0;
  background: transparent;
  margin-right: 15px;
}

.navbar-toggler:focus,
.navbar-toggler:focus-visible {
  box-shadow: none !important;
  outline: 0 !important;
}

.toggler-icon {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: #333;
  border-radius: 9px;
  transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.3s ease, top 0.3s ease;
}

.line-1 {
  top: -1px;
}

.line-2 {
  top: 10px;
  opacity: 1;
  left: 0;
}

.line-3 {
  top: 20px;
}

.navbar-toggler:not(.collapsed) .line-1 {
  top: 10px;
  transform: rotate(135deg);
}

.navbar-toggler:not(.collapsed) .line-2 {
  opacity: 0;
  transform: translateX(-20px);
}

.navbar-toggler:not(.collapsed) .line-3 {
  top: 10px;
  transform: rotate(-135deg);
}

@media (min-width: 991.98px) {
  .navbar-big .navbar-brand img {
    height: 150px;
  }

  .navbar-nav {
    height: 50px;
  }

  .navbar-nav .nav-item {
    height: 80%;
  }
}

@media (min-width: 991.98px) and (max-width: 1200px) {
  .navbar-nav .nav-link {
    font-size: 1.3rem;
  }

  .navbar-big .navbar-brand img {
    height: 110px;
  }
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    transform-origin: top;
    padding: 15px 0;
  }

  .navbar-collapse.collapsing {
    height: auto !important;
    transform: scaleY(0);
    opacity: 0;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease-out !important;
  }

  .navbar-collapse.show {
    transform: scaleY(1);
    opacity: 1;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease !important;
  }

  .navbar-nav {
    max-width: 400px;
    margin: 0 auto;
  }

  .navbar-nav .nav-link {
    text-align: center;
    padding: 12px !important;
    margin: 4px auto;
    width: 100%;
  }
}

/* 
----------------------------------
            Hero 
----------------------------------
*/
#main {
  position: relative;
}

.hero-dotted-pattern {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: radial-gradient(#d1d1d1 1.5px, transparent 1.5px);
  background-size: 25px 25px;
  opacity: 0.6;
}

.hero-main-content {
  z-index: 5;
}

.hero-mask-layer {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-color: #ffffff;
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 2;
}

.text-highlight {
  display: inline-block;
  background: var(--text-highlight-color);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 10s linear infinite;
}

.divider-icon {
  display: flex;
  align-items: center;
  gap: 15px;
}

.divider-icon svg {
  stroke: var(--divider-icon-color) !important;
  width: clamp(40px, 4vw, 60px);
  height: auto;
}

.divider-icon::after {
  content: "";
  height: 3px;
  width: clamp(60px, 8vw, 120px);
  background: linear-gradient(to right, var(--main-color), transparent);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(75deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.1) 100%);
}

.line-over-image {
  position: absolute;
  top: 0;
  left: 15%;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, var(--main-color), var(--third-color), var(--secondary-color));
  z-index: 6;
  transform: skewX(-8.5deg);
}

.btn-appointment {
  padding: clamp(12px, 1.5vw, 18px) clamp(30px, 4vw, 55px);
  font-size: clamp(0.9rem, 0.5vw + 0.5rem, 1.1rem);
  background: #111;
  color: var(--secondary-color) !important;
  border: 2px solid var(--main-color);
  border-radius: 2px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease-in-out;
}

.btn-appointment:hover {
  background: linear-gradient(45deg, var(--main-color), #fcf6ba);
  color: #111 !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(191, 149, 63, 0.4);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 25%;
  transform: translateX(-50%);
  z-index: 100;
  flex-direction: column;
  align-items: center;
  transition: opacity 0.5s;
  animation-delay: 0.8s !important;
  transform: translateY(20px);
}

.mouse-body {
  width: 26px;
  height: 42px;
  border: 2px solid var(--icon-color);
  border-radius: 14px;
  position: relative;
  background: rgba(255, 255, 255, 0.2);
}

.mouse-wheel {
  width: 4px;
  height: 8px;
  background-color: var(--icon-color);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: wheelScroll 2s infinite;
}

.scroll-arrow span {
  display: block;
  width: 10px;
  height: 10px;
  border-bottom: 2px solid var(--icon-color);
  border-right: 2px solid var(--icon-color);
  transform: rotate(45deg);
  margin-top: 5px;
  animation: arrowFade 2s infinite;
}

/* ========================================= */
/* DESKTOP LAYOUT                            */
/* ========================================= */
@media (min-width: 991.98px) {
  #main {
    height: var(--app-height);
    overflow: hidden;
  }

  .hero-main-content,
  .hero-grid-row {
    height: 100%;
  }

  .hero-grid-row {
    display: flex;
    align-items: center;
  }

  .hero-col-image,
  .hero-col-text {
    height: 100%;
  }

  .hero-image-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    background-color: #000;
  }

  .hero-col-text {
    display: flex;
    align-items: center;
  }

  .hero-text-content {
    width: 100%;
    max-width: 800px;
    padding-left: clamp(5%, 10vw, 15%);
    padding-right: 5%;
    transform: translate(-30px, 0);
  }

  .hero-text-content h1 {
    font-size: clamp(2.5rem, 4vw + 1rem, 4.5rem);
    line-height: 1.1;
  }

  .hero-text-content .lead {
    font-size: clamp(1.1rem, 0.8vw + 0.5rem, 1.5rem);
    max-width: 500px;
  }
}

/* ========================================= */
/* MOBILE LAYOUT (CSS GRID)                  */
/* ========================================= */
@media (max-width: 991.98px) {
  #main {
    min-height: var(--app-height);
    height: auto;
    overflow: visible;
  }

  .hero-main-content {
    height: 100%;
  }

  .hero-grid-row {
    display: grid;
    grid-template-rows: 1fr auto;
    min-height: var(--app-height);
    width: 100%;
    margin: 0;
  }

  .hero-col-image {
    width: 100%;
    min-height: 220px;
    position: relative;
    z-index: 1;
  }

  .hero-image-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    clip-path: none;
    border-bottom: 4px solid var(--secondary-color);
  }

  .hero-col-text {
    width: 100%;
    padding-bottom: 2.5rem;
    z-index: 10;
  }

  .hero-text-content {
    background: #fff;
    text-align: center;
    padding: clamp(2rem, 6vw, 3.5rem) clamp(1.2rem, 5vw, 2.5rem);

    /* Pulls box UP over the image */
    margin: -60px auto 0 auto;

    width: 92%;
    max-width: 600px;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    position: relative;
  }

  .divider-icon {
    justify-content: center;
    margin: 15px 0;
  }

  .divider-icon svg {
    height: 20px;
    width: auto;
  }

  .divider-icon::after {
    display: none;
  }

  .mobile-border-glow {
    position: absolute;
    inset: 0;
    border-radius: 25px;
    padding: 3px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;

    pointer-events: none;
    z-index: -1;
    overflow: hidden;
  }

  .mobile-border-glow::before {
    content: "";
    position: absolute;
    inset: -50%;
    background: conic-gradient(transparent 70%,
        var(--main-color),
        var(--third-color),
        var(--secondary-color));
    animation: gpuRotateBorder 4s linear infinite;
  }

  .hero-text-content h1 {
    font-size: clamp(2rem, 8vw, 3.2rem);
    line-height: 1.1;
  }

  .hero-text-content .lead {
    font-size: clamp(1rem, 4vw, 1.25rem);
    max-width: none;
    margin-bottom: 1.5rem !important;
  }
}

@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}

@keyframes wheelScroll {
  0% {
    transform: translate(-50%, 0);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, 15px);
    opacity: 0;
  }
}

@keyframes arrowFade {
  0% {
    opacity: 0;
    transform: rotate(45deg) translate(-5px, -5px);
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: rotate(45deg) translate(5px, 5px);
  }
}

@keyframes gpuRotateBorder {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@media (max-height: 850px) {
  .scroll-indicator {
    display: none !important;
    opacity: 0;
    visibility: hidden;
  }
}

/* ----------------------------------
            About me
----------------------------------
*/

#aboutme {
  position: relative;
  overflow: hidden;
  background-color: #fbfbfb;
}

.section-divider-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, transparent 10%, var(--main-color) 50%, transparent 90%);
  opacity: 0.6;
}

.aboutme-image-frame {
  position: relative;
  z-index: 2;
  border-radius: 8px;
}

.aboutme-image-frame::before {
  content: "";
  position: absolute;
  top: 30px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--main-color);
  border-radius: 8px;
  z-index: -1;
  transition: all 0.3s ease;
}

.aboutme-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  object-position: bottom;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  aspect-ratio: 4 / 5;
}

.aboutme-text-content {
  width: 100%;
  padding: 2rem 0;
  position: relative;
  z-index: 5;
}

.small-divider {
  height: 3px;
  width: 60px;
  background: var(--main-color);
  border-radius: 2px;
  margin-top: 10px;
}

@media (max-width: 991.98px) {
  #aboutme {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .aboutme-image-frame::before {
    top: 20px;
    left: 20px;
    width: calc(100% - 40px);
  }

  .aboutme-text-content {
    padding: 2rem 1.5rem;
    text-align: left;
  }
}

/* 
----------------------------------
            Services
----------------------------------
*/

.services-section {
  padding: 50px 0;
  background: var(--main-section-color);
  overflow: hidden;
}

.services-section .container {
  position: relative;
  z-index: 1;
}

.services-section h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

.services-flex {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  max-width: 1800px;
  margin: 0 auto;
}

.service-card-wrapper {
  margin: 20px 15px;
  animation: fadeInUp 0.6s ease both calc(0.3s + (0.2s * var(--offset, 0)));
  display: block;
}

.service-card {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
  border-radius: 20px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;

  text-decoration: none !important;
  color: inherit;
  position: relative;
  overflow: hidden;
  padding-bottom: 20px;
  height: 100%;
}

.hover-book-btn {
  position: absolute;
  bottom: -60px;
  left: 0;
  width: 100%;
  background-color: #A5907E;
  color: #ffffff;
  padding: 15px 0;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.hover-book-btn i {
  color: #fff;
}

.service-card p {
  padding: 20px;
  max-width: 300px;
  color: #666666;
}

.service-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  min-height: 100px;
  width: 85%;
}

.service-icon i,
.service-icon img {
  font-size: 60px;
  margin-top: 25px;
  transition: all 0.4s ease;
}

.service-icon .icon {
  margin-top: 25px;
  background-color: var(--icon-color);
  height: 60px;
  width: 60px;
  transition: all 0.4s ease;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.service-icon .service-title {
  font-size: 1.4rem;
  color: #222;
  font-weight: 600;
  margin-top: 10px;
  line-height: 1.4;
}

.service-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 20px;
  padding: 10px 18px;
  border-radius: 0, 10px 10px 0;
  display: inline-block;
  min-width: 140px;
  transition: all 0.3s ease;
  width: 80%;
}

.service-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.service-card-wrapper:hover .service-card {
  transform: translateY(-15px);
}

.service-card-wrapper:hover .hover-book-btn {
  bottom: 0;
}

.service-card-wrapper:hover .service-price {
  transform: translateY(-15px) scale(1.05);
}

/* Optional: Keep the icon scale effect */
.service-card-wrapper:hover .service-icon i,
.service-card-wrapper:hover .service-icon .icon,
.service-card-wrapper:hover .service-icon img {
  transform: scale(1.1);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

@media (max-width: 991.98px) {
  .services-section {
    padding: 60px 0;
  }

  .services-section h1 {
    font-size: 2.8rem;
  }

  .service-price {
    font-size: 1.4rem;
  }
}

@media (max-width: 665px) {
  .services-flex {
    display: block;
  }

  .service-card {
    width: 90%;
    margin: 25px auto;
  }

  .service-card p {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 575.98px) {
  .services-section {
    padding: 40px 0;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .service-icon {
    min-height: 80px;
  }

  .service-icon i {
    font-size: 36px;
  }

  .service-price {
    font-size: 1.2rem;
    min-width: 120px;
  }
}

/* 
----------------------------------
            References 
----------------------------------
*/

#references h1 {
  font-size: 3rem;
}

.gallery-section {
  padding: 60px 0;
  background-color: #f8f9fa;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 300px);
  gap: 15px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s ease;
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: grayscale(1);
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.item-tall {
  grid-column: span 2;
  grid-row: span 2;
}

.item-wide {
  grid-column: span 2;
  grid-row: span 1;
}

.item-square {
  grid-column: span 1;
  grid-row: span 1;
}

@media (max-width: 991.98px) {
  .gallery-container {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .item-tall,
  .item-wide,
  .item-square {
    grid-column: span 2;
    height: 300px;
  }
}

#modalImage {
  max-height: 90vh;
  filter: grayscale(1);
  cursor: default;
  position: relative;
  z-index: 10;
  transition: transform 0.3s ease;
}

#modalCaption {
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.modal.fade.show .modal-dialog {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#modalBody {
  width: 100vw;
  height: 100vh;
  cursor: pointer;
}

.modal-open .navbar {
  z-index: 1000;
}

.modal-content {
  background-color: transparent;
}

#lightboxModal {
  z-index: 2000;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(25px);
}

.btn-close-lightbox {
  filter: invert(1);
  opacity: 0.9;
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 2100;
  width: 50px;
  height: 50px;
  background-color: #000;
  backdrop-filter: none;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-close-lightbox:hover {
  opacity: 1;
  transform: rotate(90deg) scale(1.1);
  background-color: #222;
}

.btn-close-lightbox span {
  color: white;
  font-size: 32px;
  line-height: 0;
  font-weight: 300;
  margin-bottom: 4px;
}

/* 
----------------------------------
            Footer 
----------------------------------
*/
footer {
  background-color: var(--footer-background-color);
}

footer>* {
  padding: 15px;
}

footer .logo {
  height: 100px;
  background-color: #fff;
  border-radius: 15px;
  padding: 10px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 28px;
  background-color: #222222;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.social-btn i {
  font-size: 1.2rem;
}

.social-btn:hover {
  background-color: var(--main-color);
  border-color: var(--main-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-btn:hover i {
  color: #fff;
}

.legal-link {
  transition: all 0.3s ease;
}

.legal-link:hover {
  color: var(--main-color) !important;
  text-decoration: underline !important;
}