/* === CUSTOM STYLES === */

:root {
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

/* === NAVBAR === */
#navbar {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(13, 27, 42, 0.06), 0 4px 24px rgba(13, 27, 42, 0.04);
}

/* === MOBILE MENU === */
.bar {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#mobile-toggle.active .bar:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

#mobile-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

#mobile-toggle.active .bar:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
  width: 20px;
}

/* === FLOATING CARDS === */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes float-delayed {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

.floating-card {
  animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float-delayed 4.5s ease-in-out infinite;
  animation-delay: 0.5s;
}

.animate-float-slow {
  animation: float-slow 5s ease-in-out infinite;
  animation-delay: 1s;
}

/* === SCROLL INDICATOR === */
@keyframes scroll-down {
  0% { top: -12px; opacity: 0; }
  50% { opacity: 1; }
  100% { top: 32px; opacity: 0; }
}

.animate-scroll-down {
  animation: scroll-down 1.8s ease-in-out infinite;
}

/* === SERVICE CARDS === */
.service-card {
  border: 1px solid transparent;
}

.service-card:hover {
  border-color: rgba(110, 231, 183, 0.2);
}

/* === GALLERY === */
.gallery-item {
  cursor: pointer;
  position: relative;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 27, 42, 0.2) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* === TESTIMONIAL CARDS === */
.testimonial-card {
  border: 1px solid rgba(110, 231, 183, 0.15);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  border-color: rgba(110, 231, 183, 0.35);
}

/* === SCROLL REVEAL (below fold only) === */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === SELECT STYLING === */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230d1b2a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .floating-card {
    display: none;
  }
}

/* === SELECTION === */
::selection {
  background: rgba(110, 231, 183, 0.3);
  color: #0d1b2a;
}
