/* ==========================================================================
   1. Universal Box Model & Margin Resets
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ==========================================================================
   2. Base Environment & Typography Smoothing
   ========================================================================== */
html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ==========================================================================
   3. Form Control Normalization
   ========================================================================== */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  border: none;
  background: none;
  border-radius: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

button,
[type="submit"],
[type="button"] {
  cursor: pointer;
  touch-action: manipulation;
}

input {
  line-height: normal;
}

input[type="text"],
input[type="email"] {
  -webkit-appearance: textfield;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px white inset !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* ==========================================================================
   4. Layout & Image Baselines
   ========================================================================== */
img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: "Outfit", sans-serif;
    font-optical-sizing: auto;
    box-sizing: border-box;
    background-color: #e2e1e2;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(151, 180, 208, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(29, 53, 87, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(42, 157, 143, 0.6);
}

.container {
    display: grid;
    min-height: 100vh;
    grid-template-rows: 1fr auto;
    width: 100%;
}

.body {
    display: grid;
    grid-template-rows: auto 1fr auto auto;
    width: 100%;
}

.header-placeholder {
    height: 100px;
    width: 100%;
}

.header {
    display: grid;
    grid-template-columns: 200px auto;
    padding: 20px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 5px 20px;
    grid-template-columns: 130px auto;
    background: rgba(226, 225, 226, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header .logo {
    width: 100%;
    height: 75px;
    transition: all 0.3s ease;
}

.header.scrolled .logo {
    height: 48px;
}

.header .logo img {
    width: 100%;
    rotate: 2deg;
    transition: all 0.3s ease;
}

.header .logo .tagline {
    position: relative;
    display: block;
    top: -16px;
    left: 34px;
    color: #524f51;
    font-size: 0.6rem;
    transition: opacity 0.3s ease;
}

.header.scrolled .logo .tagline {
    opacity: 0;
    pointer-events: none;
}

.header-links {
    display: grid;
    grid-auto-flow: column;
    justify-content: end;
    align-items: center;
    gap: 20px;
}

.header-links a {
    color: #1d3557;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.header-links a:hover {
    color: #e63946;
}

.main-content {
    padding: 0 15px;
    display: grid;
    align-content: start;
}

.home-content {
    align-content: center;
    grid-row-gap: 3rem;
}

.hero {
    display: grid;
    grid-template-rows: 1fr 1fr;
    align-content: center;
    justify-content: center;
}

.hero .title {
    font-size: 2.25rem;
    font-weight: bold;
    color: #6c2d16;
    margin: 0;
}

.hero .sub-title {
    font-size: 1.5rem;
    color: #524f51;
    margin: 0;
}

.waitlist-form {
    display: grid;
    justify-items: center;
    align-items: center;
}

.waitlist-form form {
    position: relative;
    width: 350px;
    height: 45px;
    margin-bottom: 0;
}

.waitlist-form input {
    padding: 10px 20px;
    width: 350px;
    height: 45px;
    border-radius: 2em;
    border: 2px solid black;
    font-size: 15px;
    outline: none;
    background: #ffffff;
    transition: box-shadow 0.3s ease;
}

.waitlist-form input:focus {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
}

.waitlist-form button {
    border: 1px solid black;
    line-height: 25px;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 2rem;
    position: relative;
    left: 234px;
    top: -41px;
    background: #9fb5cc;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s ease, background 0.2s ease;
}

.waitlist-form button:hover {
    transform: scale(1.05);
    background: #b2c9e0;
}

.bottom-image-container {
    position: relative;
    width: 100%;
}

.scape-image {
    width: 100%;
    height: auto;
    display: block;
}

.site-footer {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    padding: 15px;
    background-color: #97b4d0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.site-footer .footer-left {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 10px;
}

.site-footer .footer-left img {
    width: 45px;
    height: auto;
}

.site-footer .footer-left .footer-text {
    font-size: 0.75rem;
    position: relative;
    top: 12px;
}

.site-footer a {
    text-decoration: none;
    color: #000;
    font-weight: bold;
}

.site-footer a:hover {
    text-decoration: underline;
}

.site-footer .footer-links {
    font-size: 0.75rem;
    color: #524f51;
    position: relative;
    top: 12px;
    text-align: right;
}

.site-footer .footer-links a {
    font-weight: normal;
}


/* Animations */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15%);
    }
}

