/* Basic Resets & Variables */
:root {
    --primary-color: #DAA520; /* Rich Gold */
    --secondary-color: #2c3e50; /* Dark Blue-Gray for main text */
    --accent-color: #1a252f; /* Very Dark Blue-Gray for backgrounds like header, footer */
    --text-light: #ecf0f1; /* Light Gray for text on dark backgrounds */
    --text-dark: #34495e; /* Medium Dark Blue-Gray for text on light backgrounds */
    --bg-light: #fdfdfd; /* Off-white background for sections */
    --bg-dark: #121a22; /* Dark background for sections like Villa Categories */
    --border-color: #e0e0e0; /* General border color */
    --light-border: #f0f0f0; /* Lighter border for light cards */

    --font-primary: 'Montserrat', sans-serif; /* Modern sans-serif font */
    --font-heading: 'Playfair Display', serif; /* Elegant serif font for headings */
    
    --transition-speed: 0.4s; /* Standard transition duration */
    --border-radius: 10px; /* Consistent border radius for cards and elements */
    --box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); /* Standard soft, deep shadow */

    /* Custom Cursor Colors (for desktop only, enhances user interaction) */
    --cursor-dot-color: var(--primary-color);
    --cursor-circle-color: rgba(218, 165, 32, 0.4); /* Primary color with transparency */
    --cursor-hover-color: var(--primary-color); /* For the filled circle on hover */
}

/* Hide default cursor and apply custom cursor for desktop */
body {
    cursor: none; 
}

/* Custom Cursor Styles */
.custom-cursor-dot,
.custom-cursor-circle {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    pointer-events: none; /* Allows clicks to pass through elements */
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease-out; /* Smooth fade in/out */
    will-change: transform; /* Optimize for animation */
}

.custom-cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--cursor-dot-color);
    border-radius: 50%;
    transform: translate(-50%, -50%); /* Center the dot */
    transition: background-color 0.2s ease-out; /* Smooth color change */
}

.custom-cursor-circle {
    width: 40px; /* Initial size */
    height: 40px; /* Initial size */
    border: 2px solid var(--cursor-circle-color);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0); /* Start scaled down */
    transition: width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), 
                height 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), 
                transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), 
                background-color 0.3s ease-out,
                border-color 0.3s ease-out;
}

.custom-cursor-circle.active {
    opacity: 1; /* Show on mousemove */
    transform: translate(-50%, -50%) scale(1); /* Scale up to visible size */
}

.custom-cursor-circle.hovered {
    width: 65px; /* Expand on hover for interactive elements */
    height: 65px; /* Expand on hover */
    background-color: var(--cursor-hover-color); /* Fill with primary color on hover */
    border-color: var(--primary-color); /* Solid border on hover */
}


/* General Resets & Layout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

body {
    font-family: var(--font-primary);
    line-height: 1.7; /* Increased line height for better readability */
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden; /* Prevent horizontal scrollbar on wider screens */
}

/* Scroll lock for mobile navigation when open */
body.no-scroll {
    overflow: hidden;
}

/* Global Container & Utility Classes */
.container {
    max-width: 1280px; /* Wider content area */
    margin: 0 auto;
    padding: 0 25px; /* Generous horizontal padding */
}

.section-padding {
    padding: 100px 0; /* Consistent vertical padding for sections */
}

.section-padding-bottom {
    padding-bottom: 80px;
}

.bg-light-gray {
    background-color: var(--bg-light); /* Light background for sections */
}

.bg-dark {
    background-color: var(--bg-dark); /* Dark background for sections */
    color: var(--text-light); /* Light text on dark backgrounds */
}

.text-white {
    color: var(--text-light);
}

.text-center {
    text-align: center;
}

.mt-5 {
    margin-top: 50px; /* Utility margin-top for spacing within sections */
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3.2em; /* Large, impactful titles */
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 70px; /* More space below title */
    position: relative;
    padding-bottom: 15px;
    letter-spacing: 2px; /* Increased letter spacing for headings */
    text-transform: uppercase;
    font-weight: 700; /* Bold heading font */
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px; /* Longer underline for titles */
    height: 5px; /* Thicker underline */
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-title.text-white {
    color: var(--text-light);
}

/* Grid layouts for various sections */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Responsive 3-column grid */
    gap: 35px; /* Spacing between grid items */
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* Responsive 4-column grid */
    gap: 25px;
}

