@import 'tailwindcss';

@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
@source '../../storage/framework/views/*.php';
@source '../**/*.blade.php';
@source '../**/*.js';

@theme {
    --font-sans: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
        'Segoe UI Symbol', 'Noto Color Emoji';
}


:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gold-color: #FFD700;
    --silver-color: #c0c0c0;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.nav-link.active {
    color: var(--primary-color) !important;
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.card:hover {
    transform: translateY(-2px);
}

.room-card .card-img-top {
    height: 250px;
    object-fit: cover;
}

/* About Us Modal Styles */
.about-us-modal {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    background: transparent;
}

.about-us-modal .modal-background {
    min-height: 80vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    transition: transform 0.3s ease;
}

.about-us-modal .background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.about-us-modal .modal-content-inner {
    z-index: 2;
}

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

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #FFD700, transparent);
    position: relative;
}

.divider::before, .divider::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: #FFD700;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.divider::before {
    left: -15px;
}

.divider::after {
    right: -15px;
}

.text-gold {
    color: #FFD700 !important;
}

.about-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.timeline-item {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.mission-values .value-item {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mission-values .value-item:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: scale(1.05);
}

.value-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.highlight-item {
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 10px;
}

.highlight-item:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-5px);
}

.modal-actions .btn {
    min-width: 200px;
    padding: 12px 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.modal-actions .btn-primary {
    background: linear-gradient(45deg, #FFD700, #FFC107);
    border: none;
    color: #000;
}

.modal-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

.modal-actions .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #FFD700;
    color: #FFD700;
}

.btn-close-white {
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FFD700'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.btn-close-white:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.form-check-input:checked {
    background-color: #FFD700;
    border-color: #FFD700;
}

.form-check-input:focus {
    border-color: #FFD700;
    box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.25);
}

.form-check-label {
    cursor: pointer;
}

/* Fade in animation for modal */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal.fade .modal-dialog {
    animation: modalFadeIn 0.5s ease-out;
}

/* Hero Section */
.hero-section {
    margin-top: -76px;
    padding-top: 76px;
    overflow: hidden;
}

.swiper-container {
    width: 100%;
    height: 600px;
}

.swiper-slide {
    position: relative;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slider-content {
    position: absolute;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.slider-content.center-center {
    justify-content: center;
    align-items: center;
    text-align: center;
}

.slider-content.left-center {
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    padding-left: 5%;
}

.slider-content.right-center {
    justify-content: flex-end;
    align-items: center;
    text-align: right;
    padding-right: 5%;
}

.slider-title {
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slider-subtitle {
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.slider-btn {
    transition: all 0.3s ease;
}

.slider-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.quick-stats {
    z-index: 10;
}

.stat-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15) !important;
}

.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-color), #6610f2);
    border-radius: 2px;
}

.section-title.text-white::after {
    background: linear-gradient(45deg, #ffffff, #cccccc);
}

.room-card {
    transition: all 0.3s ease;
    overflow: hidden;
}

.room-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.room-card .card-img-top {
    transition: transform 0.5s ease;
}

.room-card:hover .card-img-top {
    transform: scale(1.1);
}

.amenity-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), #6610f2);
    color: white;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.card:hover .amenity-icon {
    transform: rotate(360deg);
}

.price {
    color: var(--primary-color);
    font-weight: bold;
}

.price small {
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.promotion-card {
    transition: all 0.3s ease;
}

.promotion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
}

.testimonials-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 20px;
}

.gallery-item {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.05);
}

/* Currency Switcher */
#currencySwitcher {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#currencySwitcher:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

#currencySwitcher .dropdown-menu {
    min-width: 200px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

#currencySwitcher .dropdown-item {
    padding: 10px 15px;
    border-radius: 5px;
    margin: 2px 0;
    transition: all 0.2s ease;
}

#currencySwitcher .dropdown-item:hover,
#currencySwitcher .dropdown-item.active {
    background-color: var(--primary-color);
    color: white;
}

#currencySwitcher .dropdown-item.active {
    font-weight: bold;
}

