/* --- Global Variables & Base Styles --- */
:root {
    /* Updated Color Palette for a more premium, modern feel */
    --primary-color: #0056b3; /* Deeper, richer blue (similar to royal blue) */
    --secondary-color: #008c9e; /* Teal-Cyan for contrast */
    --accent-color: #ffda6a; /* Soft gold/amber for highlights */
    --dark-text: #1a2c3d; /* Very dark almost black for main text */
    --light-text: #4a6572; /* Muted dark grey for body text */
    --extra-light-bg: #f8faff; /* Very light, soft blue background */
    --bg-light: #eff3f8; /* Slightly deeper light background */
    --bg-medium: #e0e7ed; /* Medium light for section separation */
    --bg-dark: #2c3e50; /* Dark background for footer, etc. */
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Softer shadow */
    --hover-shadow: 0 18px 45px rgba(0, 0, 0, 0.15); /* Slightly less intense hover shadow */
    --border-radius-lg: 20px; /* Slightly smaller border radius */
    --border-radius-md: 12px;
    --border-radius-sm: 6px;
    --transition-speed: 0.4s; /* Slightly faster transitions for snappier feel */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1); /* Professional, impactful animation curve */
}

body {
    /* New Font Combination */
    font-family: 'Poppins', sans-serif; /* Clean, modern sans-serif for body */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: var(--extra-light-bg);
    color: var(--light-text);
    line-height: 1.7; /* Slightly reduced line height for compactness */
    scroll-behavior: smooth;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-size: 1.05em; /* Slightly smaller base font size */
}

/* Global scrollbar styling (retained) */
::-webkit-scrollbar {
    width: 10px; /* Thinner scrollbar */
}
::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    border: 2px solid var(--bg-light); /* Thinner border */
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--secondary-color), var(--primary-color));
}

.container {
    max-width: 1280px; /* Slightly smaller max-width */
    margin: 0 auto;
    padding: 0 30px; /* Reduced padding */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* --- Utility Classes --- */
.bg-light {
    background-color: var(--bg-light);
}
.bg-dark {
    background-color: var(--bg-dark);
}

/* --- Section Titles & Subtitles --- */
.section-title {
    font-family: 'Merriweather', serif; /* Elegant serif for titles */
    text-align: center;
    font-size: 4em; /* Reduced size */
    margin-bottom: 20px;
    color: var(--dark-text);
    position: relative;
    padding-bottom: 20px;
    letter-spacing: -1px; /* Tighter letter spacing for serif */
    font-weight: 900; /* Extra bold */
    text-shadow: 2px 2px 5px rgba(0,0,0,0.05); /* Slightly softer shadow */
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%) rotate(-5deg); /* Subtle rotation for dynamism */
    width: 150px; /* Reduced width */
    height: 7px; /* Reduced thickness */
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%); /* Stronger gradient */
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.25); /* Softer shadow */
}

.section-subtitle {
    text-align: center;
    font-size: 1.4em; /* Reduced size */
    color: var(--light-text);
    margin-bottom: 60px; /* Reduced space below */
    max-width: 900px; /* Slightly narrower */
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 400;
}

/* --- Buttons --- */
.btn-primary {
    background: linear-gradient(45deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 18px 38px; /* Reduced padding */
    border: none;
    border-radius: 50px; /* Slightly less rounded */
    transition: all var(--transition-speed) var(--ease-out-expo); /* Smoother, more impactful transition */
    display: inline-flex; /* Use flex for icon alignment */
    align-items: center;
    gap: 10px; /* Reduced space between text and icon */
    font-weight: 700;
    font-size: 1.1em; /* Reduced text size */
    box-shadow: 0 12px 30px rgba(0, 86, 179, 0.35); /* Softer shadow */
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 0.5px;
    text-transform: uppercase; /* More formal button text */
    cursor: pointer;
}

.btn-primary i {
    margin-left: 0; /* Reset default margin */
    transition: transform var(--transition-speed) ease;
}

.btn-primary:hover {
    transform: translateY(-8px) scale(1.01); /* Reduced lift and scale */
    box-shadow: 0 16px 40px rgba(0, 86, 179, 0.5); /* Softer shadow */
}

.btn-primary:hover i {
    transform: translateX(8px); /* Reduced movement */
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%; /* Start further left */
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3); /* Softer light overlay for hover effect */
    transform: skewX(-20deg); /* Skew for diagonal swipe effect */
    transition: all var(--transition-speed) var(--ease-out-expo);
    z-index: -1;
}

.btn-primary:hover::before {
    left: 120%; /* Swipe across completely */
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    padding: 15px 30px; /* Reduced padding */
    border: 2px solid var(--primary-color); /* Thinner border */
    border-radius: 40px; /* More rounded */
    transition: all var(--transition-speed) var(--ease-out-expo);
    display: inline-flex;
    align-items: center;
    gap: 12px; /* Reduced space */
    font-weight: 600;
    font-size: 1.05em; /* Slightly reduced text size */
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.08); /* Softer shadow */
    cursor: pointer;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    transition: all var(--transition-speed) var(--ease-out-expo);
    z-index: -1;
}

