/* =================================================================
   LIQUID GLASS THEME - MULTI-PAGE (Dark Premium)
   Applies to: Services, Service Details, About, Contact
   OPTIMIZED: Following auth pages pattern for smooth scrolling
   ================================================================= */

/* 
   GLASS PAGE BODY STYLES
   Using ::before for fixed background to avoid scroll jank
   background-attachment: fixed causes repaint on every scroll frame
*/
body.glass-page {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background image layer - fixed position, no scroll repaint */
body.glass-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url('../img/hero-banner/aurora-hotel-bien-hoa-1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    /* GPU acceleration */
    transform: translateZ(0);
    will-change: transform;
}

/* Dark overlay layer */
body.glass-page::after {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.75));
    z-index: -1;
    pointer-events: none;
    /* GPU acceleration */
    transform: translateZ(0);
}

body.glass-page>div {
    position: relative;
    z-index: 1;
}

/* 
   CORE WRAPPER (Legacy support)
   For pages still using .glass-page-wrapper
*/
.glass-page-wrapper {
    position: relative;
    min-height: 100vh;
}

.glass-page-wrapper>* {
    position: relative;
    z-index: 10;
}

/* Reduced Motion - disable animations */
@media (prefers-reduced-motion: reduce) {

    body.glass-page::before,
    body.glass-page::after {
        will-change: auto;
    }

    .glass-card,
    .utility-card-glass,
    .value-card {
        transition: none;
    }
}

/* Ensure Main is transparent */
main {
    background: transparent !important;
}

/* 
   SHARED HERO STYLES
*/
.page-hero-glass {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 180px 20px 80px;
}

/* Specific Hero for Service Detail */
.detail-hero-section {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 180px 20px 80px;
}

.hero-glass-card {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 3rem;

    background: rgba(30, 41, 59, 0.6) !important;
    /* Lighter Slate Glass 0.6 */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);

    /* GPU acceleration */
    transform: translateZ(0);
}

