/* ========================================
   PREMIUM LUXURY REAL ESTATE ENHANCEMENTS
   ======================================== */

/* HERO SECTION ANIMATIONS */
@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes wordReveal {
    0% {
        opacity: 0;
        transform: translateY(20px) translateX(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) translateX(0);
    }
}

@keyframes slideInHeading {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes buttonSlideIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Hero section styling */
.hero-animated {
    position: relative;
    overflow: hidden;
}

.hero-fade-in {
    animation: heroFadeIn 0.8s ease-out forwards;
}

/* Word-by-word heading animation */
.word-reveal {
    display: inline-block;
    animation: wordReveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
}

/* Parallax Background */
[data-parallax] {
    will-change: transform;
}

.parallax-bg {
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* IMMEDIATE VISUAL IMPROVEMENTS */

/* Enhanced Buttons - Visible Immediately */
button, .brochure-btn, .register-btn, .master-plan-cta, .get-costing-btn, .location-cta-btn {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    animation: buttonSlideIn 0.8s ease-out;
}

button:hover, .brochure-btn:hover, .register-btn:hover, .master-plan-cta:hover, 
.get-costing-btn:hover, .location-cta-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2) !important;
}

/* Enhanced Form Fields */
input:focus, textarea:focus, select:focus {
    border-color: #d4af37 !important;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2) !important;
}

input, textarea, select {
    transition: all 0.3s ease !important;
}

