/* Font Imports */
@import url(https://db.onlinewebfonts.com/c/d4fbc8f822044048ba21fa149e097ca4?family=Finland+Rounded);
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

/* --------------------------------------------------
   CSS Variables & Design Tokens
-------------------------------------------------- */
:root {
    /* Brand Colors */
    --primary-color: #405948;
    --primary-dark: #2a3b30;
    --primary-light: #eff3f0;
    --accent-color: #d1b584; /* Warm Gold */
    --accent-dark: #b89a69;
    
    /* Neutral Palette */
    --bg-color: #fafbfc;
    --bg-light: #f3f5f3;
    --text-color: #2b352e;
    --text-muted: #616e66;
    --border-color: #e2e7e3;
    --card-bg: #ffffff;
    
    /* Layout & Styling Values */
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --font-secondary: 'Inter', system-ui, sans-serif;
    --font-heading: 'Finland Rounded', 'Inter', sans-serif;
    --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
    --border-radius-sm: 4px;
    --border-radius-md: 12px;
    --border-radius-lg: 24px;
    --box-shadow-subtle: 0 4px 20px rgba(64, 89, 72, 0.05);
    --box-shadow-hover: 0 16px 40px rgba(64, 89, 72, 0.12);
    
    /* Container Width */
    --max-width: 1200px;
}

/* --------------------------------------------------
   Global Reset & Typographic Basics
-------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 18px; /* Increased from 16px for larger, more proportional desktop typography */
}

