html {
    /* This single line is the modern, preferred way to enable smooth scrolling */
    scroll-behavior: smooth;
}

/* --- CSS for the Back to Top Button Appearance --- */
#backToTopBtn {
    /* display: none; */
     /* Hidden by default, JavaScript will show it */
    position: fixed; /* Fixed position on the screen */
    bottom: 50px; /* Distance from the bottom of the screen */
    right: 30px; /* Distance from the right of the screen */
    z-index: 999; /* Ensures it's on top of other content */
    /* border: 5px solid red; */
    outline: none;
    /* background-color: #333; */
    /* Dark background */
    color: white;
    cursor: pointer;
    /* padding: 15px 20px; */
    border-radius: 50%;
    font-size: 18px;
    /* border: 2px solid #6B4EFF; */
    text-decoration: none; /* If using <a> tag */
    transition: background-color 0.3s; /* Smooth hover effect */
}




/* --- Desktop / Normal View (Space Around) --- */

.realestate-navbar .container-fluid {
    display: flex;
    /* KEY CHANGE 1: Use space-around for even spacing */
    justify-content: space-around; 
    align-items: center;
    max-width: 1400px; /* Limit width for large screens */
    margin: 0 auto;
}

/* Logo */
.navbar-brand {
    /* Ensure the logo link itself doesn't have extra margins */
    padding: 0;
}

.navbar-brand img {
    width: 150px;
    height: auto;
}

/* Menu Inline */
.navbar-nav.menu {
    display: flex;
    flex-direction: row;
    gap: 25px;
    /* Remove any default Bootstrap margins that might interfere */
    margin: 0; 
}

.menu .nav-link {
    font-size: 18px;
    font-weight: 500;
    color: #333 !important;
    padding: 0 !important;
}

.menu .nav-link:hover {
    color: #9e10a6 !important;
}

/* Phone */
.contact-info {
    display: flex;
    align-items: center;
    font-size: 18px;
    color: #444;
    flex-shrink: 0; /* Prevents phone number from disappearing */
}

/* --- Mobile / Tablet View (Max 768px) - Logo Left, Content Right --- */
@media (max-width: 768px) {
    
    .realestate-navbar .container-fluid {
        /* Set main container to flow horizontally */
        flex-direction: row; 
        flex-wrap: wrap; /* Allow wrapping if content is too wide */
        justify-content: space-between; /* Space out Logo and Right Content Group */
        align-items: flex-start; /* Align contents to the top */
        padding: 10px 15px !important; 
    }
    
    /* 1. Logo (Left Side) */
    .navbar-brand {
        flex-shrink: 0; /* Prevent the logo from shrinking */
        /* Since the phone was moved out of here in the previous step, this is just the logo. */
        width: auto;
        margin: 0;
        padding: 0;
    }

    .navbar-brand img {
        width: 100px; /* Smaller logo */
    }

    /* 2. Content Group (Right Side) */
    /* Create a container for the Menu and Phone to keep them together on the right */
    .navbar-right-mobile {
        display: flex;
        flex-direction: column; /* Stack Menu and Phone vertically on the right */
        align-items: flex-end; /* Align the content within this group to the right */
        width: auto;
        flex-grow: 1; /* Allow it to take up available space */
    }

    /* The HTML doesn't have a dedicated .navbar-right-mobile. 
       We will apply this stacking logic directly to the two right-side elements: Menu and Phone. */
    
    /* Phone Number (Top Right) */
    .contact-info {
        order: 1; /* Place phone first */
        font-size: 14px;
        margin-top: 5px; 
        margin-bottom: 5px;
        /* Ensure it aligns to the far right */
        align-self: flex-end; 
    }

    /* Menu Links (Below Phone Number) */
    .navbar-nav.menu {
        order: 2; /* Place menu second */
        
        /* Force menu items inline/horizontal wrap */
        display: flex;
        flex-direction: row; 
        flex-wrap: wrap; 
        /* justify-content: flex-end; */
         /* Align links to the far right */
        
        width: 100%; /* Take full width to allow centering or right alignment */
        margin-top: 10px;
        margin-left: 0;
        gap: 10px; /* Compact gap */
    }

    .menu .nav-link {
        font-size: 14px; /* Compact font size */
        padding: 3px 6px !important;
        margin: 0;
    }
}
@media (max-width: 576px) {
   #backToTopBtn img {
        width: 40px;
        height: auto;
    }
    .brand-name img{
        width: 100px;
        height: auto;
        margin-left: -20px !important;
    }
}



