/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    background-color: #F8F9FA;
    color: #333;
}

/* Header */
header {    
    background-color: #000000;
    color: rgb(0, 0, 0);
    padding: 1.5em 0;
    font-size: 24px;
    font-weight: bold;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    
}

::-webkit-scrollbar {
    display: none;
}

nav {
    position: fixed;
    top: 20px;
    left: 20%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 50%;
    max-width: 900px;
    padding: 10px 40px;
    background: rgba(255, 255, 255, 0.38); /* Light transparency */
    backdrop-filter: blur(15px); /* Stronger blur effect */
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    transition: all 0.3s ease-in-out;
    
}

/* Minimalist scrolled navbar */
nav.scrolled {
    top: 0;
    left: -240px;
    width: 100%;
    height: 70px; /* Adjust this for a thinner or thicker ruler effect */
    border-radius: 0;
    padding: 10px 30%;
    background: rgba(255, 255, 255, 0.38); /* Light transparency */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Soft shadow for elegance */
    backdrop-filter: blur(15px); /* Stronger blur effect */
    display: flex;
    align-items: center;
}



/* Links */
a {
    color: inherit;
    text-decoration: none;
}

a:visited {
    color: inherit;
}

/* Logo */
.logo {
    height: 70px;
}

/* Navigation Links (Desktop) */
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links li {
    list-style: none;
}

.nav-links a {

    color: #ffffff; /* Change text color to black for contrast */
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    transition: 0.3s;
    padding: 8px 12px;
    border-radius: 10px;
}

/* Hover Effect */
.nav-links a:hover {
    background: rgba(255, 255, 255, 0.1); /* Light gray hover effect */
}



/* 🔥 MOBILE RESPONSIVE FIX */

@media (max-width: 1024px) {  
    nav {
        background: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
    }
    

    /* Hide any remaining background */
    nav::before, nav::after {
        display: none !important;
    }

    /* Ensure nav bar is transparent */
    .nav-links {
        
        border: none !important;
    }
}
@media (max-width: 1024px) {  
    nav {
        width: 100%;
        left: 0;
        padding: 10px 20px;
        justify-content: flex-start;
    }

    /* Hide Logo on Mobile */
    .logo {
        display: none;
    }

    

    /* Navigation Links - Initially Hidden */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 50px;
        left: 10px;
        background: rgba(0, 0, 0, 0.9); /* Dark transparent background */
        padding: 15px 20px;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        width: 200px;
    }

    /* Show Navigation when Toggled */
    .nav-links.show {
        display: flex;
    }

    /* List Style */
    .nav-links li {
        list-style: none;
        padding: 12px 0;
    }

    .nav-links a {
        text-decoration: none;
        color: rgb(255, 255, 255);
        font-size: 16px;
        font-weight: 500;
        text-transform: capitalize;
        transition: 0.3s;
    }

    /* Hover Effect */
    .nav-links a:hover {
        color: rgb(255, 255, 255);
    }
}



/* ABOUT US SECTION */
.about-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full screen height */
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Align content to the left */
    padding: 0 8%; /* Adjust left padding to align with white background */
    background: url('bakbak.JPG') center/cover no-repeat fixed;
}

/* Overlay for readability */
.about-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Slightly darker for readability */
}

/* Left-aligned content */
.about-overlay {
    position: relative;
    color: #ffffff;
    max-width: 40%; /* Restrict width for better alignment */
    text-align: left; /* Align text to the left */
    padding: 20px;
}

/* Heading Styling */
.about-overlay h2 {
    font-size: 2.5rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* Paragraph Styling */
.about-overlay p {
    font-size: 1.2rem;
    line-height: 1.6;
    font-weight: 300;
}

@media (max-width: 768px) {
    .about-section {
        height: auto; 
        padding: 50px 5%;
        display: flex;
        flex-direction: column; 
        align-items: center;
        justify-content: center;
        background-attachment: scroll; 
        left: -15px;
    }

    .about-overlay {
        max-width: 100%;
        text-align: center;
        padding: 20px 5%;
    }

    .about-overlay h2 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .about-overlay p {
        font-size: 1rem;
        line-height: 1.5;
    }
}

/* Contact Us Scroll Button */
.contact-scroll {
    text-align: center;
    margin-top: 20px;
}

.contact-scroll a {
    display: inline-block;
    font-size: 26px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    padding: 25px 25px;
    background: rgba(255, 255, 255, 0.4); /* Transparent White */
    backdrop-filter: blur(5px);
    border-radius: 20px;
    transition: all 0.3s ease-in-out;
    margin-left: 270px;
}

.contact-scroll a:hover {
    background: rgba(255, 255, 255, 0.45); 
    transform: translateY(5px);
}

/* Responsive for Mobile */
@media (max-width: 768px) {
    .contact-scroll a {
        font-size: 20px;
        padding: 10px 30px;
        margin-right: 270px;
    
    }
}


/* Mission & Vision Section */
.mission-vision {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    padding: 80px 5%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px); /* Soft blur for elegance */
    border-radius: 20px;
}