@media (max-width: 768px) {
    html {
        font-size: 16px; /* Fall back to 16px on tablets/mobile viewports */
    }
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .hero-title, .section-title, .about-title, .about-subtitle, .page-banner-title {
    font-family: var(--font-heading);
}

.stat-number, .badge-num, .stat-suffix, .property-price, .page-banner-tag, .section-tag {
    font-family: var(--font-mono);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    border: none;
    background: none;
    outline: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: var(--border-radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* --------------------------------------------------
   Reusable Utilities & Layouts
-------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 8rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2-col {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3-col {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4-col {
    grid-template-columns: repeat(4, 1fr);
}

.alignment-center {
    align-items: center;
}

.alignment-start {
    align-items: start;
}

.gap-lg {
    gap: 3rem;
}

.gap-md {
    gap: 2rem;
}

.img-responsive {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-rounded {
    border-radius: var(--border-radius-lg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2.2rem;
    font-size: 1.05rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: var(--font-heading);
    letter-spacing: 0.8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-color);
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(64, 89, 72, 0.15);
}

.btn-outline {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* Section Header Typography */
.section-header {
    margin-bottom: 5rem;
}

.section-tag {
    font-family: var(--font-secondary);
    color: var(--accent-color);
    font-size: 1.05rem; /* Increased for legibility */
    font-weight: 600;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 0.8rem;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.paragraph {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

/* Card Hover Micro-Interaction */
.card-hover {
    transition: var(--transition-smooth);
}
.card-hover:hover {
    transform: translateY(-8px);
}

/* --------------------------------------------------
   Navbar Layout
-------------------------------------------------- */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    padding: 1.2rem 0;
    background-color: var(--primary-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#main-header.scrolled {
    padding: 1rem 0;
    background-color: rgba(250, 251, 252, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(64, 89, 72, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-flex;
    align-items: center;
    transition: var(--transition-smooth);
}

.logo-img {
    height: 55px; /* Increased from 40px for better visibility */
    width: auto;
    display: block;
    transition: var(--transition-smooth);
}

#main-header.scrolled .logo-img {
    height: 44px; /* Scaled down smoothly when scrolled */
    filter: brightness(0) opacity(0.8); /* Converts white logo to dark charcoal on scrolled white bg */
}

.nav-menu ul {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 500;
    text-transform: uppercase;
    position: relative;
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 1px;
    transition: var(--transition-smooth);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--accent-color);
    font-weight: 500;
}

/* Header state when scrolled (Light background) */
#main-header.scrolled .logo {
    color: var(--primary-color);
}

#main-header.scrolled .nav-link {
    color: var(--text-color);
}

#main-header.scrolled .nav-link:hover {
    color: var(--primary-color);
}

#main-header.scrolled .nav-link.active {
    color: var(--primary-color);
    font-weight: 500;
}

#main-header.scrolled .mobile-toggle .bar {
    background-color: var(--primary-color);
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    cursor: pointer;
}

.mobile-toggle .bar {
    height: 2px;
    width: 100%;
    background-color: #ffffff; /* White toggle by default */
    transition: var(--transition-fast);
}

/* --------------------------------------------------
   Home (Hero) Section
-------------------------------------------------- */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    background-color: var(--primary-dark);
    color: var(--bg-color);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transform: translateZ(0);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.80) 100%);
}

.hero-container {
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero-text-wrapper {
    max-width: 800px;
}

.hero-subtitle {
    font-family: var(--font-secondary);
    color: var(--accent-color);
    font-size: 1.1rem; /* Increased for legibility */
    font-weight: 600;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 1s ease forwards;
}

.hero-title {
    font-size: 4.2rem;
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 1.8rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.hero-description {
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(250, 251, 252, 0.9);
    margin-bottom: 2.8rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.hero-image-wrapper-card {
    width: 100%;
    display: flex;
    justify-content: flex-end; /* Shift image slightly to the right to align with grid boundary */
    align-items: center;
    animation: fadeInUp 1.2s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.hero-image-card {
    width: 100%;
    max-width: 470px; /* Enlarged from 420px to 470px */
    aspect-ratio: 1 / 1; /* Retained 1:1 square ratio */
    border: 3px solid #ffffff; /* Thinned border line from 8px to 3px */
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
}

.hero-image-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.5);
}

.hero-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

.hero-actions .btn-outline {
    border-color: var(--bg-color);
    color: var(--bg-color);
}

.hero-actions .btn-outline:hover {
    background-color: var(--bg-color);
    color: var(--primary-color);
}

/* Reach Us Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    z-index: 2;
    cursor: pointer;
}

.scroll-arrow {
    width: 20px;
    height: 24px;
    position: relative;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.scroll-arrow::before,
.scroll-arrow::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    transform: translateX(-50%) rotate(45deg);
    animation: scrollChevronAnim 1.8s infinite cubic-bezier(0.25, 1, 0.5, 1);
}

.scroll-arrow::before {
    top: 0;
}

.scroll-arrow::after {
    top: 8px;
    animation-delay: 0.15s;
}

.scroll-text {
    font-size: 0.85rem;
    font-family: var(--font-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(250, 251, 252, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    transition: var(--transition-fast);
}

.scroll-indicator:hover .scroll-text {
    color: var(--accent-color);
}

/* --------------------------------------------------
   Sub-Page Banners
-------------------------------------------------- */
.page-banner {
    background-color: var(--primary-dark);
    padding: 8.5rem 0 3.5rem 0; /* Reduced top/bottom padding for a sleeker look */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(64, 89, 72, 0.4) 0%, transparent 70%);
    z-index: 1;
}

.page-banner-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease forwards;
}

.page-banner-tag {
    font-family: var(--font-secondary);
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.page-banner-title {
    font-size: 2.8rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.25;
}

.page-banner-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    max-width: 650px;
    line-height: 1.6;
    margin-top: 1rem;
    margin-bottom: 0;
    font-family: var(--font-primary);
}

.page-banner.banner-left {
    text-align: left;
}

.page-banner.banner-left .page-banner-desc {
    margin-left: 0;
    margin-right: auto;
}

@media (max-width: 768px) {
    .page-banner.banner-left {
        text-align: center;
    }
    .page-banner.banner-left .page-banner-desc {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .page-banner {
        padding: 7rem 0 2.5rem 0;
    }
    .page-banner-title {
        font-size: 2.2rem;
    }
}

/* --------------------------------------------------
   About Section
-------------------------------------------------- */
.about-text-wrapper {
    display: flex;
    flex-direction: column;
}

.about-title {
    font-size: 2.6rem;
    font-weight: 600;
    margin-top: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.about-title:first-of-type {
    margin-top: 0.2rem;
}

.about-text-wrapper .paragraph {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.about-visual {
    position: relative;
    padding-left: 2rem;
}

.visual-frame {
    position: relative;
    box-shadow: var(--box-shadow-subtle);
    border-radius: var(--border-radius-lg);
}

.visual-frame img {
    width: 100%;
    aspect-ratio: 1 / 1; /* Perfect 1:1 square aspect ratio */
    object-fit: cover;
    display: block;
    border-radius: var(--border-radius-lg);
}

.visual-frame::before {
    content: '';
    position: absolute;
    top: 2rem;
    left: -2rem;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-color);
    border-radius: var(--border-radius-lg);
    z-index: -1;
    transition: var(--transition-smooth);
}

.about-visual:hover .visual-frame::before {
    transform: translate(-10px, 10px);
}

.visual-badge {
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: var(--bg-color);
    padding: 1.2rem 2.2rem;
    border-radius: var(--border-radius-md);
    box-shadow: 0 15px 40px rgba(42, 59, 48, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-left: 4px solid var(--accent-color);
    z-index: 5;
    width: max-content;
}

.badge-num-wrapper {
    display: flex;
    align-items: baseline;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 0.3rem;
    font-family: var(--font-secondary);
}

.badge-suffix {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    margin-left: 2px;
}

.badge-text {
    font-family: var(--font-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.stat-number-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 2px;
}

/* --------------------------------------------------
   Card Typography Helpers (Insight & Property)
-------------------------------------------------- */
.insight-content .section-tag,
.property-content .section-tag {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.insight-content .service-title,
.property-content .service-title {
    font-size: 1.35rem;
    margin-bottom: 0.8rem;
    margin-top: 0;
}

.insight-content .service-desc,
.property-content .service-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.property-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(64, 89, 72, 0.08);
    padding-top: 1rem;
}

.portfolio-item-meta {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.property-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2.5rem;
}

.stat-number {
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1;
}

.stat-suffix {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-family: var(--font-secondary);
}

/* --------------------------------------------------
   Service Section
-------------------------------------------------- */
.service-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-md);
    padding: 3rem 2.5rem;
    border: 1px solid rgba(64, 89, 72, 0.05);
    box-shadow: var(--box-shadow-subtle);
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
    border-color: rgba(64, 89, 72, 0.1);
}

/* --------------------------------------------------
   Insight & Property Cards (4:3 Photo Grids)
-------------------------------------------------- */
.insight-card,
.property-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(64, 89, 72, 0.05);
    box-shadow: var(--box-shadow-subtle);
    transition: var(--transition-smooth);
    overflow: hidden; /* Ensure rounded corners clip the top image */
    display: flex;
    flex-direction: column;
}

.insight-card:hover,
.property-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
    border-color: rgba(64, 89, 72, 0.1);
}

.insight-image-wrapper,
.property-image-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3; /* Strict 4:3 photo ratio */
    overflow: hidden;
}