/* Hero Section Styling */
.hero-section {
    /* border: 2px solid red; */
    position: relative;
    width: 100%;
    height: 300px; /* Adjust height as needed */
    background: url('asset/Gemini_Generated_Image_u41ds2u41ds2u41d.png') no-repeat center center/cover; /* Replace 'hero-bg.jpg' with your image */
    display: flex;
    align-items: center;
    justify-content: center; /* Align content to the left */
    overflow: hidden; /* Important for parallax and ensuring content stays within bounds */
}

/* Background Image Parallax Effect (subtle) */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit; /* Inherit the background image */
    background-attachment: fixed; /* Makes the background fixed relative to the viewport */
    z-index: -1; /* Place behind content */
    transform: scale(1.05); /* Slightly enlarge to avoid gaps during scroll */
    filter: brightness(0.7); /* Darken the image for better text contrast */
}

/* Overlay for text readability */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color: rgba(0, 0, 0, 0.1); */
    z-index: 0; /* Above the background image, below the content */
}


.hero-title {
    font-size: 3.5em; /* Large title */
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1;
    opacity: 0; /* Start hidden for animation */
    animation: fadeInSlideUp 1s ease-out forwards 0.2s; /* Apply animation */
}




/* Keyframe Animation for Fade In and Slide Up */
@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-section {
        height: 500px;
    }
    .hero-title {
        font-size: 3.5em;
    }
    .hero-subtitle {
        font-size: 1.5em;
    }
    .hero-content {
        margin-left: 5%;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 200px;
        justify-content: center; /* Center content on smaller screens */
        text-align: center;
    }
    .hero-content {
        margin-left: 0;
        padding: 0 20px;
        max-width: 90%; /* Allow content to take more width */
    }
    .hero-title {
        font-size: 2.8em;
    }
    .hero-subtitle {
        font-size: 1.2em;
    }
    .hero-description {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .hero-section {
         height: 200px;
    }
    .hero-title {
        font-size: 2.2em;
    }
    .hero-subtitle {
        font-size: 1em;
    }
    .hero-description {
        display: none; /* Hide description on very small screens if space is tight */
    }
}

 .section-main-heading {
    font-size: 2.5rem; /* Adjust as needed */
    color: #333; /* Darker color for contrast */
    margin-bottom: 2rem; /* Space below the heading */
    font-weight: bold;
}
    /* --- Header Section Styling --- */
    .service-header {
      text-align: center;
      padding: 60px 15%;
      background: linear-gradient(135deg, #0D9488, #1E3A8A);
      color: #fff;
      animation: fadeIn 1.5s ease forwards;
    }

    .header-title {
      font-size: 3em;
      font-weight: 700;
      margin-bottom: 15px;
      letter-spacing: 1px;
    }

    .header-subtitle {
      font-size: 1.1em;
      color: #e5e5e5;
      max-width: 700px;
      margin: 0 auto;
      line-height: 1.6em;
    }

    /* --- Main Services Section --- */
    .service-section {
      padding: 80px 5%;
    }

    .service-item {
      display: flex;
      align-items: center;
      margin-bottom: 100px;
      opacity: 0;
      transform: translateY(60px);
      transition: all 1s ease;
    }

    .service-item.show {
      opacity: 1;
      transform: translateY(0);
    }

    .service-item-right {
      flex-direction: row-reverse;
    }

    .service-visual,
    .service-content {
      flex: 1;
      padding: 20px;
    }

    /* --- Visuals (Image + Title) Styling --- */
    .service-visual {
      position: relative;
      padding: 0;
      transition: transform 0.6s ease;
    }

    .service-visual:hover {
      transform: scale(1.03);
    }

    .visual-image-group {
      position: relative;
      width: 100%;
      padding-bottom: 60%;
      overflow: hidden;
      border-radius: 15px;
    }

    .visual-bg-image,
    .visual-bg-image1,
    .visual-bg-image3,
    .visual-fg-image,
    .visual-fg-image2,
    .visual-fg-image4 {
      position: absolute;
      background-size: cover;
      background-position: center;
      border-radius: 15px;
      transition: transform 1.5s ease;
    }

    .service-visual:hover .visual-bg-image,
    .service-visual:hover .visual-bg-image1,
    .service-visual:hover .visual-bg-image3 {
      transform: scale(1.05);
    }

    .visual-bg-image {
      width: 80%;
      height: 100%;
      top: 0;
      left: 0;
      background-image: url('https://i.pinimg.com/474x/91/b8/11/91b811bff4e06242b62798f7bad3d34d.jpg');
      z-index: 1;
    }

    .visual-bg-image1 {
      width: 80%;
      height: 100%;
      top: 0;
      left: 0;
      background-image: url('https://www.bizimleturkiye.com/wp-content/uploads/2022/04/Exterior-04.jpg');
      z-index: 1;
    }

    .visual-bg-image3 {
      width: 80%;
      height: 100%;
      top: 0;
      left: 0;
      background-image: url('https://hasporealty.com/wp-content/uploads/2023/05/zhiloj-kompleks-v-rajone-kyuchyukchekmedzhe-stambul-8641361179.jpg');
      z-index: 1;
    }

    .visual-fg-image {
      width: 60%;
      height: 80%;
      bottom: -20%;
      right: 0;
      background-image: url('https://cloud.famproperties.com/property/new-large/bellevue-towers-one-17312-190415100472900088.jpg');
      z-index: 2;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    .visual-fg-image2 {
      width: 60%;
      height: 80%;
      bottom: -20%;
      right: 0;
      background-image: url('https://avatars.mds.yandex.net/i?id=411abf3d02c6d737fe095d5d88766af6a7707e5f-8082760-images-thumbs&n=13');
      z-index: 2;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    .visual-fg-image4 {
      width: 60%;
      height: 80%;
      bottom: -20%;
      right: 0;
      background-image: url('https://avatars.mds.yandex.net/i?id=f6a1ca1cca39e3c42a5c65363fb20771ea925cf3-12473993-images-thumbs&n=13');
      z-index: 2;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    .visual-title {
      position: absolute;
      bottom: 0;
      left: 0;
      font-size: 3.5em;
      color: #fff;
      background-color: rgba(0, 0, 0, 0.4);
      padding: 5px 15px;
      z-index: 3;
    }

    .service-item-right .visual-title {
      left: auto;
      right: 0;
    }

    /* --- Content (Text) Styling --- */
    .service-content {
      padding: 20px 40px;
    }

    .content-text {
      font-size: 1.1em;
      color: #444;
      line-height: 1.7em;
      position: relative;
      animation: fadeSlideUp 1.5s ease forwards;
    }

    /* --- Animations --- */
    @keyframes fadeIn {
      from {
        opacity: 0;
        transform: translateY(-30px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes fadeSlideUp {
      from {
        opacity: 0;
        transform: translateY(40px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* --- Responsive Design --- */
    @media (max-width: 900px) {
      .service-item {
        flex-direction: column;
      }

      .service-item-right {
        flex-direction: column;
      }

      .service-visual,
      .service-content {
        width: 100%;
        padding: 10px 0;
      }

      .visual-fg-image,
      .visual-fg-image2,
      .visual-fg-image4 {
        bottom: -10%;
        right: 5%;
        width: 70%;
      }
    }


    
:root {
    --primary-color: #5d5dff; /* A common accent color for links/icons */
    --light-bg: #f4f6fa; /* Background for the header/contact section */
    --footer-bg: #e6e8f4; /* Background for the footer section */
    --dark-text: #333;
    --light-text: #555;
    --footer-heading-color: #333;
}
    /* ----------------------------------------
   2. FOOTER SECTION STYLING
---------------------------------------- */

.main-footer {
    background-color: var(--footer-bg);
    padding: 60px 5%;
    color: var(--light-text);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2.5fr; /* Define column widths */
    gap: 30px;
}

.footer-heading {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--footer-heading-color);
    margin-bottom: 20px;
}

/* Footer Column 1: About/Logo */
.footer-logo {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    /* Basic logo shape from image */
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    border-radius: 50%;
    color: transparent;
    position: relative;
}

.footer-description {
    font-size: 0.9em;
    margin-bottom: 20px;
}

/* Social Links Animation */
.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 30px;
    height: 30px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    /* Animation: Subtle scale and shadow change on hover */
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Footer Links Animation (Columns 2 & 3) */
.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    position: relative;
    display: inline-block;
    padding-left: 15px;
}

/* Animation: Underline slide-in on hover */
.footer-links li a::before {
    content: '\f0da'; /* Font Awesome right arrow */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
    opacity: 0;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.footer-links li a:hover {
    color: var(--primary-color);
}

.footer-links li a:hover::before {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
}

/* Office Details (Column 4) */
.office-location {
    margin-bottom: 25px;
}

.office-contact-item {
    display: flex;
    align-items: flex-start;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.office-contact-item i {
    color: var(--primary-color);
    margin-right: 10px;
    margin-top: 3px;
    flex-shrink: 0;
}


/* ----------------------------------------
   MEDIA QUERIES (Responsiveness) - UPDATED
---------------------------------------- */

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }

    /* ... other styles remain the same ... */
}

@media (max-width: 600px) {
    .footer-grid {
        /* CORRECTED: Set grid to 2 equal columns on the smallest screens */
        grid-template-columns: repeat(2, 1fr); 
        gap: 20px; /* Reduce gap slightly for smaller screens */
    }

    .footer-about {
        /* To maintain a 2/2 grid, we need to span the largest column (footer-about) 
           across both columns of the grid. It should take the full width of the first row. */
        grid-column: 1 / span 2; 
        order: 4; /* Keep the about section at the bottom (as requested in original CSS) */
        
        /* If you want the 'About' section to remain large but appear in the first row, 
           you would change 'order: 4' to 'order: 1'. */
    }

    .footer-office-details {
        /* Force the contact details to span both columns so it occupies a full row
           at the bottom, ensuring a 2/2/1 layout (2 links, 2 offices, 1 about) */
        grid-column: 1 / span 2;
    }
    
    /* Optional: If you want 2/2/2 layout (2 links, 2 offices, 2 about/social) */
    /* You may need to remove the 'grid-column: 1 / span 2;' from footer-about 
       and re-evaluate the order based on the required layout. */
    
    /* Default flow (without specific grid-column/order) will be:
       Row 1: Sister Concern | Quick Links
       Row 2: Dhaka Office | Gazipur Office (if split)
       Row 3: About (if it spans 2 columns) 
    */
    
    /* By default (no 'order' or 'span' on middle columns), the grid will flow as:
       1. Sister Concern (Col 1) | Quick Links (Col 2) 
       2. Footer About (Col 1) | Footer Office Details (Col 2)
    */

    /* We will stick to the default two-column flow without spanning the office details
       to guarantee the **2/2** result (4 items in a 2x2 grid), with the 'About' section 
       (the widest original column) spanning the bottom: */
    
    /* Final flow with this code:
       Row 1: Sister Concern | Quick Links
       Row 2: Dhaka/Gazipur Office 1 | Dhaka/Gazipur Office 2
       Row 3: Footer About (full width)
    */
    
    /* Since the office details is one combined div, we remove the span from footer-office-details 
       and let it naturally take the next column spot. */

    .footer-office-details {
        /* Remove the spanning to allow 4 columns to flow into 2x2 grid */
    }
}



.footer-links li a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}