* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

.luxury-font {
    font-family: 'Cinzel', serif;
    letter-spacing: 0.02em;
}

.elegant-font {
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 0.01em;
}

.hero-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(5, 150, 105, 0.3) 50%, rgba(0, 0, 0, 0.6) 100%);
}

/* Luxury Texture Overlay */
.texture-overlay {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px),
        repeating-linear-gradient(90deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px);
    pointer-events: none;
    opacity: 0.5;
}

/* Gold Accent Animation */
@keyframes goldShimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.gold-accent {
    background: linear-gradient(90deg,
            #d4af37 0%,
            #f4e5c3 25%,
            #d4af37 50%,
            #f4e5c3 75%,
            #d4af37 100%);
    background-size: 200% auto;
    animation: goldShimmer 3s linear infinite;
}

/* Luxury Pattern Background */
.luxury-pattern {
    background-image: radial-gradient(circle at 20% 50%, rgba(5, 150, 105, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(5, 150, 105, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(5, 150, 105, 0.05) 0%, transparent 50%);
    animation: patternMove 20s ease infinite;
}

@keyframes patternMove {

    0%,
    100% {
        background-position: 0% 0%, 100% 100%, 40% 20%;
    }

    50% {
        background-position: 100% 100%, 0% 0%, 60% 80%;
    }
}

/* Ornamental Divider */
.ornament-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
}

.ornament-divider::before,
.ornament-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #d4af37, transparent);
}

.ornament-divider span {
    padding: 0 1rem;
    color: #d4af37;
    font-size: 1.5rem;
}

/* Animations */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    50% {
        transform: translateY(-10px) translateX(-50%);
    }
}

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

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

@keyframes pulse {

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

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.animate-bounce {
    animation: bounce 2s infinite;
}

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

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.shimmer {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

.hidden-scroll {
    opacity: 0;
    transform: translateY(50px);
}

.show-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease-out;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.4s ease-out;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-100px) scale(0.9);
        opacity: 0;
    }

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

/* Toast */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    display: none;
    animation: slideDown 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.active {
    display: block;
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-150%) scale(0.8);
        opacity: 0;
    }

    to {
        transform: translateX(-50%) translateY(0) scale(1);
        opacity: 1;
    }
}

.toast.success {
    border-left: 4px solid #10b981;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

html {
    scroll-behavior: smooth;
}

/* Mobile Menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    max-height: 500px;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    border: 2px solid white;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: white;
    transition: width 0.6s, height 0.6s, top 0.6s, left 0.6s;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.btn-secondary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-secondary:hover {
    color: #059669;
    border-color: white;
    transform: translateY(-2px);
}

/* Cards */
.card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #f4e5c3, #d4af37);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.card:hover::after {
    opacity: 1;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.15), 0 0 0 1px rgba(212, 175, 55, 0.1);
}

/* Room Card Images */
.room-image {
    transition: transform 0.6s ease;
    position: relative;
}

.room-image-container {
    overflow: hidden;
    position: relative;
}

.room-image-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(212, 175, 55, 0.1) 50%, transparent 70%);
    background-size: 200% 200%;
    opacity: 0;
    transition: opacity 0.4s;
}

.card:hover .room-image {
    transform: scale(1.08);
}

.card:hover .room-image-container::after {
    opacity: 1;
    animation: shimmerMove 1.5s ease-in-out;
}

@keyframes shimmerMove {
    0% {
        background-position: -100% -100%;
    }

    100% {
        background-position: 200% 200%;
    }
}

/* Amenity Cards */
.amenity-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.amenity-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    transition: width 0.6s, height 0.6s, top 0.6s, left 0.6s;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.amenity-card:hover::before {
    width: 400px;
    height: 400px;
}

.amenity-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 30px rgba(5, 150, 105, 0.2);
}

.amenity-card>* {
    position: relative;
    z-index: 1;
}

.amenity-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.4s ease;
}

.amenity-card:hover .amenity-icon {
    transform: rotateY(360deg);
    background: linear-gradient(135deg, #059669, #10b981);
}

.amenity-card:hover .amenity-icon svg {
    color: white;
}

/* Info Cards */
.info-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(5, 150, 105, 0.15);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #d4af37, #059669, #d4af37);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }
}

/* Parallax */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Nav on scroll */
.nav-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Form Elements */
input,
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    background: white;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
    transform: translateY(-2px);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
}

