@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
:root {
    --navy-blue: #0a192f;
    --accent-blue: #0056b3; 
    --white: #ffffff;
    --text-light: rgba(255, 255, 255, 0.95);
    --main-font: 'Inter', 'Segoe UI', Roboto, sans-serif;
    --primary: #695CFE;
    --bg: #E4E9F7;
    --text: #333;

    --navy-blue: #07162b;
    --deep-blue: #0d1f3a;

    --primary-blue: #0056ff;
    --electric-blue: #00c3ff;

    --orange: #ff7a00;
    --soft-orange: #ffb347;

    --light-bg: #f4f7fb;
    --card-bg: #ffffff;

    --text-dark: #0a192f;
    --text-light: #667085;

    --white: #ffffff;

    --shadow:
    0 10px 30px rgba(0,0,0,0.06);

    --gradient-main:
    linear-gradient(135deg,#0056ff,#00c3ff);

    --gradient-orange:
    linear-gradient(135deg,#ff7a00,#ffb347);
}

/* 1. Global Reset - Fixes hidden gaps */
 *{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family:'Poppins',sans-serif;
}

html,body {
    width: 100%;
    font-family: var(--main-font);
    background-color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
  margin: 0;
    padding: 0;
}

/* --- NAVIGATION --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15%;
    background: #0060Ef;
    border-bottom: none;
    position: relative;
    z-index: 1000;
}
/* --- LOGO ADJUSTMENTS --- */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    /* Removed 'color: black' because your logo is an image */
    gap: 10px;
}

.logo img {
    height: 60px; /* Increased from 45px to make the text readable */
    width: auto;
    object-fit: contain;
    /* Adds a subtle shadow so the white text doesn't 
       get lost if the orange background is very bright */
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.2));
}
/* 1. HERO SECTION (NO NAVY OVERLAY) */
.hero {
    position: relative;
    width: 100%;
    min-height: 85vh;
    /* Removed navy overlay - using a very light dark tint for text readability */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 5% 50px;
}

.hero-content {
    max-width: 800px;
    z-index: 5;
}

/* 2. MODERN SEARCH BOX UPGRADE */
.search-form {
    margin: 0 auto 50px;
    max-width: 650px;
}

.modern-search-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15); /* Glassmorphism */
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 60px;
    padding: 8px 10px 8px 25px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    transition: 0.3s ease;
}

.modern-search-wrapper:focus-within {
    border-color: #00c3ff;
    background: rgba(255, 255, 255, 0.25);
}

.search-icon-main {
    color: #00c3ff;
    font-size: 1.4rem;
}

.search-input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: #ffffff !important;
    padding: 12px 15px !important;
    font-size: 1.05rem !important;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.search-button {
    background: #FF7900 !important; /* Orange */
    color: white !important;
    border: none !important;
    padding: 12px 30px !important;
    border-radius: 40px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: 0.3s;
}

.search-button:hover {
    transform: scale(1.05);
    background: #e66d00 !important;
}

/* 3. CLEAN TYPOGRAPHY */
.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
    text-shadow: 2px 4px 10px rgba(0,0,0,0.3);
}

.hero .highlight {
    color: #00c3ff; /* Electric Blue */
}

.hero p {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 40px;
    opacity: 0.9;
    text-shadow: 1px 2px 5px rgba(0,0,0,0.3);
}

/* 4. MOVING ANIMATIONS */
.animate-reveal {
    animation: slideUp 0.8s ease-out forwards;
}

.animate-fade {
    opacity: 0;
    animation: slideUp 0.8s ease-out 0.3s forwards;
}

.animate-fade-slow {
    opacity: 0;
    animation: slideUp 0.8s ease-out 0.6s forwards;
}

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

/* Button styles */
.orange-btn {
    background: #FF7900 !important;
    border: 1px solid #FF7900 !important;
}

/* ================= SERVICES SECTION ================= */

.services-section{
    padding: 90px 5%;

    background:
    linear-gradient(
        180deg,
        #f8fafc,
        #eef3f9
    );
}

.services-grid{
    display: grid;

    grid-template-columns:
    repeat(auto-fit,minmax(240px,1fr));

    gap: 25px;

    margin-top: 50px;
}

/* CARD */
.service-card{

    background: #ffffff;

    border-radius: 22px;

    padding: 35px 25px;

    text-align: center;

    box-shadow:
    0 10px 30px rgba(15,23,42,0.06);

    border: 1px solid rgba(0,0,0,0.04);

    transition: 0.35s ease;
}

.service-card:hover{

    transform: translateY(-10px);

    box-shadow:
    0 20px 45px rgba(15,23,42,0.12);
}

