/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
}

/* Color Variables */
:root {
    --primary: #005694;
    --accent: #f06824;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #444;
      --light-gray: #e2e8f0;
}

/* Navbar */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    z-index: 20;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo-img {
    height: 70px;
    width: auto;
    margin-left: 100px;
}

nav {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-right: 100px;
}

nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 16px;
}

nav a:hover {
    color: var(--accent);
}

.social-housing {
    border: 1px solid var(--primary);
    padding: 6px 12px;
    border-radius: 6px;
    color: var(--primary);
    transition: all 0.3s;
}

.social-housing:hover {
    background: var(--primary);
    color: white;
}

/* Mobile Menu */
#menu-btn {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--dark);
    background: none;
    border: none;
}

#mobile-menu {
    display: none;
    flex-direction: column;
    background: #fff;
    padding: 20px;
    gap: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 90px;
    left: 0;
    width: 100%;
    z-index: 100;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease-in-out;
}

#mobile-menu.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu a {
    color: #333;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    background: url('../images/home.jpeg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 90px;
    padding: 0 40px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #ffffffcc, var(--primary)99);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
    text-align: left;
    padding: 20px;
}

.hero-title {
    font-size: 38px;
    font-weight: bold;
    color: var(--dark);
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 18px;
    color: #444;
    margin-bottom: 25px;
}

/* Tabs */
.tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tabs button {
    padding: 10px 15px;
    border-radius: 8px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.tabs button:hover {
    transform: scale(1.05);
}

.tabs button.active {
    background: var(--primary);
    color: white;
}

.tabs button.inactive {
    background: var(--accent);
    color: white;
}

/* Search Box */
.search-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.8s ease;
    width: 100%;
}

.search-box select,
.search-box button {
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 16px;
    width: 100%;
}

.search-box button {
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.search-box button:hover {
    background: var(--primary);
    transform: scale(1.02);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section */
.featured-section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    text-align: center;
}

.featured-section h2 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--dark);
}

.featured-section p {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 20px;
}

.browse-btn {
    background: var(--primary);
    color: #fff;
    padding: 12px 25px;
    font-weight: bold;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 16px;
    margin-top: 30px;
}

.browse-btn:hover {
    background: var(--accent);
}

.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 10px;
}

.property-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    background: #fff;
    transition: transform 0.3s;
    padding: 15px;
}

.card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 10px;
}

/* Zoom effect on hover */
.property-card:hover .card-img img {
    transform: scale(1.1);
}

/* Badge */
.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    padding: 4px 10px;
    border-radius: 6px;
    z-index: 2;
}

.card-body {
    padding: 15px;
}

.card-title {
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 5px;
    text-align: left;
    color: var(--dark);
}

.location {
    font-size: 16px;
    color: #555;
    margin-bottom: 10px;
    text-align: left;
}

.details {
    display: flex;
    gap: 10px;
    font-size: 14px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.details span {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
}

.details img {
    width: 16px;
    height: 16px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.price {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary);
}

.see-more {
    text-decoration: none;
    border: 1px solid var(--primary);
    padding: 6px 15px;
    border-radius: 6px;
    color: var(--primary);
    transition: 0.3s;
    font-weight: 500;
    width: 100px;
}

.see-more:hover {
    background: var(--primary);
    color: #fff;
}

/* Services Section */
.services-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.services-section h2 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--dark);
}

/* Tabs */
.services-tabs {
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.tab {
    padding: 12px 20px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
    font-size: 14px;
}

.tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.tab:hover {
    background: var(--accent);
    color: white;
}

/* Cards Container */
.services-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* Service Card */
.service-card {
    background: #f8fafc;
    padding: 30px 20px;
    border-radius: 16px;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Icon */
.service-card .icon {
    font-size: 28px;
    color: var(--accent);
    margin-bottom: 15px;
}

/* Title */
.service-card h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--dark);
}

/* Description */
.service-card p {
    font-size: 16px;
    color: #444;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Link */
.service-card a {
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.service-card a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Testimonials Section */
.testimonials-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.testimonials-section h2 {
    font-size: 32px;
    font-weight: bold;
    color: var(--dark);
    margin-bottom: 10px;
}

.testimonials-section p.subtitle {
    font-size: 16px;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.5;
}

.testimonials-section p.subtitle strong {
    color: var(--primary);
}

/* Slider Wrapper */
.testimonials-slider {
    position: relative;
    overflow: hidden;
}

/* Horizontal Track */
.testimonial-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

/* Testimonial Card */
.testimonial-card {
    flex: 0 0 calc(33.333% - 20px);
    box-sizing: border-box;
    background: #f8fafc;
    padding: 30px;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    margin: 0 10px;
}

.testimonial-card p {
    font-size: 16px;
    color: #444;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Author */
.author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 18px;
    font-weight: bold;
    color: var(--dark);
}

.author-info span {
    font-size: 14px;
    color: #666;
}

/* Dots */
.dots {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    background: #bbb;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: var(--primary);
}

/* Banner Section */
.banner {
    width: 100%;
    height: 250px;
    background: url('../images/banner.png') center center no-repeat;
    background-size: contain;
    background-color: #fff;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination ul {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
}

.pagination li {
    display: inline-block;
}

.pagination a, .pagination span {
    display: block;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: var(--dark);
    transition: all 0.3s;
}

.pagination a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination .active span {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination .disabled span {
    color: #aaa;
    cursor: not-allowed;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 40px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 160px;
    filter: brightness(0) invert(1);
}

.footer-links h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: white;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #444;
}

/* Desktop Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 160px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    z-index: 999;
}

.dropdown-content a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--dark);
    transition: background 0.3s;
}

.dropdown-content a:hover {
    background: var(--accent);
    color: white;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Mobile Dropdown */
.dropdown-mobile {
    display: flex;
    flex-direction: column;
}

.dropdown-mobile-content {
    display: none;
    flex-direction: column;
    padding-left: 15px;
}

.dropdown-mobile-content a {
    padding: 8px 0;
    color: #333;
}

.dropdown-mobile.show .dropdown-mobile-content {
    display: flex;
}

/* Remove underline from all nav & mobile menu links */
#mobile-menu a,
nav a,
.dropdown-content a,
.dropdown-mobile-content a {
    text-decoration: none;
}

.footer-social {
    margin-right: 190px;
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icons a {
    color: #ccc;
    font-size: 20px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--accent);
}

/* Media Queries for Larger Screens */
@media (min-width: 768px) {
    header {
        padding: 15px 40px;
    }

    .hero-content {
        max-width: 700px;
    }

    .search-box {
        flex-direction: row;
    }

    .search-box select {
        width: auto;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonial-card {
        flex: 0 0 calc(50% - 20px);
    }

    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    nav {
        display: flex;
    }

    #menu-btn {
        display: none;
    }

    #mobile-menu {
        display: none !important;
    }

    .testimonial-card {
        flex: 0 0 calc(33.333% - 20px);
    }
}

@media (max-width: 767px) {
    nav {
        display: none;
    }

    #menu-btn {
        display: block;
    }

    .hero {
        height: auto;
        padding: 60px 0;
    }

    .tabs button {
        padding: 8px 12px;
        font-size: 12px;
    }

    .testimonial-card {
        flex: 0 0 100%;
    }
}
