/*---------------------------------- Custom styles for Memar Elara ----------------------------------*/
/* 
@author: Khatik Sahil
@version: 1.0.0
@since: 2025-10-22
*/
/*---------------------------------- Global Styles ----------------------------------*/

/* Import CSS variables */
@import url('var.css');

body {
    font-family: var(--me-font-secondary), 'Arial', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 0;
    background-color: var(--me-bg);
}

/* Navbar Styles */
#mainNavbar {
    background-color: rgba(var(--me-bg-rgb), 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
    height: var(--header-height);
}

.logo-wrapper {
    --logo-animation-duration: 0.5s;
    display: flex;
    flex-direction: column;
    width: 100px;
    justify-content: center;
    align-items: center;

}

.logo-img {
    position: relative;
    height: 40px;
    top: 18px;
    transition: height var(--logo-animation-duration) ease, top var(--logo-animation-duration) ease;
}

.logo-name {
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--logo-animation-duration) ease, visibility var(--logo-animation-duration) ease;
}

.logo-wrapper:hover .logo-name {
    opacity: 1;
    visibility: visible;
}

.logo-wrapper:hover .logo-img {
    height: 30px;
    top: 0;
}

/* Navbar when scrolled - transparent background */
#mainNavbar.scrolled {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Navbar Brand */
.navbar-brand {
    color: var(--me-brown-hex) !important;
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.navbar-brand:hover {
    color: var(--me-golden-hex) !important;
}

/* Navigation Links */
.nav-links .nav-link {
    color: var(--me-brown-hex) !important;
    font-weight: 500;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    padding: 0.5rem 1rem 0;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    font-family: var(--me-font);
}

.nav-links .nav-link:hover {
    color: var(--me-golden-hex) !important;
}

.nav-links .nav-link.active {
    color: var(--me-golden-hex) !important;
    background-color: transparent;
}

/* Ensure active item never gets a hover background */
.nav-links .nav-link.active:hover {
    background-color: transparent;
}

/* Active link underline effect */
.nav-links .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background-color: var(--me-golden-hex);
    border-radius: 1px;
}

/* Hamburger button (visible only on small screens via media query) */
.hamburger-btn {
    display: none;
    padding: 0.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--me-brown-hex);
    border-radius: 4px;
    transition: color 0.2s ease;
}

.hamburger-btn:hover {
    color: var(--me-golden-hex);
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
}