/* Gallery Modal Styling */
#galleryModal .modal-content {
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(15px);
    border: none;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

#galleryModal .modal-dialog {
    max-width: 95vw;
    height: 95vh;
    margin: 2.5vh auto;
}

#galleryModal .modal-body {
    padding: 0;
    height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
}

#galleryModal .image-container {
    position: relative;
    display: inline-block;
    max-width: 90%;
    max-height: 90%;
}

#galleryModal .modal-image {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    transition: all 0.3s ease;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 12px solid transparent;
    background: 
        linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)) padding-box,
        linear-gradient(45deg, var(--gold-color), var(--silver-color), var(--gold-color)) border-box;
    animation: borderGlow 3s ease-in-out infinite alternate;
    position: relative;
    z-index: 2;
}

#galleryModal .image-frame {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    pointer-events: none;
    z-index: 1;
    animation: framePulse 4s ease-in-out infinite;
}

#galleryModal .image-shadow {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 0;
    bottom: -20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    filter: blur(20px);
    z-index: 0;
    transform: translateZ(-1px);
}

#galleryModal .btn-nav {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 215, 0, 0.5);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#galleryModal .btn-nav:hover {
    background: white;
    transform: scale(1.1);
    border-color: var(--gold-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

#galleryModal #modalCaption {
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

#galleryModal #imageCounter {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Animations */
@keyframes borderGlow {
    0% {
        border-image: linear-gradient(45deg, var(--gold-color), var(--silver-color), var(--gold-color)) 1;
    }
    100% {
        border-image: linear-gradient(225deg, var(--gold-color), var(--silver-color), var(--gold-color)) 1;
    }
}

@keyframes framePulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.02);
    }
}

/* Modal backdrop */
.modal-backdrop.show {
    opacity: 0.9;
    background: linear-gradient(135deg, #000000, #1a1a2e);
}

/* Buttons */
.btn {
    font-weight: 500;
    padding: 0.5rem 1.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Forms */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Badges */
.badge {
    padding: 0.35em 0.65em;
    font-weight: 600;
}

/* Table */
.table th {
    font-weight: 600;
    color: var(--dark-color);
}

/* Footer */
footer {
    margin-top: auto;
}

.social-icons a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    /* About Us Modal */
    .about-us-modal .modal-content-inner {
        padding: 2rem !important;
    }
    
    .modal-actions .btn {
        min-width: 150px;
        padding: 10px 20px;
        margin-bottom: 10px;
        display: block;
        width: 100%;
    }
    
    .modal-actions .btn.me-3 {
        margin-right: 0 !important;
    }
    
    .highlight-number {
        font-size: 2rem !important;
    }
    
    /* Home page */
    .hero-section {
        margin-top: 0;
        padding-top: 0;
    }
    
    .swiper-container {
        height: 400px;
    }
    
    .slider-title {
        font-size: 2rem !important;
    }
    
    .slider-subtitle {
        font-size: 1rem !important;
    }
    
    .quick-stats {
        margin-top: -30px;
    }
    
    .stat-card {
        margin-bottom: 15px;
    }
    
    .room-amenities .badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* Gallery modal adjustments */
    #galleryModal .modal-dialog {
        margin: 10px;
        max-width: calc(100vw - 20px);
        height: calc(100vh - 20px);
    }
    
    #galleryModal .modal-image {
        border-width: 8px;
        max-height: 70vh;
    }
    
    #galleryModal .image-frame {
        top: -12px;
        left: -12px;
        right: -12px;
        bottom: -12px;
    }
    
    #galleryModal .btn-nav {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    #galleryModal .modal-footer .row {
        flex-direction: column;
        gap: 15px;
    }
    
    #galleryModal .modal-footer .col-auto {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
    
    /* Currency switcher on mobile */
    #currencySwitcher {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .hero-slider .carousel-caption {
        bottom: 10% !important;
    }
    
    .hero-slider .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .room-meta .d-flex {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    /* About Us Modal */
    .about-card {
        padding: 15px;
    }
    
    .hotel-logo i {
        font-size: 3rem;
    }
    
    .welcome-message h2 {
        font-size: 1.5rem;
    }
    
    /* Home page */
    .slider-title {
        font-size: 1.5rem !important;
    }
    
    .slider-subtitle {
        font-size: 0.9rem !important;
    }
    
    .slider-btn {
        padding: 8px 20px !important;
        font-size: 0.9rem !important;
    }
    
    /* Small mobile modal adjustments */
    #galleryModal .modal-image {
        border-width: 6px;
        max-height: 60vh;
    }
    
    #galleryModal .btn-nav {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    #galleryModal #modalCaption {
        font-size: 1rem;
    }
}

