/* style.css */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Poppins', Arial, sans-serif;
    background: linear-gradient(135deg, #0e0e0e 0%, #3b3b3b 50%, #0e0d0d 100%);
    color: white;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    animation: fadeIn 1s ease-in;
    background-attachment: fixed;
    text-align: left;
}

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

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 30px;
    background-color: transparent;
    transition: background-color 0.3s ease;
}

header .container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    text-decoration: none;
}

.logo img {
    max-height: 40px;
    width: auto;
    display: block;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
}

nav ul li a {
    display: flex;
    align-items: center;
    font-size: 15px;
    text-decoration: none;
    background-color: transparent;
    color: #ccc;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #444;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

nav ul li a i {
    margin-right: 8px;
}

nav ul li a:hover,
nav ul li a:active {
    background-color: #333;
    color: white;
    border-color: #666;
    transform: none;
}

/* Updated Hero Section Layout */
.hero {
    padding-top: 60px; /* Adjust based on nav height */
    padding: 40px 0;
    text-align: center;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: none !important;
    box-shadow: none !important;
}

.hero-split-layout {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 90%;
    max-width: 1200px;
    gap: 40px;
    margin-bottom: 40px;
}

.hero-left {
    flex-basis: 55%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
}

.hero-right {
    flex-basis: 45%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-right .before-after-container {
    width: 100%;
    max-width: none;
    margin: 0;
}

.hero-card {
    padding: 40px 50px;
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(55, 55, 55, 0.3), rgba(40, 40, 40, 0.3)); /* Slightly lighter, more transparent */
    backdrop-filter: blur(12px); /* Increased blur */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15); /* Slightly more visible border */
    box-shadow:
        0 6px 25px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 255, 255, 0.05); /* Adjusted glow */
    width: 100%;
    box-sizing: border-box;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out; /* Add transitions */
}

.hero-card:hover {
    transform: scale(1.02);
    background: linear-gradient(145deg, rgba(65, 65, 65, 0.4), rgba(50, 50, 50, 0.4)); /* Hover background */
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.35),
        0 0 25px rgba(255, 255, 255, 0.08); /* Enhanced hover glow */
}

.hero-content {
    width: 100%;
    text-align: left;
}

.hero-content h1 {
    margin-top: 0;
    font-family: 'Cal Sans', sans-serif;
    font-size: 42px;
    font-weight: 600;
    text-shadow: none;
    margin-bottom: 20px;
    color: #eee;
    overflow: hidden;
    line-height: 1.2;
    opacity: 1;
}

/* Title Animation Parts */
.hero-content h1 span {
    display: block;
    opacity: 0;
    animation-fill-mode: forwards;
}

.hero-content h1 .h1-part1 {
    animation: slideInLeft 0.8s 0.2s ease-out forwards;
}

