html {
    scroll-behavior: smooth;
}
img {
    max-width: 100%;
    height: auto;
    display: block; /* This helps remove tiny gaps under images */
}

.nav-links {
    display: flex;
    list-style: none; /* Removes bullet points */
    position: absolute;
    top: 30px;
    right: 50px;
    z-index: 100;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}
:root {
    --light-gold: #f3e5ab; /* Bright Champagne Gold */
}
.nav-links a:hover {
    color: #f3e5ab; /* Light Golden Color */
    text-shadow: 0px 0px 8px rgba(243, 229, 171, 0.7); /* Subtle golden glow */
    transform: translateY(-2px); /* Slight lift effect */
}

/* The Active Link (the page they are on) */
.nav-links a.active {
    color: #f3e5ab;
    border-bottom: 2px solid #f3e5ab;
    padding-bottom: 5px;
}
        :root {
            --gold: #b39b7d;
            --dark: #2c2c2c;
            --light-bg: #f4f1ea;
            --white: #ffffff;
        }

        body {
            margin: 0;
            padding: 0;
            font-family: 'Poppins', sans-serif;
            color: var(--dark);
            line-height: 1.6;
            background-color: #d4cdbb; /* Set the whole body to beige to be safe */
        }
.stellar-brand {
    position: absolute;
    top: 30px; /* Adjust distance from top */
    left: 40px; /* Adjust distance from left */
    display: flex;
    align-items: center;
    z-index: 100; /* Keeps it above the background */
}

.brand-logo {
    height: 30px; /* Adjust size to match image */
    margin-right: 10px;
}

.brand-name {
    color: #ffffff;
    font-family: 'Alice', serif;
    font-size: 22px;
    letter-spacing: 4px;
    font-weight: bold;
}
        /* Hero Section */
       .hero {
    height: 100vh;
    /* Clean background without the global overlay */
    background:   url('Banner1.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
    /* CHANGE THIS: */
    text-align: right; 
    align-items: flex-end; 
}

        nav {
            width: 100%;
            display: flex;
            justify-content: space-between;
            padding: 20px 8%;
            align-items: center;
            background: rgba(0,0,0,0.2);
        }

        .logo { font-weight: 700; letter-spacing: 2px; font-size: 1.5rem; }

        nav ul { display: flex; list-style: none; margin: 0; padding: 0; }
        nav ul li { margin-left: 25px; }
        nav ul li a { color: white; text-decoration: none; font-size: 13px; text-transform: uppercase; }
        

        .hero-content h1 {
    font-family: 'Alice', serif;
    /* Reduced font-size slightly so the long sentence fits on the screen */
    font-size: 2.5rem;
    /* Adds a soft black glow around the letters only */
    text-shadow: 20px 10px 10px rgba(0,0,0,0.9);
    margin: 0;  
    margin-bottom: 280px;
   /* 1. Remove padding-right and add this: */
    text-align: center;      /* Centers the two lines together */
    
    
    /* 2. Position it: */
    width: fit-content;      /* Makes the box only as wide as the text */
    margin-left: auto;       /* Pushes it to the right side */
    
    /* 3. MOVE TO LEFT: Increase this to pull it further from the edge */
    margin-right: 180px;     /* Use pixels (px) instead of % for more control */

    /* 2. FIX THE WRAPPING: Ensure the container is wide enough for two lines */
    width: 100%;
    line-height: 1.2;
    
    /* 3. ALLOW BREAKING: Make sure nowrap is NOT here */
    white-space: normal;
}

        .stats-bar {
    display: flex;
    justify-content: center; /* Centers the whole group */
    align-items: center;
    gap: 250px; /* Large gap between the four stats */
    background: rgba(0, 0, 0, 0.6); /* Darker semi-transparent overlay */
    padding: 25px 0;
    position: absolute; /* Keeps it at the very bottom of the hero */
    bottom: 0;
    width: 100%; /* Accounts for the padding */
}

.stat {
    display: flex;
    align-items: center;
    color: white;
    text-align: left; /* Text is left-aligned relative to the number */
}

.stat .number {
    font-size: 2rem; /* Large, bold numbers */
    font-weight: 700;
    margin-right: 10px; /* Space between number and text */
    font-family: 'Poppins', sans-serif;
}

.stat .label {
    font-size: 1rem;
    line-height: 1.1; /* Tight line height for the two-line text */
    font-weight: 400;
    text-transform: none; /* Keeps original casing */
}
       

        /* Sections General */
        section { padding: 60px 10%; }
        h2 { 
            text-align: center; 
            font-family: 'Playfair Display', serif; 
            font-size: 2.2rem; 
            margin-bottom: 20px; 
        }

        /* Header with lines on the sides */
.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.section-header .line {
    height: 1px;
    width: 100px;
    background-color: #999; /* Subtle grey line */
}

.alice-font {
    font-family: 'Alice', serif;
    font-size: 2.2rem;
    color: #333;
}
/* ADD THIS: This targets the outer container */
section {
    background-color: #efece7; 
    padding: 80px 0;
    width: 100%;
}

.quality-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 0 8%;
    background-color: transparent; /* Changed from #F6F3EF */
}