.hamburger-line {
    display: block;
    height: 2px;
    width: 100%;
    background-color: currentColor;
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile nav overlay (backdrop) - below navbar so logo and hamburger stay visible */
.nav-overlay {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    visibility: hidden;
    opacity: 0;
    z-index: 1035;
    transition: visibility 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

body.nav-drawer-open .nav-overlay {
    visibility: visible;
    opacity: 1;
    background: rgba(0, 0, 0, 0.4);
}

/* Mobile/tablet nav drawer (slides from right, 50% width, height fit-content) */
.nav-drawer {
    position: fixed;
    top: var(--header-height);
    right: 0;
    width: 50%;
    max-width: 100%;
    height: fit-content;
    min-height: 0;
    background-color: rgba(var(--me-bg-rgb), 0.98);
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: -4px 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1040;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    overflow: visible;
}

body.nav-drawer-open .nav-drawer {
    transform: translateX(0);
}

body.nav-drawer-open {
    overflow: hidden;
}

.nav-drawer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-drawer-links .nav-link {
    padding: 0.75rem 0;
    font-size: 1.1rem;
    color: var(--me-brown-hex);
}

/* Small screens (tablet + mobile): logo center, hamburger right; logo both sections visible; hide header nav-links; show drawer */
@media screen and (max-width: 1023px) {
    .nav-inner {
        width: 100%;
        flex-direction: row;
        justify-content: flex-end;
        position: relative;
    }

    .nav-inner .logo-wrapper {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .nav-inner .nav-links {
        display: none !important;
    }

    .hamburger-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Logo: show both icon and name on small screens */
    .logo-wrapper .logo-name {
        opacity: 1;
        visibility: visible;
    }

    .logo-wrapper .logo-img {
        height: 30px;
        top: 0;
    }
}

/* Overlay and drawer only interactive on small/tablet screens */
@media screen and (min-width: 1024px) {

    .nav-overlay,
    .nav-drawer {
        pointer-events: none;
        visibility: hidden;
    }
}

/* Carousel Progress */
.splide-progress {
    background: rgba(0, 0, 0, 0.08);
    height: 4px;
    border-radius: 2px;
    overflow: hidden;
}

.splide-progress-bar {
    background: var(--me-brown-hex);
    height: 100%;
    width: 0%;
    transition: width 400ms ease;
}

.heading-text {
    font-family: var(--me-font);
}

.main-content {
    position: relative;
}

.enquire-now-btn {
    position: fixed;
    top: 6rem;
    left: 5px;
    z-index: 9999;
    background-color: var(--me-golden-hex);
    color: var(--light-color);
    padding: 5px;
    width: 130px;
    transform: translateX(-100%) rotate(-90deg);
    transform-origin: top right;
    text-align: center;
    cursor: pointer;
}

.enquire-now-btn:hover {
    scale: 1.02;
    transition: scale 0.2s ease;
}

.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    height: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1;
    background-color: var(--me-golden-hex);
    /* mix-blend-mode: hard-light; */
    color: var(--light-color);
    font-size: 2.5rem;
    border-radius: 50%;
    z-index: 9999;
}

@media screen and (max-width: 767px) {

    .enquire-now-btn,
    .whatsapp-btn {
        display: none;
    }
}

/* Enquire Now Modal */
.enquire-modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.enquire-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.enquire-modal {
    position: relative;
    background: var(--me-bg);
    border-radius: 12px;
    max-width: 440px;
    width: 100%;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    padding: 1.75rem 1.5rem;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.enquire-modal-overlay.is-open .enquire-modal {
    transform: scale(1);
}

.enquire-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--me-brown-hex);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease, color 0.2s ease;
}

.enquire-modal-close:hover {
    background: rgba(var(--me-brown-rgb), 0.1);
    color: var(--me-golden-hex);
}

.enquire-modal-title {
    font-family: var(--me-font);
    color: var(--me-brown-hex);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1.25rem 0;
    padding-right: 2.5rem;
}

.enquire-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.enquire-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.enquire-form-group label {
    font-family: var(--me-font);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--me-brown-hex);
}