.pin-wrapper {
    position: absolute;
    z-index: 10;
    cursor: pointer;
}

.pin {
    width: 100%;
    animation: bounce 2s infinite ease-in-out;
    filter: drop-shadow(0px 5px 3px rgba(0,0,0,0.3));
    transition: transform 0.2s ease;
}

/* Pause bounce and enlarge slightly on hover or click active */
.pin-wrapper:hover .pin,
.pin-wrapper.active .pin {
    animation-play-state: paused;
    transform: scale(1.1) translateY(-10%);
}

.pin-drawer {
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%) translateY(10px) scale(0.95);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    width: 200px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 20;
}

.pin-drawer::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.85) transparent transparent transparent;
}

.pin-wrapper:hover .pin-drawer,
.pin-wrapper.active .pin-drawer {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
}

.pin-drawer h4 {
    margin: 0 0 4px;
    color: #1d3557;
    font-size: 14px;
    font-weight: 700;
}

.pin-drawer p {
    margin: 0 0 8px;
    color: #524f51;
    font-size: 11px;
    line-height: 1.3;
}

.pin-drawer a {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #e63946;
    text-decoration: none;
    background: rgba(230, 57, 70, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.pin-drawer a:hover {
    background: rgba(230, 57, 70, 0.2);
}

/* Pins sized and positioned as % of the scape image so they scale perfectly */
.pin-1 { top: 40%; left: 6.5%; width: 3.5%; }
.pin-1 .pin { animation-delay: 0.1s; }

/* Pin 1 is near the left edge, open its drawer to the right */
.pin-1 .pin-drawer {
    left: -10px;
    transform: translateX(0) translateY(10px) scale(0.95);
}
.pin-wrapper.pin-1:hover .pin-drawer,
.pin-wrapper.pin-1.active .pin-drawer {
    transform: translateX(0) translateY(0) scale(1);
}
.pin-1 .pin-drawer::after {
    left: 20px;
    transform: translateX(0);
}

.pin-2 { top: 65%; left: 33.15%; width: 2.5%; }
.pin-2 .pin { animation-delay: 0.5s; }

.pin-3 { top: 70%; left: 53.58%; width: 3.0%; }
.pin-3 .pin { animation-delay: 0.8s; }

.pin-4 { top: 56%; left: 76.55%; width: 4.0%; }
.pin-4 .pin { animation-delay: 0.3s; }

/* Pin 4 is near the right edge, open its drawer to the left */
.pin-4 .pin-drawer {
    left: auto;
    right: -15px;
    transform: translateX(0) translateY(10px) scale(0.95);
}
.pin-wrapper.pin-4:hover .pin-drawer,
.pin-wrapper.pin-4.active .pin-drawer {
    transform: translateX(0) translateY(0) scale(1);
}
.pin-4 .pin-drawer::after {
    left: auto;
    right: 25px;
    transform: translateX(0);
}

/* Empty State Component */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 0;
    margin: 0;
}

.empty-state .empty-icon {
    margin-bottom: 20px;
}

.empty-state h2 {
    color: #1d3557;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.empty-state p {
    color: #524f51;
    max-width: 450px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
    font-size: 1.1rem;
}

.empty-state .button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #1d3557;
    color: #ffffff;
    text-decoration: none;
    border-radius: 2rem;
    font-weight: bold;
    font-size: 1rem;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.empty-state .button:hover {
    transform: scale(1.05);
    background-color: #2a9d8f;
}

/* Underwater Section */
.underwater-section {
    background-color: #97b4d0;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
    color: #1d3557;
    text-align: center;
}

.underwater-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.8rem;
    color: #ffffff;
    margin-bottom: 10px;
}
.section-subtitle {
    font-size: 1.2rem;
    color: #ffffff;
    opacity: 0.9;
    margin-bottom: 60px;
}

.bubble-features {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    justify-items: center;
    gap: 30px;
    margin-bottom: 100px;
}

