/*Google font*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*{
    font-size: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    scroll-padding-top: 3rem;
    list-style: none;
    text-decoration: none;
}
/*variables*/
:root{
    --main-color: #27385b;
    --second-color: #192f6a;
    --text-color: #314862;
    --bg-color: #fff;
    --hover-color: #6b87c2;

    /*box shadow*/
    --box-shadow: 2px 2px 18px rgb(14 52 54 / 15%);
}
img{
    width: 100%;
}
body{
    color: var(--text-color);
}
section{
    padding: 4.5rem 0 3rem;
}
.container{
    max-width: 1068px;
    margin-left: auto;
    margin-right: auto;
}
header{
    display: block;
    width: 100%;
    background: var(--bg-color);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}
.nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 35px;
}
.logo{
    display: flex;
    align-items: center;
    column-gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
    text-transform: uppercase;
}
.logo .bx{
    font-size: 24px;
    color: var(--main-color);
}
.navbar{
    display: flex;
}
.navbar a{
    padding: 8px 17px;
    color: var(--text-color);
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 500;
}
.navbar a:hover{
    color: var(--main-color);
}
#menu-icon{
    font-size: 24px;
    cursor: pointer;
    display: none;
}
#menu{
    display: none;
}
.btn{
    padding: 8px 22px;
    background: var(--main-color);
    color: var(--bg-color);
    border-radius: 5rem;
}
.btn:hover{
    background: var(--hover-color);
    color: var(--bg-color);
}
/* Home*/
.home{
    margin-top: 5rem;
    background: url('Images/Home Page Banner Compress1.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 440px;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
}
.home-text{
    padding-left: 35px;
}
.home-text h1{
    font-size: 2rem;
    margin-bottom: 1rem;
}
.about{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, auto));
    gap: 2rem;
}
.about-img img{
    border-radius: 3rem 0 3rem 3rem;
}
.about-text span{
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--main-color);
}
.about-text h2{
    font-size: 1.7rem;
}
.about-text p{
    font-size: 0.938rem;
    margin: 1rem 0 1rem;
}
/*Service*/
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, auto));
    gap: 2.4rem;
}
.services .box{
    padding: 20px;
    background: var(--bg-color);
    box-shadow: var(--box-shadow);
    text-align: center;
    border-radius: 2rem;
}
.services .box:hover{
    background: var(--main-color);
    color: var(--bg-color);
    transition: 0.4s all linear;
}
.services .box .bx{
    padding: 10px;
    border-radius: 50%;
    background: #f6f6fe;
    color: var(--main-color);
    font-size: 20px;
}
.services .box h3{
    font-size: 1.1rem;
    margin: 1rem 0 0.4rem;
}
.services .box p{
    font-size: 00.938rem;
}
/*Property home and Upcoming projects*/
.heading{
    text-align: center;
    margin-bottom: 2rem;
}
.heading span{
    font-weight: 500;
    color: var(--main-color);
}
.heading h2{
    font-size: 1.7rem;
}
.heading p{
    font-size: 0.938rem;
}
.property{
    background: #fbfbfb;
    border-radius: 2rem;
}
.property-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, auto));
    gap: 3rem;
    padding: 0 50px;
}
.property-container .box{
    background: var(--bg-color);
    padding: 10px;
    border-radius: 1rem;
    box-shadow: var(--box-shadow);
}
.property-container .box:hover{
    transform: translateY(-10px);
    transition: 0.5s;
}
.property-container .box img{
    border-radius: 1rem;
    height: 220px;
    object-fit: cover;
    object-position: center;
}
.property-container .box h3{
    font-size: 1rem;
    font-weight: 600;
    float: right;
}
.property-container .box .content{
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}
.property-container .box .content .text h3{
    font-size: 500;
}
.property-container .box .content .text p{
    font-size: 0.8rem;
}
/*newsletter*/
.newsletter{
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 2rem;
    justify-content: center;
    text-align: center;
}
.newsletter h2{
    font-size: 1.7rem;
}
.newsletter form{
    background: var(--bg-color);
    box-shadow: var(--box-shadow);
    padding: 6px 10px;
    border-radius: 5rem;
}
.newsletter form input{
    border: none;
    outline: none;
    font-size: 1rem;
}
.newsletter #email-box{
    width: 280px;
}
.newsletter .btn{
    padding: 12px 34px;
    font-weight: 500;
    text-transform: uppercase;
}
/*footer*/
.footer{
    background: var(--main-color);
    color: var(--bg-color);
    border-radius: 5rem 0 0 0;
}
.footer-container{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(240px,auto));
    gap: 2rem;
}
.footer-container h2{
    font-size: 1.7rem;
    font-weight: 500;
}
.footer-box{
    display: flex;
    flex-direction: column;
}
.footer-box h3{
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 400;
}
.footer-box a{
    font-size: 0.8rem;
    color: var(--bg-color);
    font-weight: 400;
    margin-bottom: 0.5rem;
}
.footer-box a:hover{
    color: var(--hover-color);
}
.social a{
    font-size: 20px;
    margin-right: 1rem;
}
.social a:hover{
    color: var(--hover-color);
}
.copyright{
    padding: 20px;
    text-align: center;
    color: var(--bg-color);
    background: var(--main-color);
}
/*contact page*/
.contact-section {
    width: 90%;
    max-width: 1000px;
    margin: 20px auto;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.contact-form-container, .map-container {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}

.contact-form-container {
    background-color: #f9f9f9;
}

.contact-form-container h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    font-size: 0.9em;
    margin-bottom: 5px;
    color: var(--second-color);
}

