* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #38bdf8, #0ea5e9);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
    transition: 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #0ea5e9, #38bdf8);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.8);
}

body {
    height: 1000px;
    background: #0f172a;
    color: #fff;
}

header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    transition: 0.3s ease;
    z-index: 100;
}

header.scrolled {
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    padding: 15px 50px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #38bdf8;
    letter-spacing: 1px;
    cursor: pointer;
}

nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 30px;
}

nav ul li {
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    transition: 0.3s;
}

nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 2px;
    background: #38bdf8;
    transition: 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a:hover {
    color: #38bdf8;
}

.btn {
    padding: 8px 18px;
    border-radius: 20px;
    background: #38bdf8;
    color: black;
    font-weight: bold;
    transition: 0.3s;
    border: none;
    outline: none;
    cursor: pointer;
}

.btn:hover {
    background: #0ea5e9;
    transform: scale(1.05);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    height: 3px;
    width: 27px;
    background: #fff;
    margin: 2px 0;
    transition: 0.4s;
}

/* HERO SECTION */

.hero {
    height: 100vh;
    background: url('./Home.png') no-repeat center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    top: 0;
    left: 0;
}

.hero-content {
    position: relative;
    text-align: center;
    color: white;
    animation: fadeUp 1s ease forwards;
}

.hero-content h1 {
    font-size: 50px;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #ddd;
}

.search-box {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.search-box input,
.search-box select {
    padding: 12px 15px;
    border-radius: 25px;
    border: none;
    outline: none;
    min-width: 180px;
}

.search-box button {
    padding: 12px 20px;
    border-radius: 25px;
    border: none;
    outline: none;
    background: #38bdf8;
    color: black;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.search-box button:hover {
    background: #0ea5e9;
    transform: scale(1.05);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.properties {
    padding: 80px 50px;
    background: #020617;
    text-align: center;
}

.properties h2 {
    font-size: 32px;
    margin-bottom: 40px;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: #0f172a;
    border-radius: 15px;
    overflow: hidden;
    transition: 0.3s;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-img {
    position: relative;
}

.card-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.price {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #38bdf8;
    color: black;
    padding: 5px 10px;
    border-radius: 8px;
    font-weight: bold;
}

.card-content {
    padding: 15px;
    text-align: left;
}

.card-content h3 {
    margin-bottom: 5px;
}

.card-content p {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 10px;
}

.details {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #ccc;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    transition: 0.4s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}

.card-img img {
    transition: 0.4s;
}

.card:hover img {
    transform: scale(1.1);
}


@media (max-width: 768px) {
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #0f172a;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    nav.active {
        max-height: 300px;
    }

    nav ul {
        flex-direction: column;
        padding: 20px;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .search-box {
        flex-direction: column;
        align-items: center;
    }

    .properties {
        padding: 60px 20px;
    }
}