/* ═══════════════════════════════════════════════════════════════
   WATERSTONE GARDEN — LUXURY REAL ESTATE STYLES
   ═══════════════════════════════════════════════════════════════ */

/* ─── CUSTOM PROPERTIES ───────────────────────────────────────── */
:root {
    --gold: #00AEEF;
    --gold-light: #33C1F5;
    --gold-dark: #0090C9;
    --navy: #060D1F;
    --navy-light: #0B1D3A;
    --champagne: #E6F7FE;
    --bg: #ffffff;
    --bg-soft: #f8fafc;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
}

/* ─── BASE ────────────────────────────────────────────────────── */
::selection {
    background: rgba(0, 174, 239, 0.3);
    color: #1e293b;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
}

/* Grain overlay removed for light theme */

/* ─── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 174, 239, 0.4);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 174, 239, 0.6);
}

/* ─── NAVBAR ──────────────────────────────────────────────────── */
/* Permanent solid white background for maximum menu-item visibility */
#main-nav {
    background: #ffffff;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.05);
}

#main-nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.09);
}

/* ─── GLASSMORPHISM ──────────────────────────────────────────── */
.glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
}

.glass-card {
    background: #ffffff;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.glass-card:hover {
    border-color: rgba(0, 174, 239, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 0 40px rgba(0, 174, 239, 0.06);
}

/* ─── HERO ────────────────────────────────────────────────────── */
.hero-gradient {
    background: linear-gradient(135deg,
        rgba(10, 14, 26, 0.85) 0%,
        rgba(10, 14, 26, 0.6) 50%,
        rgba(10, 14, 26, 0.8) 100%);
}

/* ─── HERO SLIDER (auto-rotating crossfade + Ken Burns) ──────────
   Height kept under 100vh so a sliver of the next section peeks above
   the fold, hinting there's more to scroll. */
.hero {
    height: 88vh;
    min-height: 600px;
}

@media (max-width: 640px) {
    .hero {
        height: 90vh;
        min-height: 540px;
    }
}

.hero-slider {
    z-index: 0;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1s ease-in-out;
    will-change: opacity, transform;
}

.hero-slide.is-active {
    opacity: 1;
    animation: hero-kenburns 6s ease-out forwards;
}

@keyframes hero-kenburns {
    from { transform: scale(1.06); }
    to   { transform: scale(1.16); }
}

/* Flat, soft tint (no gradient) — image stays the hero, text stays readable */
.hero-overlay {
    background-color: rgba(6, 13, 31, 0.34);
    z-index: 1;
}

/* Glassmorphism text banner with an intentional, asymmetric shape.
   Kept very transparent with only a light blur so the property image
   reads clearly through the panel — text stays legible via text-shadow. */
.hero-banner {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 4px 30px 30px 30px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32),
                0 0 0 1px rgba(0, 174, 239, 0.20),
                0 0 30px rgba(0, 174, 239, 0.10);
    overflow: hidden;
}

/* Keep the headline + subtext readable over the now-clearer image */
.hero-banner h1,
.hero-banner p {
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

/* Cyan accent edge — solid colour, no gradient */
.hero-banner::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16%;
    bottom: 16%;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background-color: var(--gold);
    box-shadow: 0 0 16px rgba(0, 174, 239, 0.7);
}

/* ─── STATS SECTION — FIXED BACKGROUND (no parallax shift) ─────
   A clean, fixed-position cover image. Not using the parallax JS, so
   no edge whitespace appears as the page scrolls. */
.stats-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

@media (max-width: 768px) {
    .stats-section {
        background-attachment: scroll;
    }
}

/* ─── "A CLOSER LOOK" PREVIEW SLIDER ─────────────────────────── */
.closer-look-swiper {
    height: 100%;
    width: 100%;
}

.closer-look-swiper .swiper-slide {
    position: relative;
    overflow: hidden;
}

.closer-look-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.closer-look-swiper .swiper-button-next,
.closer-look-swiper .swiper-button-prev {
    width: 42px !important;
    height: 42px !important;
    background: rgba(255, 255, 255, 0.9);
}

.closer-look-swiper .swiper-button-next::after,
.closer-look-swiper .swiper-button-prev::after {
    font-size: 15px !important;
}

.closer-look-swiper .swiper-pagination {
    bottom: 14px !important;
}

.closer-look-swiper .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.6) !important;
    opacity: 1 !important;
    width: 9px !important;
    height: 9px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    transition: all 0.3s ease;
}

.closer-look-swiper .swiper-pagination-bullet-active {
    background: var(--gold) !important;
    width: 26px !important;
    border-radius: 5px !important;
}

