/* ==========================================================================
   Niğde Yüzme Hocam - Luminous Pool Blue & Crystal-Clear Aquatic UI Design
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
  --pool-deep: #061f38;
  --pool-mid: #0a3a66;
  --pool-light: #155792;
  --pool-cyan: #38bdf8;
  --pool-bright: #0ea5e9;
  --text-primary: #ffffff;
  --text-secondary: #bae6fd;
}

* {
  font-family: 'Plus Jakarta Sans', sans-serif;
  scroll-behavior: smooth;
  box-sizing: border-box;
}

body {
  background: radial-gradient(circle at 50% 0%, #1e5c94 0%, #0d3b66 35%, #082846 70%, #041b30 100%);
  background-attachment: fixed;
  color: #f0f9ff;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Outfit', sans-serif;
  color: #ffffff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #041b30;
}
::-webkit-scrollbar-thumb {
  background: #0ea5e9;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #38bdf8;
}

/* SPA Page Transitions */
.page-view {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.page-view.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: pageFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Navbar Container with Smart Scroll Hide/Show */
#navbar-container {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  will-change: transform, opacity;
  box-sizing: border-box;
}

#navbar-container.nav-hidden {
  transform: translateY(-160%);
  opacity: 0;
  pointer-events: none;
}

/* Floating Island Navbar (Rich Aquatic Pool Glass) */
.floating-navbar {
  background: rgba(7, 36, 64, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.6), 0 0 20px rgba(14, 165, 233, 0.15);
  max-width: 100%;
  box-sizing: border-box;
}

/* Nav Link Pill Styling */
.nav-pill {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color: #bae6fd;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 9999px;
  border: 1px solid transparent;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

@media (min-width: 1440px) {
  .nav-pill {
    font-size: 13px;
    padding: 6px 14px;
  }
}

.nav-pill:hover {
  color: #ffffff;
  background: rgba(14, 165, 233, 0.2);
  border-color: rgba(56, 189, 248, 0.3);
}

.nav-pill.active {
  color: #03172e !important;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9) !important;
  border: 1px solid #7dd3fc !important;
  font-weight: 800 !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.5);
}

.mobile-nav-link.active {
  background: rgba(14, 165, 233, 0.25);
  color: #ffffff !important;
  border-left: 3px solid #38bdf8;
  padding-left: 0.75rem;
  font-weight: 700;
}

/* Custom Glass Dropdown Component */
.custom-select-wrapper {
  position: relative;
  user-select: none;
}

.custom-select-trigger {
  cursor: pointer;
  transition: all 0.25s ease;
  background: rgba(10, 48, 84, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #ffffff;
}

.custom-select-trigger:hover,
.custom-select-trigger.active {
  border-color: #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
}

.custom-select-trigger.active .dropdown-chevron {
  transform: rotate(180deg);
}

.custom-select-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(7, 36, 64, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 1.25rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85);
  max-height: 280px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-select-options.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-select-option {
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 0.85rem;
  margin: 3px 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e0f2fe;
}

.custom-select-option:hover {
  background: rgba(14, 165, 233, 0.25);
  color: #ffffff;
  transform: translateX(4px);
}

.custom-select-option.selected {
  background: rgba(14, 165, 233, 0.35);
  color: #38bdf8;
  font-weight: 700;
  border-left: 3px solid #38bdf8;
}

/* Glassmorphism Cards with Crystal Pool Glow */
.glass-card {
  background: rgba(11, 48, 84, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #ffffff;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.glass-card-hover {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card-hover:hover {
  transform: translateY(-5px);
  background: rgba(15, 60, 104, 0.92);
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 20px 40px -10px rgba(14, 165, 233, 0.3), 0 0 25px rgba(56, 189, 248, 0.2);
}

/* Vibrant Gradient Headings */
.text-gradient {
  background: linear-gradient(135deg, #38bdf8 0%, #7dd3fc 50%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Pulse Glows */
.pulse-whatsapp {
  box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7);
  animation: pulse-cyan 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse-cyan {
  0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
  70% { box-shadow: 0 0 0 18px rgba(56, 189, 248, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

/* Float Animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

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

.animate-float-delayed {
  animation: float 4s ease-in-out 2s infinite;
}

/* Wizard Options */
.wizard-option {
  cursor: pointer;
  transition: all 0.25s ease;
  background: rgba(11, 48, 84, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.wizard-option:hover {
  background: rgba(15, 62, 108, 0.9);
  border-color: rgba(56, 189, 248, 0.6);
}

.wizard-option.selected {
  border-color: #38bdf8;
  background: rgba(14, 165, 233, 0.3);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.4);
}

/* FAQ Accordion */
.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-item.active .faq-content {
  max-height: 500px;
  opacity: 1;
  margin-top: 1rem;
}

.faq-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.35s ease-in-out;
}

/* Gallery Hover */
.gallery-img-container {
  overflow: hidden;
  position: relative;
}

.gallery-img-container img {
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

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

/* Modal Backdrop */
.modal-backdrop {
  background: rgba(4, 23, 44, 0.9);
  backdrop-filter: blur(14px);
}
