/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ========== GLOBAL ========== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}
body {
  font-family: 'Heebo', sans-serif;
  position: relative;
  min-height: 100vh;
  background: #050d18;
}

/* Ocean gradient backdrop */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(
    170deg,
    #050d18 0%,
    #081828 20%,
    #0C2340 40%,
    #0a2e4a 60%,
    #093040 75%,
    #0E7C7B 100%
  );
}

/* Animated caustic light pattern */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.035;
  pointer-events: none;
  background:
    radial-gradient(ellipse 600px 400px at 20% 30%, rgba(91,192,235,0.6), transparent),
    radial-gradient(ellipse 500px 500px at 70% 60%, rgba(14,124,123,0.5), transparent),
    radial-gradient(ellipse 400px 300px at 50% 80%, rgba(91,192,235,0.4), transparent),
    radial-gradient(ellipse 350px 350px at 80% 20%, rgba(14,124,123,0.3), transparent);
  background-size: 200% 200%;
  animation: caustics 20s ease-in-out infinite alternate;
}

@keyframes caustics {
  0% { background-position: 0% 0%; }
  33% { background-position: 50% 30%; }
  66% { background-position: 20% 70%; }
  100% { background-position: 80% 50%; }
}

/* Focus states */
a:focus-visible, button:focus-visible {
  outline: 2px solid #C5A55A;
  outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #081828; }
::-webkit-scrollbar-thumb { background: #0E7C7B; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #12A09F; }

/* ========== GLASSMORPHIC SURFACES ========== */
.glass-surface {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.glass-surface-light {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
}

.glass-card-dark {
  background: rgba(12, 35, 64, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
}

/* ========== ANIMATIONS ========== */
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes rise-from-depths {
  from { opacity: 0; transform: translateY(80px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes wave-entrance {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes bubble-up {
  0% { opacity: 0; transform: scale(0.8) translateY(30px); }
  70% { transform: scale(1.05) translateY(-5px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

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

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(197, 165, 90, 0.3), 0 0 60px rgba(197, 165, 90, 0.1); }
  50% { box-shadow: 0 0 30px rgba(197, 165, 90, 0.5), 0 0 80px rgba(197, 165, 90, 0.2); }
}

@keyframes wave-float {
  0% { transform: translateX(0); }
  100% { transform: translateX(30px); }
}

@keyframes compass-spin {
  from { transform: rotate(0deg); opacity: 0; }
  to { transform: rotate(360deg); opacity: 1; }
}

@keyframes line-draw {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}

.animate-fade-in {
  animation: fade-in 1s ease forwards;
}
.animate-rise {
  animation: rise-from-depths 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.animate-wave-entrance {
  animation: wave-entrance 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.animate-bubble-up {
  animation: bubble-up 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.animation-delay-200 { animation-delay: 0.2s; opacity: 0; }
.animation-delay-400 { animation-delay: 0.4s; opacity: 0; }
.animation-delay-600 { animation-delay: 0.6s; opacity: 0; }
.animation-delay-800 { animation-delay: 0.8s; opacity: 0; }

/* ========== SCROLL REVEAL SYSTEM ========== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-bubble {
  opacity: 0;
  transform: scale(0.8) translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.reveal-bubble.active {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.reveal-flow-left {
  opacity: 0;
  transform: translateX(-60px) rotate(-3deg);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-flow-left.active {
  opacity: 1;
  transform: translateX(0) rotate(0deg);
}

.reveal-flow-right {
  opacity: 0;
  transform: translateX(60px) rotate(3deg);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-flow-right.active {
  opacity: 1;
  transform: translateX(0) rotate(0deg);
}

/* ========== NAVBAR ========== */
.nav-brand-name {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
  line-height: 1;
  text-shadow: 0 2px 16px rgba(0,0,0,0.45);
}
.nav-brand-tag {
  font-family: 'Heebo', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: rgba(201,168,76,0.8);
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 3px;
}

.nav-scrolled {
  background: rgba(12, 35, 64, 0.4) !important;
  backdrop-filter: blur(20px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.5) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* ========== HERO ========== */
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  filter: brightness(0.75);
}

.hero-overlay-gradient {
  background:
    radial-gradient(ellipse at 50% 70%, rgba(8,24,40,0.2) 0%, transparent 65%),
    linear-gradient(to bottom, rgba(8,24,40,0.45) 0%, rgba(8,24,40,0.05) 40%, rgba(8,24,40,0.65) 100%);
}

.hero-water-light {
  background:
    radial-gradient(ellipse 800px 400px at 30% 60%, rgba(91,192,235,0.08), transparent),
    radial-gradient(ellipse 600px 300px at 70% 40%, rgba(14,124,123,0.06), transparent);
  background-size: 150% 150%;
  animation: caustics 15s ease-in-out infinite alternate;
}

.hero-cta {
  box-shadow: 0 0 20px rgba(197, 165, 90, 0.3), 0 0 60px rgba(197, 165, 90, 0.1);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.hero-cta:hover {
  transform: scale(1.08);
  box-shadow: 0 0 30px rgba(197, 165, 90, 0.5), 0 0 80px rgba(197, 165, 90, 0.2);
}

.animate-bubble-up.hero-cta {
  animation: bubble-up 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards,
             glow-pulse 3s ease-in-out 1.5s infinite;
}

.hero-scroll-indicator {
  animation: float-bob 3s ease-in-out infinite;
}

/* ========== WAVE DIVIDERS ========== */
.wave-divider {
  position: relative;
  overflow: hidden;
  height: 120px;
  margin-top: -2px;
}
.wave-divider svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.wave-divider .wave-front {
  animation: wave-float 6s ease-in-out infinite alternate;
}
.wave-divider .wave-mid {
  animation: wave-float 8s ease-in-out infinite alternate-reverse;
}

@media (max-width: 768px) {
  .wave-divider { height: 60px; }
}

/* ========== SERVICE CARDS ========== */
.service-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
  transform: rotate(var(--card-rotation, 0deg));
}
.service-card:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.03);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.service-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease, filter 0.6s ease;
  filter: brightness(0.4);
}
.service-card:hover .service-card-bg {
  transform: scale(1.15);
  filter: brightness(0.6);
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.service-card:hover .service-card-overlay {
  opacity: 0.3;
}

.service-card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px 16px;
  min-height: 220px;
  text-align: center;
  transition: transform 0.5s ease;
}
.service-card:hover .service-card-content {
  transform: translateY(-8px);
}

.service-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}
.service-card:hover .service-icon-wrap {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.service-card-cta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}
.service-card:hover .service-card-cta {
  transform: translateY(0);
}

/* ========== COMPASS VALUES LAYOUT ========== */
.compass-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: 1fr auto 1fr;
  grid-template-areas:
    ". top ."
    "left compass right"
    ". bottom .";
  gap: 1.5rem;
  align-items: center;
  justify-items: center;
  max-width: 800px;
  margin: 0 auto;
  min-height: 500px;
}

.compass-center {
  grid-area: compass;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.compass-center.active svg {
  animation: compass-spin 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.compass-value {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.compass-value.active {
  opacity: 1;
  transform: translate(0, 0) !important;
}

.compass-top { grid-area: top; transform: translateY(40px); }
.compass-right { grid-area: right; transform: translateX(-40px); }
.compass-bottom { grid-area: bottom; transform: translateY(-40px); }
.compass-left { grid-area: left; transform: translateX(40px); }

.compass-value-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.compass-value:hover .compass-value-icon {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.1);
  border-color: rgba(197, 165, 90, 0.4);
}

@media (max-width: 768px) {
  .compass-layout {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "compass compass"
      "top right"
      "bottom left";
    gap: 1rem;
    min-height: auto;
  }
  .compass-center {
    width: 120px;
    height: 120px;
  }
  .compass-value {
    padding: 12px;
  }
}

/* ========== ABOUT ========== */
.about-image-wrap {
  clip-path: polygon(0 3%, 5% 0, 100% 0, 100% 95%, 95% 100%, 0 100%);
  transition: clip-path 0.6s ease;
}
.about-image-wrap:hover {
  clip-path: polygon(0 0, 3% 2%, 100% 0, 98% 97%, 100% 100%, 0 100%);
}

.about-badge {
  animation: float-bob 4s ease-in-out infinite;
}

/* ========== CONTACT ========== */
.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
}
.contact-row:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
  border-color: rgba(197, 165, 90, 0.2);
}

.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

/* ========== FORM ========== */
.form-label {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  margin-bottom: 6px;
  font-weight: 500;
}
.form-input {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 12px 16px;
  color: white;
  font-family: 'Heebo', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background 0.2s ease;
  outline: none;
}
.form-input::placeholder {
  color: rgba(255,255,255,0.3);
}
.form-input:focus {
  border-color: #C5A55A;
  background: rgba(255,255,255,0.12);
}
select.form-input option {
  color: #0C2340;
  background: white;
}
input[type="date"].form-input::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

/* ========== WHATSAPP ========== */
.whatsapp-pulse {
  animation: wa-pulse 2.5s infinite;
}
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ========== GALLERY ========== */
.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 8px;
}
.gallery-mosaic .gallery-item:nth-child(5n+1) {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-mosaic .gallery-item:nth-child(5n+4) {
  grid-row: span 2;
}

@media (max-width: 768px) {
  .gallery-mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }
  .gallery-mosaic .gallery-item:nth-child(5n+1),
  .gallery-mosaic .gallery-item:nth-child(5n+4) {
    grid-column: span 1;
    grid-row: span 1;
  }
  .gallery-mosaic .gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item:hover img {
  transform: scale(1.1);
}
.gallery-item.hidden-filter {
  opacity: 0;
  transform: scale(0.85);
  position: absolute;
  pointer-events: none;
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 12px 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}

.gallery-filter-btn {
  padding: 8px 20px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  cursor: pointer;
}
.gallery-filter-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}
.gallery-filter-btn.active {
  background: #C5A55A;
  border-color: #C5A55A;
  color: white;
}

/* ========== LIGHTBOX ========== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  overflow: hidden;
  transform: scale(0.92);
  transition: transform 0.3s ease;
}
.lightbox.active .lightbox-content {
  transform: scale(1);
}

/* ========== PHOTO STRIP ========== */
.photo-strip-item {
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  cursor: pointer;
}
.photo-strip-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(12, 35, 64, 0.4);
  transition: background 0.4s ease;
}
.photo-strip-item:hover::after {
  background: rgba(12, 35, 64, 0.1);
}
.photo-strip-item span {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 1;
  white-space: nowrap;
}
@media (min-width: 768px) {
  .photo-strip-item span {
    font-size: 0.9rem;
    bottom: 16px;
  }
}

/* ========== FOOTER ========== */
.footer-column {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 24px;
}

.social-icon {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s ease;
}
.social-icon:hover {
  transform: scale(1.15) translateY(-3px);
}

/* ========== CUSTOM CURSOR ========== */
.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: #C5A55A;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
}
.cursor-ring {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(197, 165, 90, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.cursor-hover .cursor-ring {
  width: 60px;
  height: 60px;
  background: rgba(197, 165, 90, 0.15);
  border-color: rgba(197, 165, 90, 0.8);
}

/* Hide cursor elements on touch */
@media (hover: none) {
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* ========== SECTION HELPERS ========== */
.section-ocean {
  position: relative;
  z-index: 1;
}

.value-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 500;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(197, 165, 90, 0.3);
  color: white;
  padding: 8px 20px;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ========== MOBILE MENU STAGGER ========== */
.mobile-link {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
}
.mobile-menu-open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(5) { transition-delay: 0.25s; }
.mobile-menu-open .mobile-link:nth-child(6) { transition-delay: 0.3s; }