.enquire-input {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(var(--me-brown-rgb), 0.3);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    color: var(--dark-color);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.enquire-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.enquire-input:focus {
    outline: none;
    border-color: var(--me-golden-hex);
    box-shadow: 0 0 0 2px rgba(158, 119, 44, 0.2);
}

.enquire-textarea {
    resize: vertical;
    min-height: 100px;
}

.enquire-send-btn {
    margin-top: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--me-font);
    font-size: 1rem;
    font-weight: 600;
    color: var(--light-color);
    background-color: var(--me-brown-hex);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.enquire-send-btn:hover {
    background-color: var(--me-golden-hex);
}

.enquire-send-btn:active {
    transform: scale(0.98);
}

/* Enquire modal – responsive */
@media screen and (max-width: 480px) {
    .enquire-modal-overlay {
        padding: 0.75rem;
        align-items: flex-end;
    }

    .enquire-modal {
        max-height: 90vh;
        border-radius: 16px 16px 0 0;
        padding: 1.5rem 1.25rem;
    }

    .enquire-modal-title {
        font-size: 1.35rem;
        margin-bottom: 1rem;
    }

    .enquire-input {
        padding: 0.6rem 0.7rem;
        font-size: 16px;
        /* avoids zoom on iOS */
    }

    .enquire-send-btn {
        padding: 0.85rem 1.25rem;
    }
}

.section-heading-wrapper {
    text-align: center;
}

.heading-text-wrapper {
    display: flex;
    column-gap: 15px;
    justify-content: center;
    align-items: center;
}

.heading-text-wrapper .heading-text {
    color: var(--me-brown-hex);
    font-size: calc(1.5rem + 1vw);
    font-weight: 600;
    margin: 0;
}

.heading-side-icon {
    height: 50px;
}

.section-heading-wrapper .heading-tagline {
    font-size: calc(0.75rem + 0.5vw);
    margin-top: 5px;
    font-weight: 600;
    color: var(--me-golden-hex);
}

.page-hero {
    position: relative;
    margin-top: var(--header-height);
    height: 60vh;
    width: 100%;
    background: linear-gradient(rgba(var(--me-brown-rgb), 0.8), rgba(var(--me-brown-rgb), 0.8)), var(--page-hero-background-image);
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media screen and (max-width: 767px) {
    .page-hero {
        height: 50vh;
    }
}

.page-hero-content-wrapper {
    width: 100%;
    z-index: 3;
}

.hero-title {
    color: #fff;
    font-family: var(--me-font);
    font-size: calc(2.5rem + 4vw);
    font-weight: 600;
    letter-spacing: 10px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 1);
    text-align: center;
    width: 100%;
    margin: 0;
    z-index: 3;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: calc(0.9rem + 0.8vw);
    font-weight: 400;
    letter-spacing: 4px;
    text-align: center;
    margin-top: 0.75rem;
    margin-bottom: 0;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
}

@media screen and (max-width: 767px) {
    .hero-subtitle {
        letter-spacing: 2px;
        font-size: 0.95rem;
    }
}

/*---------------------------------- Home Page Styles ----------------------------------*/

/* #home {
    background-color: var(--background-color);
} */

/* #home::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../assets/resource/temp.png');
    background-position: center;
    opacity: 0.1;
    z-index: 0;
} */

/* Hero Section Styles */
.hero-section {
    position: relative;
    width: 100%;
    height: calc(100dvh - var(--header-height));
    margin-top: var(--header-height);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-wrapper {
    /* padding-top: var(--header-height); */
    height: 100%;
    width: 100%;
    display: grid;
    grid-template-columns: 5vw 95vw;
}

.hero-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    /* background-color: var(--me-brown-hex); */
}

.hero-branding {
    position: absolute;
    left: 0;
    width: calc(7rem + 15vw);
    background-color: var(--me-brown-hex);
    z-index: 1;
    overflow: hidden;
}

.hero-branding-img {
    width: 100%;
    position: relative;
}

/* Shimmer effect */
.hero-branding .shimmer {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0%;
    background: linear-gradient(45deg,
            transparent 40%,
            rgba(255, 255, 255, 0.7) 50%,
            transparent 60%);
    mask-image: url(../assets/resource/logo_2.png);
    mask-size: cover;

    background-size: 200% 100%;
    /* opacity: 1; */
    /* transition: opacity 0.3s ease-in-out; */
    animation: shimmerEffect 5s linear infinite;
}

@keyframes shimmerEffect {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

.hero-media-wrapper {
    /* background-color: var(--me-golden-hex); */
    position: relative;
    padding: 2rem;
    overflow: hidden;
}

#heroSplide {
    width: 100%;
    height: 100%;
}

#heroSplide .splide__track,
#heroSplide .splide__list,
#heroSplide .splide__slide {
    height: 100%;
}

.hero-carousel-img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
    object-position: center;
}

#heroSplide .splide__pagination {
    bottom: 2rem;
}

#heroSplide .splide__pagination__page {
    background: rgba(255, 255, 255, 0.5);
    width: 12px;
    height: 12px;
    margin: 0 8px;
    transition: all 0.3s ease;
}

#heroSplide .splide__pagination__page.is-active {
    background: var(--me-golden-hex);
    transform: scale(1.3);
}

@media screen and (max-width: 576px) {
    .hero-wrapper {
        background-color: var(--me-brown-hex);
    }

    .hero-media-wrapper {
        padding: 0rem;
    }

    .hero-carousel-img {
        border-radius: 0px;
    }

    .hero-content {
        align-items: flex-end;
    }

    .hero-branding {
        bottom: 5rem;
    }
}