.quality-item {
    flex: 1;
    text-align: center;
}

.quality-item img {
    width: 100%;
    height: 200px;        /* Set a fixed height for all 4 images */
    object-fit: cover;    /* This crops the images so they don't look squashed */
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Label and Underline */
.quality-item h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #222;
}

.underline {
    width: 60px;
    height: 1px;
    background-color: #666;
    margin: 0 auto 15px auto; /* Centers the underline */
}

/* Description Text */
.quality-item p {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    padding: 0 10px;
}

/* ADD THIS: To ensure the parent forces the badge to the middle */
   .spotlight-section {
    /* This creates the gap on the left and right sides so the image doesn't touch the edge */
    padding: 40px 5%;
   text-align: center; /* This centers all inline-block elements inside it */
    /* Existing code... */
    background-color: #E3E0D8; 
    
    /* ADD THIS LINE: It prevents padding from making the box wider than 100% */
    box-sizing: border-box; 
    
    width: 100%;
    margin: 0;
    overflow: hidden; /* This cuts off any accidental "runaway" background */
}

/* Header with Lines */
.spotlight-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
   margin-bottom: 5px; /* Lower this from 50px or 60px to 5px */
}

.spotlight-header h2 {
    margin: 0; /* Ensures the text itself doesn't have hidden spacing */
}

.header-line {
    width: 80px;
    height: 1px;
    background-color: #666;
}

.ongoing-badge {
    display: inline-block; /* Keep this to maintain the pill shape */
    background-color: #727A6B; 
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-top: -15px; /* Negative margin pulls it UP towards the title */
    margin-bottom: 40px; /* Keeps space between badge and image/text below */
    /* MOVES BADGE UP: Adjust this number to bring it closer to the text */
    margin-top: -10px;
    
}

/* 3. Ensure the content container doesn't hit the edges */
.spotlight-content {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    text-align: left;
}

.spotlight-image {
    flex: 1;
}

.spotlight-image img {
    width: 100%;
    border: 10px solid white; /* Adds the white frame from image 2 */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.spotlight-text {
    flex: 1;
}

/* TEXT STYLING */
.spotlight-text h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.rera-info {
    font-size: 0.8rem;
    color: #555;
}

hr {
    border: 0;
    border-top: 1px solid #bbb;
    margin: 15px 0;
}

.tagline {
    font-weight: bold;
    font-style: italic;
}

.explore-btn {
    display: inline-block;
    margin-top: 30px;
    background-color: #8E8873;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}
.explore-btn:hover {
    background-color: #726c5a; /* Slightly darker shade on hover */
    color: #ffffff;
    transform: translateY(-3px); /* Lifts the button up slightly */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); /* Adds a shadow for a 3D effect */
}

      /* 1. Main Container Fix */
.portfolio-section {
    background-color: #d4cdbb; 
    padding: 20px 10%;
    width: 100%;
    box-sizing: border-box; /* Fixes background running to the right */
    text-align: center;
}

/* 2. Header & Badge Spacing */
.portfolio-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 5px; /* Lower this from 50px or 60px to 5px */
}
.portfolio-header h2 {
    margin: 0; /* Ensures the text itself doesn't have hidden spacing */
}

.header-line {
    width: 80px;
    height: 1px;
    background-color: #555;
}

.notable-badge {
    display: block;            /* Changed from inline-block to block */
    width: fit-content;        /* This ensures the background only covers the text */
    margin: 0 auto 80px auto;  /* 'auto' on left/right centers it perfectly */
    background-color: #727A6B;
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    text-align: center;
}

/* 3. THE GRID FIX (4 columns) */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Forces 4 items per row */
    gap: 50px 25px; /* Vertical gap 50px, horizontal 25px */
    margin-bottom: 50px; /* Adds extra breathing room below the images */
}

/* 4. IMAGE & BADGE OVERLAP FIX */
.img-wrapper {
    position: relative; /* This is why your badges were misplaced! */
    margin-bottom: 15px;
    transition: transform 0.4s ease-in-out;
    cursor: pointer;
    width: 85%;           /* Adjust this % to make images smaller or larger */
    margin-left: auto;    /* Centers the smaller box */
    margin-right: auto;   /* Centers the smaller box */
}

