/* Global Reset & Core Styles */
:root {
    --bg-color: #f8fafc;
    /* Slate 50 */
    --card-bg: rgba(255, 255, 255, 0.8);
    /* Light Glass */
    --text-primary: #0f172a;
    /* Slate 900 */
    --text-secondary: #475569;
    /* Slate 600 */
    --accent-color: #dc1931;
    /* Electric Indigo */
    --accent-hover: #DC1931;
    --accent-secondary: #ed7f8c;
    /* Emerald */
    --gradient-start: #f8fafc;
    --gradient-end: #e2e8f0;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --card-border: rgba(0, 0, 0, 0.05);
    /* Light border */
    --nav-bg: rgba(255, 255, 255, 0.9);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

.gradient-text {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    /* Pill shape */
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: capitalize;
    /* Cleaner look */
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 15px rgba(220, 25, 49, 0.4);
}

.btn-hero-red {
    background: #dc1931;
    color: white;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(220, 25, 49, 0.3);
    border: none;
}

.btn-hero-red:hover {
    background: #b9152a;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(220, 25, 49, 0.4);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.05);
    /* Ultra transparent initially */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    padding: 1rem 2rem;
    /* Shrink slightly on scroll */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.25rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    /* Ensure above mobile menu overlay */
}

.bar {
    width: 28px;
    height: 2.5px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger Animation classes */
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8rem 1rem 4rem;
    position: relative;
    background: linear-gradient(rgba(248, 250, 252, 0.95), rgba(248, 250, 252, 0.95)),
        url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&q=80&w=2000');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-banner-section {
    padding: 2rem 0;
    background-color: var(--bg-color);
}

.hero-banner {
    width: 50%;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease;
}

.hero-banner:hover {
    transform: scale(1.01);
}

.hero-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-text {
    text-align: left;
    z-index: 2;
}

.hero-text h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    max-width: 90%;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    transition: all 0.3s ease;
}

/* Property Cards Visuals */
.carousel-container {
    position: relative;
    height: 600px;
    perspective: 1500px;
}

