/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f4f4f9;
    color: #333;
}
.section{
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1.5s ease-out;
}
.section.visible{
    opacity: 1;
    transform: translateY(0);
}

h1, h2, h3, h4 {
    margin: 0;
    font-weight: bold;
}

p {
    margin: 0;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
header {
    background: #fff;
    color: #fff;
    padding: 20px;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
nav{
    align-self: center;
    display: flex;
    justify-content: space-around;
}

.logo {
    color: #1c023d;
    align-content: center;
    font-size: 25px;
    font-weight: bold;
}
.contact{
    padding: 10px 20px;
    border-radius: 50px;
    background-color: #1c023d;
    align-content: center;
    transition: .3s ease;
}
.contact:hover{
    background-color: #3e008f;
}

.nav-links {
    align-content: center;
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links li a {
    font-size: 17px;
    font-weight: bold;
    color: #1c023d;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #3e008f;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    align-content: center;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #1c023d;
    margin: 4px 0;
}

/* Hero Section */
.hero {
    padding: 30px;
    align-content: center;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;

    h1{
        margin-top: 30px;
        text-shadow: 1px 1px 5px #27222e;
        line-height: 80px;
        margin-bottom: 0;
        font-size: 90px;
        font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    
        span{
            margin-top: 0;
            font-size: 45px;
        }
    }

    p{
        font-size: 13px;
        padding: 0px 30%;
        margin-bottom: 40px;
    }
    
    a{
        padding: 10px 20px;
        background-color: white;
        color: #1c023d;
        border-radius: 50px;
        font-weight: bold;
    }
}

.available-property{
    padding: 30px;
    background-color: white;

    h2{
        margin-top: 30px;
        color: #1c023d;
        margin-bottom: 40px;
        font-size: 28px;
        text-transform: uppercase;
    }

    .sales-wrapper{
        display: flex;
        gap: 50px;
    }
    .sales-text{
        max-width: 50%;
    }
    p{
        margin-top: 20px;
        font-size: 17px;
        color: black;
        margin-bottom: 250px;
    }
    a{
        padding: 10px 20px;
        background-color: #1c023d;
        color: white;
        border-radius: 50px;
    }

    .sales-img{
        max-width: 40% ;
    }
    .sales-img .first-img{
        background: url(images/download\ \(52\).jpg);
        background-repeat: no-repeat;
        background-color: grey;
        padding: 30px;
        width: 450px;
        height: 270px;
        border-radius: 20px;
    }

    .flex-img{
        justify-content: center;
        margin-top: 20px;
        display: flex;
        gap: 20px;

        .second-img{
            background: url(images/5\ Bedroom\ terrace\ Maisonette\ -\ Ademuyiwa\ Adedotun.jpg);
            background-size: cover;
            background-repeat: no-repeat;
            height: 140px;
            width: 230px;
            background-color: grey;
            border-radius: 20px;
        }
        .third-img{
            background: url(images/5\ Bedroom\ maisonette\ -\ Ademuyiwa\ Adedotun.jpg);
            background-size: cover;
            background-repeat: no-repeat;
            height: 140px;
            width: 230px;
            background-color: grey;
            border-radius: 20px;
        }
    }
}



/* Styles for the houses section */
.houses{
    text-align: center;
    margin-top: 50px;
    padding: 20px;

    h3{
        margin-bottom: 30px;
    }

    select{
        margin-bottom: 20px;
        margin-right: 25px;
        padding: 10px 20px;
        border-radius: 50px;
        border: none;
        outline: none;
        background-color: rgb(177, 177, 177);
        font-size: 17px;
        color: #1c023d;
        font-weight: bold;
        font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
        
        option{
            background-color: rgb(207, 207, 207);
        }
    





        /* Styles for the Find My House */
    }
    a{
        padding: 10px 20px;
        background-color: #1c023d;
        color: white;
        border-radius: 50px;
    }
}






/* Style for individual sorts & Houses */
.display-sort{
    line-height: 60px;
    margin-bottom: 20px;
    margin-right: 25px;
    padding: 10px 20px;
    border-radius: 50px;
    border: none;
    outline: none;
    background-color: #1c023d;
    font-size: 17px;
    color: white;
    font-weight: bold;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

/* NOTE: It has both mobile and tablet screen styles */
.houses-info{
    margin-top: 50px;


    .houses-wrapper{
        margin-bottom: 60px;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }

    /* NOTE: It has both mobile and tablet screen styles */

    .houses-container{
        width: 27%;
        margin-right: 10px;

        
    }

    .house{
        margin-bottom: 15px;
        background-repeat: no-repeat;
        background-position: center;
        text-align: center;
        padding: 10px;
        width: 100%;
        height: 400px;
        background-color: rgb(207, 207, 207);

    }
    p{
        font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
        font-size: 15px;
        font-weight: 100;
        text-align: left;
        color: #1c023d;
    }
    div{
        font-size: 25px;
        font-weight: bold;
        font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
        text-align: right;
        color: #1c023d;
    }
    
    
}



/* styles for the Available Houses for rent! */


.house-rent{
    margin-top: 70px;
    padding: 20px;
    text-align: center;

    h2{
        margin-top: 30px;
        color: #1c023d;
        margin-bottom: 40px;
        font-size: 28px;
        text-transform: uppercase;
    }

    .houses-wrapper{
        margin-bottom: 60px;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }

    /* NOTE: It has both mobile and tablet screen styles */
    .houses-container{
        width: 27%;
        margin-right: 10px;

        
    }

    .house{
        margin-bottom: 15px;
        background-repeat: no-repeat;
        background-position: center;
        text-align: center;
        padding: 10px;
        width: 100%;
        height: 250px;
        background-color: rgb(207, 207, 207);

    }
    p{
        font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
        font-size: 15px;
        font-weight: 100;
        text-align: left;
        color: #1c023d;
    }
    div{
        font-size: 25px;
        font-weight: bold;
        font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
        text-align: right;
        color: #1c023d;
    }

    a{
        padding: 10px 20px;
        background-color: #1c023d;
        color: white;
        border-radius: 50px;
    }
}


/* NOTE: It has a tablet screen style */
.contact-section{
    margin-top: 60px;
    padding: 80px 150px;
    text-align: center;
    background-color: white;


    .contact-container{
        background: linear-gradient(to top, #1c023d, #1c023d8c, #1c023d00, #a37cd600),url(images/How\ Can\ a\ Realtor\ Help\ You\ Navigate\ a\ Competitive\ Market_.jpg);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        align-content: center;
        border-radius: 30px;
        padding: 120px;
        height: 350px;
        background-color: rgb(207, 207, 207);

        h2{
            font-size: 65px;
            color: white;
            font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
        }
        p{
            margin-bottom: 20px;
            color: white;
            font-size: 14px;
            padding: 10px 20%;
        }
        a{
            padding: 10px 20px;
            background-color: white;
            color: #1c023d;
            border-radius: 50px;
            font-weight: bold;
        }
    }
}


/* footer Styles */
/* NOTE: This has a mobile style */
footer{
    margin-top: 80px;
    background-color: #1c023d;
    color: white;
    padding: 30px;


    /* global style */
    h2{
        color: white;
        margin-top: 0;
        font-size: 40px;
    }

    h3{
        color: white;
        font-size: 25px;
    }
    p{
        text-align: center;
        font-size: 14px;
        color: white;
        font-weight: normal;
    }
    ul{
        list-style: none;
        text-align: left;
        margin-left: 0px;
        padding-left: 0px;

        li{
            line-height: 40px;
            font-size: 14px;
        }
    }
    .fa-brands{
        color: white;
        font-size: 25px;
        padding: 10px;
        transition: .3s ease-in-out;
    }
    .fa-brands:hover{
        color: rgb(207, 207, 207);
    }


    .footer-section{
        margin-bottom: 50px;
        margin-top: 50px;
        display: flex;
        gap: 20px;
        justify-content: space-between;
    }

    /* individual style */
    .logo{
        align-content: start;
        text-align: center;
        line-height: 40px;
    }
}



/* Responsive Styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        opacity: 0;
        flex-direction: column;
        width: 30%;
        height: 100vh;
        background-color: #1c023d;
        position: absolute;
        top: 60px;
        left: -500px;
        transition: left .5s ease-in-out, opacity .5s ease-in-out;
    }
    .nav-links li{
        margin-top: 40px;
    }
    .nav-links li a{
        color: white;
    }

    .nav-links.active {
        opacity: 1;
        left: 0px;
    }

    .hero{
        text-align: left;
        padding: 20px;

        h1{
            line-height: 50px;
            font-size: 55px;


            span{
                font-size: 27px;
            }
        }

        p{
            padding: 0px 40px 0px 0px;
        }

    }



    .available-property{
        padding: 20px;
        background-color: white;
    
        h2{
            margin-top: 30px;
            color: #1c023d;
            margin-bottom: 40px;
            font-size: 27px;
            text-transform: uppercase;
        }
    
        .sales-wrapper{
            display: flex;
            flex-direction: column;
            gap: 50px;
        }
        .sales-text{
            max-width: 100%;
        }
        p{
            margin-top: 10px;
            font-size: 17px;
            color: black;
            margin-bottom: 30px;
        }
        a{
            padding: 10px 20px;
            background-color: #1c023d;
            color: white;
            border-radius: 50px;
        }
    
        .sales-img{
            max-width: 100%;
            text-align: center;
            align-content: center;
            justify-content: center;

            .first-img{
                text-align: center;
                background-color: grey;
                padding: 30px;
                width: 90%;
                height: 200px;
                border-radius: 20px;
            }
        }
        
    
        .flex-img{
            justify-content: center;
            margin-top: 20px;
            display: flex;
            gap: 20px;
    
            .second-img{
                height: 130px;
                width: 45%;
                background-color: grey;
                border-radius: 20px;
            }
            .third-img{
                height: 130px;
                width: 45%;
                background-color: grey;
                border-radius: 20px;
            }
        }
    }

    .display-sort{
        font-size: 14px;
        font-weight: 100;
    }
    .houses-info{

  
        
        .houses-container{
            width: 70%;
        }
    }

    .house-rent{

        .houses-container{
            width: 70%;
        }
    }

    .contact-section{
        padding: 20px;
        .contact-container{
            background: linear-gradient(to top, #1c023d, #1c023d8c, #1c023d00, #a37cd600),url(images/How\ Can\ a\ Realtor\ Help\ You\ Navigate\ a\ Competitive\ Market_.jpg);
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            align-content: center;
            border-radius: 20px;
            padding: 20px;
            height: 350px;
            background-color: rgb(207, 207, 207);
    
            h2{
                font-size: 38px;
                color: white;
                font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
            }
            p{
                margin-bottom: 20px;
                color: white;
                font-size: 13px;
                padding: 0px;
            }
            a{
                padding: 10px 20px;
                background-color: white;
                color: #1c023d;
                border-radius: 50px;
                font-weight: bold;
            }
        }
    }



    /* footer style */
    footer{
        .footer-section{
            flex-direction: column;
            text-align: center;
        }

        ul{
            text-align: center;
        }

        .contact-container{
            margin-top: 30px;
        }
    }
    
}









@media (max-width: 450px) {
    
    .available-property{
    .sales-img{
        max-width: 100%;
        text-align: center;
        align-content: center;
        justify-content: center;

        .first-img{
            text-align: center;
            background-color: grey;
            padding: 30px;
            width: 80%;
            height: 200px;
            border-radius: 20px;
        }
    }
}

.houses-info{
    .houses-container{
        width: 90%;
    }
}

.house-rent{

    .houses-container{
        width: 100%;
    }
}
}