.hero-video-container video {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* ─── PARALLAX ────────────────────────────────────────────────── */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

@media (max-width: 768px) {
    .parallax-section {
        background-attachment: scroll;
    }
}

/* ─── FIXED BACKGROUND SECTION ────────────────────────────────── */
/* A full-bleed background image fixed to the viewport, sitting behind
   the section content at a gentle opacity so it stays visible. */
.fixed-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

@media (max-width: 768px) {
    .fixed-bg {
        background-attachment: scroll;
    }
}

/* Soft veil so foreground cards & headings stay readable while the
   fixed image clearly shows through. */
.fixed-bg-veil {
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.82) 0%,
        rgba(255, 255, 255, 0.72) 50%,
        rgba(255, 255, 255, 0.85) 100%);
}

/* Frosted amenity cards so the background image reads through them */
.amenity-card {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 30px rgba(6, 13, 31, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.amenity-card:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-6px);
    border-color: rgba(0, 174, 239, 0.35);
    box-shadow: 0 24px 48px rgba(6, 13, 31, 0.14), 0 0 40px rgba(0, 174, 239, 0.08);
}

/* ─── BUTTONS ─────────────────────────────────────────────────── */
.btn-gold {
    background: linear-gradient(135deg, #00AEEF 0%, #0090C9 100%);
    color: #ffffff !important;
    padding: 14px 32px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 174, 239, 0.25);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #33C1F5 0%, #00AEEF 100%);
    box-shadow: 0 8px 30px rgba(0, 174, 239, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid rgba(0, 174, 239, 0.4);
    color: #00AEEF;
    padding: 14px 32px;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(0, 174, 239, 0.1);
    border-color: rgba(0, 174, 239, 0.6);
    transform: translateY(-2px);
}

/* ─── WHATSAPP FLOAT ──────────────────────────────────────────── */
@keyframes wa-pulse {
    0% { transform: scale(1); opacity: 0.5; }
    70% { transform: scale(1.5); opacity: 0; }
    100% { transform: scale(1.5); opacity: 0; }
}

.animate-wa-pulse {
    animation: wa-pulse 2s infinite;
}

/* ─── ANIMATIONS ──────────────────────────────────────────────── */
@keyframes slide-in {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.animate-slide-in {
    animation: slide-in 0.5s ease-out;
}

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

.animate-fade-up {
    animation: fade-up 0.8s ease-out;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.animate-shimmer {
    background: linear-gradient(90deg, transparent 0%, rgba(0, 174, 239, 0.1) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

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

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

@keyframes count-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── PROGRESS BAR ────────────────────────────────────────────── */
.progress-bar {
    position: relative;
    height: 8px;
    background: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 9999px;
    background: linear-gradient(90deg, #00AEEF, #33C1F5, #00AEEF);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── VIDEO OVERLAY ───────────────────────────────────────────── */
.video-overlay {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 1rem;
}

.video-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 14, 26, 0.4) 0%, rgba(10, 14, 26, 0.2) 100%);
    z-index: 1;
    transition: all 0.4s;
}

.video-overlay:hover::before {
    background: linear-gradient(135deg, rgba(10, 14, 26, 0.6) 0%, rgba(10, 14, 26, 0.3) 100%);
}

.play-btn {
    width: 80px;
    height: 80px;
    background: rgba(0, 174, 239, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.4s;
    box-shadow: 0 0 40px rgba(0, 174, 239, 0.3);
}

.play-btn:hover {
    transform: scale(1.1);
    background: rgba(0, 174, 239, 1);
    box-shadow: 0 0 60px rgba(0, 174, 239, 0.5);
}

.play-btn svg {
    width: 28px;
    height: 28px;
    color: var(--navy);
    margin-left: 4px;
}

/* ─── SWIPER CUSTOM ───────────────────────────────────────────── */
.swiper-button-next,
.swiper-button-prev {
    color: var(--gold) !important;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    width: 48px !important;
    height: 48px !important;
    border-radius: 50%;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 18px !important;
    font-weight: bold;
}

.swiper-pagination-bullet {
    background: rgba(0, 0, 0, 0.2) !important;
    opacity: 1 !important;
    width: 10px !important;
    height: 10px !important;
}

.swiper-pagination-bullet-active {
    background: var(--gold) !important;
    width: 30px !important;
    border-radius: 5px !important;
}

/* ─── TABS ────────────────────────────────────────────────────── */
.tab-btn {
    padding: 10px 24px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    cursor: pointer;
}

.tab-btn:hover {
    color: var(--text);
}

.tab-btn.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fade-up 0.5s ease-out;
}

/* ─── STAT CARDS ──────────────────────────────────────────────── */
.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* ─── FEATURE ICONS ───────────────────────────────────────────── */
.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0, 174, 239, 0.08) 0%, rgba(0, 174, 239, 0.03) 100%);
    border: 1px solid rgba(0, 174, 239, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    transition: all 0.4s;
}

.glass-card:hover .feature-icon {
    background: linear-gradient(135deg, rgba(0, 174, 239, 0.15) 0%, rgba(0, 174, 239, 0.08) 100%);
    border-color: rgba(0, 174, 239, 0.25);
    transform: scale(1.05);
}

/* ─── FORM STYLES ─────────────────────────────────────────────── */
.form-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 0.875rem;
    transition: all 0.3s;
    outline: none;
}

.form-input:focus {
    border-color: rgba(0, 174, 239, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.1);
    background: #ffffff;
}

.form-input::placeholder {
    color: #94a3b8;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ─── SECTION DIVIDER ─────────────────────────────────────────── */
.section-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
    margin-bottom: 1.5rem;
}

/* ─── GOLDEN GLOW ─────────────────────────────────────────────── */
.glow-gold {
    box-shadow: 0 0 30px rgba(0, 174, 239, 0.1), 0 0 60px rgba(0, 174, 239, 0.04);
}

/* ─── MAP DARK STYLE ──────────────────────────────────────────── */
.map-container {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.map-container iframe {
    filter: none;
    transition: filter 0.3s;
}

.map-container:hover iframe {
    filter: none;
}

/* ─── CHECKLIST ───────────────────────────────────────────────── */
.check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    color: var(--text);
    font-size: 0.875rem;
}

.check-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 174, 239, 0.1);
    border: 1px solid rgba(0, 174, 239, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.check-icon svg {
    width: 12px;
    height: 12px;
    color: var(--gold);
}

/* ─── INFINITE SCROLL STRIP ──────────────────────────────────── */
@keyframes scroll-strip {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.scroll-strip {
    display: flex;
    animation: scroll-strip 60s linear infinite;
    width: max-content;
}

.scroll-strip:hover {
    animation-play-state: paused;
}

.scroll-strip-item {
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.scroll-strip-item img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-strip-item:hover img {
    transform: scale(1.08);
}

.scroll-strip-item .strip-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.scroll-strip-item:hover .strip-overlay {
    opacity: 1;
}

/* ─── CONTACT PAGE FIXED BACKGROUND ──────────────────────────── */
/* A single fixed image that stays consistent the whole page through,
   revealed by the white / transparent sections as you scroll. */
.page-bg-fixed {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    opacity: 0.16;
    pointer-events: none;
}

@media (max-width: 768px) {
    .page-bg-fixed { background-attachment: scroll; opacity: 0.12; }
}

/* Clearfix for float-wrapped video layouts */
.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

/* ─── FANCY VIDEO FRAME (text-wrapped story videos) ──────────── */
.story-video {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(6, 13, 31, 0.18), 0 0 0 1px rgba(0, 174, 239, 0.08);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s;
}

.story-video:hover {
    transform: translateY(-6px);
    box-shadow: 0 40px 80px rgba(6, 13, 31, 0.26), 0 0 50px rgba(0, 174, 239, 0.12);
}

.story-video::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.25rem;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.story-frame-glow {
    position: absolute;
    border-radius: 9999px;
    filter: blur(60px);
    opacity: 0.5;
    z-index: 0;
}

/* Step badge for the journey timeline */
.journey-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: 9999px;
    background: rgba(0, 174, 239, 0.1);
    border: 1px solid rgba(0, 174, 239, 0.25);
    color: var(--gold-dark);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* Themed showcase image — subtle zoom + caption reveal */
.showcase-img {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.showcase-img img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showcase-img:hover img {
    transform: scale(1.07);
}

.showcase-img .showcase-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.5rem 1rem 0.9rem;
    background: linear-gradient(to top, rgba(6, 13, 31, 0.8), transparent);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.4s ease;
}

.showcase-img:hover .showcase-label {
    opacity: 1;
    transform: translateY(0);
}

/* ─── MASONRY GALLERY ────────────────────────────────────────── */
.masonry-gallery {
    columns: 2;
    column-gap: 1rem;
}

@media (min-width: 768px) {
    .masonry-gallery {
        columns: 3;
    }
}

@media (min-width: 1024px) {
    .masonry-gallery {
        columns: 4;
    }
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.masonry-item img {
    width: 100%;
    display: block;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
}

.masonry-item:hover img {
    transform: scale(1.06);
}

.masonry-item .masonry-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1rem 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    color: white;
    font-size: 0.8125rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.masonry-item:hover .masonry-caption {
    opacity: 1;
    transform: translateY(0);
}

/* ─── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 640px) {
    .stat-number {
        font-size: 2rem;
    }

    .play-btn {
        width: 60px;
        height: 60px;
    }

    .play-btn svg {
        width: 22px;
        height: 22px;
    }
}