.insight-image-wrapper img,
.property-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition-smooth);
}

.insight-card:hover .insight-image-wrapper img,
.property-card:hover .property-image-wrapper img {
    transform: scale(1.05);
}

.insight-content,
.property-content {
    padding: 2rem 2.2rem 2.2rem 2.2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-icon-wrapper {
    width: 65px;
    height: 65px;
    border-radius: var(--border-radius-sm);
    background-color: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: var(--transition-smooth);
}

.service-icon {
    width: 32px;
    height: 32px;
}

.service-card:hover .service-icon-wrapper {
    background-color: var(--primary-color);
    color: var(--accent-color);
    transform: scale(1.05);
}

.service-title {
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 1.2rem;
}

.service-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --------------------------------------------------
   Portfolio Section
-------------------------------------------------- */
/* --------------------------------------------------
   Projects Page Overhauled Split Layout
-------------------------------------------------- */
.projects-split-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 4rem;
    align-items: start;
}

/* Sidebar Navigation */
.projects-sidebar {
    position: sticky;
    top: 120px;
    align-self: start;
}

.sidebar-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.sidebar-title a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

.sidebar-title a:hover {
    color: var(--accent-color);
}

.sidebar-category {
    margin-bottom: 2.5rem;
}

.sidebar-category-title {
    background-color: var(--primary-dark);
    padding: 0.8rem 1.2rem;
    margin-bottom: 1rem;
    border-radius: var(--border-radius-xs);
    font-size: 1.15rem;
    letter-spacing: 0.5px;
}