.grid-2-columns {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two-column grid */
    gap: 60px;
    align-items: flex-start;
}

/* Buttons - Consistent styling for calls to action */
.btn {
    display: inline-block;
    padding: 18px 40px; /* Generous padding for easier clicking */
    border-radius: 50px; /* Pill-shaped buttons */
    text-decoration: none;
    font-weight: 600;
    font-size: 1.15em;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); /* Smooth hover transition */
    border: none;
    cursor: none; /* Integrates with custom cursor */
    text-align: center;
    white-space: nowrap; /* Prevents text wrapping */
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--accent-color); /* Dark text on gold background */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-primary:hover {
    background-color: #e5b331; /* Slightly darker gold on hover */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    transform: translateY(-3px); /* Subtle lift effect */
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color); /* Gold border on dark background */
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--accent-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-small {
    padding: 12px 30px;
    font-size: 0.98em;
}

.btn-dark-gold {
    background-color: var(--bg-dark);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.btn-dark-gold:hover {
    background-color: var(--primary-color);
    color: var(--accent-color);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* Header - Sticky navigation bar */
.header {
    background-color: var(--accent-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000; /* Ensure header is on top */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 45px; /* Logo size */
    /* If your logo is dark and needs to be white on a dark header, uncomment this: */
    /* filter: brightness(0) invert(1); */
    /* But if your logo 'MREALTY_DIGITAL_Logo.png' is already white, it should be fine as is. */
}

.logo-text {
    color: var(--text-light);
    font-size: 1.6em;
    font-weight: 700;
    letter-spacing: 1.5px;
    font-family: var(--font-primary);
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
    overflow-x: auto; /* Allows horizontal scroll on very small screens if necessary */
    padding-bottom: 5px; 
    -webkit-overflow-scrolling: touch; 
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.nav-menu ul::-webkit-scrollbar { /* Hide scrollbar for Chrome/Safari */
    display: none;
}

/* Navigation links - Styled like buttons */
.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 12px 22px;
    border-radius: var(--border-radius);
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block; 
    white-space: nowrap;
    cursor: none;
    min-width: 100px;
    text-align: center;
    font-size: 1.05em;
    letter-spacing: 0.5px;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: var(--primary-color);
    color: var(--accent-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* Hamburger menu for mobile */
.hamburger {
    display: none; /* Hidden by default, visible on mobile */
    cursor: none;
    flex-direction: column;
    gap: 6px;
    padding: 5px;
}

.hamburger .bar {
    width: 30px;
    height: 3px;
    background-color: var(--text-light);
    transition: all var(--transition-speed) ease;
}

/* Hero Section - The main introductory section */
.hero-section {
    position: relative;
    height: 150vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Content aligned to the right */
    color: var(--text-light);
    overflow: hidden;
}

.hero-slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect for background images */
    opacity: 0;
    transition: opacity 1.8s ease-in-out; /* Slow, smooth crossfade for slides */
    will-change: opacity;
}

.hero-slide.active-slide {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65); /* Dark overlay for text readability */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 30px;
    margin-right: 5%; 
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Align content elements to the right */
    text-align: right;
    width: calc(50% - 50px);
    min-width: 400px;
    background-color: rgba(0, 0, 0, 0.05); /* Made more transparent for better background visibility */
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    /* backdrop-filter: blur(5px); -- REMOVED BLUR EFFECT */
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.5em;
    margin-bottom: 15px;
    letter-spacing: 3px;
    color: var(--primary-color);
    text-transform: uppercase;
    text-align: right;
    width: 100%;
    font-weight: 700;
}
.hero-title::after { /* Underline positioned correctly for right-aligned title */
    left: auto;
    right: 0;
    transform: none;
}

.hero-subtitle {
    font-size: 1.8em;
    margin-bottom: 20px;
    font-weight: 300;
    text-align: right;
    width: 100%;
    line-height: 1.4;
}

.hero-description {
    font-size: 1.15em;
    margin-bottom: 30px;
    text-align: right;
    width: 100%;
}

.hero-description-highlight {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    padding: 10px 20px;
    display: inline-block;
    margin-bottom: 30px;
    font-weight: 600;
    font-size: 1.1em;
    text-align: center;
    align-self: flex-end;
    line-height: 1.4;
}

.price-info {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius);
    padding: 20px 25px;
    margin-bottom: 25px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    min-width: 300px;
    max-width: 100%;
    box-sizing: border-box;
    /* backdrop-filter: blur(5px); -- REMOVED BLUR EFFECT */
}

.price-label {
    font-size: 1.2em;
    font-weight: 300;
    display: block;
    margin-bottom: 5px;
}

.price-value {
    font-size: 3.2em;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    line-height: 1.2;
}

.price-note {
    font-size: 1em;
    margin-top: 10px;
    opacity: 0.9;
}

.features-highlight {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 20px;
    margin-bottom: 35px;
    width: 100%;
    box-sizing: border-box;
}

.feature-item {
    background-color: rgba(255, 255, 255, 0.18);
    border-radius: var(--border-radius);
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.25);
    text-align: left;
    min-width: 180px;
    flex: 1 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
    box-sizing: border-box;
    /* backdrop-filter: blur(3px); -- REMOVED BLUR EFFECT */
}

.feature-item .percentage {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--primary-color);
}

