/* ==========================================================================
   CUSTOM ANIMATIONS AND INTERACTIONS (PURE ANIMATION - DESIGN UNTOUCHED)
   ========================================================================== */

/* Reading Scroll Progress Bar */
.custom-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 9999;
    pointer-events: none;
}

.custom-progress-bar {
    height: 100%;
    width: 0%;
    background: #d4af37;
    transition: width 0.1s ease-out;
}

/* Author Profile Spacing (Spacing above author & between photo and name) */
.about-author {
    margin-top: 35px !important;
    gap: 20px;
    align-items: center;
}

.about-author img {
    margin-right: 15px;
}

.about-author-detail h3 {
    margin-bottom: 5px;
}

/* 30 Years Experience Section - Image Adjustments */
.desktop-about-year .p1 .col-md-5,
.desktop-about-year .p2 .col-md-5 {
    max-width: 42%;
    flex: 0 0 42%;
}

.desktop-about-year img:not(.a-thumbnail) {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    transform: scale(1.15);
}

.a-thumbnail {
    width: 150px !important;
    max-width: 150px !important;
    position: relative !important;
    left: -2rem !important;
    top: -8rem !important;
}

/* Second image moved further up */
.desktop-about-year .p2 {
    margin-top: -200px !important;
}

.desktop-about-year .easete-gal {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.about-easte .easete-gal img:not(.a-thumbnail) {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
}

.about-easte .mobile-about-year img {
    width: 100%;
    max-width: 100%;
}

/* Scroll Reveal Animations (Very Slow & Smooth Glide into place on scroll) */
.custom-reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1), transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.custom-reveal-left {
    opacity: 0;
    transform: translateX(-35px);
    /* Small smooth reveal rightwards */
    transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1), transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.custom-reveal-right {
    opacity: 0;
    transform: translateX(35px);
    /* Small smooth reveal leftwards */
    transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1), transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.custom-reveal-zoom {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1), transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

/* Active State for Scroll Reveal */
.custom-reveal.custom-active,
.custom-reveal-left.custom-active,
.custom-reveal-right.custom-active,
.custom-reveal-zoom.custom-active {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Stagger Delays */
.custom-delay-1 {
    transition-delay: 0.2s;
}

.custom-delay-2 {
    transition-delay: 0.4s;
}

.custom-delay-3 {
    transition-delay: 0.6s;
}

.d-inline-block {
    display: inline-block;
}


/* Subtle Hover Lift (Transform Only) */
.custom-hover-lift {
    transition: transform 0.3s ease;
}

.custom-hover-lift:hover {
    transform: translateY(-5px);
}

/* Image Hover Zoom (Transform Only) */
.custom-img-zoom {
    overflow: hidden;
}

.custom-img-zoom img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-img-zoom:hover img {
    transform: scale(1.06);
}

/* Director Profile, Board Card & 3D Image Card Transitions */
.custom-profile-card img,
.custom-board-card,
.custom-3d-card,
.amni-all li {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
    will-change: transform;
}

.amni-all li:hover {
    transform: translateY(-8px) scale(1.03);
}

.apr-ul li,
.apr-ul li:hover {
    transform: none !important;
    transition: none !important;
}

/* Hero & Section Sign Mouse Movement */
.custom-hero-sign,
.projext-sign,
.projct-sig,
.director-sign {
    transition: transform 0.15s ease-out;
    display: inline-block;
}

/* Scroll-Driven Text Color Reveal (Grey to Black) */
.custom-scroll-text-reveal {
    display: block;
}

.custom-word {
    color: #cccccc;
    transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline;
}

.custom-word.custom-word-active {
    color: #000000 !important;
}

/* Back to Top Button */
.custom-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: #111111;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.custom-back-to-top.custom-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-back-to-top:hover {
    background: #d4af37;
    color: #111111;
    transform: translateY(-3px);
}

/* Terms Checkbox & Submit Button Spacing Alignment */
label.termcond {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    cursor: pointer !important;
    margin-bottom: 15px !important;
    margin-top: 10px !important;
}

label.termcond input[type="checkbox"] {
    margin-top: 2px !important;
    flex-shrink: 0 !important;
    width: 20px !important;
    height: 20px !important;
    cursor: pointer !important;
}

:not(.news-cicle) > .contact-btn:not(.news-btn),
input[type="submit"].contact-btn:not(.news-btn),
button.contact-btn:not(.news-btn) {
    margin-top: 22px !important;
}