.btn-secondary:hover {
    color: white;
    transform: translateY(-4px); /* Reduced lift slightly */
    box-shadow: 0 8px 20px rgba(0, 86, 179, 0.2); /* Softer shadow */
    border-color: transparent;
}

.btn-secondary:hover::before {
    left: 0;
}

.btn-login {
    background: linear-gradient(90deg, var(--secondary-color), #00a0ae); /* New gradient for login */
    color: white;
    border: none;
    padding: 14px 28px; /* Reduced padding */
    border-radius: var(--border-radius-md); /* Use variable */
    cursor: pointer;
    transition: all var(--transition-speed) var(--ease-out-expo);
    font-weight: 600;
    margin-left: 25px; /* Reduced margin */
    box-shadow: 0 6px 18px rgba(0, 140, 158, 0.25); /* Softer shadow */
    position: relative;
    overflow: hidden;
}

.btn-login:hover {
    transform: translateY(-5px) scale(1.01); /* Reduced lift */
    box-shadow: 0 10px 25px rgba(0, 140, 158, 0.4); /* Softer shadow */
    background: linear-gradient(90deg, #00a0ae, var(--secondary-color)); /* Subtle reverse gradient */
}

.btn-login a {
    color: white;
}

/* --- Header --- */
.header {
    background-color: rgba(255, 255, 255, 0.98); /* Less transparent, more solid */
    padding: 20px 0; /* Reduced padding */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08); /* Softer shadow */
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    backdrop-filter: blur(12px); /* Slightly less blur for frosted glass */
    transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    padding: 12px 0; /* Reduced padding when scrolled */
    background-color: rgba(255, 255, 255, 0.99); /* Almost fully opaque when scrolled */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07); /* Softer shadow */
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    transition: transform 0.3s var(--ease-out-expo);
}
.logo:hover {
    transform: translateX(6px); /* Reduced slide */
}

.logo .main-logo {
    height: 60px; /* Reduced logo height */
    margin-right: 15px; /* Reduced margin */
}

.logo .company-name {
    font-family: 'Merriweather', serif; /* Serif for company name */
    font-size: 2.2em; /* Reduced size */
    font-weight: 900;
    color: var(--dark-text);
    white-space: nowrap;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.04); /* Softer shadow */
}

.nav .nav-links {
    display: flex;
    gap: 40px; /* Reduced space */
}

.nav-links a {
    font-weight: 600;
    color: var(--light-text);
    transition: color var(--transition-speed) ease, transform 0.3s var(--ease-out-expo);
    position: relative;
    padding: 8px 0; /* Reduced vertical padding for hover line */
    font-size: 0.98em; /* Slightly reduced font size */
    letter-spacing: 0.4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 0;
    height: 4px; /* Reduced thickness */
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width var(--transition-speed) var(--ease-out-expo);
    border-radius: 3px;
}

.nav-links a:hover {
    color: var(--primary-color);
    transform: translateY(-4px); /* Reduced lift */
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 7px; /* Reduced space between bars */
    padding: 8px; /* Reduced padding */
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius-sm);
    box-shadow: 0 3px 10px rgba(0,86,179,0.25); /* Softer shadow */
    transition: all 0.3s ease;
}
.menu-toggle:hover {
    box-shadow: 0 5px 12px rgba(0,86,179,0.35); /* Softer shadow */
    transform: scale(1.03); /* Reduced scale */
}

.menu-toggle .bar {
    width: 30px; /* Reduced width */
    height: 5px; /* Reduced thickness */
    background-color: white;
    border-radius: 5px; /* Slightly less rounded bar ends */
    transition: all 0.4s var(--ease-out-expo);
}

/* --- Hero Section (Slider) --- */
.hero-section {
    position: relative;
    width: 100%;
    height: 750px; /* Reduced height */
    overflow: hidden;
    margin-top: 90px; /* Adjust for fixed header */
    border-bottom: 12px solid var(--primary-color); /* Thinner border */
    background-color: var(--bg-light); /* Fallback */
    box-shadow: inset 0 -15px 30px rgba(0, 0, 0, 0.08); /* Softer inner shadow */
}

.hero-slider {
    display: flex;
    height: 100%;
    transition: transform 1s var(--ease-out-expo); /* Slightly faster, bouncier transition */
}

.slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    flex-shrink: 0;
    position: relative;
    opacity: 0;
    transition: opacity 1.5s var(--ease-out-expo); /* Slightly faster opacity fade */
}

.slide.active {
    opacity: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%); /* Slightly less intense gradient overlay */
}

.slide-content {
    position: relative;
    z-index: 1;
    max-width: 1000px; /* Narrower max-width */
    padding: 50px 70px; /* Reduced padding */
    animation: slideContentFadeIn 1.5s var(--ease-out-expo) forwards; /* Enhanced animation */
    background: rgba(255, 255, 255, 0.07); /* Slightly more transparent background for text */
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(12px); /* Slightly less blur */
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 12px 35px rgba(0,0,0,0.35); /* Softer shadow */
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4); /* Softer text shadow */
}