@media (max-height: 600px) {
    #galleryModal .modal-body {
        height: calc(100vh - 100px);
    }
    
    #galleryModal .modal-image {
        max-height: 70vh;
    }
}

/* Utility Classes */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: -0.125em;
    border: 0.2em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

/* Ensure content is visible */
.slider-content {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    z-index: 10 !important;
    pointer-events: none !important; /* Allow clicks on button */
}

.slider-content * {
    pointer-events: auto !important; /* Re-enable pointer events for content */
}

/* Make sure overlay doesn't block content */
.slider-overlay {
    z-index: 1 !important;
}

.slider-content > .container {
    position: relative !important;
    z-index: 11 !important;
}

/* Ensure navbar is always on top */
.navbar {
    z-index: 1030;
    position: relative;
}

/* If using a fixed navbar, use this instead */
.navbar.fixed-top {
    z-index: 1030;
}

/* Make sure nav links are clickable */
.nav-link {
    position: relative;
    z-index: 1031;
}

/* Swiper.js styles for slides */
.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Enhanced slider text styles */
.slider-title {
    font-size: 4.0rem !important;
    color: #ffffff !important;
    font-weight: bold !important;
    margin-bottom: 1rem !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.slider-subtitle {
    font-size: 1.5rem !important;
    color: #ffffff !important;
    margin-bottom: 2rem !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.slider-btn {
    background-color: #007bff !important;
    color: #ffffff !important;
    padding: 12px 30px !important;
    font-size: 1rem !important;
    border: none !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
}

.slider-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2) !important;
    background-color: #0056b3 !important;
}

/* Content position classes */
.slider-content.center-bottom {
    justify-content: center !important;
    align-items: flex-end !important;
    text-align: center !important;
    padding-bottom: 10% !important;
}

/* Additional content position variants */
.slider-content.top-left {
    justify-content: flex-start !important;
    align-items: flex-start !important;
    text-align: left !important;
    padding: 10% !important;
}

.slider-content.top-right {
    justify-content: flex-end !important;
    align-items: flex-start !important;
    text-align: right !important;
    padding: 10% !important;
}

.slider-content.bottom-left {
    justify-content: flex-start !important;
    align-items: flex-end !important;
    text-align: left !important;
    padding: 10% !important;
}

.slider-content.bottom-right {
    justify-content: flex-end !important;
    align-items: flex-end !important;
    text-align: right !important;
    padding: 10% !important;
}

/* Default Hero styling */
.default-hero {
    height: 600px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}


/* ----------------------------------------------
   PORTAL ABOUT US MODAL – Elegant Cosmic Design
   (Now using CSS variables from layout)
---------------------------------------------- */

#aboutUsModal .portal-modal {
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
}

/* Cosmic background using editable colors */
.portal-cosmic-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at bottom, var(--modal-bg-start, #0d0d1a) 0%, var(--modal-bg-end, #050510) 100%);
    border-radius: 30px;
    overflow: hidden;
    z-index: 0;
}

