/* ==================================
   VARIABLES & THEME
=================================== */
:root {
    --color-primary: #0b1c34;
    /* Dark Blue */
    --color-secondary: #d4af37;
    /* Gold */
    --color-secondary-hover: #f1c944;
    --color-bg-main: #050d18;
    /* Very Dark Background */
    --color-bg-alt: #0a1626;
    /* Slightly Lighter Dark */
    --color-bg-card: rgba(255, 255, 255, 0.03);

    --color-text-main: #ffffff;
    --color-text-muted: #a0aec0;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(212, 175, 55, 0.2);

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
}

/* ==================================
   RESET & BASE STYLES
=================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-main);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-text-main);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

.bg-darker {
    background-color: var(--color-bg-alt);
}

/* ==================================
   TYPOGRAPHY & UTILITIES
=================================== */
.section-title {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.title-line {
    width: 60px;
    height: 3px;
    background-color: var(--color-secondary);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-title p {
    color: var(--color-text-muted);
    font-size: 1.125rem;
}

/* ==================================
   BUTTONS
=================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--color-secondary);
    color: var(--color-primary);
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
}

.btn-primary:hover {
    background-color: var(--color-secondary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-primary-outline {
    display: inline-block;
    border: 1px solid var(--color-secondary);
    color: var(--color-secondary);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 500;
}

.btn-primary-outline:hover {
    background-color: var(--color-secondary);
    color: var(--color-primary);
}

.btn-text {
    display: inline-flex;
    align-items: center;
    color: var(--color-secondary);
    font-weight: 500;
    gap: 4px;
}

.btn-text:hover {
    gap: 8px;
    color: var(--color-secondary-hover);
}

/* ==================================
   NAVIGATION
=================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(11, 28, 52, 0.95);
    backdrop-filter: blur(10px);
    padding: 16px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text-main);
    letter-spacing: 1px;
}

.logo span {
    color: var(--color-secondary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a:not(.btn-primary-outline) {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.nav-links a:not(.btn-primary-outline)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-secondary);
    transition: var(--transition);
}

.nav-links a:not(.btn-primary-outline):hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--color-text-main);
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--color-primary);
    z-index: 2000;
    padding: 40px;
    transition: 0.4s ease-in-out;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.mobile-nav.active {
    right: 0;
}

.close-btn {
    font-size: 2rem;
    text-align: right;
    cursor: pointer;
    color: var(--color-text-main);
    margin-bottom: 40px;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-nav-links a {
    font-size: 1.25rem;
    font-family: var(--font-heading);
}

/* ==================================
   HERO SECTION
=================================== */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    background: url('assets/hero_bg.png') no-repeat center center/cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(5, 13, 24, 0.9) 0%, rgba(5, 13, 24, 0.6) 50%, rgba(5, 13, 24, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

/* ==================================
   ABOUT SECTION
=================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.about-card {
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--color-secondary);
    margin-bottom: 24px;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.about-card p {
    color: var(--color-text-muted);
}

/* ==================================
   PROJECTS SECTION
=================================== */
.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.project-card {
    background: var(--color-bg-main);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.02);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.1);
}

.project-image {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-status {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--color-secondary);
    color: var(--color-primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-ongoing {
    background: var(--color-text-main);
}

.project-info {
    padding: 30px;
}

.project-info h3 {
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.project-info p {
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

/* ==================================
   FEATURES SECTION
=================================== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-box {
    text-align: center;
    padding: 50px 30px;
    background: var(--color-bg-alt);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.02);
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(212, 175, 55, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    transition: var(--transition);
}

.feature-box:hover .feature-icon {
    background: var(--color-secondary);
    color: var(--color-primary);
}

.feature-box h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.feature-box p {
    color: var(--color-text-muted);
}

/* ==================================
   CONTACT SECTION
=================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--color-bg-main);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-info {
    padding: 60px;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.contact-info>p {
    color: var(--color-text-muted);
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-item i {
    font-size: 24px;
    color: var(--color-secondary);
    background: rgba(212, 175, 55, 0.1);
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item>div {
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
}

.contact-item h4 {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 4px;
    font-family: var(--font-body);
    font-weight: 500;
}

.contact-item a {
    font-size: 1.125rem;
    font-weight: 600;
}

.contact-item a:hover {
    color: var(--color-secondary);
}

.contact-map {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    filter: invert(90%) hue-rotate(180deg) contrast(100%);
    /* Cool trick for instant dark mode map */
}

/* ==================================
   FOOTER
=================================== */
.footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-logo span {
    color: var(--color-secondary);
}

.footer p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-main);
    font-size: 1.1rem;
}

.footer-social a:hover {
    background: var(--color-secondary);
    color: var(--color-primary);
}

/* ==================================
   FLOATING WHATSAPP
=================================== */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    animation: pulse 2s infinite;
}

.floating-whatsapp:hover {
    background-color: #128c7e;
    color: white;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ==================================
   ANIMATIONS & EFFECTS
=================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-up {
    opacity: 0;
    transform: translateY(40px);
    animation: slideUpFade 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.delay-1 {
    animation-delay: 0.2s;
    transition-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
    transition-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
    transition-delay: 0.6s;
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================================
   PALM AVENUE SCOPED STYLES
=================================== */

.pa-hero-wrapper {
    font-family: 'Poppins', sans-serif;
}

.pa-hero-wrapper * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.pa-hero-wrapper .hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.6)),
        url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?q=80&w=2064&auto=format&fit=crop') center/cover no-repeat;
    color: white;
    overflow: hidden;
    height: auto;
}

.pa-hero-wrapper .pa-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 120px 10%;
}