.feature-item .icon-text i {
    font-size: 2.2em;
    color: var(--primary-color);
}

.feature-item .feature-text {
    font-size: 1.05em;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
}

.hero-book-button {
    margin-top: 30px;
    align-self: flex-end;
    width: auto;
    max-width: 100%;
    padding: 18px 45px;
    box-sizing: border-box;
}


/* Amenities Section - Features around the property */
.amenities-section {
    background-color: var(--bg-light);
}
.amenity-item {
    background-color: var(--text-light);
    padding: 35px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
    cursor: none;
    border: 1px solid var(--light-border);
}

.amenity-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.amenity-item .icon-box {
    width: 90px;
    height: 90px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.amenity-item .icon-box i {
    font-size: 3.5em;
    color: var(--accent-color);
}

.amenity-item h3 {
    font-family: var(--font-heading);
    font-size: 1.7em;
    margin-bottom: 12px;
    color: var(--secondary-color);
    font-weight: 700;
}

.amenity-item p {
    font-size: 1.05em;
    color: var(--text-dark);
}

/* About Us Section - Project description */
.about-content .grid-2-columns {
    align-items: center; /* Vertically center content and image */
}

.about-text h2 {
    text-align: left;
    margin-bottom: 25px;
}
.about-text h2::after { /* Underline for left-aligned title */
    left: 0;
    transform: none;
}

.about-text p {
    margin-bottom: 18px;
    line-height: 1.8;
    color: var(--text-dark);
    font-size: 1.05em;
}

.about-text ul.why-choose-us {
    list-style: none;
    margin-bottom: 25px;
    padding-left: 0;
}

.about-text ul.why-choose-us li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-weight: 500;
}

.about-text ul.why-choose-us li::before {
    content: "\f00c"; /* Font Awesome checkmark icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 1.2em;
}

.about-image {
    display: flex; /* Flexbox to ensure image is centered if its smaller than container */
    justify-content: center;
    align-items: center;
}
.about-image img {
    width: 100%; /* Fill the column width */
    height: 450px; /* Fixed height to control aspect ratio */
    object-fit: cover; /* Crop image to cover the container */
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease;
}
.about-image img:hover {
    transform: scale(1.02);
}


/* Brochure Section - Download form */
.brochure-section {
    position: relative;
    padding: 120px 0;
    text-align: center;
    color: var(--text-light);
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
}

.brochure-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75); /* Darker overlay */
    z-index: 1;
}