.contact-form input {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

.contact-form button {
    padding: 10px;
    background-color: var(--main-color);
    color: var(--bg-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

.contact-form button:hover {
    background-color: var(--hover-color);
}
.contact-form textarea {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    resize: vertical;
}


.map-container {
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f4f4f4;
}

.image-container img {
    max-width: 100%;
    border-radius: 10px;
}

/*hero section*/
.hero {
    position: relative;
    width: 100%;
    height: 550px;
    overflow: hidden;
}
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-text h1 {
    font-size: 2em;
    margin-bottom: 10px;
}
.hero-text p {
    font-size: 1em;
    margin-bottom: 10px;
}
.fastest-safest img {
    width: 100px; /* Adjust width as needed */
}
/*About Page services*/
.services {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background-color: #fff;
    margin-top: -40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.service-item {
    text-align: center;
    max-width: 150px;
}
.service-number {
    display: inline-block;
    font-size: 2em;
    font-weight: bold;
    color: var(--second-color);
    margin-bottom: 10px;
}
.service-item p {
    font-size: 0.9em;
    color: var(--second-color);
}
.content {
    padding: 40px 20px;
    text-align: center;
    background-color: #f8f8f8;
}
.content p {
    font-size: 1em;
    color: #555;
    max-width: 700px;
    margin: auto ;
    line-height: 1.6;
}
/*Service Page*/
h2{
    text-align: center;
}
.offer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 40px;
}

.offer-item {
    text-align: center;
    width: 150px;
}

.offer-item img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 10px;
}

.offer-item h4 {
    font-size: 14px;
    color: #333;
    margin: 0;
    line-height: 1.4;
}
/*Property Dropdown*/
/* Dropdown Container */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    min-width: 150px;
    margin-top: 5px;
    z-index: 1;
}

/* Links in the Dropdown */
.dropdown-content a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #000;
    font-size: 14px;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: var(--main-color);
}

/* Show Dropdown on Hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/*Making Responsive*/
@media (max-width: 1080px){
    .container{
        margin-left: 1rem;
        margin-right: 1rem;
    }
}
@media (max-width: 880px){
    section{
        padding: 4rem 0 3rem;
    }
    .property-container{
        grid-template-columns: repeat(auto-fit, minmax(200px,auto));
        gap: 1rem;
        padding: 0 10px;
    }
    .footer-container{
        grid-template-columns: repeat(auto-fit, minmax(200px,auto));
        gap: 1rem;
    }
}
@media (max-width: 768px){
    .nav{
        padding: 10px 0;
    }
    #menu-icon{
        display: initial;
    }
    .navbar{
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        background: var(--second-color);
        text-align: center;
        clip-path: circle(0% at 100% 1%);
        transition: 0.6s;
    }
    .navbar a{
        display: block;
        margin: 1rem;
        padding: 20px;
        color: var(--bg-color);
    }
    .navbar a:hover{
        background: var(--main-color);
        color: var(--bg-color);
        transition: 0.2s;
    }
    #menu:checked ~ .navbar{
        clip-path: circle(144% at 100% 1%);
    }
    .about-text span{
        font-size: 0.9rem;
    }
    .about-text h2,
    .heading h2,
    .newsletter h2{
        font-size: 1.4rem;
    }
}
@media (max-width: 638px){
    .about-text{
        text-align: center;
    }
    .about-img{
        order:2;
    }   
}
@media (max-width: 442px){
    .home-text{
        padding-left: 14px;
    }
    .home-text h1{
        font-size: 1.7rem;
    }
    .about-text h2,
    .heading h2,
    .newsletter h2{
        font-size: 1.2rem;
    }
    .property-container{
        padding: 0;
    }
    .newsletter #email-box{
        width: 140px;
    }
    .footer{
        border-radius: 3rem 0 0 0;
    }
}
/*Rent-sale Card Container*/
 /* Card Container Styling */
 .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.card-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
}

/* Individual Card Styling */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 31%; /* Three cards in a row */
    display: flex;
    flex-direction: column;
}

.card .image {
    position: relative;
    overflow: hidden;
}

.card .image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card .image .tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 3px;
}

.card .image .price {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 3px;
}

.card .content {
    padding: 15px;
}

.card .content h3 {
    font-size: 18px;
    color: var(--second-color);
    margin-bottom: 10px;
}

.card .content p {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 8px;
}

.card .footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-top: 1px solid #eee;
}

.card .footer span {
    font-size: 14px;
    color: #333;
    font-weight: bold;
}

.card .footer .icons i {
    font-size: 20px;
    margin-right: 10px;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .card {
        width: 48%; /* Two cards in a row */
    }
}

@media (max-width: 768px) {
    .card {
        width: 100%; /* One card in a row */
    }
}