@keyframes slideContentFadeIn {
    from { opacity: 0; transform: translateY(80px); } /* Reduced initial translate */
    to { opacity: 1; transform: translateY(0); }
}

.slide-content .tagline {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2em; /* Reduced tagline size */
    font-weight: 600;
    color: var(--accent-color); /* Highlight color */
    letter-spacing: 3px; /* Reduced letter spacing */
    text-transform: uppercase;
    margin-bottom: 15px; /* Reduced margin */
    opacity: 0.9;
}

.slide-content h1 {
    font-family: 'Merriweather', serif;
    font-size: 6em; /* Reduced title size */
    margin-bottom: 30px; /* Reduced margin */
    text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.8); /* Slightly softer shadow */
    line-height: 1.1; /* Slightly larger line height for better readability */
    font-weight: 900;
    letter-spacing: -1.5px; /* Tighter for serif */
}

.slide-content p {
    font-size: 1.8em; /* Reduced paragraph size */
    margin-bottom: 50px; /* Reduced margin */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6); /* Softer text shadow */
    max-width: 800px; /* Narrower max-width */
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 50px; /* Reduced padding */
    z-index: 2;
}

.slider-nav button {
    background: rgba(255, 255, 255, 0.12); /* Slightly less transparent */
    border: 1px solid rgba(255, 255, 255, 0.25); /* Thinner border */
    border-radius: 50%;
    width: 60px; /* Reduced size */
    height: 60px;
    font-size: 1.8em; /* Reduced icon size */
    color: white;
    cursor: pointer;
    transition: background 0.3s var(--ease-out-expo), transform 0.3s var(--ease-out-expo), border-color 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(15px); /* Reduced blur */
    box-shadow: 0 6px 20px rgba(0,0,0,0.35); /* Softer shadow */
}

.slider-nav button:hover {
    background: rgba(0, 86, 179, 0.7); /* Slightly less opaque */
    transform: scale(1.15); /* Reduced scale */
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(0, 86, 179, 0.5); /* Softer shadow */
}

.dots-container {
    position: absolute;
    bottom: 40px; /* Slightly higher */
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 15px; /* Reduced space between dots */
}

.dot {
    width: 16px; /* Reduced size */
    height: 16px;
    background-color: rgba(255, 255, 255, 0.5); /* Slightly more transparent */
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s var(--ease-out-expo), border 0.3s ease;
    border: 2px solid transparent; /* Thinner border */
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.4); /* Reduced scale */
    border-color: white;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.25); /* Softer ring effect */
}

/* --- Section Padding --- */
section {
    padding: 100px 0; /* Reduced consistent padding */
    position: relative;
    overflow: hidden;
    z-index: 1; /* Ensure content is above any background patterns */
}

/* --- Reveal Animation (Scroll) --- */
.reveal {
    opacity: 0;
    transform: translateY(80px); /* Reduced initial translate */
    transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo); /* Slightly faster */
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-item {
    opacity: 0;
    transform: translateY(50px); /* Reduced initial translate for items */
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo); /* Slightly faster */
}

.reveal.active .reveal-item {
    opacity: 1;
    transform: translateY(0);
    transition-delay: var(--delay); /* Staggered animation */
}


/* --- Catalog Section --- */
.catalog-section {
    background: linear-gradient(to bottom, var(--extra-light-bg) 0%, var(--bg-light) 100%);
    padding-bottom: 150px; /* Reduced bottom padding */
    position: relative;
}
.catalog-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%230056b3" fill-opacity="0.04"%3E%3Cpath d="M0 0h30v30H0V0zm30 30h30v30H30V30z"/%3E%3C/g%3E%3C/svg%3E'); /* Smaller, softer grid pattern */
    background-size: 60px 60px;
    opacity: 0.08; /* Slightly less opaque */
    z-index: 0;
    animation: backgroundPan 60s linear infinite; /* Subtle pan animation */
}

@keyframes backgroundPan {
    from { background-position: 0 0; }
    to { background-position: 60px 60px; }
}


.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Smaller min column */
    gap: 50px; /* Reduced gap */
    position: relative;
    z-index: 1;
}

.property-card {
    background-color: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    text-align: left;
    transition: transform var(--transition-speed) var(--ease-out-expo), box-shadow var(--transition-speed) ease;
    cursor: pointer;
    border: 1px solid #ededed; /* Finer border */
    position: relative;
    z-index: 1;
    will-change: transform, box-shadow;
}

.property-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 86, 179, 0.08) 0%, transparent 70%); /* Slightly less intense radial glow */
    opacity: 0;
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
    z-index: 0;
}

.property-card:hover::before {
    opacity: 1;
    transform: scale(1.08); /* Reduced scale */
}