/* Section Decorations */
.section-decoration {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(5, 150, 105, 0.08));
    filter: blur(80px);
    z-index: -1;
    animation: decorationFloat 8s ease-in-out infinite;
}

@keyframes decorationFloat {

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

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

/* Decorative Corner Elements */
.corner-decoration {
    position: absolute;
    width: 100px;
    height: 100px;
    opacity: 0.1;
}

.corner-decoration::before,
.corner-decoration::after {
    content: '';
    position: absolute;
    background: linear-gradient(135deg, #d4af37, transparent);
}

.corner-decoration::before {
    width: 2px;
    height: 100%;
    left: 0;
    top: 0;
}

.corner-decoration::after {
    height: 2px;
    width: 100%;
    left: 0;
    top: 0;
}

.corner-decoration.bottom-right {
    bottom: 0;
    right: 0;
    transform: rotate(180deg);
}

.corner-decoration.top-left {
    top: 0;
    left: 0;
}

/* Stats Counter */
.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #059669, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Star Rating */
.star-rating {
    filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.5));
}

/* Luxury Badge */
.luxury-badge {
    background: linear-gradient(135deg, #d4af37, #f4e5c3, #d4af37);
    background-size: 200% auto;
    color: #1f2937;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    animation: goldShimmer 3s linear infinite;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.popular-badge {
    background: linear-gradient(135deg, #059669, #10b981, #059669);
    background-size: 200% auto;
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: shimmerMove 3s ease infinite;
}

/* Loading animation for images */
.img-container {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 50%, #f3f4f6 100%);
    background-size: 200% 100%;
}

.img-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    /* animation: shimmer 2s infinite; */
    z-index: 1;
}

.img-container img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 0;
}

/* Remove white lines on hero and room images */
.hero-image-container,
.hero-image-container::before,
.hero-image-container::after {
    background: none !important;
}

.hero-image-container img {
    transition: transform 0.3s ease;
}

/* Scroll indicator */
.scroll-indicator {
    position: relative;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 30px;
    background: white;
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% {
        height: 0;
        opacity: 0;
    }

    50% {
        height: 30px;
        opacity: 1;
    }

    100% {
        height: 0;
        opacity: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stat-number {
        font-size: 2rem;
    }

    .section-decoration {
        width: 200px;
        height: 200px;
    }
}

/* Floating Textures for Blank Space */
.floating-texture {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.05) 0%, transparent 70%);
    filter: blur(60px);
    animation: floatSlow 12s ease-in-out infinite;
    z-index: -1;
}

@keyframes floatSlow {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(-40px) translateX(30px);
    }
}

/* Additional decorative textures and cave vibe styles */

:root{
    --cave-deep:#0b0220;
    --cave-mid:#2b0b3a;
    --cave-highlight:#a78bfa;
    --cave-ambient: rgba(167,139,250,0.08);
    --emerald-ambient: rgba(5,150,105,0.06);
}

/* Grain / film texture overlay for a premium tactile feel */
.grain-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,0.02) 0.5px, transparent 0.5px),
                      radial-gradient(rgba(0,0,0,0.02) 0.5px, transparent 0.5px);
    background-size: 3px 3px, 6px 6px;
    mix-blend-mode: overlay;
    opacity: 0.5;
}

/* Soft vignette for focus */
.vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 100%);
    opacity: 0.9;
}

/* Light rays sweep for cave hero */
.light-rays {
    position: absolute;
    inset: -20% -20% auto -20%;
    height: 60%;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.06) 45%, rgba(255,255,255,0) 60%);
    filter: blur(30px) saturate(120%);
    transform: rotate(-15deg);
    animation: sweep 8s linear infinite;
    mix-blend-mode: screen;
    opacity: 0.7;
}

@keyframes sweep{
    0%{ transform: translateX(-100%) rotate(-15deg); }
    50%{ transform: translateX(10%) rotate(-15deg); }
    100%{ transform: translateX(110%) rotate(-15deg); }
}

/* Section-specific pattern modifiers */
.luxury-pattern--emerald { --pattern-ambient: var(--emerald-ambient); }
.luxury-pattern--amber   { --pattern-ambient: rgba(212,175,55,0.06); }
.luxury-pattern--purple  { --pattern-ambient: var(--cave-ambient); }