@media (max-width: 900px) {
    .bubble-features {
        grid-template-columns: 1fr;
    }
}

.bubble-feature {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05), inset 0 0 20px rgba(255,255,255,0.2);
    animation: float-bubble 6s ease-in-out infinite;
    backdrop-filter: blur(5px);
}

.bubble-feature h4 {
    font-size: 1.1rem;
    color: #1d3557;
    margin-bottom: 10px;
    font-weight: bold;
}

.bubble-feature p {
    font-size: 0.85rem;
    color: #1d3557;
    line-height: 1.4;
    opacity: 0.9;
    margin: 0;
}

.bubble-icon {
    margin-bottom: 15px;
    color: #1d3557;
}
.bubble-icon svg {
    width: 32px;
    height: 32px;
}

.bubble-feature.b-1 { animation-delay: 0s; margin-top: 10px; }
.bubble-feature.b-2 { animation-delay: -2s; margin-top: 0px; }
.bubble-feature.b-3 { animation-delay: -4s; margin-top: 20px; }

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

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .pricing-cards {
        grid-template-columns: 1fr;
    }
}

.price-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 40px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.price-card:hover {
    transform: translateY(-5px);
}

.price-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.price-card .price {
    font-size: 3rem;
    font-weight: bold;
    color: #2a9d8f;
    margin-bottom: 15px;
}

.price-card .price span {
    font-size: 1rem;
    color: #524f51;
}

/* Fish Animations */
.fish {
    position: absolute;
    opacity: 0.7;
    z-index: 1;
}

@keyframes swim-right {
    0% { left: -15%; transform: scaleX(1) translateY(0); }
    50% { transform: scaleX(1) translateY(-20px); }
    100% { left: 115%; transform: scaleX(1) translateY(0); }
}

@keyframes swim-left {
    0% { right: -15%; transform: scaleX(-1) translateY(0); }
    50% { transform: scaleX(-1) translateY(20px); }
    100% { right: 115%; transform: scaleX(-1) translateY(0); }
}
/* Landscape SVG Animations */
#windmill {
    animation: spin 15s linear infinite;
}

#birds path:nth-child(1) { animation: fly-birds 8s ease-in-out infinite; animation-delay: 0s; }
#birds path:nth-child(2) { animation: fly-birds 9s ease-in-out infinite; animation-delay: -1.5s; }
#birds path:nth-child(3) { animation: fly-birds 7.5s ease-in-out infinite; animation-delay: -3s; }
#birds path:nth-child(4) { animation: fly-birds 8.5s ease-in-out infinite; animation-delay: 1s; }
#birds path:nth-child(5) { animation: fly-birds 9.2s ease-in-out infinite; animation-delay: -4s; }

#clouds path:nth-child(1) { animation: float-clouds 22s ease-in-out infinite; animation-delay: 0s; }
#clouds path:nth-child(2) { animation: float-clouds 18s ease-in-out infinite; animation-delay: 2s; }
#clouds path:nth-child(3) { animation: float-clouds 25s ease-in-out infinite; animation-delay: -5s; }
#clouds path:nth-child(4) { animation: float-clouds 20s ease-in-out infinite; animation-delay: 1s; }
#clouds path:nth-child(5) { animation: float-clouds 24s ease-in-out infinite; animation-delay: 4s; }
#clouds path:nth-child(6) { animation: float-clouds 19s ease-in-out infinite; animation-delay: -2s; }

#water {
    animation: gently-wave 6s ease-in-out infinite;
}

#water-reflections {
    animation: shift-reflections 8s ease-in-out infinite;
}

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

@keyframes fly-birds {
    0% { transform: translate(0, 0); }
    50% { transform: translate(20px, -15px); }
    100% { transform: translate(0, 0); }
}

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

@keyframes gently-wave {
    0% { transform: translateY(0); }
    50% { transform: translateY(4px); }
    100% { transform: translateY(0); }
}

@keyframes shift-reflections {
    0% { transform: translateX(0); }
    50% { transform: translateX(10px); }
    100% { transform: translateX(0); }
}