.property-card:hover {
    transform: translateY(-20px) rotateZ(-0.8deg); /* Reduced lift and subtle rotation */
    box-shadow: var(--hover-shadow);
}

.property-card img {
    width: 100%;
    height: 250px; /* Reduced image height */
    object-fit: cover;
    display: block;
    transition: transform var(--transition-speed) ease;
}

.property-card:hover img {
    transform: scale(1.1) rotateZ(0.8deg); /* Reduced zoom and subtle counter-rotation */
}

.card-content {
    padding: 30px; /* Reduced padding */
    position: relative;
    z-index: 2;
}

.card-content h3 {
    font-family: 'Merriweather', serif;
    font-size: 2.8em; /* Reduced card titles */
    margin-bottom: 15px; /* Reduced margin */
    color: var(--dark-text);
    transition: color 0.3s ease;
    font-weight: 800;
}

.property-card:hover .card-content h3 {
    color: var(--primary-color);
}

.card-content p {
    font-size: 1.1em; /* Reduced font size */
    color: var(--light-text);
    margin-bottom: 30px; /* Reduced margin */
    line-height: 1.6;
}

/* --- Info Sections --- */
.info-section {
    background-color: var(--bg-light);
    position: relative;
}

.info-section.bg-light {
    background-color: var(--bg-medium);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Smaller min column */
    gap: 45px; /* Reduced gap */
}

.info-box {
    background-color: white;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07); /* Softer shadow */
    padding: 40px; /* Reduced padding */
    text-align: center;
    transition: transform var(--transition-speed) var(--ease-out-expo), box-shadow var(--transition-speed) ease;
    border-bottom: 6px solid transparent; /* Thinner border for hover effect */
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(0, 86, 179, 0.04) 0%, transparent 60%); /* Directional radial gradient */
    transition: transform 0.5s var(--ease-out-expo), opacity 0.5s ease-out;
    opacity: 0;
    z-index: 0;
}

.info-box:hover::before {
    transform: scale(1.1) translateX(-8px) translateY(-8px); /* Reduced scale and shift */
    opacity: 1;
}

.info-box:hover {
    transform: translateY(-15px); /* Reduced lift */
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12); /* Softer shadow */
    border-bottom-color: var(--secondary-color);
}

.info-box .icon-wrapper {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    width: 80px; /* Reduced icon wrapper size */
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 30px; /* Reduced margin */
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
    box-shadow: 0 6px 18px rgba(0, 86, 179, 0.3); /* Softer shadow */
    position: relative;
    z-index: 1;
    overflow: hidden; /* For subtle inner glow on hover */
}

.info-box .icon-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.info-box:hover .icon-wrapper::after {
    opacity: 1;
}

.info-box:hover .icon-wrapper {
    transform: scale(1.1) rotateZ(4deg); /* Reduced scale and rotation */
    box-shadow: 0 10px 25px rgba(0, 86, 179, 0.45); /* Softer shadow */
}

.info-box .icon {
    font-size: 3.8em; /* Reduced icon size */
    color: white;
    transition: transform 0.3s ease;
}

.info-box:hover .icon {
    transform: scale(0.95) rotate(-8deg); /* Reduced shrink and rotate counter */
}

.info-box h3 {
    font-family: 'Merriweather', serif;
    font-size: 2.1em; /* Reduced info box titles */
    margin-bottom: 20px; /* Reduced margin */
    color: var(--dark-text);
    font-weight: 800;
}

.info-box p {
    color: var(--light-text);
    font-size: 1.05em; /* Reduced font size */
    line-height: 1.6;
}

/* --- Testimonials Section --- */
.testimonials-section {
    background-color: var(--bg-medium);
    padding-bottom: 150px; /* Reduced padding */
    position: relative;
    overflow: hidden;
}

.testimonial-slider-container {
    position: relative;
    max-width: 950px; /* Reduced width */
    margin: 0 auto;
    overflow: hidden;
    padding: 50px 70px; /* Reduced padding */
    background: linear-gradient(135deg, white 0%, var(--bg-light) 100%); /* Subtle gradient background */
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    border: 1px solid #e0e0e0; /* Thinner border */
    z-index: 1; /* For shadow over pattern */
}

.testimonial-slider {
    display: flex;
    transition: transform 1s var(--ease-out-expo); /* Slightly faster */
    height: auto;
}

.testimonial-slide {
    flex-shrink: 0;
    width: 100%;
    text-align: center;
    padding: 30px 50px; /* Reduced padding */
    opacity: 0;
    transition: opacity 1s ease-in-out; /* Slightly faster */
    position: absolute; /* Position absolute for overlapping slides */
    top: 0;
    left: 0;
    min-height: 250px; /* Reduced minimum height for slider to prevent jumps */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.testimonial-slide.active {
    opacity: 1;
    position: relative;
}

.quote-icon {
    font-size: 4.5em; /* Reduced size */
    color: var(--primary-color);
    margin-bottom: 25px; /* Reduced margin */
    opacity: 0.8;
    text-shadow: 1px 1px 4px rgba(0, 86, 179, 0.08); /* Softer shadow */
}

.testimonial-slide .quote {
    font-size: 1.6em; /* Reduced quotes size */
    font-style: italic;
    color: var(--dark-text);
    margin-bottom: 30px; /* Reduced margin */
    line-height: 1.5;
    max-width: 800px; /* Narrower max-width */
    font-weight: 500;
}

.author-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 25px; /* Reduced margin */
}