.hero-visuals {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-visuals-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.property-card {
    position: absolute;
    background: white;
    padding: 0.8rem;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 320px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
}

.carousel-nav {
    display: flex;
    position: absolute;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-nav i {
    transform: rotate(0deg);
    display: inline-block;
}

.carousel-nav:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 15px 30px rgba(220, 25, 49, 0.4);
}

.carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-nav.prev {
    left: -30px;
}

.carousel-nav.next {
    right: -30px;
}

.card-image {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    height: 220px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .card-image img {
    transform: scale(1.05);
}

.badg {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-details {
    padding: 1rem 0.5rem 0.5rem;
}

.card-details h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.card-details .price {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Positioning Property Cards - Fanned Layout */
.card-1 {
    z-index: 5;
    top: 52%;
    left: 48%;
    transform: translate(-50%, -50%) rotate(0deg);
}

.card-2 {
    z-index: 4;
    top: 48%;
    left: 52%;
    transform: translate(-50%, -50%) rotate(5deg) scale(0.95);
    opacity: 0.9;
}

.card-3 {
    z-index: 3;
    top: 44%;
    left: 56%;
    transform: translate(-50%, -50%) rotate(10deg) scale(0.9);
    opacity: 0.8;
}

.card-4 {
    z-index: 2;
    top: 40%;
    left: 60%;
    transform: translate(-50%, -50%) rotate(15deg) scale(0.85);
    opacity: 0.7;
}

.card-5 {
    z-index: 1;
    top: 36%;
    left: 64%;
    transform: translate(-50%, -50%) rotate(20deg) scale(0.8);
    opacity: 0.6;
}

/* Floating Icons */
.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-icon {
    position: absolute;
    color: #475569;
    font-size: 1.5rem;
    opacity: 0.6;
    animation: float-icon 5s ease-in-out infinite;
}

.icon-1 {
    top: 15%;
    left: 10%;
    color: #dc1931;
    animation-delay: 0s;
    font-size: 2.22rem;
}

.icon-2 {
    top: 25%;
    left: 40%;
    animation-delay: 1s;
    font-size: 1.8rem;
}

.icon-3 {
    top: 60%;
    left: 5%;
    color: #dc1931;
    animation-delay: 2s;
    font-size: 2rem;
}

.icon-4 {
    top: 75%;
    left: 35%;
    animation-delay: 0.5s;
    font-size: 1.6rem;
}

.icon-5 {
    top: 40%;
    left: 55%;
    color: #dc1931;
    animation-delay: 1.5s;
    font-size: 1.4rem;
}

.icon-6 {
    top: 85%;
    left: 15%;
    animation-delay: 2.5s;
    font-size: 1.8rem;
}

@keyframes float-icon {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

@keyframes float-main {

    0%,
    100% {
        transform: translate(-50%, -50%);
    }

    50% {
        transform: translate(-50%, -52%);
    }
}

@keyframes float-secondary {

    0%,
    100% {
        transform: translateY(0) rotate(var(--r, 6deg)) scale(0.9);
    }

    50% {
        transform: translateY(-15px) rotate(var(--r, 6deg)) scale(0.9);
    }
}

.card-2 {
    --r: 6deg;
}

.card-3 {
    --r: -6deg;
}


/* Responsive Adjustments */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        padding-top: 2rem;
        gap: 2rem;
        text-align: center;
        /* Center on tablet */
    }

    .hero-text {
        text-align: center;
    }

    .hero-text p {
        margin: 0 auto 2rem;
    }

    .hero-btns {
        justify-content: center;
    }
}

@media (max-width: 768px) {

    /* Navbar */
    .navbar {
        padding: 1rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        padding: 2.5rem;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);

        /* Animation states */
        visibility: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }

    .nav-links.active {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links a {
        margin: 0;
        font-size: 1.25rem;
        color: var(--text-primary);
    }

    /* Mobile Hero: Distinct Left Align */
    .hero-container {
        text-align: left;
        align-items: flex-start;
        padding-top: 6rem;
        /* More space for nav */
    }

    .hero-text {
        text-align: left;
        padding: 0 1rem;
    }

    .hero-text h1 {
        font-size: 3rem;
        /* Smaller font for mobile */
    }

    .hero-text p {
        margin: 0 0 2rem 0;
        font-size: 1.1rem;
    }

    .hero-btns {
        justify-content: flex-start;
    }

    /* Hero Carousel Transformation */
    .hero-visuals {
        height: auto;
        width: 100vw;
        margin-left: -5vw;
        margin-top: 1rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 1rem 5vw 3rem;
        -webkit-overflow-scrolling: touch;
        display: block;
        /* Use block for the scroll container */
    }

    .hero-visuals-inner {
        display: flex;
        flex-direction: row;
        gap: 1.5rem;
        width: max-content;
        transition: none;
        /* Disable 3D transition on mobile */
    }

    .hero-visuals::-webkit-scrollbar {
        display: none;
    }

    .property-card {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        animation: none !important;
        flex: 0 0 80vw;
        height: 400px;
        scroll-snap-align: center;
        opacity: 1 !important;
        display: block !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }

    .card-1,
    .card-2,
    .card-3 {
        width: 100%;
        max-width: none;
    }
}



/* About Section */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--accent-color);
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Properties Section */


/* About Section */
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.about-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 24px;
    /* Large rounded corners */
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    /* Glassmorphism */
    transition: transform 0.3s, box-shadow 0.3s;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.about-card p {
    color: var(--text-secondary);
}



/* Banner Section */
.banner-section {
    padding: 6rem 0;
    background: var(--bg-color);
    border-top: 1px solid var(--card-border);
}

.banner-grid {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.banner-card {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 300px;
}

.banner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.banner-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Join & Location Sections */
/* Join & Location Sections */
.section-header-centered {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header-centered h2 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: #102a43;
    /* Darker blue from screenshot */
    text-transform: uppercase;
}

.join-content-centered {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.join-content-centered p {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.btn-secondary {
    background-color: #dc2626;
    /* Red background */
    color: #ffffff;
    /* White text */
    padding: 1rem 3rem;
    border-radius: 50px;
    /* Pill shape */
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.2);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
}

.join-btns {
    margin-top: 2rem;
}

.location-section {
    background-color: #f8fafc;
}

.map-container {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .section-header-centered h2 {
        font-size: 1.8rem;
    }

    .join-content p {
        font-size: 1.1rem;
    }

    .title-underline {
        width: 15rem;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Simple Footer */
.footer-simple {
    background-color: #ffffff;
    color: #1a365d;
    /* Dark blue from image */
    padding: 4rem 0 2rem;
    border-top: 1px solid #e2e8f0;
}

.footer-simple-content {
    max-width: 800px;
    margin: 0px;
    text-align: left;
}

.footer-simple-logo img {
    height: 80px;
    margin-bottom: 2rem;
    display: block;
}

.footer-info {
    margin-bottom: 2.5rem;
}

.footer-info p {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #1e3a8a;
    /* Era blue */
}

.footer-info strong {
    font-weight: 700;
}

.footer-simple-socials {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-simple-socials a {
    color: #1e3a8a;
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.footer-simple-socials a:hover {
    transform: translateY(-3px);
    color: var(--accent-color);
}

.footer-bottom-simple {
    padding: 2rem 0;
    border-top: 1px solid #f1f5f9;
    text-align: left;
    color: #64748b;
    font-size: 0.9rem;
}

/* Floating Action Buttons */
.fab-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 999;
}

.fab-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.fab-btn.scroll-top {
    background-color: #1e3a8a;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
}

.fab-btn.whatsapp {
    background-color: #22c55e;
}

.fab-btn:hover {
    transform: translateY(-5px) scale(1.1);
}

@media (max-width: 768px) {

    /* Navbar */
    .navbar {
        padding: 1rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        padding: 2.5rem;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        visibility: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }

    .nav-links.active {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links a {
        margin: 0;
        font-size: 1.25rem;
        color: var(--text-primary);
    }

    /* Hero */
    .hero-container {
        text-align: left;
        align-items: flex-start;
        padding-top: 6rem;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    .hero-btns {
        justify-content: flex-start;
    }

    /* Hero Carousel */
    .carousel-container {
        position: relative;
        width: 100vw;
        margin-left: -5vw;
    }

    .hero-visuals {
        height: auto;
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 1rem 5vw 3rem;
        gap: 1.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .carousel-nav {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        z-index: 10;
        background: rgba(255, 255, 255, 0.85);
        transform: translateY(-50%) rotate(0deg);
    }

    .carousel-nav.prev {
        left: 2vw;
    }

    .carousel-nav.next {
        right: 2vw;
    }

    .hero-visuals::-webkit-scrollbar {
        display: none;
    }

    .property-card {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        animation: none !important;
        flex: 0 0 80vw;
        height: 400px;
        scroll-snap-align: center;
        opacity: 1 !important;
        display: block !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }

    .card-1,
    .card-2,
    .card-3 {
        width: 100%;
        max-width: none;
    }

    /* Banner Grid Fix */
    .banner-grid {
        flex-direction: column;
        gap: 1.5rem;
    }

    .banner-card {
        height: auto;
        min-height: 250px;
        width: 100%;
    }

    .hero-banner {
        width: 100%;
        margin: 1rem 0;
        border-radius: 16px;
    }

    .hero-banner-section {
        padding: 1.5rem 0;
    }

    /* Join & Other Sections */
    .section-header-centered h2 {
        font-size: 1.8rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .footer-simple-content {
        padding: 0 1rem;
    }

    .footer-simple-logo img {
        height: 60px;
    }

    .footer-info p {
        font-size: 1rem;
    }

    .fab-container {
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .fab-btn {
        width: 45px;
        height: 45px;
    }
}