/* Mission & Vision Cards */
.mission-box, .vision-box {
    flex: 1 1 450px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.6); /* Transparent white */
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(15px);
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.mission-box:hover, .vision-box:hover {
    transform: translateY(-10px);
}

/* Mission & Vision Headings */
.mission-box h2, .vision-box h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

/* Mission & Vision Text */
.mission-box p, .vision-box p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}



/* Properties Section */
.container, .about, .contact {
    padding: 30px;
}

.one, .properties {
    padding: 60px;
}

.property {
    border: none;
    padding: 10px;
    margin: 15px;
    display: inline-block;
    width: 30%; /* Keeps desktop layout intact */
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

.property:hover {
    transform: scale(1.03);
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
    .properties {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 30px 5%;
    }

    .property {
        width: 90%; /* Makes it fit perfectly on mobile */
        margin: 10px 0; /* Even spacing */
        display: block; /* Stack items */
    }
}


/* Buttons */
button, .btn {
    background: linear-gradient(135deg, #16202A, #16202A);
    color: rgb(255, 255, 255);
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease-in-out;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);

    
}

button:hover, .btn:hover {
    background: linear-gradient(135deg, #2C3E50, #2C3E50);
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
}

a:visited {
    color: inherit;
}

/* Property Card - Large but Not Overwhelming */
.project {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    padding: 30px; /* Reduced padding */
    border-radius: 16px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    max-width: 80%; /* Not full width, just the right size */
    height: 60vh; /* Balanced height */
    margin: 30px auto; /* Centers the card */
    margin-top: -40px;
}

/* Large Image but Not Overpowering */
.showcase img {
    width: 80%; /* Increase width (was 55%) */
    height: 100%; /* Keeps full height */
    object-fit: cover;
    border-radius: 16px;
}

/* Property Details - Properly Sized */
.details {
    text-align: center;
    padding: 20px;
    width: 40%;
}

.computation p {
    margin: 10px 0;
    font-size: 24px; /* Readable but not too big */
    font-weight: 700;
    color: #333;
}

/* 🔹 Balanced View Details Button */
.view-details-btn {
    display: block;
    margin: 20px auto;
    padding: 14px 22px; /* Medium size */
    font-size: 18px; /* Balanced text */
    font-weight: 700;
    color: #ffffff;
    background: #1E2A38;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

/* Hover Effect */
.view-details-btn:hover {
    background: #2C3E50;
    transform: translateY(-3px);
}

/* Active (Clicked) Effect */
.view-details-btn:active {
    background: #16202A;
    transform: translateY(1px);
}


/* === MODAL OVERLAY WITH BLUR EFFECT === */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* === MODAL CONTAINER === */
.modal-content {
    display: flex;
    flex-direction: row;
    background: white;
    width: 80vw; /* Wider modal */
    max-width: 1200px; /* Increase max width */
    border-radius: 15px;
    overflow: hidden;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease-in-out;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* === IMAGE GALLERY SECTION (BIGGER IMAGE) === */
.image-gallery {
    flex: 1.5; /* Takes more space */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    max-width: 650px; /* Bigger Image */
}

.image-gallery img {
    width: 100%;
    max-height: 600px; /* Increased height */
    object-fit: cover;
    border-radius: 10px;
}

/* === MINIMALIST CHEVRON ARROWS === */
.arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 32px; /* Adjust for visibility */
    font-weight: bold;
    color: rgba(0, 0, 0, 0.7); /* Subtle black */
    cursor: pointer;
    transition: color 0.3s ease-in-out;
}

/* Remove dark background */
.arrow-btn::before {
    background: none !important;
    box-shadow: none !important;
}

/* Hover effect for better UX */
.arrow-btn:hover {
    color: rgba(0, 0, 0, 0.9);
}

/* Positioning */
.prev-btn { left: 10px; }
.next-btn { right: 10px; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .arrow-btn {
        font-size: 24px; /* Adjust size for smaller screens */
    }
}

/* === TEXT CONTENT SECTION === */
.modal-text {
    flex: 1;
    padding: 35px;
    font-size: 18px;
    color: #333;
}

/* Title Styling */
.modal-text h2 {
    font-size: 26px;
    font-weight: bold;
    color: #222;
    margin-bottom: 10px;
}

.modal-text p {
    font-size: 20px;
    color: #555;
    margin-bottom: 12px;
}

/* Table Styling */
.modal-text table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 18px;
}

.modal-text table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

/* Highlight important text */
.modal-text table td:first-child {
    font-weight: bold;
    color: #222;
}

/* === CLOSE BUTTON === */
.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #555;
    transition: 0.3s;
}

.close:hover {
    color: red;
}

/* === FADE IN ANIMATION === */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* === RESPONSIVE STYLING === */
@media (max-width: 768px) {
    .modal-content {
        flex-direction: column;
        width: 95vw;
        text-align: center;
    }

    .image-gallery {
        width: 100%;
        max-height: 350px;
    }

    .modal-text {
        padding: 20px;
    }
}


/* Navigation Buttons */
.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    font-size: 30px;
    background: rgba(0, 0, 0, 0.6);
    color: rgb(255, 255, 255);
    padding: 10px 15px;
    border-radius: 20%;
    cursor: pointer;
    transition: 0.3s;
}