.section-pattern-decal::before{
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 10% 20%, rgba(255,255,255,0.02) 0%, transparent 30%),
                      radial-gradient(circle at 80% 80%, rgba(0,0,0,0.02) 0%, transparent 30%);
    opacity: 0.6;
    pointer-events: none;
}

/* Cave-specific vibe wrapper */
.cave-vibe {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(11,2,32,0.65), rgba(43,11,58,0.6));
    color: #efe8ff;
}

.cave-vibe .texture-overlay {
    opacity: 0.2;
}

.cave-vibe .hero-overlay {
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(124,58,237,0.25) 50%, rgba(0,0,0,0.75) 100%);
}

.cave-orb {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(167,139,250,0.7), rgba(124,58,237,0.15));
    filter: blur(40px);
    pointer-events: none;
    mix-blend-mode: screen;
}

.cave-orb.small{ width:120px; height:120px; filter: blur(30px); opacity:0.9 }
.cave-orb.large{ width:420px; height:420px; filter: blur(80px); opacity:0.6 }

/* Lux gold accent for premium badges inside cave */
.cave-vibe .luxury-badge{ box-shadow: 0 10px 30px rgba(167,139,250,0.12), inset 0 1px 0 rgba(255,255,255,0.15); }

/* Slight film grain for whole page optional */
.film-grain::after{
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"><filter id="n"><feTurbulence baseFrequency="0.8" numOctaves="1" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/></filter><rect width="100%" height="100%" filter="url(%23n)" opacity="0.02"/></svg>');
    mix-blend-mode: overlay;
}

/* Minimalist gold textures for white areas */
.gold-pattern {
    position: relative;
    overflow: hidden;
}

.gold-pattern::before{
    /* subtle diagonal gold stripes */
    content: '';
    position: absolute;
    inset: -20% -20% -20% -20%;
    background-image: repeating-linear-gradient(135deg,
        rgba(212,175,55,0.03) 0px,
        rgba(212,175,55,0.03) 1px,
        rgba(255,255,255,0) 1px,
        rgba(255,255,255,0) 6px);
    pointer-events: none;
    transform: translateZ(0);
    opacity: var(--gold-stripe-opacity, 0.7);
    mix-blend-mode: multiply;
}

.gold-pattern::after{
    /* faint gold dot grid to add tactility */
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(212,175,55,0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    opacity: var(--gold-dot-opacity, 0.6);
    mix-blend-mode: overlay;
}

/* small ornamental corner flourish */
.gold-flourish {
    position: absolute;
    width: 84px;
    height: 84px;
    right: 18px;
    top: 18px;
    pointer-events: none;
    opacity: var(--gold-flourish-opacity, 0.95);
    border-radius: 12px;
    background-image: radial-gradient(circle at 30% 30%, rgba(212,175,55,0.28), rgba(212,175,55,0.06));
    filter: blur(10px);
}

/* subtle thin frame lines */
.gold-edge {
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(212,175,55,var(--gold-edge-opacity,0.06));
    pointer-events: none;
    border-radius: 12px;
}

/* utility to make patterns lighter when needed */
.gold-pattern--soft::before { opacity: 0.28; }
.gold-pattern--soft::after { opacity: 0.18; }

/* Gold intensity presets - apply to body or section */
.gold-preset-subtle { --gold-stripe-opacity: 0.22; --gold-dot-opacity: 0.12; --gold-flourish-opacity: 0.6; --gold-edge-opacity: 0.03; }
.gold-preset-medium { --gold-stripe-opacity: 0.48; --gold-dot-opacity: 0.42; --gold-flourish-opacity: 0.95; --gold-edge-opacity: 0.06; }
.gold-preset-bold   { --gold-stripe-opacity: 0.85; --gold-dot-opacity: 0.75; --gold-flourish-opacity: 1;    --gold-edge-opacity: 0.12; }

/* Decorative SVG flourish (data URI) for sharper premium mark if needed */
.gold-flourish.svg {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><g fill='none' stroke='%23d4af37' stroke-width='2'><path d='M6 32c8-12 24-12 30 0' opacity='0.95'/><path d='M6 36c8 12 24 12 30 0' opacity='0.6'/></g></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 70% 70%;
    filter: drop-shadow(0 6px 10px rgba(212,175,55,0.06));
}

/* Bar features - animated icons */
.bar-features {
    --card-bg: rgba(255,255,255,0.02);
    padding-top: 2rem;
    padding-bottom: 2rem;
}
.bar-features .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
}
/* Add horizontal padding so first/last cards don't touch viewport edges */
.bar-features .grid {
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .bar-features .grid {
        padding: 0 2rem;
    }
}

