/* Intro Overlay Styles */
#khaas-intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    /* Ensure it is on top of everything */
    pointer-events: auto;
    font-family: 'Inter', sans-serif;
    color: #fff;
    /* Removed background color to allow transparency later */
}

/* Loading Screen - Covers everything initially */
.khaas-loader-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #ffffff;
    /* White background for loader */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1002;
    transition: opacity 0.8s ease-out, visibility 0.8s;
}

.khaas-loader-container.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.khaas-luxury-wrapper {
    position: relative;
    width: 450px;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    scale: 0.8;
}

.khaas-scale-box {
    position: absolute;
    top: 50%;
    left: 50%;
}

.khaas-line {
    position: absolute;
    width: 2px;
    height: 26px;
    background: linear-gradient(to bottom, #d4a574, transparent);
    transform-origin: center 170px;
    top: -170px;
    opacity: 0.25;
    animation: khaas-glow-pulse 3s infinite ease-in-out;
}

.khaas-line.major {
    width: 2.5px;
    height: 25px;
    background: #55200c;
    opacity: 1;
}

.khaas-outer-halo {
    position: absolute;
    width: 270px;
    height: 270px;
    border-radius: 50%;
    border-top: 2px solid #55200c;
    animation: khaas-spin 4s linear infinite;
}

.khaas-branding-center {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible;
}

.khaas-camel-svg {
    width: 160px;
    height: 114px;
    transform: scale(1.5) translate(23px, 25px);
}

.khaas-camel-path-outline {
    fill: none;
    stroke: #55200c;
    stroke-width: 220;
    stroke-linejoin: round;
}

.khaas-gold-liquid-fill {
    fill: goldenrod;
    mask: url(#khaas-camel-mask);
}

.khaas-luxury-label {
    margin-top: 0px;
    letter-spacing: 12px;
    font-size: 17px;
    text-transform: uppercase;
    font-weight: 900;
    margin-left: 18px;
    font-family: 'Silk Serif';
    color: #c26d19;
}

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

@keyframes khaas-glow-pulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.8;
    }
}

/* Door Stage */
.khaas-main-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    /* Behind loader, atop page */
    background: transparent;
    /* Changed to transparent to see homepage behind */
}

.khaas-doors-stage {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1500px;
}

.khaas-door {
    position: absolute;
    width: 50vw;
    height: 100vh;
    overflow: hidden;
    cursor: pointer;
    transition: filter 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9);
    z-index: 10;
    scale: 1.009 !important;
}

.khaas-door:hover {
    filter: brightness(1.1);
}

.khaas-door-left {
    left: 0;
    transform-origin: left center;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0 100%);
}

.khaas-door-right {
    right: 0;
    transform-origin: right center;
    clip-path: polygon(5% 0, 100% 0, 100% 100%, 0 100%);
}

.khaas-door-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* filter: brightness(0.85) contrast(1.1); */
    position: absolute;
    position: relative;
}

.khaas-door::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(#5e4d3d4d, transparent);
    z-index: 1;
}

.khaas-door-left .khaas-door-image {
    left: 0;
}

.khaas-door-right .khaas-door-image {
    right: 0;
    left: auto;
}

.khaas-door-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 10;
    pointer-events: none;
}

.khaas-door-label {
    color: #fff;
    font-family: 'Playfair Display';
    font-size: 3.3vw;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
    opacity: 1;
    white-space: nowrap;
    text-align: center;
    margin-bottom: 0;
    line-height: 140%;
}

/* .khaas-door-label::after {
    content: '';
    display: block;
    margin: 10px auto 0;
    width: 60px;
    height: 2px;
    background: #d4a574;
    opacity: 0.8;
} */
.khaas-enter-btn {
    background: #BDAC9A;
    border: 2px solid #483728;
    color: #483728;
    padding: 12px 32px;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    letter-spacing: 0.25em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

.khaas-enter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 99.5%;
    height: 95.2%;
    background: #483728;
    transition: left 0.3s ease;
    z-index: -1;
    border: 1px solid #BDAC9A;
}

.khaas-enter-btn:hover::before {
    left: 0;
}

.khaas-enter-btn:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.khaas-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
    z-index: 5;
}

.khaas-door-edge {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, #d4a574, transparent);
    opacity: 0.6;
}

.khaas-door-left .khaas-door-edge {
    right: 0;
}

.khaas-door-right .khaas-door-edge {
    left: 0;
}

