/* BASE */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    /* space for floating bottom bar */
    padding-bottom: 72px;
    font-family: 'Poppins', sans-serif;
}

img, video, iframe { max-width: 100%; display: block; }
section { overflow-x: hidden; width: 100%; }

/* ── NAVBAR FIXED ─────────────────────────────────────────────── */
#navbar {
    position: fixed !important;
    top: 0; left: 0; right: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(10,10,10,0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.35s ease, box-shadow 0.35s ease;
}

#navbar.scrolled {
    background: rgba(10,10,10,0.98) !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.7);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* ── GLASSMORPHISM ────────────────────────────────────────────── */
.glassmorphism-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.37);
}

/* ── CARDS ────────────────────────────────────────────────────── */
.feature-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
}
.feature-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(59,130,246,0.3);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(59,130,246,0.2);
}

.project-card { transition: transform 0.3s ease; }
.project-card:hover { transform: translateY(-8px); }

.amenity-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 1.5rem;
    border-radius: 1rem;
    transition: all 0.4s ease;
}
.amenity-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(59,130,246,0.3);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 40px rgba(59,130,246,0.2);
}

.card-hover-lift { transition: all 0.5s ease; }
.card-hover-lift:hover {
    transform: translateY(-14px) scale(1.02);
    box-shadow: 0 30px 60px rgba(59,130,246,0.3);
}

.testimonial-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 1.5rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
}
.testimonial-card:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-4px);
}

/* ── GALLERY ──────────────────────────────────────────────────── */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    cursor: pointer;
}
.gallery-item img { transition: transform 0.7s ease; width:100%; height:100%; object-fit:cover; }
.gallery-item:hover img { transform: scale(1.12); }
.gallery-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex; align-items: flex-end; padding: 1rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ── FAQ ──────────────────────────────────────────────────────── */
.faq-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-item.active {
    background: rgba(255,255,255,0.08);
    border-color: rgba(59,130,246,0.3);
}
.faq-question {
    cursor: pointer;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: background 0.3s ease;
}
.faq-question:hover { background: rgba(255,255,255,0.05); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.5s ease; }
.faq-item.active .faq-answer { max-height: 500px; }
.faq-icon { flex-shrink: 0; transition: transform 0.3s ease; }
.faq-item.active .faq-icon { transform: rotate(180deg); }

