/* Cinematic Typing Cursor */
.typing-cursor {
    display: inline-block;
    font-weight: bold;
    color: #FBBF24; /* Yellow to match your text */
    animation: blink-cursor 0.8s step-end infinite;
    margin-left: 4px;
}

@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
/* --- Standardized Color Palette --- */
:root {
    --beige: #FDFBF7;           /* Main background */
    --pure-white: #FFFFFF;
    --black: #000000;           /* Headers / Emphasis */
    --dark-brown: #3E2723;      /* ALL main body text */
    --yellow: #FBBF24;          /* Highlight text, Buttons, Icons */
    --light-yellow: #f5e207;
    --dark-orange:#d14f0f;     /* Lines, Borders, Outlines */
}
/* --- Create the Classes for HTML --- */

/* For Text Color */
.text-light-yellow {
    color: var(--light-yellow) !important;
}

/* For Border Color */
.border-yellow {
    border-color: var(--yellow) !important;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--dark-brown);
    background-color: var(--beige);
    overflow-x: hidden;
    padding-bottom: 80px; /* Space for mobile sticky button */
}

/* Hide all modal popups and backdrops for converted lead visitors (Preserves video overlays) */
body.lead-converted-user .modal,
body.lead-converted-user .modal-backdrop,
body.lead-converted-user #registration-modal,
body.lead-converted-user #content-unlock-overlay,
html.lead-converted-user .modal,
html.lead-converted-user .modal-backdrop,
html.lead-converted-user #registration-modal,
html.lead-converted-user #content-unlock-overlay {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -99999 !important;
}

/* Remove all blur filters for converted lead visitors */
body.lead-converted-user #gated-content-area,
body.lead-converted-user .content-blur-active,
body.lead-converted-user .blur-content,
body.lead-converted-user .gated-content,
html.lead-converted-user #gated-content-area,
html.lead-converted-user .content-blur-active,
html.lead-converted-user .blur-content,
html.lead-converted-user .gated-content {
    filter: none !important;
    pointer-events: auto !important;
    max-height: none !important;
    user-select: auto !important;
    overflow: visible !important;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Outfit', sans-serif;
    color: var(--black);
}
.hero-title {
    font-family: 'Playfair Display', serif; /* Elegant serif to match screenshot */
    font-size: 4rem;
    font-weight: 600;
}
.text-white { color: var(--pure-white) !important; }
.tracking-wide { letter-spacing: 1.5px; }
.tracking-widest { letter-spacing: 3px; }

/* Color classes */
.text-yellow { color: var(--yellow); }
.text-dark-orange { color: var(--dark-orange); }
.text-dark-brown { color: var(--dark-brown); }
.text-black { color: var(--black); }

.bg-beige { background-color: var(--beige); }
.bg-yellow { background-color: var(--yellow); }
.bg-white { background-color: var(--pure-white); }
.bg-dark-orange { background-color: var(--dark-orange); }

.max-w-700 { max-width: 700px; }
.max-w-900 { max-width: 900px; }
.py-7 { padding-top: 6rem; padding-bottom: 6rem; }
.h-200 { height: 200px; }

/* Z-Index & Layout */
.z-index-top { z-index: 1050; }
.z-index-2 { position: relative; z-index: 2; }
.z-index-sticky { z-index: 1040; }
.object-cover { object-fit: cover; }
.pointer-events-none { pointer-events: none; }