.sidebar-category-title a {
    color: #ffffff;
    text-decoration: none;
    display: block;
    font-family: var(--font-secondary);
    font-weight: 500;
}

.sidebar-subcategory-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0 1rem;
}

.sidebar-subcategory-list li {
    margin-bottom: 0.6rem;
}

.sidebar-subcategory-list a {
    font-family: var(--font-primary);
    font-size: 1.05rem;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition-fast);
    display: inline-block;
    padding-left: 0;
}

.sidebar-subcategory-list a:hover,
.sidebar-subcategory-list a.active {
    color: var(--accent-color);
    padding-left: 6px;
    font-weight: 500;
}

/* Right Content Area */
.right-side {
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-header {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.8rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* 3:4 Portrait Aspect Ratio Project Cards with Slide-up Overlays */
.project-card-item {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background-color: #f7f7f7;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--box-shadow-subtle);
    cursor: pointer;
}

.project-card-img-wrapper {
    width: 100%;
    height: 100%;
}

.project-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(28, 41, 33, 0.92); /* Kima's deep forest green-black */
    opacity: 0;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card-text {
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.project-card-category {
    display: block;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    color: rgba(250, 251, 252, 0.65);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-card-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--accent-color);
    font-weight: 500;
    margin: 0;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

/* Hover states */
.project-card-item:hover .project-card-img-wrapper img {
    transform: scale(1.05);
}

.project-card-item:hover .project-card-overlay {
    opacity: 1;
}

.project-card-item:hover .project-card-text {
    transform: translateY(0);
    opacity: 1;
}

/* Responsive media queries for the Overhauled Split Layout */
@media (max-width: 991px) {
    .projects-split-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .projects-sidebar {
        position: relative;
        top: 0;
        display: flex;
        flex-direction: column;
        gap: 1.2rem;
    }

    .sidebar-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .sidebar-category {
        margin-bottom: 0;
    }

    .sidebar-category-title {
        display: inline-block;
        padding: 0.6rem 1rem;
        margin-bottom: 0.8rem;
        font-size: 1rem;
        width: fit-content;
    }

    .sidebar-subcategory-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.8rem;
        margin-left: 0;
    }

    .sidebar-subcategory-list li {
        margin-bottom: 0;
    }

    .sidebar-subcategory-list a {
        background-color: var(--bg-light);
        padding: 0.5rem 1rem;
        border-radius: 20px;
        font-size: 0.9rem;
        border: 1px solid var(--border-color);
        transition: var(--transition-fast);
    }

    .sidebar-subcategory-list a:hover,
    .sidebar-subcategory-list a.active {
        background-color: var(--primary-color);
        color: #ffffff;
        padding-left: 1rem;
        border-color: var(--primary-color);
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-card-overlay {
        padding: 1.5rem;
    }

    .project-card-title {
        font-size: 1.4rem;
    }
}

/* --------------------------------------------------
   Contact & Contact Person Section
-------------------------------------------------- */
.contact-form-wrapper {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 3.5rem;
    box-shadow: var(--box-shadow-subtle);
    border: 1px solid rgba(64, 89, 72, 0.05);
}

.contact-box-title {
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.contact-box-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-family: var(--font-secondary);
    font-size: 1.0rem; /* Increased for legibility */
    font-weight: 600;
    color: var(--primary-dark);
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background-color: var(--bg-color);
    font-size: 0.9rem; /* Reduced from 1.05rem */
    transition: var(--transition-fast);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23405948%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    background-size: 1rem;
    padding-right: 3rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    background-color: var(--card-bg);
    box-shadow: 0 0 0 3px rgba(64, 89, 72, 0.08);
}

/* Form validation styles */
.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: #d9534f;
    background-color: rgba(217, 83, 79, 0.02);
}

.error-msg {
    color: #d9534f;
    font-size: 0.8rem;
    display: none;
    margin-top: 0.2rem;
}

.form-group.error .error-msg {
    display: block;
}

#btn-submit {
    font-size: 1.45rem; /* Enlarged button text */
    letter-spacing: 1px;
}

/* Spinner and status animations */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(250, 251, 252, 0.3);
    border-top: 2px solid var(--bg-color);
    border-radius: 50%;
    display: inline-block;
    animation: spin 0.8s linear infinite;
}