/* === MOBILE-ONLY CHANGES === */
@media (max-width: 768px) {
    /* Stack elements for better visibility */
    .project {
        flex-direction: column;
        width: 95%;
        height: auto;
        padding: 20px;
        text-align: center;
    }

    /* Ensure showcase image is fully visible */
    .showcase {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .showcase img {
        width: 100%;
        height: auto;
        max-height: 300px; /* Keeps it visible but not too large */
        border-radius: 12px;
    }

    /* Make details fit perfectly on mobile */
    .details {
        width: 100%;
        padding: 15px;
    }

    .computation p {
        font-size: 20px;
    }

    /* Adjust View Details Button */
    .view-details-btn {
        width: 100%;
        font-size: 16px;
        padding: 12px;
    }

    /* === MODAL ADJUSTMENTS FOR MOBILE === */
    .modal-content {
        flex-direction: column;
        width: 95vw;
        text-align: center;
        max-height: 90vh;
        overflow-y: auto;
        padding: 20px;
    }

    /* Make modal images fit properly */
    .image-gallery {
        width: 100%;
        max-height: 250px;
    }

    .image-gallery img {
        width: 100%;
        max-height: 250px;
        object-fit: cover;
        border-radius: 10px;
    }

    /* Adjust modal text for readability */
    .modal-text {
        padding: 15px;
        font-size: 16px;
    }

    .modal-text h2 {
        font-size: 22px;
    }

    .modal-text p {
        font-size: 18px;
    }

    .modal-text table {
        font-size: 16px;
    }
}
x

.landmark-section {
    text-align: center;
    padding: 40px;
}

/* Two-column grid for larger screens */
.landmark-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two equal columns */
    gap: 30px; 
    max-width: 1200px;
    margin: auto;
    margin-top: 50px;
}

/* Each landmark is a flexbox */
.landmark {
    display: flex;
    align-items: center;
    gap: 20px; /* Space between image & text */
    margin-top: 50px;
}

/* Image styling */
.landmark img {
    width: 150px; /* Adjust image size */
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
}

/* Text section */
.landmark-text {
    flex-grow: 1;
    text-align: left;
}



/* Show only on mobile */
@media (max-width: 768px) {
    .landmark-section {
        display: block; /* Show only on mobile */
    }

    .landmark-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Two equal columns */
        gap: 10px;
        max-width: 95%;
        margin: auto;
    }

    .landmark {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .landmark img {
        width: 100%;
        max-width: 180px;
        height: 120px;
        object-fit: cover;
        border-radius: 5px;
    }

    .landmark-text {
        font-size: 14px;
        font-weight: bold;
        margin-top: 5px;
    }
}


/*FARM AND COMMERCIAL LOT*/

.farm-lot-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Creates a responsive 3-column layout */
    gap: 20px;
    padding: 20px;
    justify-content: center; /* Centers the items */
}