.hero-content h1 .h1-part2 {
    animation: slideInRight 0.8s 0.4s ease-out forwards;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.hero-content p {
    font-size: 18px;
    color: #bbb;
    margin-bottom: 25px;
}

.hero-content .tagline {
    font-family: 'Cal Sans', sans-serif;
    margin-bottom: 30px;
    font-size: 20px;
    color: #ccc;
}

.hero-buttons {
    display: flex;
    gap: 15px; /* Space between buttons */
    
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.hero-content .cta-button {
    display: inline-block;
    /* margin-top: 10px; */ /* Remove top margin as gap is handled by flex */
}

.cta-button {
    display: inline-block;
    padding: 12px 28px;
    background-color: #ffffff;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    transition: background-color 0.3s, color 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover,
.cta-button:active {
    background-color: #f0f0f0;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.cta-button.secondary {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
}

.cta-button.secondary:hover,
.cta-button.secondary:active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15); /* Adjust shadow for secondary */
}

/* Before & After Section */
.before-after-section {
    padding: 40px 0;
    background-color: rgba(60, 60, 60, 0.2); /* Adjusted background */
    backdrop-filter: blur(8px); /* Add blur */
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.before-after-section h2 {
    font-size: 30px;
    margin-bottom: 35px;
    text-shadow: none;
    text-align: center;
}

/* New Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    padding: 0 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.before-after-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.5);
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(255, 255, 255, 0.1); /* Add subtle border */
    background-color: rgba(40, 40, 40, 0.15); /* Add semi-transparent background */
    backdrop-filter: blur(5px); /* Add blur */
    -webkit-backdrop-filter: blur(5px);
}

/* Full overlay for initial state */

.before-image, .after-image {
    display: block;
    height: 100%;
    width: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.after-image {
    clip-path: polygon(0% 0%, 60% 0%, 60% 100%, 0% 100%); /* Start at 60% */
    z-index: 2; /* Keep images low */
}

/* Basic Slider Style */
.slider {
    position: absolute;
    top: 0;
    left: 60%; /* Start at 60% */
    width: 4px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    cursor: ew-resize;
    transform: translateX(-50%);
    z-index: 17; /* Above overlay & labels */
}

.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 11;
    display: flex;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.slider-handle::before,
.slider-handle::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 8px 6px 8px;
}

.slider-handle::before {
    border-color: transparent #333 transparent transparent;
    margin-left: -4px;
}

.slider-handle::after {
    border-color: transparent transparent transparent #333;
    margin-right: -4px;
}

/* Slider Labels and Prompt */
.slider-label {
    position: absolute;
    top: 10px;
    z-index: 5;
    font-size: 12px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    background-color: rgba(0, 0, 0, 0.6);
    padding: 4px 8px;
    border-radius: 4px;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
}

.after-label {
    right: 10px;
}

.before-label {
    left: 10px;
}

/* Other Sections (Contact, Buy, Sell) */
section.container {
    padding: 60px 20px; /* Increased padding */
    margin-top: 40px; /* Add margin between sections */
    border-radius: 12px;
 /* Removed subtle border */

    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

/* Exclude project gallery from this general styling */
#project-gallery.container {
    padding: 40px 0; /* Revert padding */
    margin-top: 0; /* Revert margin */
    border-radius: 0;
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

section.container h2 {
    font-size: 32px; /* Slightly larger */
    margin-bottom: 30px; /* Increased margin */
    text-shadow: none;
    text-align: center;
    font-weight: 600;
    color: #f0f0f0; /* Lighter heading color */
}

section.container p {
    font-size: 17px; /* Slightly larger */
    color: #c5c5c5; /* Adjusted text color */
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-bottom: 20px; /* Add spacing below paragraphs */
}

/* Specific Section Styling (Optional: Add if variations needed) */
#contact {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0), rgba(45, 45, 45, 0)); /* Slightly different gradient */
    padding-top: 80px; /* More vertical padding */
    padding-bottom: 80px;
    position: relative; /* For pseudo-elements if needed later */
}

#contact h2 {
    font-size: 36px; /* Larger heading for contact */
    margin-bottom: 35px;
}

#contact p {
    font-size: 18px; /* Slightly larger paragraph text */
    max-width: 650px; /* Slightly narrower paragraph */
    margin-bottom: 25px; /* More space below paragraph */
}

#contact .email-link {
    display: inline-block; /* Make it behave like a button */
    margin-top: 15px; /* Add space above */
    padding: 14px 32px; /* Button padding */
    background-color: #ffffff;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 6px;
    font-size: 17px;
    font-weight: 500;
    border: none;
    transition: background-color 0.3s, color 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
     transform: scale(1.05); /* Slightly larger button */
}

#contact .email-link:hover,
#contact .email-link:active {
    background-color: #f0f0f0;
    color: #000;
    transform: scale(1.1) translateY(-2px); /* Enhance hover effect */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

#buy, #sell, #services {
    /* Add specific styles if desired */
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #ccc;
    text-align: center;
    padding: 30px 0; /* Slightly more padding */
    margin-top: 60px; /* Increased margin */
    font-size: 14px;
    border-top: 1px solid #444;
}

footer p {
    margin: 5px 0; /* Adjust spacing between footer lines */
}

footer .secondary-brand {
    font-size: 13px; /* Slightly smaller */
    color: #999; /* Muted color */
    font-style: italic;
}

/* Scroll Down Indicator */
.scroll-down-indicator {
    text-align: center;
    margin-top: 70px;
}