.brochure-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.brochure-content h2 {
    font-family: var(--font-heading);
    font-size: 3em;
    margin-bottom: 25px;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 1.5px;
}

.brochure-content p {
    font-size: 1.15em;
    margin-bottom: 40px;
}

.brochure-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.brochure-form input {
    flex: 1;
    min-width: 280px;
    padding: 18px 25px;
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.15); /* Transparent input background */
    color: var(--text-light);
    font-size: 1.05em;
    outline: none;
    transition: border-color var(--transition-speed), background-color var(--transition-speed), box-shadow var(--transition-speed);
    cursor: none;
    font-weight: 300;
}

.brochure-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.brochure-form input:focus {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: #f7d165;
    box-shadow: 0 0 0 4px rgba(218, 165, 32, 0.3);
}

.brochure-form .btn {
    flex-shrink: 0;
    min-width: 200px;
}

/* Video Section - Embedding a YouTube video */
.video-section {
    background-color: var(--bg-light);
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio for video */
    height: 0;
    overflow: hidden;
    margin-bottom: 50px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 2px solid var(--light-border);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.get-quote-spacing {
    margin-top: 50px; 
    padding-bottom: 0;
}


/* Brands Section (Slider/Carousel) - Showcasing partners */
.brands-section {
    overflow: hidden; /* Hide excess content from slider */
    padding-bottom: 100px;
}

.brands-slider {
    position: relative;
    margin: 0 auto;
    padding: 0 60px; /* Space for navigation buttons */
    overflow: hidden; /* Essential for clipping excess content from slider */
}

.slider-wrapper {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.42, 0, 0.58, 1); /* Custom cubic-bezier for smoother slide */
    width: 100%; /* Ensures it fills the visible area of .brands-slider for correct slide width */
}

.slider-item {
    flex: 0 0 100%; /* Each item takes full width of the slider-wrapper */
    max-width: 100%; /* Ensures it doesn't grow beyond 100% */
    padding: 45px; /* Increased padding for more breathing room */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px; /* Increased minimum height for more consistent look */
    box-sizing: border-box; /* Include padding in height calculation */
    position: relative; /* Make .slider-item the positioning context for quote characters */
}

.slider-item img {
    max-width: 150px; /* Slightly smaller logo for better balance */
    height: auto;
    margin-bottom: 25px; /* Spacing below logo */
    /* filter: grayscale(80%) brightness(0.8); -- Removed filter, logos are now full color by default */
    transition: filter var(--transition-speed);
}

/* New style for brand title in slider item */
.slider-item .brand-title {
    font-family: var(--font-primary); /* Using primary font for this title */
    font-size: 1.6em; /* Appropriate size for a secondary title */
    color: var(--secondary-color); /* Dark blue-gray for brand title */
    margin-bottom: 30px; /* Spacing below title */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.slider-item blockquote {
    font-family: var(--font-heading);
    font-size: 1.6em; /* Slightly larger quote text for readability */
    font-style: italic;
    color: var(--secondary-color); /* Dark blue-gray for quote text */
    margin: 0 auto 25px auto; /* Center the blockquote itself and add bottom margin */
    max-width: 900px;
    padding: 0; /* Remove internal padding from blockquote */
    line-height: 1.6; /* Improved line height for readability */
    text-align: center; /* Center the text content within the blockquote */
    position: relative; /* Make blockquote the positioning context for its quote characters */
}

/* Quote character styling (large '“' and '”') */
.slider-item blockquote .quote-char {
    font-family: "Font Awesome 5 Free"; /* Ensure Font Awesome is loaded and this font family exists */
    font-weight: 900; /* Important for solid glyphs */
    font-size: 8em; /* Adjusted size */
    color: var(--primary-color);
    opacity: 0.4; /* Increased opacity for visibility */
    position: absolute;
    line-height: 0.8;
    z-index: 0;
    pointer-events: none;
}

.slider-item blockquote .quote-start {
    top: -30px; /* Adjusted position */
    left: -40px; /* Position outside the main text block, within slider-item's padding */
    transform: rotate(5deg); /* Slight rotation for visual interest */
}
.slider-item blockquote .quote-end {
    bottom: -30px; /* Adjusted position */
    right: -40px; /* Position outside the main text block, within slider-item's padding */
    transform: rotate(-5deg);
}


.slider-item cite {
    display: block;
    font-size: 1.1em;
    font-style: normal;
    font-weight: 600;
    color: var(--primary-color); /* Gold for citation */
    margin-top: 15px;
}

.slider-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none; /* Allows clicks to pass through to slider content */
    z-index: 5;
}