.author-avatar {
    width: 80px; /* Reduced avatar size */
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px; /* Reduced margin */
    border: 4px solid var(--secondary-color); /* Thinner border */
    box-shadow: 0 6px 15px rgba(0,0,0,0.15); /* Softer shadow */
    transition: transform 0.3s ease;
}
.author-avatar:hover {
    transform: scale(1.03); /* Reduced scale */
}

.author-name {
    font-weight: 700;
    font-size: 1.3em; /* Reduced font size */
    color: var(--dark-text);
    margin-bottom: 8px; /* Reduced margin */
}

.author-title {
    font-size: 1em; /* Reduced font size */
    color: var(--light-text);
}

.testimonial-dots-container {
    display: flex;
    justify-content: center;
    margin-top: 40px; /* Reduced margin */
    gap: 12px; /* Reduced gap */
}

.testimonial-dot {
    width: 14px; /* Reduced size */
    height: 14px;
    background-color: #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s var(--ease-out-expo);
    border: 2px solid transparent; /* Thinner border */
}

.testimonial-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.3); /* Reduced scale */
    border-color: white;
}


/* --- Contact Section --- */
.contact-section {
    background: linear-gradient(to top, var(--extra-light-bg) 0%, var(--bg-light) 100%);
    padding-bottom: 150px; /* Reduced padding */
    position: relative;
    overflow: hidden;
}
.contact-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%23008c9e" fill-opacity="0.04"%3E%3Cpath d="M0 0h30v30H0V0zm30 30h30v30H30V30z"/%3E%3C/g%3E%3C/svg%3E'); /* Smaller, softer teal grid pattern */
    background-size: 60px 60px;
    opacity: 0.08;
    transform: rotate(180deg);
    z-index: 0;
    animation: backgroundPan 60s linear infinite reverse; /* Reverse pan animation */
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.6fr; /* Slightly narrower form column */
    gap: 60px; /* Reduced gap */
    background: linear-gradient(160deg, white 0%, var(--bg-light) 100%); /* Subtle gradient background */
    padding: 60px; /* Reduced padding */
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15); /* Softer shadow */
    border-top: 8px solid var(--primary-color); /* Thinner, less prominent border */
    position: relative;
    z-index: 1;
}

.contact-form h3, .contact-info h3 {
    font-family: 'Merriweather', serif;
    font-size: 3em; /* Reduced titles */
    margin-bottom: 35px; /* Reduced margin */
    color: var(--dark-text);
    font-weight: 900;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px; /* Reduced space */
    font-size: 1.2em; /* Reduced info text */
    color: var(--light-text);
}

.info-item i {
    color: var(--primary-color);
    margin-right: 15px; /* Reduced margin */
    font-size: 1.8em; /* Reduced icons */
    line-height: 1.2;
    padding-top: 4px;
    transition: transform 0.3s ease;
}
.info-item:hover i {
    transform: scale(1.08) rotate(4deg); /* Reduced scale and rotate */
}

.info-item a {
    color: var(--primary-color);
    transition: color 0.3s ease, text-decoration 0.3s ease;
    font-weight: 500;
}

.info-item a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.form-group {
    margin-bottom: 25px; /* Reduced margin */
}

.form-group label {
    display: block;
    margin-bottom: 12px; /* Reduced margin */
    font-weight: 700;
    color: var(--dark-text);
    font-size: 1.1em; /* Reduced font size */
    letter-spacing: 0.4px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="subject"],
.form-group textarea {
    width: calc(100% - 24px); /* Adjust for padding and border */
    padding: 16px 12px; /* Reduced padding */
    border: 1px solid #c0c0c0; /* Softer border */
    border-radius: var(--border-radius-md); /* More rounded inputs */
    font-family: 'Poppins', sans-serif;
    font-size: 1em; /* Reduced font size */
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    background-color: #fcfdfe; /* Slightly off-white */
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 5px rgba(0, 86, 179, 0.18); /* Softer focus */
    outline: none;
    background-color: white; /* Clear background on focus */
}

.form-group textarea {
    resize: vertical;
    min-height: 150px; /* Reduced textarea height */
}

.social-media {
    margin-top: 35px; /* Reduced margin */
    margin-bottom: 35px; /* Reduced margin */
    display: flex;
    gap: 18px; /* Reduced gap */
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 55px; /* Reduced size */
    height: 55px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    font-size: 1.8em; /* Reduced icon size */
    transition: all 0.3s var(--ease-out-expo);
    box-shadow: 0 6px 18px rgba(0, 86, 179, 0.3); /* Softer shadow */
}