.hidden {
    display: none !important;
}

.form-status-msg {
    margin-top: 1.5rem;
    padding: 1rem 1.2rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
    text-align: center;
    animation: fadeIn 0.4s ease;
}

.form-status-msg.success {
    background-color: rgba(64, 89, 72, 0.08);
    color: var(--primary-color);
    border: 1px solid rgba(64, 89, 72, 0.15);
}

.form-status-msg.error {
    background-color: rgba(217, 83, 79, 0.08);
    color: #d9534f;
    border: 1px solid rgba(217, 83, 79, 0.15);
}

/* Right Side: Contact Details List */
.contact-details-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-item {
    background-color: var(--card-bg);
    border: 1px solid rgba(64, 89, 72, 0.05);
    border-radius: var(--border-radius-md);
    padding: 1.5rem 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    box-shadow: var(--box-shadow-subtle);
}

a.contact-info-item:hover {
    border-color: var(--accent-color);
    box-shadow: var(--box-shadow-hover);
}

.info-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.info-icon {
    width: 24px;
    height: 24px;
}

a.contact-info-item:hover .info-icon-box {
    background-color: var(--primary-color);
    color: var(--accent-color);
}

.info-text-box {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-family: var(--font-secondary);
    font-size: 0.8rem; /* Reduced for better proportion */
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
}

.info-value {
    font-size: 1.0rem; /* Reduced for better proportion */
    font-weight: 600;
    color: var(--primary-dark);
}

/* Premium Map Card */
.map-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid rgba(64, 89, 72, 0.05);
    box-shadow: var(--box-shadow-subtle);
}

.map-card:hover {
    box-shadow: var(--box-shadow-hover);
}

.map-illustration {
    position: relative;
    width: 100%;
}

.map-graphic {
    width: 100%;
    height: 100%;
    display: block;
}

.map-card-footer {
    padding: 1.2rem 1.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
}