/* ICON BOX */
.service-icon{

    width: 78px;
    height: 78px;

    margin: 0 auto 22px;

    border-radius: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
    linear-gradient(
        135deg,
        #fff7ed,
        #ffedd5
    );
}

/* ICON */
.service-icon i{

    font-size: 1.9rem;

    color: #f97316;
}

/* TITLE */
.service-card h3{

    color: #0f172a;

    font-size: 1.15rem;

    margin-bottom: 12px;

    font-weight: 700;
}

/* TEXT */
.service-card p{

    color: #64748b;

    font-size: 0.95rem;

    line-height: 1.7;
}
/* --- LISTINGS SECTION --- */
.featured-section {
    padding: 10px 0 0 0 !important;
    background: #ffffff;
}

.section-title {
    text-align: center;
    margin: 5px 0 10px 0 !important; 
    color: var(--accent-blue);
    font-size: 1.4rem !important; 
    font-weight: 800;
}

/* Force horizontal scroll on ALL screens (Desktop + Mobile) */
.property-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 15px;
    padding: 10px 5% 10px !important;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar for a clean look like your phone screenshot */
.property-grid::-webkit-scrollbar { 
    display: none; 
}

/* Fix Card size so they don't shrink on Desktop */
.card {
    flex: 0 0 300px !important; /* Forces cards to stay 300px wide */
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.card-img { width: 100%; height: 180px; object-fit: cover; }

.card-content { 
    padding: 15px; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
}

.view-details-btn {
    margin-top: auto; /* Keeps button at the bottom */
    background-color: var(--accent-blue);
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
}
/* Ensure buttons are always visible */
.cta-button {
    transition: 0.3s ease !important;
    cursor: pointer !important;
    display: inline-block !important;
}

/* Hover effect for Login and Rent (Outline Pink -> Solid Pink) */
.cta-button.outline {
    border: 2px solid #e91e63 !important;
    color: #e91e63 !important;
}

.cta-button.outline:hover {
    background: #e91e63 !important;
    color: #fff !important;
}

/* Hover effect for Signup (Solid Orange -> Darker Orange) */
.cta-button:not(.outline):hover {
    background: #d35400 !important;
    border-color: #d35400 !important;
}
/* --- REMOVE THE GRID FROM DESKTOP --- */
/* Search for your @media (min-width: 900px) and change it to this: */
@media (min-width: 900px) {
    .property-grid {
        /* We keep display: flex to maintain the horizontal swipe look */
        justify-content: flex-start; 
    }
}
/* 1. The Main Bar Background */
.nav-services-container {
    background-color: #0a192f !important; /* Deep Navy from your screenshot */
    padding: 12px 5%!important;
    width: 100% !important;
    display: block !important;
    clear: both !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Container for the service links */
.nav-services-inner {
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    gap: 20px !important;
    list-style: none !important;
}

/* Styling the icon and text stack */
.service-item a {
    display: flex !important;
    flex-direction: column !important; /* Stacks icon on top of text */
    align-items: center !important;
    gap: 8px !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 0.95rem !important; /* Smaller text to match the image style */
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

/* Specific icon styling */
.service-item i {
    font-size: 1.6rem !important; /* Larger icon size */
    opacity: 0.9;
    color: #ffffff !important;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

/* Hover effect: Glow and color change */
.service-item a:hover {
    color: #00c3ff !important; /* Electric blue highlight */
}

.service-item a:hover i {
    color: #00c3ff !important;
    transform: translateY(-3px); /* Subtle lift effect */
    filter: drop-shadow(0 0 8px rgba(0, 195, 255, 0.6));
}
/* LOGIN BUTTON (Outline) */
nav .cta-button.login {
    background: transparent !important;
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
}

nav .cta-button.login:hover {
    background: #ffffff !important;
    color: #FF7900 !important;
}

/* SIGNUP BUTTON (Green) */
nav .cta-button.signup {
    background: blue!important;
    color: #fff !important;
    border: none !important;
}

.cta-button.signup:hover {
    background: blue !important;
}
/* --- FINAL POLISHED MENU & DROPDOWN --- */

/* 1. Container Fix: Ensures items don't overlap */
.nav-services-container {
    background-color: #0a192f !important;
    padding: 12px 5% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important; /* Separates Hamburger from Links */
    position: relative !important;
    z-index: 1000 !important;
}

/* 2. Hamburger Icon */
.menu-toggle {
    font-size: 26px !important;
    color: #ffffff !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    transition: 0.3s ease;
}

.menu-toggle:hover {
    color: #FF7900 !important;
}

/* 3. Link Spacing Fix: Adds breathing room to Buy, Booking, etc. */
.nav-services-inner {
    display: flex !important;
    flex-direction: row !important;
    gap: 20px !important; /* Crucial: Fixes the 'squashed' text in your screenshot */
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.service-item a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    white-space: nowrap !important; /* Prevents text from wrapping to 2 lines */
}

/* 4. Dropdown Menu: Anchored and Animated */
.dropdown {
    position: absolute !important;
    top: 100% !important; 
    left: 0 !important;
    width: 280px !important;
    background: #ffffff !important;
    display: none; 
    flex-direction: column !important;
    box-shadow: 10px 0 20px rgba(0,0,0,0.2) !important;
    z-index: 9999 !important;
    height: auto !important;
    border-top: 3px solid #FF7900 !important; /* Brand accent line */
}

.dropdown.active {
    display: flex !important;
    animation: slideInLeft 0.3s ease-out;
}

.dropdown a {
    padding: 15px 20px !important;
    text-decoration: none !important;
    color: #0a192f !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    font-weight: 500 !important;
    transition: 0.3s !important;
}

.dropdown a i {
    font-size: 1.2rem !important;
    color: #FF7900 !important; /* Icon brand color */
    min-width: 25px;
}

.dropdown a:hover {
    background-color: #f4f7ff !important;
    color: #695CFE !important;
    padding-left: 30px !important;
}

/* 5. Mobile Adjustments */
@media (max-width: 768px) {
    .dropdown {
        width: 60% !important; /* Full width for easier mobile clicking */
        border-radius: 10!important;
    }

    /* If links are still too crowded on tiny phones, allow them to scroll */
    .nav-services-inner {
        gap: 15px !important;
        overflow-x: auto;
        padding-left: 10px !important;
        align-items: center !important;
    }
}

/* Animations */
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}
/* ================= BLOG FIXED VERSION ================= */

/* SECTION */
.blog-section {
    padding: 50px 0;
    background: linear-gradient(to bottom,#ffffff,#f4f7fb);
}

/* WRAPPER (important) */
.blog-slider-wrapper {
    overflow: hidden;
    width: 100%;
}

/* TRACK (animated) */
.blog-container-flex {
    display: flex;
    gap: 20px;
    width: max-content;
    padding: 20px 5%;
    animation: scrollBlogs 35s linear infinite;
}

/* PAUSE ON HOVER */
.blog-slider-wrapper:hover .blog-container-flex {
    animation-play-state: paused;
}

/* CARD */
.clean-blog-card {
    flex: 0 0 280px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: 0.3s ease;
}

.clean-blog-card:hover {
    transform: translateY(-10px) scale(1.03);
}

/* IMAGE */
.blog-card-img {
    height: 180px;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CONTENT */
.blog-card-body {
    padding: 15px;
    text-align: center;
}

/* CATEGORY */
.category-pill {
    background: #FF7900;
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
}

/* TITLE */
.blog-card-title {
    font-size: 1rem;
    color: #0a192f;
    margin: 10px 0;
}

/* TEXT */
.blog-excerpt {
    font-size: 0.9rem;
    color: #777;
}

/* LINK */
.read-article-link {
    color: #0056b3;
    font-weight: 600;
    text-decoration: none;
}

/* ANIMATION */
@keyframes scrollBlogs {
    0%{ transform: translateX(0); }
   100% { transform: translateX(-50%); }
}
.about-modern-clean{
    padding: 90px 5%;
    background: linear-gradient(135deg,#f4f7fb,#ffffff);
}

.about-clean-wrapper{
    max-width: 850px;
    margin: auto;
    text-align: center;
}

.about-mini-title{
    display: inline-block;
    background: rgba(0,86,179,0.08);
    color: #0056b3;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.about-modern-clean h2{
    font-size: 2.8rem;
    line-height: 1.2;
    color: #0a192f;
    margin-bottom: 25px;
    font-weight: 800;
}

.about-modern-clean p{
    color: #666;
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 20px;
}

.about-highlight-box{
    margin-top: 40px;

    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.highlight-item{
    background: #f8f9fb;
    padding: 16px 24px;
    border-radius: 14px;

    display: flex;
    align-items: center;
    gap: 10px;

    color: #0a192f;
    font-weight: 600;

    transition: 0.3s ease;
}

.highlight-item:hover{
    transform: translateY(-5px);
    background: #0056b3;
    color: #fff;
}

.highlight-item i{
    font-size: 1rem;
}

/* MOBILE */
@media (max-width:768px){

    .about-modern-clean{
        padding: 70px 20px;
    }

    .about-modern-clean h2{
        font-size: 2rem;
    }

    .about-modern-clean p{
        font-size: 0.98rem;
        line-height: 1.7;
    }

    .about-highlight-box{
        flex-direction: column;
    }

}
   /* ================= TEAM SECTION ================= */
.team-section {
    padding: 60px 5%;
    background: linear-gradient(135deg,#07162b,#0d1f3a);
    text-align: center;
}

.team-subtitle {
    color: #666;
    margin-bottom: 30px;
}

/* GRID */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* CARD */
.team-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.15);
}

/* IMAGE */
.team-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
}

/* TEXT */
.team-card h3 {
    margin-top: 12px;
    color: #0a192f;
}

.team-card .role {
    display: block;
    color: #FF7900;
    font-size: 0.85rem;
    margin: 5px 0;
}

.team-card p {
    font-size: 0.9rem;
    color: #555;
}
/* ================= TESTIMONIAL SECTION ================= */
.testimonial-section {
    padding: 60px 5%;
    background: #ffffff;
    text-align: center;
}

.testimonial-subtitle {
    color: #666;
    margin-bottom: 30px;
}

/* GRID */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* CARD */
.testimonial-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* TEXT */
.testimonial-text {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
    font-style: italic;
}

/* USER */
.testimonial-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.testimonial-user h4 {
    margin: 0;
    font-size: 0.95rem;
    color: #0a192f;
}

.testimonial-user span {
    font-size: 0.8rem;
    color: #777;
}
/* Notification wrapper inside menu */
.notification-wrapper {
    position: relative;
}

/* Icon */
.notification-icon {
    color: #fff;
    cursor: pointer;
    font-size: 20px;
    position: relative;
}

/* Badge */
.notif-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #e91e63;
    color: #fff;
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 50%;
}

/* Dropdown */
.notification-dropdown {
    position: absolute;
    left: 0;
    top: 35px;
    width: 260px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    display: none;
    z-index: 999;
}

/* Active */
.notification-dropdown.active {
    display: block;
}

/* Items */
.notif-item {
    display: block;
    padding: 12px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #eee;
}

/* Hover */
.notif-item:hover {
    background: #f8f9fa;
}

/* Unread */
.unread {
    background: #fff3f7;
    font-weight: bold;
}
/* --- MOBILE OPTIMIZATION --- */
@media (max-width: 768px) {
    /* 1. Reduce the vertical height and padding of the hero */
    .hero {
        min-height: 70vh !important; /* Shorter height so content is visible */
        padding: 20px 15px 40px !important; /* Less top/bottom padding */
    }

    /* 2. Shrink the main title */
    .hero h1 {
        font-size: 2.8rem !important; /* Smaller size to fit on 2 lines */
        line-height: 1.2 !important;
        margin-bottom: 15px !important;
        font-weight: 800 ! important;
    }

    /* 3. Shrink and tighten the description text */
    .hero p {
        font-size: 1.2rem !important;
        line-height: 1.3rem !important;
        margin-bottom: 25px !important;
        padding: 0 5px !important;
    }

    /* 4. Compact Search Box for Mobile */
    .modern-search-wrapper {
        padding: 5px 10px 5px 15px !important;
        margin-bottom: 25px !important;
    }

    .search-input {
        padding: 8px 5px !important;
        font-size: 0.85rem !important;
    }

    .search-button {
        padding: 8px 15px !important;
        font-size: 0.8rem !important;
    }

    /* 5. Button Row Optimization */
    .hero-btns {
        display: flex !important;
        flex-direction: row!important; /* Keep them in a row if possible */
        justify-content: center !important;
        align-items: center;
        width: 100% !important;
        gap: 10px !important;
        Padding: 0 10px;
    }

    .cta-button {
    flex: 1 !important;
       max-width: 120px !important; /* Full width buttons are better for thumbs */
        padding: 14px !important;
        font-size: 1rem !important;
        font-weight: 700 !important;
        border-radius: 12px !important;
    }
}
@media (max-width: 380px) {
    .hero-btns {
        gap: 6px !important;
    }
    
    .cta-button {
        font-size: 0.75rem !important;
        padding: 10px 2px !important;
    }
}
/* --- UPDATED 4-SLIDE BACKGROUND --- */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    animation: backgroundFade4 20s infinite; /* Total 20s cycle (5s per slide) */
}

/* Image assignments with 5-second staggered delays */
.slide-1 { 
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('images/bg1.jpg'); 
    animation-delay: 0s;
}
.slide-2 { 
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('images/bg2.jpg'); 
    animation-delay: 5s;
}
.slide-3 { 
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('images/bg3.jpg'); 
    animation-delay: 10s;
}
.slide-4 { 
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('images/bg4.jpg'); 
    animation-delay: 15s;
}

/* Animation Timing for 4 Slides */
@keyframes backgroundFade4 {
    0% { opacity: 0; }
    5% { opacity: 1; }   /* Fade in over 1 second */
    25% { opacity: 1; }  /* Stay solid until 5 seconds */
    30% { opacity: 0; }  /* Fade out over 1 second */
    100% { opacity: 0; } /* Stay hidden for the rest of the 20s cycle */
}