.social-media a:hover {
    transform: translateY(-8px) scale(1.1); /* Reduced dynamic effect */
    box-shadow: 0 10px 25px rgba(0, 86, 179, 0.5); /* Softer shadow */
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
}

.map-container {
    margin-top: 30px; /* Reduced margin */
    border-radius: var(--border-radius-md); /* Slightly less rounded */
    overflow: hidden;
    border: 3px solid #eee; /* Thinner border */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08); /* Softer shadow */
}

.map-container iframe {
    border-radius: var(--border-radius-md);
}


/* --- Footer --- */
.footer {
    background-color: var(--bg-dark);
    color: white;
    padding: 80px 0 40px; /* Reduced padding */
    font-size: 1em; /* Reduced font size */
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%234A6572" fill-opacity="0.12"%3E%3Cpath d="M0 0h30v30H0V0zm30 30h30v30H30V30z"/%3E%3C/g%3E%3C/svg%3E'); /* Smaller, softer darker subtle pattern for footer */
    background-size: 60px 60px;
    opacity: 0.4;
    z-index: 0;
    animation: backgroundPan 70s linear infinite reverse; /* Slower, reverse pan */
}


.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Smaller min column */
    gap: 50px; /* Reduced space */
    margin-bottom: 50px; /* Reduced margin */
    position: relative;
    z-index: 1;
}

.footer-section {
    padding: 0 15px; /* Reduced padding */
}

.footer-heading {
    font-family: 'Merriweather', serif;
    font-size: 2em; /* Reduced size */
    margin-bottom: 25px; /* Reduced margin */
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 12px; /* Reduced padding */
    font-weight: 800;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px; /* Reduced width */
    height: 4px; /* Reduced thickness */
    background-color: var(--primary-color);
    border-radius: 3px;
}

.footer-section p {
    margin-bottom: 15px; /* Reduced margin */
    color: #e8e8e8; /* Slightly lighter white */
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 12px; /* Reduced margin */
}

.footer-section ul li a {
    color: #e8e8e8;
    transition: color 0.3s ease, transform 0.3s var(--ease-out-expo);
    display: inline-block;
    position: relative;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
    transform: translateX(8px); /* Reduced slide */
}

.footer-social-media {
    margin-top: 25px; /* Reduced margin */
    display: flex;
    gap: 15px; /* Reduced gap */
}

.footer-social-media a {
    background: rgba(255, 255, 255, 0.08); /* Slightly more transparent */
    color: white;
    width: 45px; /* Reduced size */
    height: 45px;
    font-size: 1.3em; /* Reduced font size */
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.footer-social-media a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px); /* Reduced lift */
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 30px; /* Reduced padding */
    text-align: center;
    color: #c0c0c0;
    margin-top: 30px; /* Reduced margin */
    position: relative;
    z-index: 1;
    font-size: 0.9em; /* Reduced font size */
}

.developer-credit {
    margin-top: 10px; /* Reduced margin */
    font-size: 0.85em; /* Reduced font size */
    font-style: italic;
    color: #a0a0a0;
}

/* --- Scroll To Top Button --- */
#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 30px; /* Reduced bottom position */
    right: 30px; /* Reduced right position */
    z-index: 999;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50%;
    width: 55px; /* Reduced size */
    height: 55px;
    font-size: 1.8em; /* Reduced icon size */
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 86, 179, 0.35); /* Softer shadow */
    transition: all 0.3s var(--ease-out-expo);
    display: flex;
    justify-content: center;
    align-items: center;
}

#scrollToTopBtn:hover {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-6px) scale(1.06); /* Reduced lift and scale */
    box-shadow: 0 12px 30px rgba(0, 86, 179, 0.5); /* Softer shadow */
}


/* --- Responsive Design (More aggressive scaling for mobile) --- */
@media (max-width: 1200px) {
    .hero-section {
        height: 680px; /* Further reduced height */
    }
    .slide-content {
        padding: 40px; /* Further reduced padding */
    }
    .slide-content h1 {
        font-size: 5.2em; /* Further reduced */
    }
    .slide-content p {
        font-size: 1.6em; /* Further reduced */
    }
    .section-title {
        font-size: 3.5em; /* Further reduced */
    }
    .section-subtitle {
        font-size: 1.2em; /* Further reduced */
    }
}