.map-location-tag {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.map-link-btn {
    font-family: var(--font-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-color);
}

.map-link-btn:hover {
    color: var(--accent-color);
}

/* --------------------------------------------------
   Footer Layout
-------------------------------------------------- */
.main-footer {
    background-color: #1a251e; /* Darker Forest Green */
    color: rgba(250, 251, 252, 0.8);
    padding: 6rem 0 3rem 0;
    border-top: 1px solid rgba(64, 89, 72, 0.1);
}

.footer-grid {
    border-bottom: 1px solid rgba(250, 251, 252, 0.08);
    padding-bottom: 4rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.footer-logo .logo-img {
    height: 44px;
    width: auto;
    display: block;
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(250, 251, 252, 0.6);
    max-width: 320px;
}

.footer-title {
    font-family: var(--font-secondary);
    color: var(--accent-color);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1.8rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    font-size: 0.95rem;
    color: rgba(250, 251, 252, 0.6);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 4px;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.2rem;
}

.social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: rgba(250, 251, 252, 0.05);
    color: rgba(250, 251, 252, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.social-link:hover {
    background-color: var(--accent-color);
    color: #1a251e;
    transform: translateY(-2px);
}

.social-icon {
    width: 20px;
    height: 20px;
}

.footer-copy {
    font-size: 0.85rem;
    color: rgba(250, 251, 252, 0.4);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.footer-contact-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.footer-contact-value {
    font-size: 0.95rem;
    color: rgba(250, 251, 252, 0.7);
    line-height: 1.5;
}

.footer-contact-value a {
    color: rgba(250, 251, 252, 0.9);
    transition: var(--transition-fast);
}

.footer-contact-value a.underline-link {
    text-decoration: underline;
}

.footer-contact-value a:hover {
    color: var(--accent-color);
}

.footer-follow .footer-copy {
    margin-top: 2.2rem;
    text-align: left;
}

.footer-follow-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-follow-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: rgba(250, 251, 252, 0.6);
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 0.95rem;
}

a.footer-follow-item:hover {
    color: var(--accent-color);
}

a.footer-follow-item:hover .social-icon-wrapper {
    background-color: var(--accent-color);
    color: #1a251e;
    transform: translateY(-2px);
}

.social-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(250, 251, 252, 0.05);
    color: rgba(250, 251, 252, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

/* --------------------------------------------------
   Portfolio Details Modal Overlay
-------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    z-index: 1100;
    overflow: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal-content {
    background-color: #ffffff;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    position: relative;
    overflow: hidden;
    margin: 0;
}

.modal-content.modal-large {
    max-width: 100vw;
    width: 100vw;
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    font-size: 2.5rem;
    line-height: 1;
    color: var(--text-color);
    cursor: pointer;
    z-index: 1200;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

.modal-body-wrapper {
    display: grid;
    grid-template-columns: 350px 1fr;
    width: 100vw;
    height: 100vh;
}

.modal-info-panel {
    padding: 6rem 3rem 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-color: #ffffff;
    border-right: 1px solid var(--border-color);
    height: 100vh;
    overflow-y: auto;
}

.modal-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--primary-dark);
    line-height: 1.2;
    margin-bottom: 3rem;
    text-transform: uppercase;
}

.project-spec-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.spec-item {
    display: flex;
    font-size: 1.05rem;
    line-height: 1.4;
}

.spec-label {
    font-family: var(--font-secondary);
    font-weight: 600;
    color: var(--accent-color); /* Gold/orange label */
    width: 110px;
    flex-shrink: 0;
}

.spec-value {
    color: var(--text-color);
    font-weight: 600;
}

/* Right Side: Full Height Slider & Gallery styling */
.modal-slider-panel {
    background-color: #ffffff;
    padding: 4rem 5rem 3rem 5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
    overflow: hidden;
}

.main-slide-container {
    flex: 1;
    width: 100%;
    min-height: 0;
    border-radius: 0;
    overflow: hidden;
    background-color: #f7f9f7;
    margin-bottom: 2.5rem;
    position: relative; /* Added for absolute navigation positioning */
}

.main-slide-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.15s ease-in-out;
}

/* Left & Right Slide Navigation Buttons */
.slide-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.slide-nav-btn:hover {
    background-color: var(--accent-color);
    color: #ffffff;
    border-color: var(--accent-color);
    transform: translateY(-50%) scale(1.05);
}

.slide-nav-btn.prev-btn {
    left: 1.5rem;
}

.slide-nav-btn.next-btn {
    right: 1.5rem;
}

/* Hide scrollbars on specs panel if overflowed */
.modal-info-panel::-webkit-scrollbar {
    width: 4px;
}
.modal-info-panel::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
}

.thumbnail-gallery-container {
    display: flex;
    gap: 1rem;
    height: 110px;
    flex-shrink: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
}

.thumbnail-gallery-container::-webkit-scrollbar {
    height: 4px;
}

.thumbnail-gallery-container::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
}

.modal-thumb {
    flex: 0 0 120px; /* Fixed width for carousel layout */
    aspect-ratio: 4 / 3;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent; /* 3px border to prevent layout shift */
    transition: var(--transition-fast);
    position: relative;
}

.modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-thumb.active {
    border-color: var(--primary-color); /* Signature Kima Green */
}

.modal-thumb:hover {
    transform: translateY(-2px);
}

.modal-thumb.more-overlay::after {
    content: attr(data-count);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-heading);
}

/* --------------------------------------------------
   CSS Keyframe Animations
-------------------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollChevronAnim {
    0% {
        opacity: 0;
        transform: translate(-50%, -10px) rotate(45deg);
    }
    30% {
        opacity: 1;
    }
    60% {
        opacity: 0;
        transform: translate(-50%, 10px) rotate(45deg);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -10px) rotate(45deg);
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes modalZoomIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --------------------------------------------------
   Scroll reveal initial states
-------------------------------------------------- */
.reveal-fade,
.reveal-slide-left,
.reveal-slide-right,
.reveal-card {
    opacity: 1;
    transform: none;
    transition: none;
}

/* Stagger card reveals */
.reveal-card:nth-child(2) {
    transition-delay: 0.15s;
}
.reveal-card:nth-child(3) {
    transition-delay: 0.3s;
}