.portfolio-item:hover img {
    transform: scale(1.05); /* Suggesting 1.05 (zoom in) instead of 0.95 for small images */
    cursor: pointer;
}

.img-wrapper img {
    width: 100%;
    height: 200px; /* Keeps all 8 images the same size */
    object-fit: cover;
    display: block;
    border-radius: 2px;
    transition: transform 0.4s ease-in-out; /* Smooth movement fix */
    border: 2px solid #ffffff;       /* Thick white border */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Soft shadow for depth */
    box-sizing: border-box;          /* Keeps border inside the image width */
}

.project-name-badge {
    position: absolute;
    top: -20px; /* Moves badge halfway up onto the frame */
    left: 50%;
    transform: translateX(-50%);
    background-color: #727A6B;
    color: white;
    padding: 4px 15px;
    font-size: 0.8rem;
    font-weight: bold;
    white-space: nowrap;
    z-index: 10;
}

/* 5. Location Text Alignment */
.location-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 0.8rem;
    color: #333;
}
.map-section {
    position: relative; /* REQUIRED to hold the floating text */
    width: 100%;
    aspect-ratio: 3 / 2;
    height: 1030px;
    background-color: #E3E0D8;
    padding: 0;
    margin: 0;
    
   
}
.map-container {
    width: 100%;
    height: 100%; /* 3. Forces the container to stay within the 600px limit */
    overflow: auto; /* Allows user to scroll the map if it's bigger than 600px */
    cursor: grab;
}

.map-container img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 20%; 
    border-radius: 0;

}

/* --- THE OVERLAY LOGIC --- */
.map-text-overlay {
    position: absolute;
    top: 20px;         /* Distance from the very top */
    left: 50%;
    transform: translateX(-50%); /* Perfectly centers it horizontally */
    z-index: 10;
    text-align: center;
    width: 100%;        /* Prevents edge-hitting on small screens */
    max-width: 600px;
    /* Optional: subtle background to help text pop against the map pins */
    background: rgba(227, 224, 216, 0.8); 
    padding: 15px;
    border-radius: 4px;
}

.portfolio-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.portfolio-title-wrapper h2 {
    font-family: 'Alice', serif;
    font-size: 2.2rem;
    font-weight: bold;
    color: #333;
    margin: 0;
    white-space: nowrap; /* Keeps title on one line */
}

.title-line {
    width: 40px;
    height: 1px;
    background-color: #333;
}

.map-subtitle {
    margin-top: 5px;
    font-size: 0.9rem;
    color: #555;
}

/* --- MOBILE VIEW --- */
@media (max-width: 768px) {
    .map-container img {
        height: 300px; /* Shorter map for phones */
        object-fit: cover;
    }

    .portfolio-title-wrapper h2 {
        font-size: 1.4rem; /* Smaller text for mobile */
    }
    
    .title-line {
        width: 20px; /* Shorter lines so they don't go off-screen */
    }
    
    .map-text-overlay {
        top: 10px;
        padding: 10px;
        width: 95%;
    }
}

 /* Section Background */
.sectors-section {
    background-color: #33312E; 
    padding: 60px 0;
    width: 100%;
}

.sectors-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    max-width: 1200px; /* Increased to reduce side spacing */
    margin: 0 auto;
    padding: 0 20px;
}

.sector-card {
    flex: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px;
    display: flex;
    flex-direction: column;
    background-color: transparent;
}

/* --- ZOOM EFFECT LOGIC --- */
.image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden; /* This hides the parts of the image that grow outside the box */
    margin-bottom: 20px;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease; /* Smooth transition for the zoom */
    display: block;
}

.sector-card:hover .image-container img {
    transform: scale(1.1); /* Zooms the image in by 10% */
}

/* --- ALIGNMENT FIXES --- */
.sector-info {
    display: flex;
    flex-direction: column;
    text-align: left; /* Ensures all text starts from the same left edge */
}

.sector-info h3 {
    color: #E3E0D8;
    font-family: 'Alice', serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.3;
    margin: 0 0 15px 0;
    min-height: 3em; /* Forces headings to take the same space for alignment */
}

.sector-info p {
    color: #bdbdbd;
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
    text-align: left
    
    
    ; 
}

.sector-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #fff;
    color: #000;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 2; /* Keeps badge above the zooming image */
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .sectors-container {
        flex-direction: column;
        align-items: center;
    }
    .sector-card {
        width: 100%;
        max-width: 450px;
    }
}

