body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    overflow-x: hidden;
}

.hero-bg {
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    height: 100vh;
    position: relative;
    transition: background-position 0.5s ease;
}

.navbar {
    background: linear-gradient(90deg, rgba(0,0,0,0.85), rgba(20,20,20,0.9));
    padding: 0.5rem 1rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 40;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar.scrolled {
    background: linear-gradient(90deg, rgba(0,0,0,0.95), rgba(30,30,30,0.95));
}

.navbar a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 10px 20px;
    transition: color 0.3s, background 0.3s;
    border-radius: 0.375rem;
}

.navbar a:hover {
    color: #f4a261;
    background: rgba(255,255,255,0.1);
}

.navbar .brand {
    margin-left: 20px;
    width: 60px;
    height: 70px;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.section {
    padding: 3rem 1rem;
    scroll-margin-top: 60px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    margin: 0 1rem;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-content {
    transition: max-height 0.3s ease;
    overflow: hidden;
}

.section-content.collapsed {
    max-height: 4.5rem;
    position: relative;
}

.section-content.collapsed::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), white);
}

.toggle-section {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.toggle-section:hover {
    text-decoration: underline;
}

.home-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.75rem;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.home-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.house-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #f8f8f8;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.home-card h3 {
    margin-bottom: 0.5rem;
}

.home-card p {
    flex-grow: 1;
}

.home-card a span {
    display: inline-block;
    margin-top: 1rem;
    text-align: center;
}

.contact-form input, 
.contact-form textarea {
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    border-color: #f4a261;
    box-shadow: 0 0 8px rgba(244,162,97,0.3);
    outline: none;
}

.hero-content {
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
}

.hero-content.visible {
    transform: translateY(0);
    opacity: 1;
}

.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: rgba(0,0,0,0.8);
}

.toggle-content.collapsed {
    max-height: 300px;
    overflow: hidden;
    position: relative;
}

.toggle-content.collapsed::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), white);
}

footer {
    background: #1f2937;
    color: #ffffff;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 1rem;
        flex-wrap: wrap;
    }

    .navbar .brand {
        margin-left: 10px;
        width: 50px;
        height: 58px;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(0,0,0,0.9);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1rem;
        margin: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 0.5rem;
        font-size: 1rem;
        text-align: center;
    }

    .hero-bg {
        height: 70vh;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-content .orange-button {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .section {
        padding: 2rem 1rem;
        margin: 0 0.5rem;
        opacity: 1;
        transform: none;
        transition: none;
    }

    .section h2 {
        font-size: 1.8rem;
    }

    .section-content p {
        font-size: 0.9rem;
    }

    .home-card .house-img {
        height: 150px;
    }

    .home-card h3 {
        font-size: 1rem;
    }

    .home-card p {
        font-size: 0.85rem;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 0.9rem;
    }

    .contact-form .orange-button {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        padding: 0.4rem;
    }
}

@media (max-width: 480px) {
    .navbar .brand {
        width: 40px;
        height: 46px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 0.85rem;
    }

    .hero-content .orange-button {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    .section h2 {
        font-size: 1.5rem;
    }

    .section-content p {
        font-size: 0.8rem;
    }

    .home-card .house-img {
        height: 120px;
    }

    .home-card h3 {
        font-size: 0.9rem;
    }

    .home-card p {
        font-size: 0.75rem;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 0.8rem;
    }

    .contact-form .orange-button {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    .section {
        margin: 0 0.5rem;
        opacity: 1;
        transform: none;
        transition: none;
    }
}