/* Frosted Glass Effect */
.blur-effect {
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

/* --- Floating Side Navigation --- */
#side-nav {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1100;
}
#side-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
#side-nav .nav-dot {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: transparent;
    border: 3px solid var(--dark-orange);
    position: relative;
    transition: all 0.3s ease;
}
#side-nav .nav-dot.active,
#side-nav .nav-dot:hover {
    background-color: var(--dark-orange);
    transform: scale(1.3);
}
#side-nav .nav-dot::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--dark-brown);
    color: var(--pure-white);
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    opacity: 0;
    visibility: hidden;
    white-space: nowrap;
    transition: all 0.3s ease;
}
#side-nav .nav-dot:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Custom Interactive Buttons */
.btn-yellow {
    background-color: var(--yellow);
    color: var(--black);
    border: none;
    transition: all 0.3s ease;
}
.btn-yellow:hover {
    background-color: var(--pure-white);
    color: var(--black);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(251, 191, 36, 0.4) !important;
}
.btn-orange {
    background-color: var(--dark-orange);
    color: var(--pure-white);
    border: none;
    transition: all 0.3s ease;
}
.btn-orange:hover {
    background-color: var(--dark-brown);
    color: var(--pure-white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(234, 88, 12, 0.3) !important;
}
.btn-outline-dark-orange {
    color: var(--dark-orange);
    border: 2px solid var(--dark-orange);
    transition: all 0.3s ease;
}
.btn-outline-dark-orange:hover {
    background-color: var(--dark-orange);
    color: var(--pure-white);
    transform: translateY(-3px);
}
.hover-lift {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}
.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08) !important;
}
.hover-zoom {
    transition: transform 0.6s ease;
}
.hover-zoom:hover {
    transform: scale(1.03);
}

/* Photographic Parallax Backgrounds */
.parallax-bg {
    position: absolute;
    top: -50px; left: 0; width: 100%; height: 130%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
/* Center gradient to make text pop while keeping photo visible */
.hero-center-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(17, 17, 17, 0.6) 0%, rgba(17, 17, 17, 0.1) 100%);
    z-index: 1;
}
.hero-transparent-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(253, 251, 247, 0.9) 0%, rgba(253, 251, 247, 0.3) 100%);
    z-index: 1;
}
.text-shadow-heavy { text-shadow: none; }
.text-shadow-light { text-shadow: none; }
.drop-shadow { filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }

/* CSS Animations */
@keyframes float-up-down {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}
@keyframes float-down-up {
    0% { transform: translateY(0); }
    50% { transform: translateY(15px); }
    100% { transform: translateY(0); }
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(251, 191, 36, 0); }
    100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}
.float-up-down { animation: float-up-down 6s ease-in-out infinite; }
.float-down-up { animation: float-down-up 7s ease-in-out infinite; }
.pulse-animation { animation: pulse 2s infinite; }
.bounce-in { animation: bounce 1s cubic-bezier(0.28, 0.84, 0.42, 1); }

@keyframes bounce {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* Scroll Mouse Indicator */
.scroll-indicator {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 2;
}
.mouse {
    width: 26px; height: 40px; border: 2px solid; border-radius: 13px; position: relative;
}
.mouse::before {
    content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
    width: 4px; height: 8px; background: inherit; background-color: currentColor; border-radius: 2px;
    animation: scroll-wheel 1.5s infinite;
}
@keyframes scroll-wheel {
    0% { top: 6px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

/* Facility Cards */
.h-400 { height: 400px; }
.h-300 { height: 300px; }
.facility-card img { transition: transform 0.8s ease; }
.facility-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17, 17, 17, 0.8) 0%, rgba(0,0,0,0) 60%);
    transition: background 0.4s ease;

    /* THIS IS THE FIX: Allows clicks to pass through the overlay to the image */
    pointer-events: none;
}
.hover-scale-img:hover img { transform: scale(1.08); }