/* Memar Section */
#memar-section {
    position: relative;
    width: 100%;
    height: calc(100vh - var(--header-height));
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.memar-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.memar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(var(--me-brown-rgb), 0.5) 0%,
            rgba(var(--me-golden-rgb), 0.3) 50%,
            rgba(var(--me-brown-rgb), 0.6) 100%);
}

.memar-content {
    z-index: 1;
    color: white;
    text-align: center;
}

.memar-title {
    font-family: var(--me-font);
    font-size: calc(3rem + 2vw);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background-image: url('../assets/resource/texture.png');
    background-size: cover;
    background-position: center;
    -webkit-background-clip: text;
    background-clip: text;
    /* -webkit-text-stroke: 1px #fff; */
    /* color: transparent; */
    opacity: 1;
    /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); */
    /* text-shadow:
        -5px -5px 0 rgba(var(--me-brown-rgb), 0.5),
        5px -5px 0 rgba(var(--me-brown-rgb), 0.5),
        -5px 5px 0 rgba(var(--me-brown-rgb), 0.5),
        5px 5px 0 rgba(var(--me-brown-rgb), 0.5); */
}

.memar-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    opacity: 0;
}

.memar-ribbon {
    position: absolute;
    bottom: 5rem;
    right: calc(2.5rem + 2vw);
    background: url('../assets/resource/texture.png');
    background-size: cover;
    color: #fff;
    padding: 5px 30px;
    border-radius: 5px;
    box-shadow: 2px 2px 5px #000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.memar-ribbon:hover {
    transform: scale(1.05);
}

.memar-ribbon-text {
    margin: 0;
    color: var(--me-bg);
}

/* Memar Section End */

/* Construction Quality Section */
#construction-quality {
    position: relative;
}

#construction-quality .splide__slide {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

#construction-quality .object-fit-cover {
    object-fit: cover;
}

#construction-quality .splide__arrow {
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
}

#construction-quality .splide__pagination__page.is-active {
    background: var(--me-brown-hex);
}

/* #construction-quality .splide__arrow--prev {
    left: -3em;
}

#construction-quality .splide__arrow--next {
    right: -3em;
} */

.cq-animated-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    background-color: var(--me-brown-hex);
    pointer-events: none;
    opacity: 0;
    padding: 4rem;
    border-radius: 10px;
}

.cq-animated-overlay-text {
    font-family: var(--me-font);
    font-size: calc(2rem + 2vw);
    font-weight: 600;
    color: var(--light-color);
    opacity: 0;
    text-align: center;
    line-height: 1.5;
}

.cq-content-wrapper {
    visibility: hidden;
}

.construction-quality-title {
    font-family: var(--me-font);
    font-size: calc(1rem + 1vw);
    font-weight: 600;
    color: var(--me-brown-hex);
    margin-top: 1rem;
}

.stats-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('../assets/resource/texture_2.png');
    background-size: cover;
    background-position: center;
    padding: 2rem 0;
}

.stats-image-wrapper img {
    width: 100%;
    height: 100%;
}

.stats-image-wrapper .main-stats-image {
    max-width: 100%;
    height: 80vh;
}

.stats-image-wrapper .stat-circle {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: calc(6rem + 5vw);
    aspect-ratio: 1;
    border-radius: 50%;
    text-align: center;
    padding: 0.5rem;
    background-image: url('../assets/resource/golder_circle_filled.png');
    background-position: center;
    background-size: cover;
    font-family: var(--me-font);
    color: var(--me-brown-hex);
    /* overflow: hidden; */
}

.stats-image-wrapper .stat-number {
    font-size: calc(1.5rem + 1vw);
    font-weight: 700;
    display: block;
}

.stats-image-wrapper .stat-label {
    font-size: calc(0.8rem + 0.5vw);
    font-weight: 600;
    display: block;
    line-height: 1.2;
}

.stats-image-wrapper .stat-1 {
    top: 3%;
    left: 50%;
    transform: translateX(-50%);
}

.stats-image-wrapper .stat-2 {
    top: 16%;
    left: 40%;
    transform: translateX(-110%);
}

.stats-image-wrapper .stat-3 {
    top: 16%;
    right: 40%;
    transform: translateX(110%);
}