.scroll-down-indicator i {
    font-size: 28px;
    color: rgba(255, 255, 255, 0.5);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-8px);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }

    .hero-split-layout {
        flex-direction: column;
        width: 90%;
        gap: 30px;
        margin-bottom: 30px;
        align-items: center;
    }

    .hero-left {
        flex-basis: 100%;
        max-width: 600px;
        margin: 0 auto;
        align-items: stretch;
        width: 100%;
    }

    .hero-right {
        flex-basis: 100%;
        max-width: 600px;
        margin: 0 auto;
        display: block;
        width: 100%;
    }

    .hero-card {
    }

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

    .hero-buttons {
        justify-content: center; /* Center buttons on mobile */
    }

    .hero-branding {
        text-align: center;
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        position: relative;
        padding: 10px 20px;
        width: 100%;
        box-sizing: border-box;
        min-height: 60px;
    }

    .logo {
        margin-bottom: 0;
        margin-right: auto;
    }

    .nav-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: space-around;
        width: 32px;
        height: 28px;
        position: relative;
        z-index: 1001;
        background: none;
        border: none;
        color: white;
        cursor: pointer;
        padding: 0;
    }

    .nav-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: white;
        border-radius: 3px;
        transition: all 0.3s ease-in-out;
        position: absolute;
        left: 0;
    }

    .nav-toggle span:nth-child(1) {
        top: 6px;
    }

    .nav-toggle span:nth-child(2) {
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-toggle span:nth-child(3) {
        bottom: 6px;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    nav {
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        height: 100vh;
        width: 250px; /* Slightly wider */
        background-color: rgba(18, 18, 18, 0.98); /* Darker, less transparent */
        backdrop-filter: blur(5px); /* Add subtle blur */
        -webkit-backdrop-filter: blur(5px);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1); /* Smoother transition */
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }

    nav.active {
        transform: translateX(0);
    }

    nav ul {
        display: flex;
        flex-direction: column;
        align-items: center; /* Center items horizontally */
        width: 100%;
        padding: 100px 20px 40px; /* Adjusted padding */
        list-style: none;
        gap: 25px; /* Increased gap */
        box-sizing: border-box;
    }

    nav ul li {
        width: 100%; /* Make list items take full width */
        text-align: center; /* Center text within list items */
    }

    nav ul li a {
        /* Inherit font-size from parent or set specifically */
        font-size: 18px; /* Larger font size */
        text-decoration: none;
        background-color: transparent;
        color: #e0e0e0; /* Lighter text color */
        padding: 12px 20px; /* More padding */
        border-radius: 0; /* Remove border-radius */
        border: none; /* Remove border */
        display: block; /* Make links block-level */
        width: 100%; /* Ensure links take full width */
        box-sizing: border-box;
        transition: background-color 0.3s, color 0.3s;
    }

    nav ul li a:hover,
    nav ul li a:active {
        background-color: rgba(255, 255, 255, 0.1); /* Subtle hover background */
        color: white;
        border: none; /* Ensure no border on hover */
    }

    .hero-content h1 {
        font-size: 30px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .before-after-container {
        width: 95%;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    body {
        text-align: left;
    }

    header {
        padding: 15px;
    }

    .logo {
        font-size: 16px;
    }

    nav ul {
        gap: 8px;
    }

    nav ul li a {
        font-size: 14px;
        padding: 6px 12px;
    }

    .hero {
        padding: 100px 15px 40px; /* Re-apply increased top padding */
    }

    .hero-content h1 {
        font-size: 26px;
    }

    .hero-content p {
        font-size: 15px;
    }

    .cta-button {
        font-size: 15px;
        padding: 10px 22px;
    }

    .before-after-section h2, section.container h2 {
        font-size: 26px;
        text-align: center;
    }

    .before-after-container {
        width: 100%;
        border-radius: 8px;
    }

    section.container p {
        font-size: 15px;
        text-align: center;
    }

    .gallery-grid {
        gap: 15px;
    }

    footer {
        padding: 20px 0;
    }

    .hero-card {
        padding: 30px 25px;
    }

    .scroll-down-indicator i {
        font-size: 24px;
    }

    #fullscreen-modal .modal-close-button {
        top: 8px;
        right: 8px;
        font-size: 14px;
        padding: 4px 6px;
    }
}

@media (orientation: portrait) and (min-width: 993px) {
    .hero-split-layout {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        margin-bottom: 30px;
    }
    .hero-left, .hero-right {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
    .hero-content {
        text-align: center;
    }
}

/* New Hero Branding Text */
.hero-branding {
    margin: 0 0 0px 0;
    opacity: 0;
    animation: fadeInBrand 0.8s 0.6s ease-out forwards;
    display: block;
    text-align: left;
}

.hero-branding img {
    max-height: 50px;
    width: auto;
    display: inline-block;
    margin-bottom: -20px;
}

/* Keyframe for branding fade-in */
@keyframes fadeInBrand {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Adjust hero transformation position in landscape */
@media (orientation: landscape) {
    .hero {
        padding-top: 100px; /* Increase top padding */
    }
    .hero-right .hero-transformation {
        margin-top: 40px; /* Add margin to align with card top padding */
    }
}

/* Fullscreen Toggle Button */
.fullscreen-toggle {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 25; /* Above most elements */
    background-color: rgba(0, 0, 0, 0.6);
    color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 5px;
    padding: 6px 9px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    transition: background-color 0.2s, color 0.2s;
}

.fullscreen-toggle:hover {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
}

/* Styles for Fullscreen Mode */

/* Overlay for darkened background */
.fullscreen-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s linear;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3vh 3vw; /* Slightly less padding */
    box-sizing: border-box;
}

.fullscreen-overlay.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s linear;
}

/* The actual modal container */
#fullscreen-modal {
    display: none; /* Hidden by default */
    /* Add flexbox centering */
    display: flex;
    align-items: center;
    justify-content: center;
    /* End flexbox centering */
    width: 100%; /* Take available space given by overlay padding */
    height: 100%;
    cursor: default; /* Prevent overlay cursor */
    position: relative; /* For positioning children like the button */
}