.slider-nav button {
    background-color: var(--primary-color);
    color: var(--accent-color);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: none;
    font-size: 1.5em;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-speed) ease;
    pointer-events: all; /* Makes buttons clickable */
}

.slider-nav button:hover {
    background-color: #e5b331;
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Gallery Section - Image grid for property showcase */
.gallery-full {
    background-color: var(--bg-light);
}
.image-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.image-grid-full img {
    width: 100%;
    height: 280px; /* Fixed height for consistent grid look */
    object-fit: cover; /* Ensures images fill space without distortion */
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    cursor: none;
}

.image-grid-full img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}


/* Plot Sizes Section - Available plot dimensions */
.plot-card {
    background-color: var(--text-light);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    padding-bottom: 30px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
    cursor: none;
    border: 1px solid var(--light-border);
}

.plot-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.plot-card .plot-header {
    background-color: var(--primary-color);
    padding: 15px;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 88%, 0% 100%); /* Ribbon effect for header */
    margin-bottom: 25px;
}

.plot-card .plot-label {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.2em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plot-card img {
    max-width: 85%;
    height: auto;
    display: block;
    margin: 0 auto 25px;
}

.plot-card h3 {
    font-family: var(--font-heading);
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 700;
}

.plot-card p {
    padding: 0 25px;
    margin-bottom: 25px;
    color: var(--text-dark);
    font-size: 1.05em;
    line-height: 1.6;
}


/* Villa Categories Section - Different villa types */
.villa-card {
    background-color: var(--bg-dark);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    text-align: center;
    overflow: hidden;
    position: relative;
    padding-bottom: 30px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease, border 0.4s ease;
    cursor: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.villa-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
}

.villa-card .villa-header {
    background-color: var(--primary-color);
    color: var(--accent-color);
    padding: 25px 0;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%); /* Envelope flap effect */
    margin-bottom: 60px; /* Creates overlap with body */
}

.villa-card .villa-type {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.villa-card .villa-price {
    display: block;
    font-size: 1.3em;
    font-weight: 600;
    line-height: 1.3;
}

.villa-card .villa-body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 50px 25px 25px;
    margin-top: -60px; /* Negative margin to create the overlap */
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.villa-card .villa-info {
    margin-bottom: 20px;
}

.villa-card .info-label {
    display: block;
    font-size: 1em;
    opacity: 0.8;
}

.villa-card .info-value {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--primary-color);
}

/* Contact Section - Ways to get in touch */
.contact-info-section {
    background-color: var(--bg-light);
}
.contact-info-section .grid-2-columns {
    align-items: flex-start;
}

.contact-details {
    padding: 35px;
    border-radius: var(--border-radius);
    background-color: var(--text-light);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--light-border);
}

.contact-details h2 {
    text-align: left;
    margin-bottom: 35px;
}
.contact-details h2::after {
    left: 0;
    transform: none;
}

.contact-details p {
    margin-bottom: 25px;
    color: var(--text-dark);
    font-size: 1.05em;
}

.contact-details .info-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}

.contact-details .info-item i {
    font-size: 1.6em;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-details .info-item p {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.05em;
}

.contact-details .info-item p a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
    cursor: none;
    font-weight: 500;
}

.contact-details .info-item p a:hover {
    text-decoration: underline;
    color: #e5b331;
}

.contact-details .social-icons {
    margin-top: 35px;
    display: flex;
    gap: 25px;
}

.contact-details .social-icons a {
    color: var(--secondary-color);
    font-size: 2em;
    transition: color var(--transition-speed), transform 0.3s ease;
    cursor: none;
}