.testimonial-item {
    /* height: 300px; */
    background-image: url('../assets/resource/texture.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    padding: 1rem;
}

.testimonial-quote-icon {
    padding: 1rem;
    font-size: 4rem;
    background-image: url('../assets/resource/texture_3.png');
    background-size: cover;
    background-position: center;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

.testimonial-quote-icon.end-quote {
    transform: rotate(180deg);

}

/* .testimonial-text-wrapper {
    transform: skew(-20deg);
    width: 70%;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background-color: var(--me-bg);
} */

.testimonial-text {
    color: #fff;
    font-size: calc(0.75rem + 1vw);
    text-align: center;
    /* transform: skew(20deg); */
}

/*---------------------------------- Projects Page Styles ----------------------------------*/


/* Hero Section */
.projects-hero {
    --sunriseAnimationDuraiton: 2s;
    /* position: relative; */
    /* background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-4.0.3&auto=format&fit=crop&w=1470&q=80') no-repeat center center/cover; */
    background: linear-gradient(rgba(var(--me-brown-rgb), 0.8), rgba(var(--me-brown-rgb), 0.8)), url('../assets/resource/buildings.png');
    background-size: cover;
    /* color: white; */
    /* text-align: center; */
    /* height: 70vh; */
    /* padding: 180px 0 100px; */
    /* margin-top: 76px; */
}

@keyframes sunriseEffectTitle {
    from {
        bottom: 30%;
        /* color: var(--me-light-color); */
    }

    to {
        bottom: 40%;
        /* color: var(--me-brown-hex); */
    }
}

@keyframes sunriseEffectOverlay {
    0% {
        opacity: 1;
    }

    99% {
        z-index: 5;
    }

    100% {
        opacity: 0;
        z-index: 0;
    }
}

.projects-hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 5;
    animation: sunriseEffectOverlay var(--sunriseAnimationDuraiton) linear forwards;
}

.projects-hero .buildings-img-wrapper {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60%;
    z-index: 4;
}

.projects-hero .buildings-img-wrapper>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    filter: brightness(0.8);
}

.projects-hero .projects-hero-title {
    position: absolute;
    bottom: 0;
    /* font-size: 8rem; */
    /* font-weight: 600; */
    /* font-family: var(--me-font); */
    /* letter-spacing: 10px; */
    /* text-shadow: 0 0 10px rgba(0, 0, 0, 1); */
    /* text-align: center; */
    /* width: 100%; */
    /* margin: 0; */
    /* z-index: 3; */
    animation: sunriseEffectTitle var(--sunriseAnimationDuraiton) linear forwards;
}

.projects-hero h1 {
    /* font-weight: 700; */
    margin-bottom: 20px;
    /* text-transform: uppercase; */
    /* letter-spacing: 2px; */
}

.projects-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

/* Project Filter */
.project-filter {
    margin: 60px 0 40px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--me-golden-hex);
    color: var(--me-brown-hex);
    padding: 5px 16px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 1px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--me-brown-hex);
    color: white;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

#projectsWrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

#projectsWrapper>* {
    flex: 0 0 calc(50% - 10px);
}

@media screen and (max-width: 1023px) {
    #projectsWrapper>* {
        flex: 0 0 100%;
    }
}

/* Project Cards */
.project-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: white;
    height: 20rem;
    display: flex;
    flex-direction: row;
}

@media screen and (max-width: 576px) {
    .project-card {
        flex-direction: column;
    }
}

.project-card:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.project-img-container {
    position: relative;
    overflow: hidden;
    height: 100%;
    width: 40%;
    padding: 5px;
    border-radius: 10px 0 0 10px;
}