@media (min-width: 1200px) {
    .bar-features .grid {
        padding: 0 3rem;
    }
}
.feature-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.45);
    transition: transform 0.36s cubic-bezier(.2,.9,.2,1), box-shadow 0.36s;
    position: relative;
    overflow: hidden;
}
.feature-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 18px 40px rgba(10,10,10,0.18); }
.feature-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem auto;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(167,139,250,0.12), rgba(212,175,55,0.06));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}
.feature-title { font-weight:700; color: #efe8ff; margin-bottom:0.25rem; }
.feature-desc { font-size:0.92rem; color: #d1cbe6; }

/* Make the bar-features section use a subtle dark band by default to ensure contrast */
.bar-features {
    background: linear-gradient(180deg, rgba(11,2,32,0.6), rgba(43,11,58,0.55));
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Slightly brighter card background when placed on dark cave background */
.cave-vibe .feature-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.04);
}

/* Icon animations */
@keyframes spinSlow { from{ transform: rotate(0deg);} to{ transform: rotate(360deg);} }
@keyframes pulseBeat { 0%{ transform: scale(1); opacity:1 } 50%{ transform: scale(1.08); opacity:0.9 } 100%{ transform: scale(1); opacity:1 } }
@keyframes sweepBeam { 0%{ transform: translateX(-120%) } 100%{ transform: translateX(120%) } }

.icon-rotate svg { animation: spinSlow 12s linear infinite; }
.icon-pulse svg { animation: pulseBeat 1.8s ease-in-out infinite; transform-origin: center; }
.icon-beam .beam { animation: sweepBeam 2.4s linear infinite; opacity:0.9 }

/* small decorative dots behind icons */
.feature-card::before{
    content: '';
    position: absolute;
    width: 140px; height:140px; border-radius:50%;
    right: -20px; top: -30px;
    background: radial-gradient(circle at 30% 30%, rgba(212,175,55,0.06), transparent 40%);
    pointer-events: none;
}





/* Preloader Styles */
.preloader {
    position: fixed;
    inset: 0;
    background: #111827;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

/* Golden textured border for Bar Features to give a premium frame */
.bar-features {
    position: relative; /* ensure pseudo-elements align */
    border-radius: 14px;
}

.bar-features::before {
    /* outer glow + thin rim */
    content: '';
    position: absolute;
    inset: -18px; /* extend outside to form a framed band */
    border-radius: 18px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(212,175,55,0.06), rgba(255,230,160,0.02));
    box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 0 1px rgba(212,175,55,0.06) inset;
    mix-blend-mode: overlay;
    opacity: 0.95;
}

.bar-features::after {
    /* faint gold dot grid + soft diagonal streaks for texture */
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 12px;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(212,175,55,0.04) 1px, transparent 1px),
                      repeating-linear-gradient(135deg, rgba(212,175,55,0.02) 0 2px, transparent 2px 8px);
    background-size: 18px 18px, 160px 160px;
    opacity: 0.9;
    mix-blend-mode: screen;
}

/* Make sure the inner content sits above the decorative frames */
.bar-features > .max-w-6xl,
.bar-features > .container,
.bar-features .grid {
    position: relative;
    z-index: 2;
}

/* A tiny gold corner flourish aligned to the padded gutter */
.bar-features .gold-corner {
    position: absolute;
    width: 64px;
    height: 64px;
    right: 20px;
    top: 20px;
    background-image: radial-gradient(circle at 30% 30%, rgba(212,175,55,0.22), rgba(212,175,55,0.06));
    border-radius: 8px;
    pointer-events: none;
    filter: blur(6px);
    z-index: 1;
    opacity: 0.95;
}


.preloader.preloader-hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    width: 80px;
    height: 80px;
    border-radius: 1rem;
    animation: pulse 2s infinite;
}

/* Testimonial Carousel */
.testimonial-carousel {
    display: flex;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

.testimonial-track {
    display: flex;
    animation: scrollTestimonials 40s linear infinite;
}

.testimonial-card {
    flex-shrink: 0;
    width: 350px;
    margin: 0 1rem;
}

@keyframes scrollTestimonials {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}