.khaas-grain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.04;
    z-index: 50;
    pointer-events: none;
    /* background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E"); */
}

/* Visibility Control for Main Site */
body.khaas-preloading {
    /* overflow: hidden !important; */
    height: 100vh;
    overflow: hidden;
    position: fixed;
}

@media (max-width: 768px) {
    .khaas-door-label {
        font-size: 1.2rem;
        letter-spacing: 0.2em;
    }

    .khaas-door-label::after {
        width: 40px;
    }

    .khaas-enter-btn {
        padding: 10px 24px;
        font-size: 0.8rem;
    }

    .khaas-luxury-wrapper {
        scale: 0.6;
    }
}

.testimonial-section {
    background: url(../images/testimonial-bg.webp);
    position: relative;
    /* min-height: 100vh; */
    display: flex;
    /* align-items: center; */
    /* justify-content: center; */
    padding: 0rem 0 5rem;
    overflow: hidden;
    flex-direction: column;
}

/* Architectural Sketch Background Elements */
.sketch-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.08;
    z-index: 0;
}

.sketch-element {
    position: absolute;
    stroke: #8b4513;
    stroke-width: 1.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Granite Hills Sketch - Left Side */
.hills-left {
    left: -5%;
    top: 20%;
    width: 40%;
    height: 60%;
}


/* Main Content Container */
.testimonial-container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    /* min-height: 690px; */
}

.slider-wrapper {
    position: relative;
    overflow: hidden;
    min-height: 445px;
}

.slides-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    /* padding: 4rem 2rem; */
    transform: translateX(50px);
    transition: none;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    transform: translateX(0);
}

/* Quote Styling */
.quote-wrapper {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.quote-mark {
    font-size: 6rem;
    color: #a0522d;
    opacity: 0.2;
    line-height: 1;
    margin-bottom: -2rem;
    font-family: 'Cormorant Garamond', serif;
    display: block;
}

.quote-text {
    font-family: 'Montserrat';
    font-size: 1.5vw;
    line-height: 140%;
    color: #483728;
    font-weight: 400;
    margin-bottom: 2rem;
    position: relative;
}

/* Signature Styling */
.signature-wrapper {
    margin-top: 2rem;
}

.signature-line {
    font-family: 'Playfair Display';
    font-style: italic;
    font-size: 35px;
    color: #BDAC9A;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.author-info {
    font-size: 0.9rem;
    color: #666;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 1rem;
}

.author-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.25rem;
}

.author-title {
    font-size: 0.8rem;
    color: #483728;
    font-family: 'Bodoni FLF';
    font-weight: 400;
}

/* Navigation Dots */
.slider-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #BDAC9A;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    padding: 0;
}

.nav-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.nav-dot:hover {
    transform: scale(1.2);
    border-color: #483728;
}

.nav-dot.active {
    background: #483728;
    border-color: #483728;
    transform: scale(1.2);
}

.nav-dot.active::after {
    border-color: #483728;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.5;
    }
}

/* Arrow Navigation */
.nav-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
    z-index: 20;
}

.arrow {
    width: 50px;
    height: 50px;
    border: 1px solid #483728;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.arrow::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #483728;
    transform: scale(0);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.arrow:hover::before {
    transform: scale(1);
}

.arrow:hover {
    border-color: #483728;
    transform: scale(1.1);
}

.arrow svg {
    width: 20px;
    height: 20px;
    stroke: #483728;
    stroke-width: 2;
    fill: none;
    transition: stroke 0.3s ease;
    position: relative;
    z-index: 1;
}

.arrow:hover svg {
    stroke: #fff;
}

/* Slide Counter */
.slide-counter {
    text-align: center;
    margin-top: 2rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.9rem;
    color: #999;
    letter-spacing: 0.2em;
}

.slide-counter span {
    color: #483728;
    font-weight: 600;
}

@media (max-width: 1500px) {
    #tasteText {
        max-width: 460px !important;
    }

    #tasteText p {
        color: #483728 !important;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .slider-wrapper {
        min-height: 400px;
    }

    .slide {
        /* padding: 2rem 1rem; */
    }

    .quote-mark {
        font-size: 4rem;
        margin-bottom: -1rem;
    }

    .nav-arrows {
        padding: 0 0.5rem;
    }

    .arrow {
        width: 40px;
        height: 40px;
    }

    .arrow svg {
        width: 16px;
        height: 16px;
    }

    .sketch-bg {
        opacity: 0.05;
    }

    .hills-left,
    .tent-right {
        width: 60%;
    }
}