.hero-title-glass {
    font-family: 'Inter', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle-glass {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* 
   SHARED CARD STYLES
   PERFORMANCE: Reduced blur, optimized transitions
*/
.glass-card {
    background: rgba(30, 41, 59, 0.6) !important;
    /* Unified Slate Glass 0.6 */
    /* backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    /* Only transition transform and box-shadow for GPU acceleration */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    /* GPU acceleration */
    will-change: transform;
    transform: translateZ(0);
}

.glass-card:hover {
    transform: translateY(-8px) translateZ(0);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* 
   BUTTONS
*/
.btn-glass-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: white;
    border-radius: 0.75rem;
    font-weight: 600;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-glass-gold:hover {
    background: linear-gradient(135deg, #e5bd43, #c5a028);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.btn-glass-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-glass-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* ================= SPECIFIC PAGE STYLES ================= */

/* --- SERVICES & DETAIL --- */
.service-img-container {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem 1.5rem 0 0;
}

.service-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.glass-card:hover .service-img-container img {
    transform: scale(1.1);
}

.service-info {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-name {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
}

.glass-card:hover .service-name {
    color: #d4af37;
}

/* Utility Cards (Grid items) */
.utility-card-glass {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    will-change: transform;
    transform: translateZ(0);
    position: relative;
    overflow: hidden;
}

.utility-card-glass::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(212, 175, 55, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.utility-card-glass:hover {
    transform: translateY(-8px) translateZ(0);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.utility-card-glass:hover::before {
    opacity: 1;
}

.utility-card-glass:hover {
    transform: translateY(-6px) translateZ(0);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.utility-icon {
    width: 4rem;
    height: 4rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4af37;
    font-size: 2rem;
    transition: all 0.3s;
}

.utility-card-glass:hover .utility-icon {
    background: #d4af37;
    color: white;
    transform: scale(1.1);
}


/* --- ABOUT PAGE --- */

/* Floating Glass Blobs Background */
.glass-blobs-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Glass blob - DISABLED for performance (blur 50px causes lag) */
.glass-blob {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    /* backdrop-filter: blur(50px); - disabled for performance */
    /* animation: floatBlob 10s infinite ease-in-out; - disabled for performance */
}

/* floatBlob animation disabled for performance
@keyframes floatBlob {
    0%,
    100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(30px, -50px);
    }
}
*/

/* Story Split Card */
.story-split-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: rgba(30, 41, 59, 0.85);
    /* backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    overflow: hidden;
}

.story-image {
    position: relative;
    min-height: 400px;
}

.story-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 900px) {
    .story-split-card {
        grid-template-columns: 1fr;
    }
}

/* Value Cards (About) */
.value-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2rem;
    border-radius: 1.5rem;
    text-align: center;
    padding: 2rem;
    border-radius: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.value-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #d4af37;
    transform: translateY(-5px);
}


/* --- CONTACT PAGE --- */

.contact-grid-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

@media (max-width: 900px) {
    .contact-grid-wrapper {
        grid-template-columns: 1fr;
    }
}

.info-card-glass {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(30, 41, 59, 0.95) 100%);
    /* backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    padding: 2.5rem;
    transform: translateZ(0);
}

.info-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item:last-child {
    border-bottom: none;
}

.info-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.form-glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 2rem;
    padding: 3rem;
    transform: translateZ(0);
}

.form-group-glass label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.form-input-glass {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: white;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-input-glass:focus {
    outline: none;
    border-color: #d4af37;
    background: rgba(0, 0, 0, 0.4);
}

/* Map Wrapper */
.map-glass-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 1.5rem;
}

.map-glass-wrapper iframe {
    border-radius: 1rem;
    width: 100%;
    height: 450px;
    border: none;
}

/* Map placeholder for lazy loading */
#map-placeholder {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* 
   CTA
*/
.glass-cta-box {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.85), rgba(184, 136, 42, 0.85));
    border-radius: 2rem;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 4rem 0;
}

.glass-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 99px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Animation classes */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .page-hero-glass {
        padding: 180px 16px 60px;
        min-height: auto;
    }

    .hero-title-glass {
        font-size: 2.5rem;
    }

    .hero-glass-card {
        padding: 1.5rem;
    }

    .form-glass-card {
        padding: 1.5rem;
    }
}

/* --- MISSING SERVICE DETAIL STYLES --- */
.stat-card-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card-glass:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #d4af37, #b8941f);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
    font-family: 'Inter', sans-serif;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.detail-glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 2rem;
    padding: 3rem;
}

.package-detail-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    transition: all 0.3s;
}

.package-detail-card:hover {
    transform: translateY(-10px);
    background: rgba(30, 41, 59, 0.6);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.package-detail-card.featured {
    border: 1px solid #d4af37;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(30, 41, 59, 0.6));
}

.package-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: #d4af37;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.package-price-large {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #d4af37;
    margin: 1rem 0;
}

.package-features {
    margin: 1.5rem 0;
    flex-grow: 1;
}

.feature-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.feature-row .material-symbols-outlined {
    color: #10b981;
}


/* --- HOVER EFFECTS FOR ABOUT & CONTACT --- */
.value-card:hover .utility-icon {
    background: #d4af37;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.info-item {
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateX(10px);
}

.info-item:hover .info-icon {
    background: #d4af37;
    color: white;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* --- SERVICES MINI LIST STYLES (Added for Service Cards Refinement) --- */
.packages-list-mini {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.package-item-mini {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.2s ease;
}

.package-item-mini:hover {
    background-color: rgba(255, 255, 255, 0.05);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-radius: 0.5rem;
    border-bottom-color: transparent;
}

.package-price-mini {
    font-weight: 700;
    color: #d4af37;
    font-family: 'Inter', sans-serif;
}

.service-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.8em;
    /* Ensure consistent height */
}

/* Button Refinement for Cards */
.service-info .btn-glass-gold {
    width: 100%;
    margin-top: auto;
    justify-content: center;
}

/* Ensure images cover well */
.service-img-container {
    background-color: #1e293b;
    /* Fallback for transparency */
}