.contact-details .social-icons a:hover {
    color: var(--primary-color);
    transform: translateY(-3px) scale(1.1);
}

.contact-form-container {
    background-color: var(--text-light);
    padding: 35px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--light-border);
}

.contact-form-container .form-title {
    font-family: var(--font-heading);
    font-size: 2.5em;
    color: var(--secondary-color);
    margin-bottom: 35px;
    text-align: center;
    font-weight: 700;
}

.contact-form .form-group {
    margin-bottom: 22px;
}

.contact-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 1.05em;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1em;
    color: var(--text-dark);
    background-color: var(--bg-light);
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
    cursor: none;
    font-weight: 300;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(218, 165, 32, 0.25);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form .btn {
    width: 100%;
    margin-top: 25px;
}

/* Contact Map - Google Maps embed */
.google-map-full {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-top: 80px;
    border: 4px solid var(--primary-color);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s ease-out;
}
.google-map-full:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
}
.google-map-full .section-title {
    margin-bottom: 40px;
    font-size: 2.8em;
    color: var(--secondary-color);
}
.map-embed-wrapper {
    position: relative;
    padding: 10px;
    background-color: var(--accent-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}
.map-embed-wrapper iframe {
    width: 100%;
    height: 600px;
    border: 0;
    border-radius: var(--border-radius);
}


/* Footer - Bottom section with branding and contact info */
.footer {
    background-color: var(--accent-color);
    color: var(--text-light);
    padding-top: 80px;
    padding-bottom: 50px;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    font-family: var(--font-heading);
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.footer-col p {
    margin-bottom: 12px;
    line-height: 1.8;
    font-size: 1.05em;
    opacity: 0.9;
}

.footer-col a {
    color: var(--text-light);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
    cursor: none;
}

.footer-col a:hover {
    color: var(--primary-color);
}

.footer-branding .logo img {
    /* If your footer logo is dark and needs to be white, uncomment this: */
    /* filter: brightness(0) invert(1); */
    /* But if your logo 'MREALTY_DIGITAL_Logo.png' is already white, it should be fine. */
}

.footer-branding .copyright {
    font-size: 0.95em;
    margin-top: 25px;
    opacity: 0.7;
    line-height: 1.6;
}

.find-us-map {
    display: inline-block;
    margin-top: 15px;
    font-weight: 600;
    text-decoration: underline;
}

.footer-col .social-icons {
    margin-top: 25px;
    display: flex;
    gap: 25px;
}

.footer-col .social-icons a {
    font-size: 1.8em;
    color: var(--text-light);
    transition: color var(--transition-speed) ease, transform 0.3s ease;
    cursor: none;
}

.footer-col .social-icons a:hover {
    color: var(--primary-color);
    transform: translateY(-3px) scale(1.1);
}


/* Floating Buttons (Call & WhatsApp) - Always visible for quick contact */
.floating-btn {
    position: fixed;
    bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    color: var(--text-light);
    font-size: 2em;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: none;
    z-index: 100;
    border: 2px solid rgba(255,255,255,0.3); /* Subtle white border */
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

.floating-btn.call-btn {
    background-color: #25D366; /* WhatsApp Green for call button */
    left: 25px;
    right: auto;
}

.floating-btn.call-btn i {
    transform: rotate(15deg); /* Slight rotation for phone icon */
}

.floating-btn.whatsapp-btn {
    background-color: #075E54; /* Darker WhatsApp Green */
    right: 25px;
    left: auto;
}

/* Pulse animation for floating buttons to draw attention */
@keyframes pulse-call {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 25px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}
.floating-btn.animate-pulse-call {
    animation: pulse-call 2s infinite;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(7, 94, 84, 0.7);
    }
    70% {
        box-shadow: 0 0 0 25px rgba(7, 94, 84, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(7, 94, 84, 0);
    }
}
.floating-btn.animate-pulse-whatsapp {
    animation: pulse-whatsapp 2s infinite 0.5s; /* Staggered animation */
}


/* Responsive Design - Adjustments for various screen sizes */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    .section-title {
        font-size: 2.8em;
        margin-bottom: 60px;
    }
    .hero-content {
        max-width: 500px;
        min-width: 350px;
        width: 60%;
        padding: 25px;
    }
    .hero-title {
        font-size: 3.8em;
    }
    .hero-subtitle {
        font-size: 1.5em;
    }
    .price-value {
        font-size: 2.8em;
    }
    .feature-item {
        flex: 1 1 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
    .grid-3 {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }
    .grid-4 {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .about-image img {
        height: 400px;
    }
    .brochure-content h2 {
        font-size: 2.5em;
    }
    .slider-item blockquote {
        font-size: 1.3em;
        padding: 0 20px; /* Reduced padding for blockquote on smaller screens */
    }
    .slider-item blockquote .quote-char {
        font-size: 6em; /* Reduced size of quote characters */
        top: -30px;
        left: -15px;
    }
    .slider-item blockquote .quote-end {
        bottom: -30px;
        right: -15px;
    }
    .slider-nav button {
        width: 40px;
        height: 40px;
        font-size: 1.2em;
    }
    .map-embed-wrapper iframe {
        height: 500px;
    }
}


@media (max-width: 768px) {
    .section-padding {
        padding: 80px 0;
    }
    .section-title {
        font-size: 2.2em;
        margin-bottom: 50px;
    }
    .header-content {
        flex-wrap: wrap;
        justify-content: center;
        position: relative;
    }

    .logo {
        width: 100%;
        justify-content: center;
        margin-bottom: 0;
    }
    
    .logo img {
        height: 40px;
    }
    
    .logo-text {
        font-size: 1.4em;
    }

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        background-color: var(--accent-color);
        position: absolute;
        top: 80px; /* Position below header */
        left: 0;
        right: 0;
        padding: 20px 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        max-height: 0; /* Hidden state for animation */
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        z-index: 999;
    }

    .nav-menu.active {
        display: flex;
        max-height: 400px; /* Visible state (adjust based on menu items) */
    }

    .nav-menu ul {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .nav-menu a {
        padding: 10px 0;
        width: 85%;
        margin: 0 auto;
        font-size: 1em;
    }
    .nav-menu a.active {
        transform: none; /* No lift effect on active for mobile nav items */
    }

    .hamburger {
        display: flex; /* Visible on mobile */
        position: absolute;
        right: 20px;
        top: 25px;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero-section {
        height: auto;
        min-height: 80vh;
        padding: 100px 0 60px;
        justify-content: center;
        text-align: center;
    }
    .hero-content {
        margin-right: 0;
        max-width: 100%;
        width: 90%;
        align-items: center;
        padding: 25px;
        min-width: unset;
    }
    .hero-title, .hero-subtitle, .hero-description {
        text-align: center;
    }
    .hero-title::after {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
    .hero-description-highlight {
        align-self: center;
    }
    .price-info {
        width: auto;
        margin: 0 auto 25px;
    }
    .features-highlight {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    .feature-item {
        width: 90%;
        max-width: 350px;
        flex: 0 0 auto;
    }
    .hero-book-button {
        align-self: center;
    }

    .grid-3, .grid-4 {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 25px;
    }
    
    .grid-2-columns {
        grid-template-columns: 1fr; /* Stack columns vertically */
        gap: 40px;
    }

    .about-text h2::after,
    .contact-details h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .about-text h2, .contact-details h2 {
        text-align: center;
    }
    .about-image img {
        height: 350px;
    }

    .brochure-content h2 {
        font-size: 2.2em;
    }
    .brochure-form {
        flex-direction: column;
    }
    .brochure-form input,
    .brochure-form .btn {
        min-width: unset;
        width: 90%;
        margin: 0 auto;
    }
    .brochure-form input { margin-bottom: 15px; } /* Add spacing between stacked inputs */

    .slider-item blockquote {
        font-size: 1.1em;
        padding: 0 20px;
    }
    .slider-item blockquote .quote-char {
        font-size: 6em;
        top: -30px;
        left: -15px;
    }
    .slider-item blockquote .quote-end {
        bottom: -30px;
        right: -15px;
    }
    .slider-nav button {
        width: 40px;
        height: 40px;
        font-size: 1.2em;
    }

    .image-grid-full {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }
    .image-grid-full img {
        height: 120px;
    }

    .plot-card, .villa-card {
        padding-bottom: 20px;
    }
    .plot-card h3 {
        font-size: 1.7em;
    }
    .villa-card .villa-type {
        font-size: 1.5em;
    }
    .villa-card .villa-price {
        font-size: 1.1em;
    }
    .villa-card .info-value {
        font-size: 1.8em;
    }

    .contact-form-container {
        padding: 25px;
    }
    .contact-form-container .form-title {
        font-size: 2em;
    }
    .contact-form input, .contact-form textarea, .contact-form .btn {
        width: 95%;
        margin: 0 auto 15px;
    }
    .contact-form .btn { margin-top: 20px; }

    .google-map-full iframe {
        height: 350px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col {
        align-items: center;
    }
    .footer-col h3 {
        text-align: center;
    }
    .footer-col .social-icons {
        justify-content: center;
    }

    /* Custom Cursor Hide on smaller screens (CSS Media Query for this is already effective) */
    .custom-cursor-dot,
    .custom-cursor-circle {
        display: none !important; /* Force hide custom cursor on mobile */
    }
    body {
        cursor: auto; /* Show default cursor on mobile */
    }
    /* Floating buttons repositioning for mobile */
    .floating-btn {
        width: 55px;
        height: 55px;
        font-size: 1.8em;
        bottom: 20px;
    }
    .floating-btn.call-btn { left: 20px; right: auto; }
    .floating-btn.whatsapp-btn { right: 20px; left: auto; }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    .section-padding {
        padding: 60px 0;
    }
    .section-title {
        font-size: 1.8em;
        margin-bottom: 40px;
    }
    .hero-title {
        font-size: 2.2em;
    }
    .hero-subtitle {
        font-size: 1.1em;
    }
    .price-value {
        font-size: 2.2em;
    }
    .feature-item {
        padding: 12px 18px;
    }
    .feature-item .percentage, .feature-item .icon-text i {
        font-size: 2em;
    }
    .feature-item .feature-text {
        font-size: 0.9em;
    }
    .btn {
        padding: 12px 25px;
        font-size: 0.95em;
    }
    .brochure-content h2 {
        font-size: 1.8em;
    }
    .about-image img {
        height: 280px;
    }
    .image-grid-full {
        grid-template-columns: 1fr; /* Single column on very small screens */
    }
    .image-grid-full img {
        height: 180px;
    }
    .plot-card h3 {
        font-size: 1.4em;
    }
    .villa-card .villa-type {
        font-size: 1.2em;
    }
    .villa-card .villa-price {
        font-size: 0.9em;
    }
    .villa-card .info-value {
        font-size: 1.5em;
    }
    .google-map-full iframe {
        height: 280px;
    }
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.6em;
    }
}


/* Animation Classes - Used with JavaScript to reveal content on scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(25px); /* Default slight lift */
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smooth cubic-bezier transition */
}

.animate-on-scroll.animated { /* This class is added by JS when element enters viewport */
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Specific animation types - Override default transform */
.animate-on-scroll.fade-in {
    transform: translateY(0); /* Simple fade, no movement */
}

.animate-on-scroll.fade-in-up {
    transform: translateY(60px); /* Moves up from below */
}

.animate-on-scroll.fade-in-down {
    transform: translateY(-60px); /* Moves down from above */
}

.animate-on-scroll.fade-in-left {
    transform: translateX(-60px); /* Moves right from left */
}

.animate-on-scroll.fade-in-right {
    transform: translateX(60px); /* Moves left from right */
}

.animate-on-scroll.zoom-in {
    transform: scale(0.85); /* Zooms in from smaller size */
}

/* Delay for sequential animations within a group */
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }
.delay-5 { transition-delay: 0.75s; }
.delay-6 { transition-delay: 0.9s; }