.farm-lot {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.farm-lot img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.farm-lot h3 {
    margin: 10px 0;
    font-size: 18px;
}

.farm-lot h5 {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

.farm-lot button {
    background: #0044cc;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

.farm-lot button:hover {
    background: #003399;
}

/* Responsive Design */
@media (max-width: 900px) {
    .farm-lot-container {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets */
    }
}

@media (max-width: 600px) {
    .farm-lot-container {
        grid-template-columns: repeat(1, 1fr); /* 1 column for mobile */
    }
}

/*2nd*//*2nd*//*2nd*//*2nd*//*2nd*//*2nd*//*2nd*//*2nd*//*2nd*//*2nd*//*2nd*//*2nd*//*2nd*//*2nd*//*2nd*//*2nd*//*2nd*//*2nd*//*2nd*/

/* General Styling */
.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
}

.section-header p {
    font-size: 1rem;
    color: #666;
}

/* Farm Lot Grid */
.farm-lot-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}

/* Farm Lot Card */
.farm-lot {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding-bottom: 20px;
}



.farm-lot:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Image Styling */
.farm-lot img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Lot Details */
.lot-details {
    padding: 15px;
}

.lot-details h3 {
    font-size: 1.5rem;
    color: #222;
    margin-bottom: 5px;
}

.lot-details p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 5px;
}

/* === MOBILE-ONLY STYLING === */
@media (max-width: 600px) {
    /* Stack items for a better mobile layout */
    .farm-lot-container {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 15px;
        padding: 10px;
    }

    /* Ensure images are visible and not cut off */
    .farm-lot img {
        width: 100%;
        height: auto; /* Keeps proportions */
        max-height: 250px; /* Prevents it from being too large */
        object-fit: cover;
    }

    /* Improve button and text spacing */
    .farm-lot button {
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }

    /* Adjust modal for a perfect fit */
    .modal-content {
        width: 90vw; /* Make modal fit the screen */
        max-height: 85vh; /* Prevents overflow */
        padding: 15px;
        text-align: center;
    }

    /* Make modal images look good */
    .image-gallery img {
        width: 100%;
        max-height: 220px;
        object-fit: cover;
        border-radius: 8px;
    }

    /* Improve text readability inside modal */
    .modal-text {
        font-size: 16px;
    }

    .modal-text h2 {
        font-size: 20px;
    }

    .modal-text p {
        font-size: 16px;
    }
}



/*FARM AND COMMERCIAL LOT*/

/*CONTACT CONTACT CONTACT CONTACT CONTACT CONTACT CONTACT CONTACT CONTACT CONTACT CONTACT*/

/* === CONTACT SECTION DESIGN === */
.contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 10%; /* Increased padding for larger appearance */
    background-color: #f9f9f9;
    color: #333;
    text-align: center;
}

.contact h2 {
    font-size: 32px; /* Slightly larger heading */
    font-weight: bold;
    margin-bottom: 25px;
}

.contwrap {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    text-align: left;
}

/* === CONTACT INFO LEFT SIDE === */
.continfo {
    flex: 1;
    padding-right: 50px;
    font-size: 18px;
}

.continfo h3 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
}

.continfo p {
    margin: 20px 0; /* Increased space between elements */
    display: flex;
    align-items: center;
}

.continfo i {
    margin-right: 12px;
    font-size: 20px;
    color: #666;
}

.continfo a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.continfo a:hover {
    color: #000;
}

/* === MESSAGE FORM RIGHT SIDE === */
.contform {
    flex: 1;
    padding-left: 50px;
}

.contform p {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 20px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.formgroup {
    display: flex;
    flex-direction: column;
}

input, textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 18px;
    background: transparent;
    outline: none;
    transition: border 0.3s;
}

input:focus, textarea:focus {
    border-color: #555;
}

button {
    background: #222;
    color: #fff;
    padding: 14px;
    font-size: 18px;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #000;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .contact {
        padding: 60px 5%; /* Adjusted padding for better mobile view */
    }
    
    .contwrap {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .continfo, .contform {
        padding: 0;
        width: 100%;
    }
    
    .continfo p {
        font-size: 16px;
    }
    
    .contform p {
        font-size: 18px;
    }
    
    input, textarea {
        font-size: 16px;
    }
    
    button {
        font-size: 16px;
    }
}

.showcase {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 50px 0;
}

.showcase video {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

/* Hover Effect */
.showcase video:hover {
    transform: scale(1.02);
}

/* Responsive Design */
@media (max-width: 768px) {
    .showcase video {
        max-width: 100%;
        border-radius: 5px;
    }
}

.property-gallery {
    padding: 80px 8%;
    background: #ffffff;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 28px;
    letter-spacing: 1px;
    font-weight: 600;
}

.section-header p {
    margin-top: 8px;
    color: #666;
    font-size: 15px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.gallery-card {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}

.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(0,0,0,0.12);
}
/*FNJ */
/*VIDEO FNJ*/
/* PROPERTY VIDEO SECTION */
.property-videos {
    padding: 80px 8%;
    background: #ffffff;
}

.video-grid {
    display: grid;
    /* This makes the grid responsive without needing 100 media queries */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}



.video-card {
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.video-card video {
    width: 100%;
    height: 220px;
    object-fit: cover; /* Ensures videos don't look stretched */
    border-bottom: 1px solid #eee;
    display: block;
}

.video-card span {
    display: block;
    padding: 15px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 35px rgba(0,0,0,0.12);
}

/* Preloader Background */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000; /* Matches your black theme */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Ensures it stays on top of everything */
}

/* The Loading Circle */
.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #333; /* Darker circle */
    border-top: 5px solid #ffffff; /* White spinning part */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Add this to hide the modal/cards by default */
.modal, .project {
    display: none; 
}

/* Ensure the preloader covers EVERYTHING */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000; /* Solid black background */
    z-index: 10000; /* Extremely high so nothing shows above it */
    display: flex;
    justify-content: center;
    align-items: center;
}