/* Show modal when overlay is active */
.fullscreen-overlay.active #fullscreen-modal {
    /* display: block; Now handled by flex */
}

/* Style the content within the modal (reuse existing structure) */
#fullscreen-modal .fullscreen-content {
    /* Removed width/height 100% - let it size naturally or by JS */
    /* width: 100%; */
    /* height: 100%; */
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    position: relative;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

#fullscreen-modal .fullscreen-content img,
#fullscreen-modal .fullscreen-simple-image {
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
    display: block;
    border-radius: 8px;
}

/* Modal Close Button specific styles */
#fullscreen-modal .modal-close-button {
    position: absolute;
    top: auto; /* Reset top */
    right: 15px;
    bottom: 15px; /* Position from bottom */
    z-index: 30; 
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 16px;
    padding: 6px 10px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    height: 32px;
    width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

#fullscreen-modal .modal-close-button:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

/* Modal Navigation Buttons */
.modal-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 25; /* Below close button but above content potentially */
    background-color: rgba(0, 0, 0, 0.4);
    color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s;
}

.modal-nav-button:hover {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
}

.modal-prev-button {
    left: 20px;
}

.modal-next-button {
    right: 20px;
}

/* Show nav buttons only when simple modal is active */
#fullscreen-modal.modal-type-simple .modal-nav-button {
    display: flex; /* Use flex to center icon */
}

/* Optional: Hide scrollbar when fullscreen is active */
body.fullscreen-mode {
    overflow: hidden;
}

/* Project Gallery Styles */
.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.project-gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    aspect-ratio: 1 / 1; /* Start with square aspect ratio */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Add subtle border */
    background-color: rgba(40, 40, 40, 0.15); /* Add semi-transparent background */
    backdrop-filter: blur(5px); /* Add blur */
    -webkit-backdrop-filter: blur(5px);
}

.project-gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.project-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Adjust aspect ratio for larger screens if needed */
@media (min-width: 768px) {
    .project-gallery-item {
        aspect-ratio: 4 / 3; /* Or keep 1/1 if preferred */
    }
}