/* --------------------------------------------------
   Media Queries & Responsiveness
-------------------------------------------------- */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.2rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .modal-overlay {
        align-items: flex-start;
        overflow-y: auto;
        padding: 1.5rem 1rem;
    }

    .modal-content {
        max-width: 768px;
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .modal-body-wrapper {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .modal-info-panel {
        padding: 2.5rem 1.8rem;
        order: 2;
    }

    .modal-slider-panel {
        padding: 2rem 1.5rem;
        order: 1;
    }
}

@media (max-width: 992px) {
    .section-padding {
        padding: 4.5rem 0;
    }
    
    .grid-2-col, .grid-3-col {
        grid-template-columns: 1fr;
    }
    
    .grid-4-col {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gap-lg {
        gap: 2.5rem;
    }
    
    /* Responsive Navigation Menu */
    .mobile-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--card-bg);
        box-shadow: -10px 0 30px rgba(42, 59, 48, 0.08);
        padding: 8rem 3rem 3rem 3rem;
        transition: var(--transition-smooth);
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 2rem;
    }
    
    .nav-menu .nav-link {
        font-size: 1.25rem;
        color: var(--text-color) !important;
    }

    .nav-menu .nav-link::after {
        background-color: var(--primary-color);
    }

    .nav-menu .nav-link.active,
    .nav-menu .nav-link:hover {
        color: var(--primary-color) !important;
    }
    
    /* Hamburger Active Style */
    .mobile-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Hero adjustments */
    .hero-section {
        height: 100vh;
        min-height: 560px;
        display: flex;
        align-items: center;
        padding: 0;
    }

    .hero-container {
        text-align: center;
        padding-top: 2rem;
        margin-top: 0;
    }

    .hero-title {
        font-size: 2.6rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    /* About styling */
    .about-title {
        font-size: 2rem;
        margin-top: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .about-text-wrapper .paragraph {
        font-size: 1.05rem;
        line-height: 1.55;
        margin-bottom: 1.5rem;
    }
    
    .about-visual {
        padding-right: 0;
        padding-left: 0;
        margin: 0 auto 3.5rem auto;
        max-width: 400px;
    }
    
    .visual-frame::before {
        top: 1.2rem;
        left: -1.2rem;
    }

    /* Cards padding adjustments */
    .service-card {
        padding: 2.2rem 1.8rem;
    }
    
    .insight-content, .property-content {
        padding: 1.75rem 1.5rem;
    }

    /* Portfolio tablet grid */
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem;
    }
    
    /* Form column adjustment */
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-form-wrapper {
        padding: 2.2rem 1.8rem;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* Ensure close icon is dark green when mobile menu is active */
    .mobile-toggle.active .bar {
        background-color: var(--primary-color) !important;
    }

    /* Prevent page scroll when mobile menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 768px) {
    .page-banner {
        padding: 8rem 0 3rem 0;
    }
    .page-banner-title {
        font-size: 2rem;
    }
    .page-banner-desc {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .grid-4-col {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr !important;
    }
    
    .hero-section {
        height: 100vh;
        min-height: 520px;
        padding: 0;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .scroll-indicator {
        bottom: 1.2rem;
    }
    
    .section-title {
        font-size: 1.85rem;
    }
    
    .about-title {
        font-size: 1.75rem;
    }

    .about-text-wrapper .paragraph {
        font-size: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        text-align: center;
    }
    
    .stat-number-wrapper {
        justify-content: center;
    }
    
    .visual-badge {
        padding: 1rem 1.5rem;
        bottom: -1.5rem;
    }
    
    .badge-num-wrapper {
        font-size: 1.8rem;
    }
    
    .portfolio-overlay {
        padding: 1.5rem;
    }

    .contact-box-title {
        font-size: 1.5rem;
    }
    
    .contact-info-item {
        padding: 1.2rem 1rem;
        gap: 1rem;
    }
}

@media (max-width: 375px) {
    .container {
        padding: 0 1.2rem;
    }
    
    .hero-title {
        font-size: 1.95rem;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
}

/* Service Page Gallery */
.service-gallery-wrapper {
    margin-top: 5rem;
}

.service-gallery-grid {
    display: flex;
    gap: 1.5rem;
    width: 100%;
}

.service-gallery-item {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    height: 380px;
    box-shadow: var(--box-shadow-subtle);
    transition: var(--transition-smooth);
}

.service-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.service-gallery-item:hover img {
    transform: scale(1.08);
}

/* Custom sizes to match the layout asymmetry in the reference */
.service-gallery-item.wide {
    flex: 1.4;
}

.service-gallery-item.narrow {
    flex: 0.9;
}

.service-gallery-item.medium {
    flex: 1.1;
}

@media (max-width: 768px) {
    .service-gallery-grid {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .service-gallery-item {
        height: 280px;
        flex: none !important;
    }
}

/* Page Preloader Styles */
body.loading {
    overflow: hidden;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--primary-color); /* Solid Dark Forest Green */
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#preloader.fade-out {
    pointer-events: none;
    animation: preloaderFadeOut 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.loader-logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0.8);
    opacity: 0;
    animation: loaderZoomIn 2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

#preloader.fade-out .loader-logo-wrapper {
    animation: loaderZoomOut 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.loader-logo-svg {
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.15));
}

@keyframes loaderZoomIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes loaderZoomOut {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(8); /* Zoom in very close to screen before dissolving */
        opacity: 0;
    }
}