@media screen and (max-width: 576px) {
    .project-card {
        height: auto;
    }

    .project-img-container {
        width: 100%;
        max-height: 30rem;
    }
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 10px 0 0 10px;
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.project-overlay-title {
    /* color: var(--me-golden-hex); */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../assets/resource/projects/memar_elara.jpeg');
    background-size: cover;
    background-position: center;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    -webkit-text-stroke: 1px var(--light-color);
}

.project-overlay-title h2 {
    padding: 0.5rem;
    font-size: calc(3.5rem + 3vw);
    text-align: center;
    line-height: 1;
    font-family: var(--me-font);
    font-weight: 1000;
}

.project-card:has(.view-project:hover) .project-overlay {
    opacity: 1;
    z-index: 1;
}

.project-info {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-category {
    color: var(--me-golden-hex);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.project-title {
    font-family: var(--me-font);
    font-weight: 700;
    color: var(--me-brown-hex);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.project-description {
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.view-project {
    color: var(--me-golden-hex);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    z-index: 2;
}

@media screen and (min-width: 577px) {
    .view-project:hover {
        color: var(--light-color);
    }
}

.view-project:hover {
    transform: translateX(5px);
}

.view-project i {
    margin-left: 8px;
    transition: all 0.3s ease;
}

.status-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--me-golden-hex);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

/*---------------------------------- Project Detail (Explore Project) ----------------------------------*/
.project-detail-hero {
    --page-hero-background-image: url('../assets/resource/projects/sky_mark.jpeg');
    background-position: center center;
}

.project-detail-nav {
    background-color: var(--me-bg);
    padding: 0.75rem 0;
    position: sticky;
    top: var(--header-height);
    z-index: 10;
    box-shadow: 0 2px 8px rgba(var(--me-brown-rgb), 0.08);
}

.project-detail-nav-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
}

.project-detail-nav-link {
    color: var(--me-brown-hex);
    text-decoration: none;
    font-family: var(--me-font);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.project-detail-nav-link:hover {
    color: var(--me-golden-hex);
}

.project-detail-nav-link.active {
    color: var(--me-golden-hex);
    background-color: rgba(var(--me-golden-rgb), 0.12);
}

.project-detail-section {
    padding: 3rem 0;
}

.project-detail-overview {
    background-color: #fff;
}

.project-detail-lead {
    font-family: var(--me-font);
    font-size: 1.15rem;
    color: var(--me-brown-hex);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-detail-description {
    font-size: 0.95rem;
    line-height: 1.65;
}

.project-detail-meta {
    background-color: var(--me-bg);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(var(--me-brown-rgb), 0.12);
}

.project-detail-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.project-detail-meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--me-golden-hex);
    font-weight: 600;
}

.project-detail-meta-value {
    font-family: var(--me-font);
    color: var(--me-brown-hex);
    font-weight: 500;
}

.project-detail-rera-link {
    font-size: 0.85rem;
    color: var(--me-golden-hex);
    text-decoration: underline;
}

.project-detail-gallery {
    background-color: var(--me-bg);
}

/* .project-detail-gallery-slider .splide__arrow {
    background: var(--me-brown-hex);
    color: #fff;
}

.project-detail-gallery-slider .splide__arrow:hover {
    background: var(--me-golden-hex);
} */

.project-detail-gallery-slider .splide__pagination__page.is-active {
    background: var(--me-golden-hex);
}

.project-detail-usps {
    background-color: #fff;
}

.project-usp-card {
    background-color: var(--me-bg);
    padding: 1.5rem;
    border-radius: 10px;
    height: 100%;
    border: 1px solid rgba(var(--me-brown-rgb), 0.08);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.project-usp-card:hover {
    box-shadow: 0 8px 24px rgba(var(--me-brown-rgb), 0.1);
    border-color: rgba(var(--me-golden-rgb), 0.3);
}

.project-usp-icon {
    margin-right: 5px;
    font-size: 1.75rem;
    color: var(--me-golden-hex);
    margin-bottom: 0.75rem;
}

.project-usp-title {
    font-family: var(--me-font);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--me-brown-hex);
    margin-bottom: 0.5rem;
}

.project-usp-text {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.project-detail-specs {
    background-color: var(--me-bg);
}

.project-spec-accordion .accordion-button {
    font-family: var(--me-font);
    font-weight: 600;
    color: var(--me-brown-hex);
    background-color: rgba(255, 255, 255, 0.8);
}

.project-spec-accordion .accordion-button:not(.collapsed) {
    background-color: var(--me-bg);
    color: var(--me-golden-hex);
    box-shadow: none;
}

.project-spec-accordion .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--me-golden-rgb), 0.25);
}

.project-spec-accordion .accordion-item {
    border-color: rgba(var(--me-brown-rgb), 0.15);
    margin-bottom: 0.5rem;
    border-radius: 8px;
    overflow: hidden;
}

.project-spec-list {
    margin: 0;
    padding-left: 1.25rem;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
}

.project-detail-location {
    background-color: #fff;
}

.project-detail-address-card {
    background-color: var(--me-bg);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(var(--me-brown-rgb), 0.1);
}

.project-detail-address-title {
    font-family: var(--me-font);
    font-size: 1rem;
    font-weight: 600;
    color: var(--me-brown-hex);
    margin-bottom: 0.75rem;
}

.project-detail-address {
    font-style: normal;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.project-detail-landmarks {
    margin: 0;
    padding-left: 1.25rem;
    color: #555;
    line-height: 2;
    font-size: 0.95rem;
}

.project-detail-enquire {
    background-color: var(--me-bg);
}

.project-detail-form-wrapper {
    /* max-width: 600px; */
    margin: 0 auto;
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(var(--me-brown-rgb), 0.08);
}

.project-detail-form-wrapper .me-form-control {
    color: var(--me-brown-hex);
}

.project-detail-consent {
    font-size: 0.8rem;
    line-height: 1.5;
}

.project-detail-similar {
    background-color: #fff;
}

.project-detail-similar-card {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(var(--me-brown-rgb), 0.1);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.project-detail-similar-card:hover {
    border-color: var(--me-golden-hex);
    box-shadow: 0 6px 20px rgba(var(--me-brown-rgb), 0.1);
    color: var(--me-brown-hex);
}

.project-detail-similar-title {
    font-family: var(--me-font);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--me-brown-hex);
    margin-bottom: 0.25rem;
}

.project-detail-similar-desc {
    font-size: 0.85rem;
}

.project-detail-similar-more {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    color: var(--me-golden-hex);
    font-weight: 600;
    font-size: 1rem;
}

.project-detail-similar-more:hover {
    color: var(--me-brown-hex);
}

@media screen and (max-width: 767px) {
    .project-detail-nav {
        top: 100px;
    }

    .project-detail-section {
        padding: 2rem 0;
    }

    .project-detail-form-wrapper {
        padding: 1.5rem;
    }
}

/* Responsive Styles */

@media screen and (min-width: 767px) {
    #construction-quality li.splide__slide:nth-child(even) .row {
        flex-direction: row-reverse;
    }

    .project-filter {
        margin: 40px 0 30px;
    }

    .filter-btn {
        padding: 6px 15px;
        font-size: 0.65rem;
    }
}

@media screen and (max-width: 576px) {
    .project-filter {
        justify-content: center;
    }
}

/*---------------------------------- Site Footer ----------------------------------*/
.site-footer {
    background-color: var(--me-brown-hex);
    color: #fff;
}

.site-footer .footer-logo-link {
    text-decoration: none;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-footer .footer-logo {
    max-width: 10rem;
    height: auto;
    display: block;
}

.site-footer .footer-text {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.5;
}

.site-footer .footer-heading {
    font-family: var(--me-font);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
}

.site-footer .footer-links li {
    margin-bottom: 0.5rem;
}

.site-footer .footer-link {
    display: inline-block;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.site-footer .footer-link:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.site-footer .footer-link-highlight {
    color: var(--me-golden-hex);
    font-weight: 600;
}

.site-footer .footer-link-highlight:hover {
    color: var(--me-golden-hex);
    opacity: 0.9;
}

.site-footer .footer-address {
    font-style: normal;
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.95;
}

.site-footer .footer-social {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

@media screen and (max-width: 576px) {
    .site-footer .footer-social {
        justify-content: center;
    }
}

.site-footer .footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.site-footer .footer-social-link:hover {
    color: var(--me-golden-hex);
    border-color: var(--me-golden-hex);
    background-color: rgba(255, 255, 255, 0.05);
}