/* Layout Tabs */
.custom-scrollbar { -webkit-overflow-scrolling: touch; }
.custom-scrollbar::-webkit-scrollbar { height: 4px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background-color: var(--dark-orange); border-radius: 4px; }
.layout-tab {
    color: var(--dark-brown);
    font-weight: 700;
    background-color: var(--pure-white);
    border: none;
    border-radius: 50px;
    padding: 10px 30px;
    margin: 0 5px;
    white-space: nowrap;
    transition: all 0.3s;
}
.layout-tab.active {
    background-color: var(--yellow) !important;
    color: var(--black) !important;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

/* Slide Up Animation */
.slide-up-anim {
    animation: slideUp 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form Inputs */
.bright-input {
    background-color: var(--pure-white);
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 15px 20px;
    transition: all 0.3s;
    color: var(--dark-brown);
}
.bright-input:focus {
    border-color: var(--dark-orange);
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.15);
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .hero-title { font-size: 2.5rem; }
    .display-2 { font-size: 3rem; }
    .parallax-bg { background-attachment: scroll; }
    .bento-card iframe { position: relative !important; min-height: 400px; }
    .hero-transparent-overlay { background: rgba(253, 251, 247, 0.85); }
}

/* Extra Utility Colors for Building Diagram */
.bg-orange { background-color: #f97316; }
.bg-success { background-color: #22c55e; }
.bg-info { background-color: #0ea5e9; }

#hero {
    background-image: url(/images/penangbridge.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: right center;
}
.typing-effect {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid white; /* Blinking cursor */
    /* 5s total duration, repeats infinitely */
    animation:
            typing 5s steps(36, end) infinite,
            blink-caret 1s step-end infinite;
}

@keyframes typing {
    0% { width: 0; }
    60%, 95% { width: 36ch; } /* Finished typing at 60%, pauses until 95% */
    100% { width: 0; } /* Instantly snaps back to 0 width to disappear */
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: white; }
}

.opacity-80{
    opacity: 0.8;
}
.cursor-pointer {
    cursor: pointer;
}
/* Force the modal and its dark backdrop to the absolute highest layers */
.modal {
    z-index: 99999 !important;
}

.modal-backdrop {
    z-index: 99990 !important;
}

/* --- Cinematic Video Section (Bright Version) --- */

/* Creates a subtle gold spotlight behind the video on a white background */
.cinematic-glow-light {
    background: radial-gradient(circle, rgba(181, 149, 47, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
}

/* The bright frame holding the video */
.cinematic-wrapper-light {
    position: relative;
    padding: 8px;
    background: #ffffff; /* Clean white frame */
    border-radius: 1.2rem;
    border: 1px solid rgba(181, 149, 47, 0.2); /* Subtle M Amaya Gold border */
    /* Triggers the movie reveal animation */
    animation: cinematicReveal 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Elegant, diffused shadow for light backgrounds */
.shadow-cinematic-light {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 0 30px rgba(181, 149, 47, 0.1);
    background-color: #000000; /* Keeps the video screen area black before you press play */
}

/* --- Keyframe Animations --- */

/* Theater screen fade and scale effect */
@keyframes cinematicReveal {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Simple fade-in for the text above the video */
.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
/* --- Full Screen Intro Video Pop-Up Styling --- */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000; /* Solid black to block EVERYTHING */
    z-index: 99999; /* Highest possible layer */
    opacity: 1;
    transition: opacity 0.6s ease;
}

.intro-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Maximizes video size while keeping it centered */
.intro-video-container {
    width: 100%;
    max-width: 1400px;
    max-height: 100vh;
    padding: 15px;
}

.intro-video-container video {
    max-height: 75vh; /* Reduced from 90vh to leave room for the button below */
    object-fit: contain;
    background-color: #000000;
}

/* --- Pop-Up Animation Effect --- */
.pop-up-animation {
    /* Uses a cubic-bezier for a slight "bounce" effect when it pops up */
    animation: popUpScale 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transform-origin: center;
}

@keyframes popUpScale {
    0% {
        opacity: 0;
        transform: scale(0.7);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Clear, highly visible Close Button */
.intro-close-btn {
    position: absolute;
    top: 25px;
    right: 30px;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 2.2rem;
    line-height: 0;
    padding: 0;
    padding-bottom: 8px;   /* Nudges the "x" up so it sits perfectly in the middle */
    cursor: pointer;
    z-index: 100000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-close-btn:hover {
    color: #FBBF24;
    border-color: #FBBF24;
    background: rgba(0, 0, 0, 0.9);
}

/* Round Sound Toggle Button */
.intro-sound-btn {
    position: absolute;
    /* Positions it exactly below the close button (25px top + 50px height + 15px gap) */
    top: 90px;
    right: 30px;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 100000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.intro-sound-btn:hover {
    color: #FBBF24;
    border-color: #FBBF24;
    background: rgba(0, 0, 0, 0.9);
}
/* --- Beige Filled Box with Rounded Corners --- */
.btn-outline-yellow {
    background-color: #FDFBF7 !important; /* Solid beige fill */
    color:  black !important; /* Dark text so it is easy to read on the beige background */
    border: 3px solid #FDFBF7 !important; /* Thick, crisp yellow outline remains */
    border-radius: 15px !important; /* <--- CHANGED: Smooth, rounded corners on all 4 sides */
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

/* Hover effect */
.btn-outline-yellow:hover {
    background-color: #e6b31e !important; /* Fills with solid yellow on hover */
    color: #000000 !important; /* Text changes to solid black */
    box-shadow: 0 0 20px rgba(230, 179, 30, 0.4); /* Subtle yellow glow */
}
/* 1. The Overlay Background (Forces alignment to the top) */
.content-unlock-layer {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(to bottom, rgba(253, 251, 247, 0.95) 0%, rgba(253, 251, 247, 0.4) 30%, rgba(253, 251, 247, 0) 100%) !important;

    /* MUST be block, not flex, for sticky to work correctly */
    display: block !important;
    text-align: center !important;
    padding: 0 !important; /* Removes any old bottom padding */

    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* 2. The Button Itself (Sticks to top, adds animation) */
.content-unlock-layer .trigger-modal-btn {
    position: -webkit-sticky!important;
    position: sticky !important;
    top: 120px !important; /* Stays fixed 120px from top of viewport when scrolling */
    margin-top: 80px !important; /* Positions it exactly 80px down when the blur starts */
    display: inline-block !important;
    pointer-events: auto !important; /* Ensures the button is clickable */

    /* Applies the new animation */
    animation: pop-bounce 2s infinite !important;
}

/* 3. New Pop & Bounce Animation for the Unlock Button */
@keyframes pop-bounce {
    0% {
        transform: translateY(0) scale(1);
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.6);
    }
    50% {
        transform: translateY(-10px) scale(1.05); /* Jumps up and grows slightly */
        box-shadow: 0 0 0 15px rgba(251, 191, 36, 0); /* Outer pulse fades out */
    }
    100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0);
    }
}

/* =========================================
   CUSTOM IMAGE VIEWER & ZOOM MODAL
   ========================================= */
.image-viewer-modal {
    display: none;
    position: fixed;
    z-index: 100010; /* Ensures it sits above everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    backdrop-filter: blur(5px);
}
.image-viewer-modal.active {
    display: block;
}
.iv-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto; /* Allows scrolling when the image is zoomed in large */
}
.iv-content {
    transition: transform 0.3s ease;
    transform-origin: center center;
    max-width: 90%;
    max-height: 90vh;
    border-radius: 10px;
}
.iv-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    z-index: 100011;
    line-height: 1;
    transition: color 0.3s;
}
.iv-close:hover {
    color: #FBBF24;
}
.iv-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 100011;
    background: rgba(30,30,30,0.8);
    padding: 12px 25px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.2);
}
.iv-controls button {
    background: transparent;
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s, transform 0.2s;
    padding: 0 5px;
}
.iv-controls button:hover {
    color: #FBBF24;
    transform: scale(1.1);
}
/* Automatically shows a zoom cursor over the images in those sections */
#facilities img, #layouts img {
    cursor: zoom-in;
}
/* =========================================
   PROMINENT WHATSAPP CTA BUTTON
   ========================================= */
.cta-whatsapp-btn {
    background-color: #25D366; /* Official WhatsApp Green */
    color: #ffffff !important;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse-green 2s infinite; /* Attention-grabbing pulse */
}

.cta-whatsapp-btn:hover {
    background-color: #1ebe57;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* =========================================
   FLOATING WHATSAPP BUTTON (WITH OUTLINE)
   ========================================= */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99999;
    background-color:  #FBBF24;
    color: black;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 50px;
    border: 2px solid #ffffff; /* Adds a crisp white outline */
    box-shadow:none;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    animation: float-pulse 2.5s infinite;
}

.floating-whatsapp:hover {
    background-color: #1ebe57;
    color: white;
    border-color: white; /* Keeps the outline crisp on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.floating-whatsapp i {
    font-size: 1rem;
}

/* Subtle attention-grabbing pulse effect */
@keyframes float-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Mobile responsiveness */
@media (max-width: 576px) {
    .floating-whatsapp {
        bottom: 20px;
        right: 20px;
        padding: 8px 14px;
        font-size: 0.85rem;
    }
}