.pa-hero-wrapper .logo {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pa-hero-wrapper .logo i {
    color: #d4af37;
}

.pa-hero-wrapper .contact-top {
    font-size: 18px;
    font-weight: 600;
    background: #d4af37;
    color: #0d3d20;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.pa-hero-wrapper .contact-top:hover {
    background: #fff;
}

.pa-hero-wrapper .hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    flex: 1;
    gap: 40px;
    max-width: 100%;
    position: relative;
    z-index: 1;
}

.pa-hero-wrapper .text-content {
    max-width: 600px;
}

.pa-hero-wrapper .badge {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 20px;
}

.pa-hero-wrapper .text-content h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

.pa-hero-wrapper .text-content h1 span {
    color: #d4af37;
}

.pa-hero-wrapper .text-content p {
    font-size: 20px;
    margin-bottom: 30px;
    color: #e0e0e0;
    max-width: 100%;
}

.pa-hero-wrapper .location {
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    padding-bottom: 100px;
    gap: 10px;
}

.pa-hero-wrapper .location i {
    color: #e74c3c;
}

.pa-hero-wrapper .pricing-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    color: #333;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 100%;
    border: 4px solid #0d3d20;
    position: relative;
}

.pa-hero-wrapper .plot-size {
    background: #333;
    color: #d4af37;
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.pa-hero-wrapper .old-price-container {
    background: #ffeb3b;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 5px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.pa-hero-wrapper .old-price {
    font-size: 18px;
    font-weight: 600;
    text-decoration: line-through;
    margin-bottom: 5px;
    margin-top: 15px;
    text-decoration-color: red;
}

.pa-hero-wrapper .pre-launch {
    font-size: 14px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.pa-hero-wrapper .new-price {
    font-size: 50px;
    font-weight: 800;
    margin-top: 15px;
    color: #0d3d20;
}

.pa-hero-wrapper .unit {
    font-size: 20px;
    color: #666;
    margin-top: 15px;
    margin-bottom: 25px;
}

.pa-hero-wrapper .cta-btn {
    display: block;
    background: #0d3d20;
    color: white;
    text-decoration: none;
    padding: 15px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 10px;
    transition: 0.3s;
}

.pa-hero-wrapper .cta-btn:hover {
    background: #165c32;
    transform: translateY(-2px);
}

.pa-hero-wrapper .amenities-bar {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px 5%;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.pa-hero-wrapper .amenity {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #0d3d20;
    width: 100px;
    text-align: center;
}

.pa-hero-wrapper .amenity i {
    font-size: 30px;
    margin-bottom: 10px;
}

@media (max-width: 992px) {
    .pa-hero-wrapper .hero-content {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .pa-hero-wrapper .text-content h1 {
        font-size: 40px;
    }

    .pa-hero-wrapper .contact-top {
        display: none;
    }

    .pa-hero-wrapper .location {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .pa-hero-wrapper .amenities-bar {
        gap: 15px;
    }

    .pa-hero-wrapper .amenity {
        width: 80px;
    }

    .pa-hero-wrapper .amenity i {
        font-size: 24px;
    }

    .pa-hero-wrapper .new-price {
        font-size: 40px;
    }
}

/* Palm Avenue Video Section */
.pa-hero-wrapper .pa-video-section {
    background: #050d18;
    padding: 80px 5%;
    text-align: center;
}

.pa-hero-wrapper .pa-video-container {
    max-width: 900px;
    margin: 0 auto;
}

.pa-hero-wrapper .pa-video-container h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

.pa-hero-wrapper .pa-video-container h2 i {
    color: #d4af37;
    margin-right: 10px;
}

.pa-hero-wrapper .pa-video-container p {
    font-size: 18px;
    color: #b0c4b0;
    margin-bottom: 40px;
}

.pa-hero-wrapper .pa-video-player {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(212, 175, 55, 0.3);
}

.pa-hero-wrapper .pa-video-player video {
    width: 100%;
    display: block;
    background: #000;
}

/* Map Link */
.map-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 12px 20px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    margin-top: 10px;
    transition: var(--transition);
}

.map-link:hover {
    background: var(--color-secondary);
    color: var(--color-primary);
}

@media (max-width: 600px) {
    .pa-hero-wrapper .pa-video-container h2 {
        font-size: 26px;
    }

    .pa-hero-wrapper .pa-video-section {
        padding: 50px 4%;
    }
}

/* ==================================
   RESPONSIVE DESIGN
=================================== */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-map {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .about-card,
    .project-info,
    .contact-info {
        padding: 30px 20px;
    }

    .section-padding {
        padding: 70px 0;
    }
}