.site-footer {
    background-color: #D1CEC7 !important;
    padding: 20px 2% !important; /* Reduced to 2% to push items further to the edges */
    width: 100%;
    box-sizing: border-box;
}

.footer-wrapper {
    display: flex;
    justify-content: space-between; /* Pushes items to the far left and far right */
    align-items: flex-end;         /* Keeps logo at the bottom-right corner */
    max-width: 100%;               /* Removes the 'restricted' centered look */
    width: 100%;
    margin: 0;
}

/* Push Office Info to the far left */
.footer-left {
    text-align: left;
    margin-left: 0; 
}

.office-title {
    font-size: 1rem;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #000;
}

/* Icon and Text Alignment */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 5px;
}

.contact-item i {
    width: 18px;
    color: #444;
    font-size: 0.85rem;
    margin-top: 4px;
    text-align: center;
}

.contact-item p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.4;
    color: #333;
}

/* Push Logo to the far right */
.footer-right {
    margin-right: 0;
}

.footer-logo-img {
    height: 30px; /* Slimmer height for a smaller footer */
    width: auto;
    display: block;
}
/* Footer Background and Text Styling */
footer {
    background-color: #ffffff; /* Sets the footer bar to pure white */
    padding: 15px 0;           /* Adds some vertical space */
    width: 100%;
    text-align: center;        /* Centers the text */
    border-top: 1px solid #e0e0e0; /* Optional: adds a thin line to separate from beige */
}

footer p, .copyright-text {
    color: #555555;            /* Soft grey text for a professional look */
    font-size: 11px;           /* Makes the text smaller */
    margin: 0;
    letter-spacing: 0.5px;     /* Makes small text easier to read */
}       
/* --- MOBILE RESPONSIVE OVERRIDES --- */

@media (max-width: 768px) {
    /* 1. Hero Section */
    .hero {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start; /* Aligns content from the top down */
        text-align: center;
        height: auto;
        min-height: 100vh;
    }

    .nav-links {
        display: none; /* Recommended: Hide links on mobile or use a hamburger menu */
    }

    .stellar-brand {
        position: relative; /* This is key! It stops floating over the text */
        top: 20px;
        left: 0;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 30px; /* Pushes the heading down */
    }

    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        text-align: center;
        margin: 0 auto 40px auto !important; /* Centers it and adds bottom space */
        padding: 0 15px;
        width: 90%; /* Keeps it from hitting the screen edges */
        text-shadow: 2px 2px 8px rgba(0,0,0,0.7); /* Thinner shadow for mobile */
    }

    /* 2. Stats Bar - Stacks in 2 columns on mobile */
    .stats-bar {
        position: relative; /* Un-stick from bottom so it doesn't overlap content */
        flex-wrap: wrap;
        gap: 30px;
        padding: 40px 10px;
        justify-content: space-evenly;
    }

    .stat {
        flex-basis: 40%; /* Each stat takes half the width */
        justify-content: center;
    }

    /* 3. Quality Grid - Stacks vertically */
    .quality-grid {
        flex-direction: column;
        gap: 40px;
    }

    .quality-item img {
        height: 250px; /* Slightly taller images for better mobile viewing */
    }

    /* 4. Spotlight Section */
    .spotlight-content {
        flex-direction: column; /* Stack image and text */
        gap: 20px;
        padding: 0 10px;
    }

    .spotlight-image img {
        border-width: 5px; /* Thinner border for smaller screens */
    }

    .spotlight-text {
        text-align: center;
    }

    /* 5. Portfolio Grid - Changes from 4 columns to 2 or 1 */
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 items per row */
        gap: 40px 15px;
    }

    .img-wrapper {
        width: 100%; /* Use full width on mobile */
    }

    /* 6. Map Section */
    .map-section {
        height: auto;
        aspect-ratio: auto;
    }

    .map-text-overlay {
        position: relative; /* Move text above/below map instead of floating */
        top: 0;
        transform: none;
        left: 0;
        max-width: 100%;
        background: #E3E0D8;
    }

    /* 7. Sector Cards (Commercial/Hospitality) */
    .sectors-container {
        flex-direction: column;
        gap: 20px;
    }

    .sector-card {
        max-width: 100%;
    }

    /* 8. Footer */
    .footer-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    .footer-left {
        text-align: center;
    }
}

/* Very Small Devices (Phones) */
@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr; /* 1 item per row on very small phones */
    }
    
    .stat {
        flex-basis: 100%; /* Stats stack one by one */
        text-align: center;
    }
}