/* ── FORMS ────────────────────────────────────────────────────── */
select {
    background-color: #1a1a1a !important;
    color: #fff !important;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}
select option { background: #1a1a1a; color: #fff; }
.form-group input, .form-group select, .form-group textarea { color: #fff; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59,130,246,0.2);
}

/* ── FLOATING BOTTOM BAR ──────────────────────────────────────── */
.floating-buttons {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 9998;
    background: rgba(10,10,10,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 0.75rem 1rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    display: flex;
    gap: 0.75rem;
    width: 100%;
}

.floating-btn {
    flex: 1;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #fff;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}
.floating-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.call-btn     { background: linear-gradient(135deg, #3b82f6, #8b5cf6); }
.whatsapp-btn { background: linear-gradient(135deg, #25D366, #128C7E); }

/* ── FLOATING SIDE ICONS ──────────────────────────────────────── */
/* Bottom bar height ≈ 68px. Icons stack above it. */
.floating-icon {
    position: fixed;
    right: 1.25rem;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    cursor: pointer;
    z-index: 9997;
    text-decoration: none;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.floating-icon:hover { transform: scale(1.12) !important; }

.floating-whatsapp {
    bottom: 88px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    animation: pulseGreen 2.5s infinite;
}
.floating-call {
    bottom: 154px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    box-shadow: 0 4px 20px rgba(59,130,246,0.4);
    animation: pulseBlue 2.5s infinite;
}
.scroll-top {
    bottom: 220px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    opacity: 0;
    visibility: hidden;
    animation: none !important;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.scroll-top.visible { opacity: 1; visibility: visible; }

.floating-icon:hover { animation: none !important; }

@keyframes pulseGreen {
    0%,100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
    50%      { box-shadow: 0 0 0 12px rgba(37,211,102,0); }
}
@keyframes pulseBlue {
    0%,100% { box-shadow: 0 0 0 0 rgba(59,130,246,0.5); }
    50%      { box-shadow: 0 0 0 12px rgba(59,130,246,0); }
}

/* ── DIAGONAL SECTION ─────────────────────────────────────────── */
.diagonal-section {
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
    padding-top: 8rem;
    padding-bottom: 8rem;
}

/* ── SCROLLBAR ────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg,#3b82f6,#8b5cf6); border-radius: 3px; }

/* ── MOBILE MENU ANIMATION ────────────────────────────────────── */
.mobile-nav-link {
    opacity: 0;
    transform: translateX(20px);
    animation: slideInRight 0.4s forwards;
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    display: block;
}
.mobile-nav-link:nth-child(1){animation-delay:0.05s}
.mobile-nav-link:nth-child(2){animation-delay:0.1s}
.mobile-nav-link:nth-child(3){animation-delay:0.15s}
.mobile-nav-link:nth-child(4){animation-delay:0.2s}
.mobile-nav-link:nth-child(5){animation-delay:0.25s}
.mobile-nav-link:nth-child(6){animation-delay:0.3s}
@keyframes slideInRight { to { opacity:1; transform:translateX(0); } }

/* ── MISC ─────────────────────────────────────────────────────── */
@keyframes fadeIn { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
.fade-in { animation: fadeIn 0.6s ease-out; }
.parallax { transition: transform 0.5s ease; }

/* ── TABLET 768px ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .diagonal-section { clip-path: none !important; padding-top:3.5rem; padding-bottom:3.5rem; }

    .floating-buttons { padding: 0.6rem 0.75rem; padding-bottom: calc(0.6rem + env(safe-area-inset-bottom,0px)); gap:0.5rem; }
    .floating-btn { padding: 0.75rem 0.5rem; font-size: 0.9rem; gap: 0.4rem; }

    .floating-icon { width:46px; height:46px; font-size:1.1rem; right:0.875rem; }
    .floating-whatsapp { bottom: 80px; }
    .floating-call     { bottom: 138px; }
    .scroll-top        { bottom: 196px; }

    .card-hover-lift:hover { transform: translateY(-6px) scale(1.01); }
    .amenity-card:hover    { transform: translateY(-4px) scale(1.01); }
    .feature-card:hover    { transform: translateY(-4px); }
    .project-card:hover    { transform: translateY(-4px); }
}

/* ── SMALL PHONES 480px ───────────────────────────────────────── */
@media (max-width: 480px) {
    .floating-btn span { display: none; }
    .floating-btn { font-size: 1.2rem; padding: 0.875rem; }

    .floating-icon { width:42px; height:42px; font-size:1rem; right:0.625rem; }
    .floating-whatsapp { bottom: 74px; }
    .floating-call     { bottom: 128px; }
    .scroll-top        { bottom: 182px; }
}

/* ── MOBILE MENU OVERLAY ──────────────────────────────────────────
   Placed OUTSIDE navbar so z-index stacks correctly above everything
   ─────────────────────────────────────────────────────────────── */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;          /* above navbar (9999) and all floating elements */
    background: rgba(5, 5, 5, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
    /* Hidden by default — slides in from right */
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
}

.mobile-menu-overlay.open {
    transform: translateX(0);
}

/* Inner wrapper */
.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 0 0 2rem 0;
}

/* Header row */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    background: rgba(5, 5, 5, 0.98);
    z-index: 1;
}

/* Close button */
.mobile-close-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    flex-shrink: 0;
}
.mobile-close-btn:hover { background: rgba(255, 255, 255, 0.15); }

/* Nav links container */
.mobile-menu-links {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.25rem;
    flex: 1;
}

/* Each nav link */
.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    border-radius: 0.75rem;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    /* override old animation */
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
}

/* Dropdown icon */
.mobile-dd-icon {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.mobile-dropdown-btn.open .mobile-dd-icon {
    transform: rotate(180deg);
}

/* Sub-links */
.mobile-dropdown-content {
    margin: 0.25rem 0 0.25rem 1rem;
    border-left: 2px solid rgba(59, 130, 246, 0.3);
    padding-left: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.mobile-sub-link {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background 0.2s ease, color 0.2s ease;
}
.mobile-sub-link:hover { background: rgba(59,130,246,0.1); color: #3b82f6; }
.mobile-sub-link.active-link { color: #3b82f6; }

/* CTA button at bottom */
.mobile-menu-cta {
    padding: 1rem 1.5rem 1.5rem;
}
.mobile-cta-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    text-align: center;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 0.875rem;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.mobile-cta-btn:hover { opacity: 0.9; transform: translateY(-1px); }

/* Hide on desktop */
@media (min-width: 1024px) {
    .mobile-menu-overlay { display: none !important; }
}