.stars, .twinkling {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.stars {
    background: transparent url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48Y2lyY2xlIGN4PSI2IiBjeT0iMTQiIHI9IjEiIGZpbGw9IndoaXRlIiAvPjxjaXJjbGUgY3g9IjE2MiIgY3k9IjU4IiByPSIxLjUiIGZpbGw9IndoaXRlIiAvPjxjaXJjbGUgY3g9IjI4MCIgY3k9IjE3MCIgcj0iMSIgZmlsbD0id2hpdGUiIC8+PC9zdmc+');
    background-size: 200px 200px;
    animation: stars 200s linear infinite;
    opacity: 0.8;
}

.twinkling {
    background: transparent url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48Y2lyY2xlIGN4PSI1MCIgY3k9IjUwIiByPSIyIiBmaWxsPSIjZmZmZmZmIiAvPjxjaXJjbGUgY3g9IjIwMCIgY3k9IjEwMCIgcj0iMS41IiBmaWxsPSIjZmZmZmZmIiAvPjwvc3ZnPg==');
    background-size: 300px 300px;
    animation: twinkle 4s ease-in-out infinite alternate;
    opacity: 0.6;
}

@keyframes stars {
    from { transform: translateY(0); }
    to { transform: translateY(-2000px); }
}

@keyframes twinkle {
    0% { opacity: 0.2; }
    100% { opacity: 0.8; }
}

/* Portal frame – glowing ring using accent color */
.portal-frame {
    position: relative;
    width: 100%;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 10;
}

.portal-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, color-mix(in srgb, var(--modal-accent, #ffd700) 20%, transparent) 0%, transparent 70%);
    filter: blur(60px);
    animation: pulseGlow 8s ease-in-out infinite;
}

.portal-ring {
    position: absolute;
    width: 90%;
    height: 90%;
    border: 2px solid color-mix(in srgb, var(--modal-accent, #ffd700) 50%, transparent);
    border-radius: 50% / 45%;
    box-shadow: 0 0 40px color-mix(in srgb, var(--modal-accent, #ffd700) 30%, transparent), inset 0 0 30px color-mix(in srgb, var(--modal-accent, #ffd700) 20%, transparent);
    animation: rotateRing 20s linear infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
}

@keyframes rotateRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Glass card content – text colors from settings */
.portal-content {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: color-mix(in srgb, var(--modal-bg-start, #0a0a1a) 60%, transparent);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid color-mix(in srgb, var(--modal-accent, #ffd700) 30%, transparent);
    border-radius: var(--modal-radius, 40px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    color: var(--modal-text, #ffffff);
    transition: transform 0.4s ease;
    z-index: 20;
}

.portal-content:hover {
    transform: scale(1.01);
}

/* Close button using accent */
.portal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: color-mix(in srgb, var(--modal-accent, #ffd700) 80%, transparent);
    transition: all 0.3s;
    z-index: 30;
}

.portal-close i {
    filter: drop-shadow(0 0 5px color-mix(in srgb, var(--modal-accent, #ffd700) 50%, transparent));
}

.portal-close:hover {
    color: var(--modal-accent, #ffd700);
    transform: rotate(90deg) scale(1.2);
}

/* Emblem */
.portal-emblem {
    text-align: center;
    margin-bottom: 1.5rem;
}

.portal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(135deg, color-mix(in srgb, var(--modal-accent, #ffd700) 20%, transparent), color-mix(in srgb, var(--modal-accent, #ffd700) 10%, transparent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--modal-accent, #ffd700);
    border: 2px solid color-mix(in srgb, var(--modal-accent, #ffd700) 50%, transparent);
    box-shadow: 0 0 30px color-mix(in srgb, var(--modal-accent, #ffd700) 30%, transparent);
    animation: float 6s ease-in-out infinite;
}

.portal-logo {
    max-height: 80px;
    filter: drop-shadow(0 0 15px color-mix(in srgb, var(--modal-accent, #ffd700) 50%, transparent));
}

/* Title using accent gradient */
.portal-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(45deg, var(--modal-title, #ffffff), var(--modal-accent, #ffd700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px color-mix(in srgb, var(--modal-accent, #ffd700) 30%, transparent);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.portal-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 1rem 0;
}

.portal-divider span {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--modal-accent, #ffd700), transparent);
}

.portal-divider i {
    color: var(--modal-accent, #ffd700);
    font-size: 1.2rem;
    animation: spin 8s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.portal-tagline {
    font-size: 1.25rem;
    text-align: center;
    color: color-mix(in srgb, var(--modal-text, #ffffff) 90%, transparent);
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.portal-description {
    text-align: center;
    color: color-mix(in srgb, var(--modal-text, #ffffff) 70%, transparent);
    font-style: italic;
    margin-bottom: 2rem;
}

/* Two column layout */
.portal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.portal-story, .portal-mission {
    background: color-mix(in srgb, var(--modal-text, #ffffff) 5%, transparent);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(5px);
    border: 1px solid color-mix(in srgb, var(--modal-accent, #ffd700) 20%, transparent);
    transition: all 0.3s;
}

.portal-story:hover, .portal-mission:hover {
    background: color-mix(in srgb, var(--modal-accent, #ffd700) 10%, transparent);
    border-color: color-mix(in srgb, var(--modal-accent, #ffd700) 60%, transparent);
    transform: translateY(-5px);
}

.portal-story h3, .portal-mission h3 {
    color: var(--modal-accent, #ffd700);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid color-mix(in srgb, var(--modal-accent, #ffd700) 30%, transparent);
    padding-bottom: 0.5rem;
}

.portal-story p, .portal-mission p {
    color: color-mix(in srgb, var(--modal-text, #ffffff) 80%, transparent);
    line-height: 1.6;
    font-size: 0.95rem;
}

.portal-awards {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 1rem;
}

.portal-awards span {
    background: color-mix(in srgb, var(--modal-accent, #ffd700) 15%, transparent);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.85rem;
    color: var(--modal-accent, #ffd700);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Values badges */
.portal-values {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1.5rem;
}

.value-badge {
    background: linear-gradient(145deg, color-mix(in srgb, var(--modal-accent, #ffd700) 20%, transparent), color-mix(in srgb, var(--modal-accent, #ffd700) 5%, transparent));
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--modal-text, #ffffff);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid color-mix(in srgb, var(--modal-accent, #ffd700) 30%, transparent);
    transition: all 0.2s;
}

.value-badge i {
    color: var(--modal-accent, #ffd700);
}

.value-badge:hover {
    background: color-mix(in srgb, var(--modal-accent, #ffd700) 30%, transparent);
    transform: scale(1.05);
}

/* Highlights row */
.portal-highlights {
    display: flex;
    justify-content: space-around;
    margin: 2rem 0 1.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid color-mix(in srgb, var(--modal-accent, #ffd700) 30%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--modal-accent, #ffd700) 30%, transparent);
}

.highlight-item {
    text-align: center;
}

.highlight-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--modal-accent, #ffd700);
    text-shadow: 0 0 15px color-mix(in srgb, var(--modal-accent, #ffd700) 50%, transparent);
    line-height: 1;
}

.highlight-label {
    font-size: 0.85rem;
    color: color-mix(in srgb, var(--modal-text, #ffffff) 70%, transparent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Action buttons using accent */
.portal-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 1rem;
}

.btn-explore, .btn-book {
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 1px;
    border: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.btn-explore {
    background: linear-gradient(45deg, var(--modal-accent, #ffd700), color-mix(in srgb, var(--modal-accent, #ffd700) 80%, #000));
    color: #000;
    box-shadow: 0 5px 20px color-mix(in srgb, var(--modal-accent, #ffd700) 40%, transparent);
}

.btn-explore:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px color-mix(in srgb, var(--modal-accent, #ffd700) 60%, transparent);
    color: #000;
}

.btn-book {
    background: transparent;
    border: 2px solid var(--modal-accent, #ffd700);
    color: var(--modal-text, #ffffff);
}

.btn-book:hover {
    background: var(--modal-accent, #ffd700);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px color-mix(in srgb, var(--modal-accent, #ffd700) 30%, transparent);
}

/* Don't show again toggle */
.portal-dont-show {
    margin-top: 2rem;
    text-align: center;
    color: color-mix(in srgb, var(--modal-text, #ffffff) 60%, transparent);
    font-size: 0.9rem;
}

.portal-dont-show .form-check-input {
    background-color: transparent;
    border-color: var(--modal-accent, #ffd700);
    cursor: pointer;
}

.portal-dont-show .form-check-input:checked {
    background-color: var(--modal-accent, #ffd700);
    border-color: var(--modal-accent, #ffd700);
}

.portal-dont-show .form-check-label {
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .portal-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .portal-title {
        font-size: 2rem;
    }

    .portal-highlights {
        flex-wrap: wrap;
        gap: 15px;
    }

    .portal-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-explore, .btn-book {
        width: 100%;
        justify-content: center;
    }

    .portal-ring {
        width: 95%;
        height: 95%;
    }
}

@media (max-width: 576px) {
    .portal-content {
        padding: 2rem 1rem;
    }

    .portal-title {
        font-size: 1.75rem;
    }

    .portal-tagline {
        font-size: 1rem;
    }

    .portal-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .highlight-number {
        font-size: 1.5rem;
    }
}

/* ========== ANIMATED GALLERY PREVIEW – ELEGANT & DYNAMIC ========== */

/* Grid layout – remains clean and responsive */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin: 0 auto;
}

/* Gallery Item – base with perspective for 3D tilt */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* 3D tilt and glow on hover */
.gallery-item:hover {
    transform: scale(1.02) rotateX(2deg) rotateY(2deg);
    box-shadow: 0 25px 50px -8px rgba(0, 0, 0, 0.3);
}

/* Animated border glow */
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(45deg, 
        transparent 20%, 
        rgba(255, 215, 0, 0.3) 40%, 
        rgba(255, 215, 0, 0.6) 60%, 
        transparent 80%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.gallery-item:hover::after {
    opacity: 1;
    animation: borderRotate 2s linear infinite;
}

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

/* Image container */
.gallery-figure {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    border-radius: 16px;
}

/* Image – zoom with subtle rotation */
.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.15) rotate(2deg);
}

/* Caption – slide up with fade and blur */
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1rem;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.85) 0%, 
        rgba(0, 0, 0, 0.4) 70%, 
        transparent 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    backdrop-filter: blur(2px);
    opacity: 0;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
    opacity: 1;
}

/* Caption text – subtle slide from left */
.gallery-caption span {
    display: inline-block;
    transform: translateX(-10px);
    opacity: 0;
    transition: transform 0.4s ease 0.1s, opacity 0.4s ease 0.1s;
}

.gallery-item:hover .gallery-caption span {
    transform: translateX(0);
    opacity: 1;
}

/* Expand icon – pulse and rotate */
.gallery-caption i {
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 0.5rem;
    transition: all 0.3s ease;
    transform: scale(1);
}

.gallery-caption i:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1) rotate(90deg);
}

/* Additional shimmer effect on image */
.gallery-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 80%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: overlay;
}

.gallery-item:hover::before {
    opacity: 1;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translate(-30%, -30%) rotate(0deg); }
    100% { transform: translate(30%, 30%) rotate(10deg); }
}

/* Elegant "View Full Gallery" button – with double border animation */
.btn-gallery {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 2.5rem;
    background: transparent;
    color: var(--primary-color, #007bff);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: inset 0 0 0 2px var(--primary-color, #007bff);
}

.btn-gallery::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary-color, #007bff);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn-gallery:hover {
    color: #fff;
    box-shadow: inset 0 0 0 2px transparent;
}

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

.btn-gallery i {
    transition: transform 0.3s ease;
}

.btn-gallery:hover i {
    transform: translateX(5px);
}

/* Button outer glow animation */
.btn-gallery::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 54px;
    background: var(--primary-color, #007bff);
    opacity: 0;
    z-index: -2;
    transition: opacity 0.3s ease;
}

.btn-gallery:hover::after {
    opacity: 0.3;
    animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.05); opacity: 0.5; }
    100% { transform: scale(1); opacity: 0.3; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1rem;
    }
    
    .gallery-caption {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .gallery-item:hover {
        transform: scale(1.02) rotateX(1deg) rotateY(1deg);
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .btn-gallery {
        padding: 0.8rem 2rem;
    }
}