/* Custom properties */
:root {
  --brand-gold: #ebdfab;
  --bg-dark: #0a0a0a;
  --bg-card: rgba(255, 255, 255, 0.03);
  --border-glass: rgba(255, 255, 255, 0.08);
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --glass-blur: blur(16px);
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  margin: 0;
  overflow-x: hidden;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
}

.brand-text {
  color: var(--brand-gold) !important;
}

.text-secondary {
  color: var(--text-secondary) !important;
}

/* Glassmorphism utilities */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Animations & Hover Effects */
.hover-scale-effect-big, .hover-scale-effect-small {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-scale-effect-big:hover {
  transform: scale(1.05);
}

.hover-scale-effect-small:hover {
  transform: scale(1.02);
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

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

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 24px;
  margin-top: 1rem;
  margin-bottom: 4rem;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: brightness(0.4);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(10,10,10,0.2) 0%, rgba(10,10,10,1) 100%);
  z-index: -1;
}

/* Masonry Gallery Layout */
.masonry-grid {
  column-count: 1;
  column-gap: 1.5rem;
}

@media (min-width: 768px) {
  .masonry-grid { column-count: 2; }
}

@media (min-width: 1024px) {
  .masonry-grid { column-count: 3; }
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
}

/* Gallery image container overhaul */
.gallery-image-container {
  cursor: pointer;
  overflow: hidden;
  position: relative;
  border-radius: 12px;
  transition: all 0.4s ease;
  background: var(--bg-card);
}

.gallery-image-container img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

.gallery-image-container:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

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

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translateY(10px);
}

.gallery-image-container:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

/* Carousel */
#pd_carousel_container {
  width: 100%;
}

@media (min-width: 768px) {
  #pd_carousel_container { width: 65%; }
}

/* Dash loading spinner */
._dash-loading {
  margin: auto;
  color: transparent;
  width: 2rem;
  height: 2rem;
  text-align: center;
}
._dash-loading::after {
  font-size: 60px;
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  color: var(--brand-gold);
  border-radius: 50%;
  margin: 72px auto;
  vertical-align: text-bottom;
  animation: load6 1.7s infinite ease, round 1.7s infinite ease;
  margin-top: 2rem;
}
@keyframes load6 {
  0%, 100% { box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em, 0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em; }
  5%, 95% { box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em, 0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em; }
  10%, 59% { box-shadow: 0 -0.83em 0 -0.4em, -0.087em -0.825em 0 -0.42em, -0.173em -0.812em 0 -0.44em, -0.256em -0.789em 0 -0.46em, -0.297em -0.775em 0 -0.477em; }
  20% { box-shadow: 0 -0.83em 0 -0.4em, -0.338em -0.758em 0 -0.42em, -0.555em -0.617em 0 -0.44em, -0.671em -0.488em 0 -0.46em, -0.749em -0.34em 0 -0.477em; }
  38% { box-shadow: 0 -0.83em 0 -0.4em, -0.377em -0.74em 0 -0.42em, -0.645em -0.522em 0 -0.44em, -0.775em -0.297em 0 -0.46em, -0.82em -0.09em 0 -0.477em; }
}
@keyframes round {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Floating contact button enhancement */
#contact_btn {
  box-shadow: 0 4px 15px rgba(235, 223, 171, 0.4) !important;
  transition: all 0.3s ease;
}
#contact_btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(235, 223, 171, 0.6) !important;
}

/* Custom Scrollbar for dark theme */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Contact Form Input Fix */
.mantine-TextInput-input,
.mantine-Textarea-input,
.mantine-Input-input,
#contact_mdl input,
#contact_mdl textarea,
input,
textarea {
  color: white !important;
}