/* Enhanced Navigation Links */
nav a, .nav-link {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

nav a:hover, .nav-link:hover {
    color: #8b7355 !important;
    font-weight: 700 !important;
}

/* Image Enhancements */
img {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

img:hover {
    filter: brightness(1.05) !important;
}

/* Post-home luxury color and typography treatment */
.overview-main > section:not(#home),
.page-main,
.page-main section,
.content-shell,
.site-footer {
    background-color: #000000;
}

.overview-main > section:not(#home) h1,
.overview-main > section:not(#home) h2,
.overview-main > section:not(#home) h3,
.overview-main > section:not(#home) h4,
.overview-main > section:not(#home) h5,
.overview-main > section:not(#home) h6,
.page-main h1,
.page-main h2,
.page-main h3,
.page-main h4,
.page-main h5,
.page-main h6,
.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer h6 {
    color: #C9A45C;
    font-family: 'Playfair Display', serif;
}

.overview-main > section:not(#home) p,
.overview-main > section:not(#home) li,
.overview-main > section:not(#home) th,
.page-main p,
.page-main li,
.page-main td,
.page-main th,
.site-footer p,
.site-footer li {
    color: #FFFFFF;
    font-family: 'DM Sans', sans-serif;
}

/* FAQ page surface colors */
body:has(.content-shell) .page-shell,
body:has(.content-shell) .page-main {
    background: #000000 !important;
}

body:has(.content-shell) {
    background: #000000 !important;
}

.content-shell {
    background: #000000 !important;
    background-image: none !important;
    box-shadow: none !important;
}

.content-shell h1,
.faq-main-title {
    color: #C9A45C;
}

.faq-item,
.faq-item.active,
.faq-item.active .faq-question {
    background: #000000 !important;
    border-color: #C9A45C !important;
    box-shadow: none !important;
}

.faq-list,
.faq-answer,
.faq-question {
    background: #000000 !important;
}

.faq-question,
.faq-answer p {
    color: #FFFFFF;
    font-family: 'DM Sans', sans-serif;
}

.faq-toggle,
.faq-main-title span {
    color: #C9A45C;
}

/* Focused FAQ page view */
body:has(.content-shell):has(.faq-list) .site-header,
body:has(.content-shell):has(.faq-list) .page-main > .carousel-hero,
body:has(.content-shell):has(.faq-list) .page-main > .master-plan-hero,
body:has(.content-shell):has(.faq-list) .page-main > .location-section,
body:has(.content-shell):has(.faq-list) .site-footer {
    display: none;
}

body:has(.content-shell):has(.faq-list) .page-main {
    max-width: none;
    min-height: 100vh;
    padding: 20px;
}

body:has(.content-shell):has(.faq-list) .content-shell {
    min-height: 100vh;
    padding: 12px 0 20px;
    border-radius: 0;
}

body:has(.content-shell):has(.faq-list) .content-shell h1 {
    max-width: 820px;
    margin: 0 auto 16px;
    padding-bottom: 8px;
    border-bottom: none;
    font-size: clamp(2.5rem, 4vw, 4.5rem);
    line-height: 1;
}

body:has(.content-shell):has(.faq-list) .content-shell > .text-lead {
    display: none;
}

body:has(.content-shell):has(.faq-list) .faq-list {
    max-width: 1050px;
    margin: 12px auto 0;
    gap: 10px;
}

body:has(.content-shell):has(.faq-list) .faq-question {
    padding: 16px 14px;
    font-size: clamp(0.95rem, 1.25vw, 1.25rem);
}

body:has(.content-shell):has(.faq-list) .faq-question > span:first-child {
    color: #FFFFFF !important;
}

body:has(.content-shell):has(.faq-list) .faq-question > .faq-toggle {
    color: #C9A45C !important;
}

body:has(.section-grid) .info-card h3,
body:has(.section-grid) .info-card p {
    color: #000000 !important;
}

.amenity-card h4 {
    color: #000000 !important;
}

.enquire-modal .modal-overlay {
    background: #000000 !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.enquire-modal .enquire-content {
    border: 2px solid #C9A45C;
}

.register-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.65);
}

.register-modal-content {
    position: relative;
    width: min(100%, 620px);
    padding: 28px 24px 20px;
    background: #000000;
    border: 1px solid #C9A45C;
    border-radius: 24px;
    color: #FFFFFF;
}

.register-modal-content {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.register-modal-content::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.register-modal-content h2 {
    margin: 0 28px 24px 0;
    color: #C9A45C;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.35rem, 3vw, 2rem);
}

.register-modal-content .form-group label {
    color: #C9A45C;
    font-family: 'DM Sans', sans-serif;
}

.register-modal-content .form-group input {
    background: #1B1B1B;
    border-color: rgba(201, 164, 92, 0.6);
    color: #FFFFFF;
}

.register-modal-content .form-group input::placeholder {
    color: rgba(201, 164, 92, 0.75);
}

.register-modal-content .form-group.checkbox label {
    color: #FFFFFF;
}

.register-modal-content .register-btn {
    width: 100%;
    background: #000000;
    border: 1px solid #C9A45C;
    border-radius: 0;
    color: #FFFFFF;
    font-family: 'DM Sans', sans-serif;
    box-shadow: none;
}

.register-modal-content .register-btn span {
    color: #C9A45C;
}

@media (max-width: 768px) {
    #brochureModal {
        width: 100vw;
        height: 100vh;
        padding: 6vh 4vw;
        box-sizing: border-box;
        overflow: hidden;
        background: rgba(0, 0, 0, 0.65);
    }

    #brochureModal .brochure-content {
        width: 90vw;
        min-width: 0;
        max-width: 620px;
        max-height: 88vh;
        margin: 0 auto;
        padding: 24px 16px 20px;
        box-sizing: border-box;
        overflow-y: auto;
        overflow-x: hidden;
        border-radius: 24px;
    }

    #brochureModal .brochure-form,
    #brochureModal .form-group,
    #brochureModal .form-input,
    #brochureModal .enquire-submit-btn {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    #brochureModal .form-group.checkbox {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
    }

    #brochureModal .form-group.checkbox input {
        flex: 0 0 18px;
        width: 18px;
        min-width: 18px;
    }

    #brochureModal .form-group.checkbox label {
        flex: 1 1 auto;
        min-width: 0;
        overflow-wrap: anywhere;
    }

    #brochureModal .form-group,
    #brochureModal .form-group label,
    #brochureModal .form-input,
    #brochureModal .enquire-submit-btn {
        position: static;
        transform: none !important;
        animation: none !important;
    }

    #brochureModal .form-input {
        display: block;
    }

    .register-modal {
        width: 100vw;
        max-width: none;
        box-sizing: border-box;
        align-items: center;
        padding: 6vh 4vw;
        overflow: hidden;
    }

    .register-modal-content {
        width: 90%;
        max-width: 620px;
        max-height: 88vh;
        margin: 0 auto;
        padding: 24px 16px 16px;
        box-sizing: border-box;
        overflow-y: auto;
        overflow-x: hidden;
        border-radius: 24px;
    }

    .register-modal-content .registration-form,
    .register-modal-content .form-group,
    .register-modal-content .form-group input,
    .register-modal-content .register-btn {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .register-modal-content h2 {
        margin: 0 32px 20px 0;
        font-size: clamp(1.35rem, 6vw, 1.8rem);
        line-height: 1.15;
    }

    .register-modal-content .registration-form {
        display: flex;
        flex-direction: column;
        gap: 14px;
        width: 100%;
    }

    .register-modal-content .form-group {
        width: 100%;
        min-width: 0;
        gap: 6px;
    }

    .register-modal-content .form-group input {
        width: 100%;
        min-width: 0;
        padding: 12px;
        box-sizing: border-box;
    }

    .register-modal-content .form-group.checkbox {
        align-items: flex-start;
        gap: 10px;
        width: 100%;
    }

    .register-modal-content .form-group.checkbox label {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .register-modal-content .register-btn {
        width: 100%;
        min-height: 56px;
        margin-top: 2px;
        padding: 14px 16px;
        background: #000000;
        border: 1px solid #C9A45C;
        color: #FFFFFF;
    }
}

/* Keep the home villa cards compact and horizontally scrollable on phones. */
@media (max-width: 768px) {
    body:has(#home) .villa-showcase-section {
        padding: 28px 16px 36px;
    }

    body:has(#home) .villa-showcase-grid {
        display: flex;
        gap: 14px;
        margin: 0 -16px 28px;
        padding: 0 16px 12px;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: auto;
        scrollbar-color: #c9a45c #2b2b2b;
        overscroll-behavior-x: contain;
    }

    body:has(#home) .villa-showcase-grid::-webkit-scrollbar {
        height: 8px;
    }

    body:has(#home) .villa-showcase-grid::-webkit-scrollbar-track {
        background: #2b2b2b;
        border-radius: 4px;
    }

    body:has(#home) .villa-showcase-grid::-webkit-scrollbar-thumb {
        background: #c9a45c;
        border-radius: 4px;
    }

    body:has(#home) .villa-showcase-card {
        flex: 0 0 82vw;
        max-width: 360px;
        border-radius: 16px;
    }

    body:has(#home) .villa-showcase-image {
        height: 235px;
        border-radius: 16px 16px 0 0;
    }

    body:has(#home) .villa-showcase-card h3 {
        padding: 18px 18px 8px;
        font-size: 1.55rem;
    }

    body:has(#home) .villa-showcase-card p {
        padding: 0 18px 18px;
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

.quick-lead-section {
    background: #000000;
    padding: 10px 0 0;
}

.home-quick-lead {
    background: #000000;
    padding: 0 0 18px;
}

.quick-lead-form {
    display: grid;
    grid-template-columns: 1.4fr 1.4fr 1.4fr 1.1fr;
    gap: 14px;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 0 0 0;
}

.quick-lead-form input[type="text"],
.quick-lead-form input[type="email"],
.quick-lead-form input[type="tel"] {
    width: 100%;
    min-height: 74px;
    padding: 0 20px;
    border: 1px solid rgba(201, 164, 92, 0.8);
    border-radius: 16px;
    background: rgba(128, 145, 134, 0.82);
    color: #000000;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.98rem;
    font-weight: 500;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.quick-lead-form input[type="text"]:focus,
.quick-lead-form input[type="email"]:focus,
.quick-lead-form input[type="tel"]:focus {
    outline: none;
    border-color: #E2C57A;
    box-shadow: 0 0 0 2px rgba(226, 197, 122, 0.2);
}

.quick-lead-form input::placeholder {
    color: #000000;
    opacity: 1;
}

.quick-lead-form button {
    min-height: 74px;
    border: 1px solid #C9A45C;
    border-radius: 32px;
    background: #000000;
    color: #FFFFFF;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(1.2rem, 1.7vw, 1.8rem);
    cursor: pointer;
    width: 100%;
    box-shadow: none;
}

.quick-lead-form button:hover,
.quick-lead-form button:focus-visible {
    background: #000000;
    border-color: #E2C57A;
    color: #FFFFFF;
}

.quick-lead-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: min(100% - 32px, 720px);
    margin: 0 auto;
    padding: 22px 20px 18px;
    border: 1px solid #C9A45C;
    border-radius: 2px;
    background: #000000;
}

.quick-lead-form h2 {
    margin: 0 28px 4px 0;
    color: #C9A45C;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 1.15;
}

.quick-lead-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.quick-lead-form .form-group label {
    color: #C9A45C;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
}

.quick-lead-form input[type="text"],
.quick-lead-form input[type="email"],
.quick-lead-form input[type="tel"] {
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #1B1B1B;
    border-color: rgba(201, 164, 92, 0.6);
    color: #FFFFFF;
}

.quick-lead-form input::placeholder {
    color: rgba(201, 164, 92, 0.75);
}

.quick-lead-form .form-group.checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}

.quick-lead-form .form-group.checkbox input {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 3px;
    accent-color: #7B9D6A;
}

.quick-lead-form .form-group.checkbox label {
    color: #FFFFFF;
    font-size: 0.9rem;
    line-height: 1.45;
    font-weight: 400;
}

.quick-lead-form .register-btn {
    width: 100%;
    min-height: 56px;
    margin-top: 2px;
    border: 1px solid #C9A45C;
    border-radius: 0;
    background: #000000;
    color: #FFFFFF;
    font-family: 'DM Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
}

.quick-lead-form .register-btn span {
    color: #C9A45C;
}

.quick-lead-consent {
    grid-column: 4;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    color: #FFFFFF;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    margin-top: 6px;
    padding-left: 4px;
}

.quick-lead-consent input {
    width: 18px;
    height: 18px;
    accent-color: #C9A45C;
    margin: 0;
}

@media (max-width: 768px) {
    .home-quick-lead {
        padding: 0 0 18px;
        margin-top: 36px;
    }

    .quick-lead-form {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 0 16px;
    }

    .quick-lead-form input[type="text"],
    .quick-lead-form input[type="email"],
    .quick-lead-form input[type="tel"],
    .quick-lead-form button {
        min-height: 68px;
        border-radius: 18px;
    }

    .quick-lead-consent {
        grid-column: auto;
        justify-content: flex-start;
        margin-top: 0;
        font-size: 0.95rem;
    }
}

.close-modal-btn {
    position: absolute;
    top: 14px;
    right: 16px;
    border: 0;
    background: transparent;
    color: #FFFFFF;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.disclaimer-bar {
    background: #FFFFFF !important;
}

.disclaimer-bar h3,
.disclaimer-bar p {
    color: #171714;
    font-family: 'DM Sans', sans-serif;
}

/* Dark registration panel treatment */
.form-panel-large {
    background: #000000 !important;
    border-color: #C9A45C !important;
    box-shadow: none !important;
}

.form-panel-large h2 {
    color: #C9A45C !important;
    font-family: 'Playfair Display', serif;
}

.form-panel-large .form-group label {
    color: #FFFFFF !important;
    font-family: 'DM Sans', sans-serif;
}

.form-panel-large .form-group input {
    background: #171717 !important;
    border-color: rgba(255, 255, 255, 0.24) !important;
    color: #FFFFFF !important;
}

.form-panel-large .form-group input::placeholder {
    color: rgba(255, 255, 255, 0.62);
}

.form-panel-large .form-group.checkbox label {
    color: #FFFFFF !important;
}

.form-panel-large .register-btn {
    background: #000000 !important;
    border: 1px solid #C9A45C !important;
    color: #FFFFFF !important;
}

.form-panel-large .register-btn span {
    color: #FFFFFF !important;
}

.life-title,
.life-title span {
    color: #C9A45C !important;
}

/* Location page black and gold treatment */
body:has(.location-section) .location-section,
body:has(.location-section) .life-arrives-section,
body:has(.location-section) .site-footer {
    background: #000000 !important;
}

.location-intro h1,
.location-intro h1 span,
.location-intro .green-text,
.proximity-heading {
    color: #C9A45C !important;
}

.location-description,
.proximity-list li,
.proximity-name,
.proximity-distance {
    color: #FFFFFF !important;
    font-family: 'DM Sans', sans-serif;
}

.location-details {
    background: #000000 !important;
    border: 1px solid #C9A45C;
    border-radius: 14px;
}

.location-cta-btn,
.location-cta-btn span {
    color: #FFFFFF !important;
}

.location-map-area,
.dsr-group-plant {
    outline: 2px solid #C9A45C !important;
    outline-offset: -2px;
}

.proximity-list li {
    border-bottom-color: rgba(201, 164, 92, 0.28);
}

.master-plan-content {
    border: 1px solid #C9A45C;
    border-radius: 14px;
    padding: 10px;
}

.area-pricing-section {
    background: #000000 !important;
    border: 1px solid #C9A45C;
    height: auto;
    min-height: 0;
    padding-bottom: 60px;
}

.area-pricing-header h2,
.area-pricing-header h2 .pricing-accent {
    color: #C9A45C !important;
}

.area-pricing-section .pricing-table-wrapper,
.area-pricing-section .pricing-table thead,
.area-pricing-section .pricing-table tbody,
.area-pricing-section .pricing-table tr,
.area-pricing-section .pricing-table td,
.area-pricing-section .pricing-table th {
    background: #000000 !important;
}

.area-pricing-section .pricing-table th,
.area-pricing-section .pricing-table td {
    color: #FFFFFF !important;
}

/* Floor Plans page black and gold treatment */
body:has(.villa-showcase) .villa-showcase,
body:has(.villa-showcase) .pricing-info-section,
body:has(.villa-showcase) .site-footer {
    background: #000000 !important;
}

.villa-card-large,
.pricing-info-card {
    background: #000000 !important;
    border: 2px solid #C9A45C !important;
    outline: 2px solid #C9A45C !important;
    outline-offset: -2px;
    box-shadow: none;
}

.villa-card-large {
    position: relative;
}

.villa-card-large .villa-card-meta {
    display: flex;
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    align-items: center;
    justify-content: center;
}

.showcase-title,
.pricing-info-heading h2,
.pricing-info-card h3 {
    color: #C9A45C !important;
}

.price-range {
    color: #FFFFFF !important;
}

.gallery-card {
    border: 1px solid #C9A45C;
}

.gallery-grid {
    padding-left: 10px;
    padding-right: 10px;
}

.villa-explore-btn {
    color: #000000 !important;
    border: 2px solid #000000 !important;
    background: #FFFFFF !important;
}

.tab-btn:not(.active) {
    color: #FFFFFF !important;
}

.villa-plan-card {
    border: 2px solid #C9A45C !important;
    box-shadow: none;
}

.explore-plans-btn {
    border: 2px solid #000000 !important;
    background: #FFFFFF !important;
    color: #000000 !important;
}

.explore-plans-btn span {
    color: #000000 !important;
}

.explore-button-wrap {
    background: #000000 !important;
}

.explore-btn,
.explore-btn span {
    color: #FFFFFF !important;
}

.explore-btn {
    background: #C9A45C !important;
}

.explore-villas-btn,
.explore-villas-btn span {
    color: #FFFFFF !important;
}

.villa-showcase-card {
    outline: 2px solid #C9A45C !important;
    outline-offset: -2px;
}

.site-header,
.site-header.scrolled {
    background: #000000 !important;
    border-bottom-color: rgba(201, 164, 92, 0.35);
}

.overview-header h2 {
    font-size: clamp(1.65rem, 2.3vw, 4rem);
}

.main-nav a,
.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.active,
.call-strip {
    color: #C9A45C !important;
}

.main-nav a::after {
    background: #C9A45C;
}

/* Home hero content in one unified panel */
body:has(#home) .site-header {
    background: rgba(7, 9, 10, 0.94);
    border-bottom: 1px solid rgba(200, 165, 98, 0.7);
    box-shadow: none;
    backdrop-filter: none;
}

body:has(#home) .site-header .brand-dsr,
body:has(#home) .site-header .brand-elixir,
body:has(#home) .main-nav a,
body:has(#home) .call-strip {
    color: #F7F3EE;
}

body:has(#home) .site-header .brand-dsr {
    color: #E5D6B0;
}

body:has(#home) .site-header .brand-divider {
    background: rgba(228, 203, 160, 0.5);
}

body:has(#home) .main-nav a {
    font-weight: 500;
    opacity: 0.96;
}

body:has(#home) .main-nav a.active,
body:has(#home) .main-nav a:hover {
    color: #E6C787;
}

body:has(#home) .main-nav a::after {
    background: linear-gradient(90deg, #d4af37 0%, #f3d799 100%);
}

body:has(#home) .call-strip {
    justify-content: flex-end;
    gap: 10px;
    font-weight: 600;
}

body:has(#home) .call-strip .call-icon {
    background: #8ec07b;
    color: #15351f;
    box-shadow: 0 0 0 2px rgba(142, 192, 123, 0.25);
}

body:has(#home) #home {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(0,0,0,0.05), rgba(0,0,0,0.4));
    min-height: 700px;
}

body:has(#home) #home::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.66) 0%, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
}

body:has(#home) #home .carousel-content {
    position: relative;
    z-index: 4;
    width: 100%;
    max-width: 1500px;
    padding: 88px 26px 28px 26px;
    margin: 0 auto;
}

body:has(#home) #home .carousel-text {
    position: relative;
    width: min(62%, 760px);
    max-width: 760px;
    margin-left: 28px;
    padding: 0;
    background: transparent;
    border: none;
    backdrop-filter: none;
    z-index: 4;
}

body:has(#home) #home .carousel-text h1,
body:has(#home) #home .carousel-text p {
    color: #FFFFFF;
}

body:has(#home) #home .carousel-text h1 {
    width: 100%;
    max-width: 100%;
    display: block;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
    font-size: clamp(4.1rem, 5vw, 7.8rem);
    line-height: 0.82;
    letter-spacing: -0.065em;
    margin-bottom: 20px;
    font-weight: 500;
    font-family: 'Playfair Display', serif;
}

body:has(#home) #home .carousel-text h1 .text-accent {
    display: block;
    color: #D3B07A;
    font-style: italic;
    font-weight: 500;
    margin-top: 12px;
    font-family: 'Playfair Display', serif;
}

body:has(#home) #home .carousel-text p {
    background: transparent;
    padding: 0;
    font-size: clamp(1.5rem, 1.72vw, 2.2rem);
    line-height: 1.18;
    max-width: 700px;
    margin: 0 0 26px;
    color: #F5F2EC;
    font-weight: 400;
}

body:has(#home) #home .specifications-overlay {
    position: relative;
    left: 0;
    bottom: 0;
    transform: none;
    width: min(62%, 760px);
    max-width: 760px;
    gap: 0;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 18px 0 0 28px;
    padding: 0;
    border-radius: 0;
}

body:has(#home) #home .spec-box-item {
    background: transparent;
    border: none;
    border-right: 1px solid rgba(201, 164, 92, 0.75);
    border-radius: 0;
    padding: 14px 16px 10px 16px;
    backdrop-filter: none;
    min-height: 170px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    box-shadow: none;
}

body:has(#home) #home .spec-box-item:last-child {
    border-right: none;
}

body:has(#home) #home .spec-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-bottom: 12px;
    font-size: 1.35rem;
    line-height: 1;
    color: rgba(255,255,255,0.92);
}

body:has(#home) #home .spec-label {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #F2EDE5;
    margin-bottom: 12px;
    font-weight: 600;
    opacity: 0.9;
}

body:has(#home) #home .spec-value {
    font-size: clamp(1.5rem, 1.6vw, 2.1rem);
    line-height: 0.98;
    color: #FFFFFF;
    margin-bottom: 0;
    font-weight: 500;
    font-family: 'Playfair Display', serif;
}

body:has(#home) #home .spec-box-btn {
    display: none;
}

@media (max-width: 768px) {
    body:has(#home) .site-header {
        padding-left: 18px;
        padding-right: 18px;
    }

    body:has(#home) .brand {
        min-width: auto;
    }

    body:has(#home) #home::after {
        inset: 18px 14px 14px 14px;
        border-radius: 20px;
    }

    body:has(#home) #home .carousel-content {
        padding: 52px 16px 10px;
    }

    body:has(#home) #home .carousel-text {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }

    body:has(#home) #home .carousel-text h1 {
        width: 100%;
        max-width: 90%;
        display: block;
        white-space: normal;
        word-break: normal;
        overflow-wrap: normal;
        font-size: clamp(3rem, 14vw, 5.5rem);
        line-height: 0.92;
        letter-spacing: -0.05em;
        margin-bottom: 10px;
    }

    body:has(#home) #home .carousel-text p {
        font-size: clamp(1.3rem, 5vw, 2rem);
        margin-bottom: 16px;
    }

    body:has(#home) #home .specifications-overlay {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: calc(100% - 20px);
        margin: 0 auto 0;
        padding: 0;
    }

    body:has(#home) #home .spec-box-item {
        border-right: 1px solid rgba(201, 164, 92, 0.8);
        border-bottom: 1px solid rgba(201, 164, 92, 0.8);
        min-height: 150px;
        padding: 12px 14px 8px;
    }

    body:has(#home) #home .spec-box-item:nth-child(2n) {
        border-right: none;
    }

    body:has(#home) #home .spec-box-item:nth-last-child(-n+2) {
        border-bottom: none;
    }
}

/* Animation Keyframes */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Scroll Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    animation: fadeUp 0.8s ease-out forwards;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
    animation: slideInLeft 0.8s ease-out forwards;
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
    animation: slideInRight 0.8s ease-out forwards;
}

.reveal-zoom {
    opacity: 0;
    transform: scale(0.92);
}

.reveal-zoom.active {
    opacity: 1;
    transform: scale(1);
    animation: zoomIn 0.8s ease-out forwards;
}

/* Staggered Animations */
.reveal.stagger-1.active {
    animation-delay: 0.1s;
}

.reveal.stagger-2.active {
    animation-delay: 0.2s;
}

.reveal.stagger-3.active {
    animation-delay: 0.3s;
}

.reveal.stagger-4.active {
    animation-delay: 0.4s;
}

.reveal.stagger-5.active {
    animation-delay: 0.5s;
}

/* Premium Image Hover Effects */
.image-hover {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.image-hover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), 
                filter 0.5s ease-out,
                box-shadow 0.5s ease-out;
    transform: scale(1);
}

.image-hover:hover img {
    transform: scale(1.08);
    filter: brightness(1.1);
}

.image-hover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.5s ease-out;
    pointer-events: none;
    border-radius: 12px;
}

.image-hover:hover::after {
    opacity: 1;
}

/* Premium Button Animations */
.btn-premium {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transition: left 0.5s ease-out;
    pointer-events: none;
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-premium:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.btn-premium:active {
    transform: translateY(-2px);
}

/* Navigation Enhancement */
.site-header {
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: rgba(248, 245, 240, 0.99);
}

.main-nav a {
    position: relative;
    transition: all 0.3s ease;
}

.main-nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #d4af37, #8b7355);
    transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.main-nav a:hover::before,
.main-nav a.active::before {
    width: 100%;
}

/* Card Hover Effects */
.card-premium {
    position: relative;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 16px;
    overflow: hidden;
}

.card-premium:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.card-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease-out;
    pointer-events: none;
}

.card-premium:hover::before {
    opacity: 1;
}

/* Section Heading Animations */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.02em;
    transition: all 0.3s ease;
}

.section-heading {
    position: relative;
    display: inline-block;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #8b7355);
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.section-heading.active::after {
    width: 100%;
}

/* Premium Background Patterns */
.bg-premium {
    position: relative;
    background: linear-gradient(135deg, #f9f7f3 0%, #ebe8df 100%);
    overflow: hidden;
}

.bg-premium::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation: float 20s ease-in-out infinite;
}

.bg-premium::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 115, 85, 0.05) 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(20px, -20px);
    }
    50% {
        transform: translate(-10px, -30px);
    }
    75% {
        transform: translate(-20px, 10px);
    }
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Premium Form Styling */
.form-premium input,
.form-premium textarea {
    border: 1.5px solid rgba(139, 115, 85, 0.2);
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    border-radius: 8px;
}

.form-premium input:focus,
.form-premium textarea:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

/* Card Styles for Info Cards and Amenities */
.info-card, .amenity-card, .feature-card {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 12px;
}

.info-card:hover, .amenity-card:hover, .feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-zoom {
        animation: none !important;
    }

    .reveal.active,
    .reveal-left.active,
    .reveal-right.active,
    .reveal-zoom.active {
        opacity: 1;
        transform: none;
    }

    .image-hover img {
        transition: none;
    }

    .image-hover:hover img {
        transform: scale(1.02);
    }

    .btn-premium:hover {
        transform: translateY(-2px);
    }

    .card-premium:hover {
        transform: translateY(-6px);
    }

    button:hover, .brochure-btn:hover, .register-btn:hover {
        transform: translateY(-2px);
    }

    .word-reveal {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Accessibility: Respects prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .reveal.active {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 768px) {
    .register-modal-content .form-group.checkbox {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        width: 100%;
    }

    .register-modal-content .form-group.checkbox input {
        flex: 0 0 18px;
        width: 18px !important;
        min-width: 18px;
        height: 18px;
    }

    .register-modal-content .form-group.checkbox label {
        flex: 1 1 auto;
        width: auto !important;
        min-width: 0;
        overflow-wrap: anywhere;
    }
}

html {
    scrollbar-color: #000000 #000000;
}

html::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

html::-webkit-scrollbar-track,
html::-webkit-scrollbar-thumb {
    background: #000000;
}

.contact-page {
    min-height: 100vh;
    background: #000000;
}

.contact-header {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 86px;
    padding: 16px 34px;
    background: #000000;
    border-bottom: 1px solid rgba(201, 164, 92, 0.6);
    box-sizing: border-box;
}

.contact-header .brand {
    flex: 0 0 auto;
    min-width: 0;
    padding-left: 0;
}

.contact-header .brand-dsr,
.contact-header .brand-elixir {
    color: #f7f3ee;
}

.contact-header .brand-dsr {
    color: #e5d6b0;
}

.contact-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    flex: 1 1 auto;
}

.contact-nav a,
.contact-phone {
    color: #c9a45c;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.contact-phone {
    margin-left: auto;
}

.contact-menu-button {
    display: none;
}

.contact-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    box-sizing: border-box;
}

.contact-card {
    width: min(100%, 620px);
    padding: 32px 28px 28px;
    background: #000000;
    border: 1px solid #c9a45c;
    border-radius: 24px;
    color: #ffffff;
    box-sizing: border-box;
}

.contact-card h1 {
    margin: 0 0 24px;
    color: #c9a45c;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    line-height: 1.12;
}

.contact-card .registration-form,
.contact-card .form-group,
.contact-card input,
.contact-card .register-btn {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.contact-card .form-group input {
    background: #1b1b1b;
    border: 1px solid rgba(201, 164, 92, 0.6);
    color: #ffffff;
}

.contact-card .form-group label {
    color: #c9a45c;
}

.contact-card .form-group.checkbox {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

.contact-card .form-group.checkbox input {
    flex: 0 0 18px;
    width: 18px;
    min-width: 18px;
}

.contact-card .form-group.checkbox label {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
    color: #ffffff;
}

@media (max-width: 375px) {
    .contact-main {
        padding: 24px 12px;
    }

    .contact-card {
        padding: 24px 16px 20px;
        border-radius: 20px;
    }

    .contact-card h1 {
        font-size: 1.55rem;
    }
}

@media (max-width: 768px) {
    .contact-page {
        padding-top: 0;
    }

    .contact-header {
        min-height: 72px;
        justify-content: space-between;
        padding: 12px 16px;
    }

    .contact-header .brand-dsr,
    .contact-header .brand-elixir {
        font-size: 2rem;
    }

    .contact-nav,
    .contact-phone {
        display: none;
    }

    .contact-menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border: 1px solid #c9a45c;
        border-radius: 10px;
        background: #000000;
        color: #c9a45c;
        font-size: 1.5rem;
        line-height: 1;
    }

    .contact-main {
        min-height: calc(100vh - 72px);
        padding: 28px 16px;
    }
}

body:has(#home) .faq-shell {
    background: #000000 !important;
}

@media (max-width: 768px) {
    body:has(#home) #configuration.area-pricing-section {
        width: calc(100% - 16px);
        max-width: calc(100% - 16px);
        margin-left: 8px;
        margin-right: 8px;
        box-sizing: border-box;
        overflow: hidden;
        border: 1px solid #c9a45c !important;
    }

    body:has(#home) .home-register-panel {
        width: calc(100% - 16px);
        max-width: calc(100% - 16px);
        margin-left: 8px;
        margin-right: 8px;
        box-sizing: border-box;
        border: 1px solid #c9a45c !important;
    }
}

@media (max-width: 768px) {
    body:has(#home) .villa-explore-button {
        padding: 8px 0;
    }

    body:has(#home) .explore-villas-btn {
        gap: 8px;
        padding: 10px 18px;
        border-radius: 14px;
        font-size: 1rem;
    }

    body:has(#home) .explore-villas-btn .explore-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
}

.gallery-next-btn {
    display: none;
}

@media (max-width: 768px) {
    .register-modal {
        width: 100vw !important;
    }

    .register-modal-content {
        width: 90vw !important;
    }

    .register-modal-content .form-group,
    .register-modal-content .form-group label,
    .register-modal-content .form-group input {
        position: static;
        transform: none !important;
        animation: none !important;
    }

    .register-modal-content .form-group input {
        display: block;
        width: 100% !important;
    }

    body:has(#home) #gallery .gallery-grid {
        display: flex;
        gap: 14px;
        margin: 0 -16px 18px;
        padding: 0 16px 4px;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
    }

    body:has(#home) #gallery .gallery-grid::-webkit-scrollbar {
        display: none;
    }

    body:has(#home) #gallery .gallery-card {
        flex: 0 0 82vw;
        min-height: 220px;
        max-width: 360px;
        border-radius: 16px;
    }

    body:has(#home) #gallery .gallery-next-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin: 0 16px 18px auto;
        border: 1px solid #c9a45c;
        border-radius: 50%;
        background: #c9a45c;
        color: #111111;
        font-size: 1.5rem;
        line-height: 1;
        cursor: pointer;
    }

    body:has(#home) .area-pricing-section {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    body:has(#home) .area-pricing-container,
    body:has(#home) .area-pricing-content,
    body:has(#home) .pricing-table-wrapper {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    body:has(.site-header) {
        padding-top: 180px;
    }

    body:has(#home) {
        padding-top: 75px;
    }

    body:has(#home) #home.carousel-hero {
        min-height: 414px !important;
        height: 414px;
    }

    body:has(#home) #home .carousel-content {
        min-height: 374px !important;
        height: 374px;
    }

    body:has(#home) #home .carousel-text h1 {
        font-size: clamp(2.5rem, 12vw, 4.5rem);
    }
}

@media (max-width: 768px) {
    body:has(.site-header) {
        padding-top: 108px;
    }

    body:has(.site-header) .site-header {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: 0 !important;
        z-index: 10000;
    }

    body:has(#home) #home.carousel-hero {
        min-height: 430px;
    }

    body:has(#home) #home .carousel-content {
        min-height: 390px;
    }

    body:has(#home) .villa-showcase-grid {
        display: flex;
        grid-template-columns: none;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
    }

    body:has(#home) .villa-showcase-grid::-webkit-scrollbar {
        display: none;
    }

    body:has(#home) .villa-showcase-card {
        flex: 0 0 82vw;
        max-width: 360px;
    }

    body:has(#home) .villa-showcase-image {
        height: 235px;
    }

    body:has(#home) .villa-next-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin: -2px 16px 18px auto;
        border: 1px solid #c9a45c;
        border-radius: 50%;
        background: #c9a45c;
        color: #111111;
        font-size: 1.5rem;
        line-height: 1;
        cursor: pointer;
    }
}

.villa-next-btn {
    display: none;
}

/* Responsive layout safeguards. Desktop rules above remain unchanged. */
.mobile-menu-toggle,
.mobile-nav {
    display: none;
}

@media (max-width: 1023px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .site-header {
        grid-template-columns: 1fr auto;
        gap: 12px 18px;
        padding: 14px 22px;
    }

    .brand {
        min-width: 0;
    }

    .main-nav {
        grid-column: 1 / -1;
        justify-content: flex-start;
        gap: 10px 20px;
        min-width: 0;
    }

    .main-nav a {
        font-size: 0.95rem;
        padding-bottom: 6px;
    }

    .call-strip {
        font-size: 0.95rem;
    }

    .page-main,
    .specifications-section,
    .overview-gallery-section,
    .faq-section {
        padding-left: 24px;
        padding-right: 24px;
    }

    .carousel-hero {
        min-height: 720px;
    }

    .carousel-hero .carousel-content {
        min-height: 620px;
        padding-left: 24px;
        padding-right: 24px;
    }

    .hero-content-panel {
        width: min(70vw, 620px);
    }

    .specifications-overlay {
        width: calc(100% - 40px);
        max-width: none;
    }

    .area-pricing-container,
    .master-plan-layout,
    .location-content,
    .pricing-layout,
    .interiors-showcase,
    .reference-showcase,
    .reference-grid {
        grid-template-columns: 1fr;
    }

    .highlight-grid,
    .amenities-grid,
    .gallery-grid,
    .villa-plans-grid,
    .plan-showcase {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-left,
    .footer-center,
    .footer-right {
        white-space: normal;
    }

    .site-footer .footer-bottom {
        flex-wrap: wrap;
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (max-width: 767px) {
    .mobile-menu-toggle,
    .mobile-nav {
        display: none;
    }

    body:has(#home) .site-header {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 0;
        padding: 16px;
        background: #000000;
    }

    body:has(#home) .site-header .brand {
        justify-content: flex-start;
    }

    body:has(#home) .site-header .call-strip,
    body:has(#home) .site-header > .main-nav {
        display: none;
    }

    body:has(#home) .mobile-menu-toggle {
        display: flex;
        width: 42px;
        height: 42px;
        padding: 9px 6px;
        border: 1px solid rgba(201, 164, 92, 0.55);
        border-radius: 6px;
        background: transparent;
        color: #C9A45C;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        cursor: pointer;
    }

    body:has(#home) .mobile-menu-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: #C9A45C;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    body:has(#home) .mobile-menu-toggle.is-open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    body:has(#home) .mobile-menu-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    body:has(#home) .mobile-menu-toggle.is-open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    body:has(#home) .mobile-nav.is-open {
        display: grid;
        grid-column: 1 / -1;
        gap: 0;
        width: 100%;
        margin-top: 14px;
        padding: 4px 0 2px;
        border-top: 1px solid rgba(201, 164, 92, 0.35);
        animation: mobileMenuReveal 0.25s ease-out both;
    }

    body:has(#home) .mobile-nav .nav-link {
        display: block;
        padding: 12px 4px;
        border-bottom: 1px solid rgba(201, 164, 92, 0.2);
        color: #F2EDE5;
        text-decoration: none;
        font-size: 0.95rem;
    }

    body:has(#home) .mobile-nav .nav-link:last-child {
        border-bottom: 0;
    }

    body:has(#home) #home {
        min-height: min(90svh, 760px);
        height: auto;
        background-image: url('images/hero-villa.jpg') !important;
        background-size: cover !important;
        background-repeat: no-repeat !important;
        background-position: center 18% !important;
    }

    body:has(#home) .overview-main {
        background: #000000;
    }

    body:has(#home) #home::before {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.08) 55%, rgba(0, 0, 0, 0.34) 100%);
    }

    body:has(#home) #home .hero-overlay {
        background: linear-gradient(180deg, rgba(4, 4, 4, 0.1) 0%, rgba(4, 4, 4, 0.04) 58%, rgba(4, 4, 4, 0.22) 100%);
    }

    body:has(#home) #home .carousel-content {
        min-height: min(90svh, 760px);
        height: auto;
        align-items: flex-end;
        justify-content: flex-start;
        padding: 28px 16px 0;
    }

    body:has(#home) #home .hero-content-panel {
        width: min(82%, 320px);
        max-width: 100%;
        padding: 5px 10px 3px;
        border-radius: 16px;
    }

    body:has(#home) #home .hero-content-panel h1 {
        font-size: clamp(1.45rem, 7vw, 1.85rem);
        line-height: 0.94;
        margin-bottom: 5px;
        white-space: nowrap;
    }

    body:has(#home) #home .hero-content-panel p {
        font-size: clamp(0.76rem, 3vw, 0.88rem);
        line-height: 1.35;
        margin-bottom: 4px;
    }

    body:has(#home) #home .property-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
        padding-top: 6px;
    }

    body:has(#home) #home .property-item {
        min-height: 42px;
        padding: 4px 6px 2px;
    }

    body:has(#home) #home .property-item:nth-child(odd) {
        border-right: 1px solid rgba(255, 255, 255, 0.12);
    }

    body:has(#home) #home .property-item:nth-child(n + 3) {
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    body:has(#home) #home .property-item:not(:first-child)::before {
        display: none;
    }

    body:has(#home) #home .spec-icon {
        width: 18px;
        height: 18px;
        margin-bottom: 3px;
        font-size: 0.75rem;
    }

    body:has(#home) #home .spec-label {
        margin-bottom: 3px;
        font-size: 0.54rem;
    }

    body:has(#home) #home .spec-value {
        font-size: clamp(0.78rem, 3.2vw, 0.96rem);
        line-height: 1.12;
    }

    body:has(#home) .floating-actions {
        right: 12px;
        bottom: 18px;
        gap: 8px;
    }

    body:has(#home) .floating-actions .fab,
    body:has(#home) .floating-actions .float-btn {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }

    body:has(#home) .life-content-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 28px;
    }

    body:has(#home) .life-map-area {
        width: 100%;
        aspect-ratio: 1 / 0.82;
        min-height: 260px;
    }

    body:has(#home) .life-business-section {
        width: 100%;
        min-width: 0;
    }

    body:has(#home) .google-map-embed {
        width: 100%;
        height: 300px;
        max-width: 100%;
    }

    body:has(#home) .dsr-group-section {
        width: 100%;
        max-width: 100%;
        padding: 34px 16px;
        border-radius: 0;
    }

    body:has(#home) .dsr-group-wrapper {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 28px;
        width: 100%;
        max-width: 100%;
    }

    body:has(#home) .dsr-group-plant {
        display: block;
        width: 100%;
        max-width: 100%;
        aspect-ratio: 16 / 10;
        min-width: 0;
        margin: 0;
    }

    body:has(#home) .dsr-group-plant .dsr-video {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    body:has(#home) .dsr-group-content {
        width: 100%;
        min-width: 0;
    }

    body:has(#home) .area-pricing-section {
        width: 100%;
        max-width: 100%;
        padding: 28px 16px;
        border-radius: 0;
    }

    body:has(#home) .area-pricing-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 24px;
        width: 100%;
    }

    body:has(#home) .area-pricing-image,
    body:has(#home) .area-pricing-content,
    body:has(#home) .pricing-table-wrapper {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body:has(#home) .area-pricing-image img {
        width: 100%;
        height: auto;
    }

    body:has(#home) .area-pricing-header h2 {
        font-size: clamp(2.3rem, 10vw, 3.2rem);
        margin-bottom: 18px;
    }

    body:has(#home) .area-pricing-section .pricing-table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
    }

    body:has(#home) .area-pricing-section .pricing-table th,
    body:has(#home) .area-pricing-section .pricing-table td {
        padding: 14px 8px;
        font-size: clamp(0.78rem, 3.5vw, 1rem);
        overflow-wrap: anywhere;
    }

    body:has(#home) .area-pricing-section .get-costing-btn {
        width: 100%;
        min-width: 0;
        padding: 9px 6px;
        font-size: 0.72rem;
        white-space: normal;
    }

    .master-plan-layout {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 24px;
        width: 100%;
    }

    .master-plan-image-wrap,
    .master-plan-info {
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .master-plan-image-wrap {
        display: block;
    }

    .master-plan-image,
    .master-plan-image img {
        display: block;
        width: 100%;
        height: auto;
        min-height: 0;
    }

    .master-plan-info {
        padding-top: 0;
    }

    .master-plan-cta-wrap,
    .master-plan-cta {
        width: 100%;
        max-width: none;
    }

    .villa-showcase {
        padding: 34px 16px;
    }

    .villa-cards {
        gap: 18px;
    }

    .villa-card-large {
        min-height: 0;
        aspect-ratio: 1 / 0.82;
        border-radius: 18px;
    }

    .villa-card-large .villa-card-meta {
        left: 14px;
        right: 14px;
        bottom: 14px;
    }

    .villa-explore-btn {
        min-width: 0;
        width: 100%;
        padding: 12px 14px;
        font-size: 1rem;
        gap: 10px;
    }

    .villa-explore-btn span {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    .site-header {
        position: relative !important;
        top: auto;
        left: auto;
        right: auto;
        grid-template-columns: 1fr;
        justify-items: stretch;
        padding: 12px 16px;
    }

    .brand {
        justify-content: center;
        padding-left: 0;
    }

    .brand-dsr,
    .brand-elixir {
        font-size: 2rem;
    }

    .brand-divider {
        height: 34px;
    }

    .main-nav {
        grid-column: auto;
        justify-content: center;
        gap: 8px 14px;
    }

    .main-nav a {
        font-size: 0.78rem;
        padding-bottom: 4px;
    }

    .call-strip {
        justify-content: center;
        font-size: 0.84rem;
    }

    .page-main,
    .specifications-section,
    .overview-gallery-section,
    .faq-section {
        padding: 16px 16px 36px;
    }

    .overview-main {
        width: 100%;
    }

    .carousel-hero {
        min-height: 600px;
        background-attachment: scroll !important;
    }

    .carousel-hero .carousel-content {
        min-height: 500px;
        align-items: flex-start;
        padding: 64px 16px 150px;
    }

    .carousel-text,
    .hero-content-panel {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .carousel-text h1,
    .hero-content-panel h1 {
        font-size: clamp(2.7rem, 12vw, 4.5rem);
        overflow-wrap: anywhere;
    }

    .carousel-text p,
    .hero-content-panel p {
        font-size: 1rem;
        max-width: 100%;
    }

    .hero-content-panel {
        min-height: 0;
        padding: 18px 14px 12px;
        margin-left: 0;
    }

    .property-grid,
    .specifications-overlay,
    .highlight-grid,
    .amenities-grid,
    .gallery-grid,
    .villa-plans-grid,
    .plan-showcase,
    .plan-grid,
    .pricing-tabs {
        grid-template-columns: 1fr;
    }

    .specifications-overlay {
        width: calc(100% - 32px);
        gap: 10px;
        bottom: 14px;
    }

    .spec-box-item,
    .property-item {
        min-width: 0;
    }

    .spec-box-item {
        padding: 14px;
    }

    .specifications-container {
        grid-template-columns: 1fr;
    }

    .hero-showcase,
    .villa-showcase-grid,
    .area-pricing-container,
    .master-plan-layout,
    .location-content,
    .pricing-layout,
    .interiors-showcase,
    .reference-showcase,
    .reference-grid,
    .cta-band > div {
        grid-template-columns: 1fr;
    }

    .content-shell {
        padding: 22px 16px;
        border-radius: 16px;
    }

    .content-shell h1 {
        font-size: clamp(2.6rem, 12vw, 4.5rem);
        overflow-wrap: anywhere;
    }

    .overview-hero,
    .reference-overview-inner,
    .reference-copy,
    .overview-hero p {
        max-width: 100%;
    }

    .hero-script,
    .reference-script,
    .story-script {
        font-size: clamp(2.5rem, 11vw, 4rem);
    }

    .hero-strong,
    .reference-strong {
        font-size: clamp(2.2rem, 10vw, 3.6rem);
    }

    .gallery-carousel-container,
    .reel-track {
        height: 360px;
    }

    .gallery-slide,
    .slide-overlay {
        padding: 20px;
    }

    .reference-image,
    .plan-variant-image,
    .pricing-image,
    .pricing-image-card {
        min-height: 280px;
        height: 280px;
    }

    .pricing-table-wrapper {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
    }

    .pricing-table {
        min-width: 560px;
    }

    .table-head,
    .table-row {
        grid-template-columns: 1fr 1.2fr 1fr;
        padding: 0 12px;
    }

    .table-btn,
    .reference-btn,
    .cta-band-btn {
        min-width: 0;
        width: 100%;
        white-space: normal;
    }

    .plan-tabs,
    .tabs-buttons {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .tab-btn,
    .plan-tab-btn,
    .explore-plan-btn,
    .master-plan-cta,
    .location-cta-btn,
    .brochure-btn,
    .brochure-download-btn {
        max-width: 100%;
        width: 100%;
    }

    .footer-left,
    .footer-center,
    .footer-right {
        flex: 1 1 100%;
        text-align: center;
    }

    .fixed-visit-tab,
    .vertical-book-visit {
        display: none;
    }

    .floating-actions {
        right: 12px;
        bottom: 14px;
    }

    .register-modal,
    .modal {
        max-width: 100%;
    }

    .modal-content,
    .enquire-content,
    .brochure-content {
        width: calc(100% - 24px);
        max-width: none;
        margin: 12px;
        max-height: calc(100vh - 24px);
        overflow-y: auto;
    }

    .form-group input,
    .form-input,
    textarea,
    select {
        max-width: 100%;
        min-width: 0;
    }
}

@keyframes mobileMenuReveal {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

button:hover, .brochure-btn:hover, .register-btn:hover, .master-plan-cta:hover, 
.get-costing-btn:hover, .location-cta-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2) !important;
}

/* Enhanced Form Fields */
input:focus, textarea:focus, select:focus {
    border-color: #d4af37 !important;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2) !important;
}

input, textarea, select {
    transition: all 0.3s ease !important;
}

/* Enhanced Navigation Links */
nav a, .nav-link {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

nav a:hover, .nav-link:hover {
    color: #8b7355 !important;
    font-weight: 700 !important;
}

/* Image Enhancements */
img {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

img:hover {
    filter: brightness(1.05) !important;
}

/* Animation Keyframes */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Scroll Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    animation: fadeUp 0.8s ease-out forwards;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
    animation: slideInLeft 0.8s ease-out forwards;
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
    animation: slideInRight 0.8s ease-out forwards;
}

.reveal-zoom {
    opacity: 0;
    transform: scale(0.92);
}

.reveal-zoom.active {
    opacity: 1;
    transform: scale(1);
    animation: zoomIn 0.8s ease-out forwards;
}

/* Staggered Animations */
.reveal.stagger-1.active {
    animation-delay: 0.1s;
}

.reveal.stagger-2.active {
    animation-delay: 0.2s;
}

.reveal.stagger-3.active {
    animation-delay: 0.3s;
}

.reveal.stagger-4.active {
    animation-delay: 0.4s;
}

.reveal.stagger-5.active {
    animation-delay: 0.5s;
}

/* Premium Image Hover Effects */
.image-hover {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.image-hover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), 
                filter 0.5s ease-out,
                box-shadow 0.5s ease-out;
    transform: scale(1);
}

.image-hover:hover img {
    transform: scale(1.08);
    filter: brightness(1.1);
}

.image-hover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.5s ease-out;
    pointer-events: none;
    border-radius: 12px;
}

.image-hover:hover::after {
    opacity: 1;
}

/* Premium Button Animations */
.btn-premium {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transition: left 0.5s ease-out;
    pointer-events: none;
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-premium:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.btn-premium:active {
    transform: translateY(-2px);
}

/* Navigation Enhancement */
.site-header {
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: rgba(248, 245, 240, 0.99);
}

.main-nav a {
    position: relative;
    transition: all 0.3s ease;
}

.main-nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #d4af37, #8b7355);
    transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.main-nav a:hover::before,
.main-nav a.active::before {
    width: 100%;
}

/* Card Hover Effects */
.card-premium {
    position: relative;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 16px;
    overflow: hidden;
}

.card-premium:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.card-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease-out;
    pointer-events: none;
}

.card-premium:hover::before {
    opacity: 1;
}

/* Section Heading Animations */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.02em;
    transition: all 0.3s ease;
}

.section-heading {
    position: relative;
    display: inline-block;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #8b7355);
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.section-heading.active::after {
    width: 100%;
}

/* Premium Background Patterns */
.bg-premium {
    position: relative;
    background: linear-gradient(135deg, #f9f7f3 0%, #ebe8df 100%);
    overflow: hidden;
}

.bg-premium::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation: float 20s ease-in-out infinite;
}

.bg-premium::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 115, 85, 0.05) 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(20px, -20px);
    }
    50% {
        transform: translate(-10px, -30px);
    }
    75% {
        transform: translate(-20px, 10px);
    }
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Premium Form Styling */
.form-premium input,
.form-premium textarea {
    border: 1.5px solid rgba(139, 115, 85, 0.2);
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    border-radius: 8px;
}

.form-premium input:focus,
.form-premium textarea:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

/* Card Styles for Info Cards and Amenities */
.info-card, .amenity-card, .feature-card {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 12px;
}

.info-card:hover, .amenity-card:hover, .feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-zoom {
        animation: none !important;
    }

    .reveal.active,
    .reveal-left.active,
    .reveal-right.active,
    .reveal-zoom.active {
        opacity: 1;
        transform: none;
    }

    .image-hover img {
        transition: none;
    }

    .image-hover:hover img {
        transform: scale(1.02);
    }

    .btn-premium:hover {
        transform: translateY(-2px);
    }

    .card-premium:hover {
        transform: translateY(-6px);
    }

    button:hover, .brochure-btn:hover, .register-btn:hover {
        transform: translateY(-2px);
    }
}

/* Accessibility: Respects prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .reveal.active {
        opacity: 1;
        transform: none;
    }
}

    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Scroll Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    animation: fadeUp 0.8s ease-out forwards;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
    animation: slideInLeft 0.8s ease-out forwards;
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
    animation: slideInRight 0.8s ease-out forwards;
}

.reveal-zoom {
    opacity: 0;
    transform: scale(0.92);
}

.reveal-zoom.active {
    opacity: 1;
    transform: scale(1);
    animation: zoomIn 0.8s ease-out forwards;
}

/* Staggered Animations */
.reveal.stagger-1.active {
    animation-delay: 0.1s;
}

.reveal.stagger-2.active {
    animation-delay: 0.2s;
}

.reveal.stagger-3.active {
    animation-delay: 0.3s;
}

.reveal.stagger-4.active {
    animation-delay: 0.4s;
}

.reveal.stagger-5.active {
    animation-delay: 0.5s;
}

/* Premium Image Hover Effects */
.image-hover {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.image-hover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), 
                filter 0.5s ease-out,
                box-shadow 0.5s ease-out;
    transform: scale(1);
}

.image-hover:hover img {
    transform: scale(1.08);
    filter: brightness(1.1);
}

.image-hover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.5s ease-out;
    pointer-events: none;
    border-radius: 12px;
}

.image-hover:hover::after {
    opacity: 1;
}

/* Premium Button Animations */
.btn-premium {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transition: left 0.5s ease-out;
    pointer-events: none;
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-premium:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.btn-premium:active {
    transform: translateY(-2px);
}

/* Navigation Enhancement */
.site-header {
    transition: all 0.3s ease;
    position: fixed;
    backdrop-filter: blur(10px);
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: rgba(248, 245, 240, 0.99);
}

.main-nav a {
    position: relative;
    transition: all 0.3s ease;
}

.main-nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #d4af37, #8b7355);
    transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.main-nav a:hover::before,
.main-nav a.active::before {
    width: 100%;
}

/* Card Hover Effects */
.card-premium {
    position: relative;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 16px;
    overflow: hidden;
}

.card-premium:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.card-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease-out;
    pointer-events: none;
}

.card-premium:hover::before {
    opacity: 1;
}

/* Section Heading Animations */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.02em;
}

.section-heading {
    position: relative;
    display: inline-block;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #8b7355);
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.section-heading.active::after {
    width: 100%;
}

/* Premium Background Patterns */
.bg-premium {
    position: relative;
    background: linear-gradient(135deg, #f9f7f3 0%, #ebe8df 100%);
    overflow: hidden;
}

.bg-premium::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation: float 20s ease-in-out infinite;
}

.bg-premium::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 115, 85, 0.05) 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(20px, -20px);
    }
    50% {
        transform: translate(-10px, -30px);
    }
    75% {
        transform: translate(-20px, 10px);
    }
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Premium Form Styling */
.form-premium input,
.form-premium textarea {
    border: 1.5px solid rgba(139, 115, 85, 0.2);
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    border-radius: 8px;
}

.form-premium input:focus,
.form-premium textarea:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-zoom {
        animation: none !important;
    }

    .reveal.active,
    .reveal-left.active,
    .reveal-right.active,
    .reveal-zoom.active {
        opacity: 1;
        transform: none;
    }

    .image-hover img {
        transition: none;
    }

    .image-hover:hover img {
        transform: scale(1.02);
    }

    .btn-premium:hover {
        transform: translateY(-2px);
    }

    .card-premium:hover {
        transform: translateY(-6px);
    }
}

/* ========================================
   FEATURES SECTION
   ======================================== */

.features-section {
    background: linear-gradient(135deg, #171714 0%, #2a2622 100%);
    padding: 60px 20px;
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.6);
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
    animation: fadeUp 0.6s ease-out;
}

.feature-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-card p {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

/* Accessibility: Respects prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .reveal.active {
        opacity: 1;
        transform: none;
    }
}