@media (min-width: 1200px) {
    .project-gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* For simple fullscreen images: fill container to avoid empty edges */
#fullscreen-modal.modal-type-simple .fullscreen-simple-image {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Hero & Header Background Image - Removed */

header.dark-bg {
    background-color: rgba(0, 0, 0, 0.7);
}

.nav-toggle {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    position: absolute; /* Position relative to header container */
    top: 20px; /* Adjust as needed */
    right: 40px; /* Adjust as needed */
    z-index: 1001; /* Above other header content */
}

/* Main Content Area */
main {
    /* Removed position/z-index */
}

/* --- Styles for the background container --- */
.hero-background-container {
    position: relative; /* Needed for absolute positioning of ::before */
    overflow: hidden; /* Clip the ::before element */
}

.hero-background-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(30, 30, 30, 0.4) url("yelp images/base/o8.jpg") center center / cover no-repeat scroll;
    filter: blur(8px) brightness(0.5) contrast(0.9) saturate(0.9); /* Grade applied */
    z-index: -1;
}

/* Services Section Styling */
#services h2 {
    margin-bottom: 40px; /* More space below heading */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid columns */
    gap: 30px; /* Space between cards */
    margin-top: 20px;
}

.service-card {
    background: linear-gradient(145deg, rgba(55, 55, 55, 0.2), rgba(40, 40, 40, 0.25)); /* Subtle gradient */
    padding: 35px 30px; /* Padding inside card */
    border-radius: 10px;
    text-align: center;
    /* border: 1px solid rgba(255, 255, 255, 0.1); */ /* Removed subtle border */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.service-card i {
    font-size: 40px; /* Icon size */
    color: #ffffff; /* Icon color */
    margin-bottom: 20px;
    display: block;
}

.service-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: #f0f0f0;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 15px; /* Slightly smaller text */
    color: #bdbdbd; /* Adjust paragraph color */
    line-height: 1.6;
    max-width: 100%; /* Override general p styling if needed */
    margin-bottom: 0; /* Remove extra margin */
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 10px; /* Width of the scrollbar */
}

::-webkit-scrollbar-track {
    background: #2c2c2c; /* Color of the track */
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: #555; /* Color of the scroll thumb */
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #777; /* Color of the thumb on hover */
}

/* Subheadings within sections */
.section-subheading {
    font-size: 24px;
    font-weight: 600;
    color: #e0e0e0;
    text-align: center;
    margin-top: 40px; /* Space above subheading */
    margin-bottom: 30px;
}

/* Buy Section - Property Listings */
.property-listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.property-card {
    background: rgba(50, 50, 50, 0.15);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.property-image {
    display: block;
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
}

.property-details {
    padding: 20px 25px;
}

.property-details h4 {
    font-size: 18px;
    font-weight: 600;
    color: #f0f0f0;
    margin-bottom: 10px;
}

.property-specs {
    font-size: 14px;
    color: #bbb;
    margin-bottom: 15px;
}

.property-price {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
}

.property-button {
    display: block; /* Make button full width */
    text-align: center;
    padding: 10px 20px;
    font-size: 15px;
}

/* Sell Section - Selling Points */
.selling-points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px; /* Space before final CTA button */
}

.selling-point {
    text-align: center;
    padding: 20px;
}

.selling-point i {
    font-size: 36px;
    color: #ffffff;
    margin-bottom: 15px;
    display: block;
}

.selling-point h4 {
    font-size: 18px;
    font-weight: 600;
    color: #f0f0f0;
    margin-bottom: 10px;
}

.selling-point p {
    font-size: 14px;
    color: #bbb;
    line-height: 1.6;
}

/* General Section CTAs */
.section-cta {
    text-align: center;
    margin-top: 40px;
    font-size: 16px;
    color: #ccc;
}

.section-cta a {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
}

.section-cta a:hover {
    text-decoration: none;
}

.section-cta-button {
    text-align: center;
    margin-top: 30px;
}

.before-image, .after-image,
.project-gallery-item img,
.property-image,
#fullscreen-modal .fullscreen-content img,
#fullscreen-modal.modal-type-simple .fullscreen-simple-image {
    filter: contrast(0.9) saturate(0.9); /* Apply subtle grade */
    transition: filter 0.3s ease; /* Optional: transition if filter changes on hover */
}

/* Optional: Remove filter on hover if desired */
/*
.project-gallery-item:hover img,
.property-card:hover .property-image {
    filter: none;
}
*/