/* Newsletter Circle Arrow Alignment Fix */
.news-cicle {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.news-cicle .news-btn,
.news-cicle .contact-btn {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background-color: transparent !important;
    background-image: url(../img/right-line-arrow.svg) !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: 16px auto !important;
    text-indent: -9999px !important;
    cursor: pointer !important;
    outline: none !important;
}

/* Mobile Hero Banner Image Spacing (50px top space, 50px bottom space) */
@media only screen and (max-width: 991px) {
    .about-banner .banner-content {
        margin-top: 100px !important;
        margin-bottom: 50px !important;
    }
    
    .about-zoomer,
    .zoomer-video.about-zoomer {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    
    .about-description {
        padding-top: 50px !important;
    }
}

/* Villa Cards 2-Per-Row Layout & 30px Horizontal Gap */
.design-villa {
    display: block !important;
    margin-top: 2rem !important;
    max-width: 490px !important;
}

.design-villa .row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px 30px !important; /* 20px vertical gap, 30px horizontal gap */
    margin: 0 !important;
    width: 100% !important;
}

.design-villa .row > [class*="col-"] {
    padding: 0 !important;
    width: 230px !important;
    flex: 0 0 230px !important;
    max-width: 230px !important;
}

.design-villa .d-villa {
    width: 230px !important;
    max-width: 230px !important;
    padding: 12px 14px !important;
    margin-bottom: 0 !important;
    box-sizing: border-box !important;
}

.design-villa .d-villa h6 {
    font-size: 15px !important;
}

.design-villa .d-villa p {
    font-size: 13px !important;
    padding-top: 6px !important;
}

.fvilla:before,
.fvilla1:before {
    right: 8px !important;
    width: 32px !important;
    height: 22px !important;
    background-size: contain !important;
}

/* ==========================================================================
   MOBILE HORIZONTAL IMAGE CENTERED & CROPPED LAYOUT (CONVENIENCE REDEFINED)
   ========================================================================== */
@media only screen and (max-width: 767px) {
    .position-relative:has(.scrollmoving),
    div:has(> .scrollmoving) {
        overflow: hidden;
        width: 100%;
    }

    .scrollmoving {
        margin-top: 3rem !important;
        margin-bottom: 2rem !important;
        overflow: hidden !important;
        width: 100% !important;
        position: relative !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .scroll-left,
    .scroll-left.rellax-h {
        width: 100% !important;
        max-width: 100% !important;
        transform: none !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        position: relative !important;
        left: 0 !important;
        margin: 0 auto !important;
    }

    .s-left,
    .s-left.d-block.d-md-none {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        left: 0 !important;
        margin: 0 auto !important;
        position: relative !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        transform: none !important;
    }

    .s-left.d-block.d-md-none img,
    .s-left img[src*="horz-mobile"] {
        width: 125vw !important;
        min-width: 460px !important;
        max-width: 580px !important;
        height: auto !important;
        display: block !important;
        flex-shrink: 0 !important;
        margin: 0 auto !important;
        position: relative !important;
        left: 0 !important;
        transform: none !important;
    }

    .slide-text {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 5 !important;
        width: 100% !important;
        text-align: center !important;
        pointer-events: none !important;
    }

    .slide-text img {
        width: 290px !important;
        max-width: 82% !important;
        height: auto !important;
        display: inline-block !important;
    }
}

/* ==========================================================================
   BROCHURE ENQUIRY POPUP MODAL STYLES (EXACT MOCKUP MATCH)
   ========================================================================== */
.brochure-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 15px;
}

.brochure-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.brochure-modal-container {
    background: #ffffff;
    width: 100%;
    max-width: 440px;
    border-radius: 6px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    position: relative;
    padding: 38px 35px 35px 35px;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Montserrat', sans-serif, system-ui;
}

.brochure-modal-overlay.active .brochure-modal-container {
    transform: translateY(0) scale(1);
}

.brochure-modal-close {
    position: absolute;
    top: 14px;
    right: 20px;
    background: none;
    border: none;
    color: #333333;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.brochure-modal-close:hover {
    color: #000000;
    transform: scale(1.1);
}

.brochure-modal-title {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #222222;
    margin: 0 0 28px 0;
    letter-spacing: -0.3px;
}

.brochure-form-group {
    margin-bottom: 22px;
    position: relative;
}

.brochure-form-group input {
    width: 100%;
    padding: 10px 0;
    font-size: 15px;
    color: #222222;
    border: none;
    border-bottom: 1px solid #cccccc;
    border-radius: 0;
    background: transparent;
    outline: none;
    transition: border-color 0.25s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.brochure-form-group input::placeholder {
    color: #888888;
    font-weight: 400;
    font-size: 14.5px;
}

.brochure-form-group input:focus {
    border-bottom: 1px solid #000000;
    background: transparent;
}

.brochure-consent-block {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 25px 0 28px 0;
}

.brochure-consent-block input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #000000;
    cursor: pointer;
}

.brochure-consent-block label {
    font-size: 11.5px;
    color: #777777;
    line-height: 1.45;
    margin: 0;
    cursor: pointer;
    font-weight: 400;
}

.brochure-btn-submit {
    width: 100%;
    padding: 15px 20px;
    background: #000000;
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: none;
    border-radius: 0px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.brochure-btn-submit:hover {
    background-color: #222222;
}

.brochure-btn-submit:disabled {
    background-color: #666666;
    cursor: not-allowed;
}

.brochure-status-msg {
    margin-top: 15px;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 13px;
    text-align: center;
    display: none;
    line-height: 1.4;
}

.brochure-status-msg.success {
    display: block;
    background-color: #e6f4ea;
    color: #137333;
    border: 1px solid #ceead6;
}

.brochure-status-msg.error {
    display: block;
    background-color: #fce8e6;
    color: #c5221f;
    border: 1px solid #fad2cf;
}

.brochure-btn-download {
    display: none;
    width: 100%;
    margin-top: 15px;
    padding: 14px 20px;
    background: #960814;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none !important;
    border: none;
    border-radius: 0px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.brochure-btn-download:hover {
    background-color: #72050f;
    color: #ffffff !important;
}