/* Subtle Grain Texture */
.texture-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    z-index: 5;
}

/* --- CURTAIN SECTION: Full viewport fixed --- */
.curtain-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
}

.stage {
    position: relative;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/dark-wood.png'), #1a0f0a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.stage::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 20%, rgba(0, 0, 0, 0.8) 100%);
    pointer-events: none;
    z-index: 2;
}

.wall-title {
    font-family: 'Cinzel', serif;
    color: #d4af37;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: 12px;
    margin-bottom: 40px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 1);
    text-align: center;
    z-index: 10;
    transform: translateY(calc(-10px + (0 * 20px)));
    opacity: calc(0.5 + (0 * 0.5));
    transition: opacity 0.3s ease;
}


.awards-container {
    z-index: 15;
    width: 100%;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: space-around;
    /* perspective: 1500px; */
    position: relative;
    /* transform: scale(calc(0.85 + (0 * 0.2))) rotateX(calc(0 * 2deg)); */
    /* opacity: calc(0.3 + (0 * 0.7)); */
    transition: opacity 0.2s ease, transform 0.3s ease;
    pointer-events: auto;
    padding: 20px;
}

/* Unique Container Class */
.v_play_video_wrapper {
    position: static !important;
    height: 40vw !important;
}

.v_play_video_element {
    width: 100% !important;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

/* Unique Custom Cursor Class */
.v_play_volume_cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    /* Very important: clicks pass through to video */
    z-index: 10000;
    transform: translate(-50%, -50%) scale(0);
    font-size: 28px;
    user-select: none;
}

.frame {
    width: 21%;
    height: 405px;
    background: #ffffff;
    border: 12px solid #1a1a1a;
    outline: 8px solid #bd953f;
    outline-offset: -4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), inset 0 0 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    transform: rotateY(-8deg) rotateX(2deg);
}

.frame::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px solid #fcf6ba;
    pointer-events: none;
    opacity: 0.3;
}

.frame:hover {
    transform: scale(1.05) rotateY(0deg) rotateX(0deg) translateY(-15px);
    box-shadow: 0 40px 70px rgba(0, 0, 0, 0.9);
    z-index: 20;
}

.certificate-content {
    padding: 20px;
    height: calc(100% - 62px);
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    color: #1a1a1a;
    margin: 10px;
}

.cert-header {
    font-family: 'Cinzel';
    font-size: 0.6rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cert-year {
    font-family: 'Cinzel';
    font-size: 1.8rem;
    color: #926d25;
    margin: 5px 0;
    font-weight: 700;
}

.cert-title {
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    line-height: 1.3;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.cert-footer {
    font-size: 0.55rem;
    font-style: italic;
    color: #777;
    letter-spacing: 1px;
}

/* --- IMAGE-BASED CURTAINS --- */
.curtain-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    pointer-events: none;
}

.curtain {
    position: absolute;
    top: 0;
    height: 100%;
    width: 52%;
    transition: transform 0.1s linear;
    will-change: transform;
    overflow: hidden;
    filter: hue-rotate(47deg) brightness(1.5);
}

.left-curtain {
    left: 0;
    transform: translateX(calc(0 * -100%));
}

.right-curtain {
    right: 0;
    transform: translateX(calc(0 * 100%));
}

.curtain-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Shadow overlay for depth */
.curtain::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.left-curtain::after {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, transparent 40%);
}

.right-curtain::after {
    background: linear-gradient(to left, rgba(0, 0, 0, 0.5) 0%, transparent 40%);
}

.zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.96);
    display: none;
    z-index: 1000;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(15px);
}

.frame.focused {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(2) rotateY(0deg);
    z-index: 1001;
    pointer-events: none;
    box-shadow: 0 0 100px rgba(189, 149, 63, 0.3);
}

.close-hint {
    position: absolute;
    bottom: 30px;
    font-family: 'Cinzel';
    color: #bd953f;
    letter-spacing: 3px;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Scroll spacer - invisible element to create scroll space */
.scroll-spacer {
    height: 300vh;
    width: 100%;
}

@media (max-width: 600px) {
    .frame.focused {
        transform: translate(-50%, -50%) scale(1.3) rotateY(0deg);
    }

    .curtain {
        width: 55%;
    }
}

.hFacilitiesItem:hover .hFItemTitle {
    color: #fff;
}