@keyframes preloaderFadeOut {
    0% {
        opacity: 1;
        visibility: visible;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

/* Page entrance animations (Home page only) */
.page-home .hero-container {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1), opacity 1.2s ease;
}

.page-home.loaded .hero-container {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* --------------------------------------------------
   Property Coming Soon Split Layout
-------------------------------------------------- */
.coming-soon-split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(64, 89, 72, 0.05);
}

.cs-image-panel {
    position: relative;
    height: 480px;
    overflow: hidden;
}

.cs-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(8px); /* Add a deep, premium blur */
    transform: scale(1.05);
    transition: filter 0.8s ease, transform 0.8s ease;
}

.coming-soon-split:hover .cs-image {
    filter: blur(3px); /* Hover slightly reveals details */
    transform: scale(1);
}

.cs-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0) 60%, rgba(250, 251, 252, 0.05) 100%);
    pointer-events: none;
}

.cs-info-panel {
    padding: 3rem 4rem 3rem 0;
}

.cs-title {
    font-size: 3rem;
    color: var(--primary-color);
    margin-top: 0.8rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.cs-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 2rem;
}

/* Responsive Coming Soon */
@media (max-width: 992px) {
    .coming-soon-split {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .cs-image-panel {
        height: 320px;
    }
    
    .cs-image-overlay {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 60%, rgba(250, 251, 252, 0.05) 100%);
    }
    
    .cs-info-panel {
        padding: 3rem 2.5rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .cs-image-panel {
        height: 240px;
    }
    
    .cs-info-panel {
        padding: 2.2rem 1.5rem;
    }
    
    .cs-title {
        font-size: 2.2rem;
    }
    
    .cs-desc {
        font-size: 0.95rem;
    }
}

/* --------------------------------------------------
   Custom Editorial Layout for Insight Modal
-------------------------------------------------- */
.insight-modal-body {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.insight-modal-image-panel {
    width: 100%;
    height: 380px;
    overflow: hidden;
    position: relative;
}

.insight-modal-image-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.insight-modal-info-panel {
    padding: 3.5rem 4.5rem;
    max-width: 840px;
    margin: 0 auto;
    width: 100%;
}

.insight-modal-desc-text {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-color);
    margin-top: 1.5rem;
    text-align: justify;
}

.insight-modal-desc-text h4 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    text-align: left;
}

.insight-modal-desc-text p {
    margin-bottom: 1.2rem;
}

.insight-modal-desc-text ul,
.insight-modal-desc-text ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.insight-modal-desc-text li {
    margin-bottom: 0.6rem;
    line-height: 1.7;
}

/* Responsive Editorial Layout */
@media (max-width: 768px) {
    .insight-modal-image-panel {
        height: 240px;
    }
    
    .insight-modal-info-panel {
        padding: 2.5rem 1.8rem;
    }
    
    .insight-modal-desc-text {
        font-size: 0.98rem;
        line-height: 1.65;
        text-align: left;
    }
}

/* Page Transition Fading */
body {
    opacity: 1;
    transition: opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

body.fade-out-page {
    opacity: 0;
}