#preloader { display: none !important; }

/*ETO BAGONG RESIDENTIAL CODE SA BABA*/

/* === 1. DESIGN VARIABLES === */
:root {
    --brand-dark: #16202A;
    --accent-blue: #2C3E50;
    --white: #ffffff;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* === 2. RESIDENTIAL CARDS GRID === */
.res-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.res-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 380px; 
    transition: transform 0.3s ease;
}

.res-card:hover { transform: translateY(-8px); }

.res-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    cursor: pointer;
}

.res-info { padding: 25px; text-align: center; }
.res-info h3 { font-size: 20px; color: var(--brand-dark); margin-bottom: 10px; }

.res-btn {
    background: var(--brand-dark);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

/* === 3. THE MINIMALIST MODAL SYSTEM === */
.res-modal {
    display: none; 
    position: fixed;
    z-index: 10000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
}

.res-modal-content {
 background: #fff;
    width: 90vw;
    max-width: 1100px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Default stack for mobile */
    max-height: 90vh; /* Keeps it within the screen */
}

/* DESKTOP SIDE-BY-SIDE FIX */
@media (min-width: 769px) {
  .res-modal-content { 
        flex-direction: row; /* Forces image and text side-by-side */
      
        height: 600px; /* LIMITS TOTAL HEIGHT: This prevents the 'too big' image issue */
    }

   .res-gallery {
    position: relative; /* This is crucial so arrows stay inside */
    background: #000;
    flex: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.res-gallery img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
    .res-modal-text {
        flex: 1; /* Takes 40% of the width */
        padding: 40px;
        overflow-y: auto; /* Adds scrollbar only to the text if it's long */
        background: #fff;
    }
}

.res-gallery img {
  width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures the image fits without stretching or being too big */
}

/* Minimalist internal arrows */
.gal-nav {
  position: absolute;
    top: 50%; /* Center vertically */
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3); /* Semi-transparent white */
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prev { left: 15px; }
.next { right: 15px; }

/* === 5. THE VISIBLE EXIT (X) BUTTON === */
/* Positioned to be visible against image or white background */
.res-close {
  position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6); /* Dark circle ensures visibility on any image */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 101;
    transition: background 0.3s ease;
}

.res-close:hover {
    background: rgba(255, 0, 0, 0.7); /* Red hover for clarity */
}

/* === 6. MODAL TEXT & TABLE === */
.res-modal-text {
   flex: 1; /* Takes up 40% of the modal width on desktop */
    padding: 40px;
    overflow-y: auto; /* Scrollable if text is long */
    background: #fff;
}

.res-modal-text h2 {
    color: var(--brand-dark);
    margin-top: 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.data-table td {
    padding: 12px 5px;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}

/* === 7. MOBILE OPTIMIZATION === */
@media (max-width: 768px) {
    .res-modal-content {
        width: 95vw;
        max-height: 95vh;
        flex-direction: column;
    }

    .gal-nav {
        display: flex !important; /* Forces visibility */
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        background: rgba(0, 0, 0, 0.5); /* Darker background for visibility on light sky */
        color: white;
        border-radius: 50%;
        z-index: 100; /* Keeps them on top of the image */
        font-size: 18px;
    }
    
    .res-gallery {
       height: 300px;
        min-height: 300px;
        position: relative;
        display: flex;
        align-items: center;
        overflow: hidden; /* Keeps buttons from bleeding out */
    }

    .prev {
        left: 10px; /* Anchored to the left edge of the image */
    }

    .next {
        right: 10px; /* Anchored to the right edge of the image */
    }

    /* Make sure the image doesn't block the buttons */
    #modalImage {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

    .res-modal-text {
        padding: 20px;
        text-align: center;
    }

    .res-close {
        background: #fff; 
        color: #000;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }


@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}