@media (max-width: 992px) {
    .header .container {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 12px; /* Reduced gap */
    }

    .logo .main-logo {
        height: 55px; /* Further reduced */
        margin-right: 12px;
    }

    .logo .company-name {
        font-size: 2em; /* Further reduced */
    }

    .nav {
        order: initial;
        width: auto;
        margin-top: 0;
        margin-left: auto;
    }

    .nav .nav-links {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); /* Softer shadow */
        border-radius: var(--border-radius-md); /* Reduced radius */
        padding: 25px 0; /* Reduced padding */
        transform: translateY(-10px); /* Reduced initial translate */
    }

    .nav-links.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
    }

    .nav-links li {
        width: 90%;
        text-align: center;
        margin-bottom: 12px; /* Reduced margin */
    }

    .nav-links a {
        padding: 15px 0; /* Reduced padding */
        font-size: 1.2em; /* Further reduced */
        border-bottom: 1px solid #f8f8f8; /* Softer border */
    }

    .btn-login {
        order: initial;
        margin-left: 0;
        padding: 12px 24px; /* Further reduced */
        font-size: 1em; /* Further reduced */
    }

    .menu-toggle {
        display: flex;
        order: initial;
        margin-left: 20px; /* Reduced margin */
    }

    .hero-section {
        height: 600px; /* Further reduced */
        margin-top: 80px; /* Reduced margin-top */
    }

    .slide-content h1 {
        font-size: 4.5em; /* Further reduced */
    }

    .slide-content p {
        font-size: 1.4em; /* Further reduced */
    }

    .section-title {
        font-size: 3.2em; /* Further reduced */
    }
    .section-title::after {
        width: 130px; /* Reduced width */
    }

    .section-subtitle {
        font-size: 1.2em; /* Adjusted */
    }

    .property-grid, .info-grid, .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        padding: 50px; /* Reduced padding */
        gap: 50px; /* Reduced gap */
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-social-media, .social-media {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 0.95em; /* Overall smaller base font size */
    }
    .hero-section {
        height: 520px; /* More significant reduction */
    }

    .slide-content h1 {
        font-size: 3.8em; /* Significantly reduced */
    }

    .slide-content p {
        font-size: 1.2em; /* Significantly reduced */
    }
    .slide-content .tagline {
        font-size: 1.1em; /* Significantly reduced */
    }

    .slider-nav button {
        width: 48px; /* Further reduced */
        height: 48px;
        font-size: 1.6em; /* Further reduced */
    }
    .dots-container {
        gap: 10px; /* Further reduced */
        bottom: 25px; /* Further reduced */
    }
    .dot {
        width: 12px; /* Further reduced */
        height: 12px;
    }

    section {
        padding: 80px 0; /* Further reduced section padding */
    }

    .section-title {
        font-size: 2.8em; /* Significantly reduced */
    }
    .section-title::after {
        width: 100px; /* Reduced width */
    }

    .section-subtitle {
        font-size: 1.1em; /* Further reduced */
        margin-bottom: 50px;
    }

    .property-card .card-content h3 {
        font-size: 2.4em; /* Further reduced */
    }
    .property-card img {
        height: 200px; /* Further reduced */
    }
    .card-content {
        padding: 25px; /* Further reduced */
    }

    .info-box h3 {
        font-size: 1.8em; /* Further reduced */
    }
    .info-box .icon-wrapper {
        width: 70px; /* Further reduced */
        height: 70px;
        margin-bottom: 25px;
    }
    .info-box .icon {
        font-size: 3.5em; /* Further reduced */
    }
    .info-box p {
        font-size: 1em; /* Further reduced */
    }

    .testimonial-slide .quote {
        font-size: 1.4em; /* Further reduced */
    }
    .quote-icon {
        font-size: 3.8em; /* Further reduced */
    }
    .author-avatar {
        width: 75px; /* Further reduced */
        height: 75px;
    }
    .author-name {
        font-size: 1.2em;
    }
    .author-title {
        font-size: 0.9em;
    }

    .contact-content {
        padding: 35px; /* Further reduced */
        gap: 35px; /* Further reduced */
    }
    .contact-form h3, .contact-info h3 {
        font-size: 2.4em; /* Further reduced */
    }

    .info-item {
        font-size: 1em; /* Further reduced */
        margin-bottom: 20px;
    }
    .info-item i {
        font-size: 1.5em; /* Further reduced */
        margin-right: 12px;
    }
    .form-group label {
        font-size: 1em; /* Further reduced */
    }
    .form-group input, .form-group textarea {
        padding: 12px 10px; /* Further reduced */
        font-size: 0.95em;
    }
    .social-media a {
        width: 48px; /* Further reduced */
        height: 48px;
        font-size: 1.6em;
        gap: 15px;
    }
    .map-container {
        height: 250px; /* Further reduced */
    }

    .footer {
        padding: 60px 0 30px; /* Further reduced */
    }
    .footer-content {
        gap: 40px; /* Further reduced */
    }
    .footer-heading {
        font-size: 1.6em; /* Further reduced */
    }
    .footer-heading::after {
        width: 50px; /* Further reduced */
        height: 3px;
    }
    .footer-section p {
        font-size: 0.95em;
    }
    .footer-section ul li a {
        font-size: 0.9em;
    }
    .footer-social-media a {
        width: 40px; /* Further reduced */
        height: 40px;
        font-size: 1.2em;
    }
    #scrollToTopBtn {
        width: 48px; /* Further reduced */
        height: 48px;
        font-size: 1.6em;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px; /* Minimal padding */
    }
    .hero-section {
        height: 450px; /* Maximum reduction */
        margin-top: 70px; /* Minimal margin */
    }
    .slide-content {
        padding: 25px; /* Minimal padding */
    }
    .slide-content h1 {
        font-size: 3em; /* Very small hero title */
        margin-bottom: 20px;
    }
    .slide-content p {
        font-size: 1em; /* Very small hero paragraph */
        margin-bottom: 40px;
    }
    .slide-content .tagline {
        font-size: 0.9em; /* Very small tagline */
    }
    .btn-primary {
        padding: 14px 28px; /* Smaller buttons */
        font-size: 0.9em;
    }
    .slider-nav button {
        width: 40px; /* Smallest slider buttons */
        height: 40px;
        font-size: 1.3em;
        padding: 0 8px;
    }
    .logo .company-name {
        font-size: 1.8em; /* Smaller logo text */
    }
    .logo .main-logo {
        height: 45px; /* Smallest logo */
    }
    .menu-toggle {
        gap: 6px; /* Smaller gaps */
        padding: 6px;
    }
    .menu-toggle .bar {
        width: 25px; /* Thinner bars */
        height: 4px; /* Thinner bars */
    }

    section {
        padding: 60px 0; /* Minimal section padding */
    }
    .section-title {
        font-size: 2.2em; /* Very small section titles */
        padding-bottom: 15px;
    }
    .section-title::after {
        width: 80px; /* Smallest underline */
        height: 5px;
    }
    .section-subtitle {
        font-size: 0.95em; /* Smallest subtitle */
        margin-bottom: 40px;
    }
    .property-grid {
        gap: 30px; /* Smaller gaps */
    }
    .property-card .card-content h3 {
        font-size: 2em; /* Smaller card titles */
    }
    .property-card img {
        height: 180px; /* Smallest image height */
    }
    .card-content {
        padding: 20px; /* Smallest padding */
    }
    .btn-secondary {
        padding: 12px 24px;
        font-size: 0.9em;
    }

    .info-box {
        padding: 30px; /* Smaller info box padding */
    }
    .info-box h3 {
        font-size: 1.6em; /* Smaller info box titles */
    }
    .info-box .icon-wrapper {
        width: 60px; /* Smallest icon wrapper */
        height: 60px;
        margin-bottom: 20px;
    }
    .info-box .icon {
        font-size: 3em; /* Smallest icons */
    }
    .info-box p {
        font-size: 0.9em;
    }

    .testimonial-slide {
        padding: 20px 30px; /* Smaller testimonial padding */
        min-height: 200px;
    }
    .testimonial-slide .quote {
        font-size: 1.2em; /* Smaller quotes */
        margin-bottom: 25px;
    }
    .quote-icon {
        font-size: 3.2em; /* Smaller quote icon */
    }
    .author-avatar {
        width: 65px; /* Smaller avatar */
        height: 65px;
    }
    .author-name {
        font-size: 1.1em;
    }

    .contact-content {
        padding: 25px; /* Smallest contact content padding */
        gap: 25px;
    }
    .contact-form h3, .contact-info h3 {
        font-size: 2em; /* Smaller contact titles */
        margin-bottom: 25px;
    }
    .info-item {
        font-size: 0.9em; /* Smaller info item text */
        margin-bottom: 15px;
    }
    .info-item i {
        font-size: 1.4em; /* Smaller info item icon */
    }
    .form-group label {
        font-size: 0.9em; /* Smaller form labels */
        margin-bottom: 10px;
    }
    .form-group input, .form-group textarea {
        padding: 10px; /* Smallest input padding */
        font-size: 0.85em;
    }
    .form-group textarea {
        min-height: 120px; /* Smaller textarea */
    }
    .social-media a {
        width: 40px; /* Smallest social icons */
        height: 40px;
        font-size: 1.4em;
    }
    .map-container {
        height: 200px; /* Smallest map height */
    }

    .footer {
        padding: 40px 0 20px; /* Smallest footer padding */
    }
    .footer-content {
        gap: 30px; /* Smallest gaps */
    }
    .footer-heading {
        font-size: 1.4em; /* Smallest footer headings */
        margin-bottom: 20px;
    }
    .footer-heading::after {
        width: 40px; /* Smallest footer underline */
    }
    .footer-section p {
        font-size: 0.85em;
    }
    .footer-section ul li a {
        font-size: 0.8em;
    }
    .footer-social-media a {
        width: 35px; /* Smallest footer social icons */
        height: 35px;
        font-size: 1.1em;
    }
    .footer-bottom {
        padding-top: 20px;
        margin-top: 20px;
        font-size: 0.8em;
    }
    .developer-credit {
        font-size: 0.75em;
    }
    #scrollToTopBtn {
        width: 40px; /* Smallest scroll button */
        height: 40px;
        font-size: 1.4em;
        bottom: 15px;
        right: 15px;
    }

    /* Mobile Nav Toggle Icon Animation Adjustments */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(10px) rotate(45deg); /* Adjusted for smaller bars */
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg); /* Adjusted for smaller bars */
    }
}