/* Rain Background Effect for Individual Sections */
.section-with-rain {
    position: relative;
    overflow: hidden;
    isolation: isolate; /* Creates a new stacking context */
    background: rgba(15, 20, 30, 0.9); /* Fallback background */
}

.rain-background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.rain-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    filter: brightness(0.8);
}

.rain-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8));
    z-index: -1;
}

/* Glass section styling */
.glass-section {
    position: relative;
    background: rgba(15, 20, 30, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 20px 0;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.36);
    transition: all 0.3s ease;
}

/* Ensure content is above the video */
.section-content {
    position: relative;
    z-index: 1;
}

/* Text styling for better readability */
.section-with-rain h1,
.section-with-rain h2,
.section-with-rain h3,
.section-with-rain h4,
.section-with-rain h5,
.section-with-rain h6,
.section-with-rain p,
.section-with-rain li,
.section-with-rain a:not(.btn) {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Navigation bar styling */
.glass-nav {
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
}

/* Hero section specific styling */
.premium-hero {
    position: relative;
    padding: 200px 0;
    text-align: center;
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Form elements styling */
.form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Card styling */
.card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Table styling */
.table {
    color: white;
}

.table thead th {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.table td, .table th {
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* Adjust spacing between sections */
.page-section {
    padding: 100px 0;
}

/* Ensure text is readable on the glass sections */
.glass-section h1,
.glass-section h2,
.glass-section h3,
.glass-section h4,
.glass-section h5,
.glass-section h6,
.glass-section p,
.glass-section li,
.glass-section a:not(.btn) {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Adjust hero section */
.premium-hero {
    position: relative;
    padding: 200px 0;
    text-align: center;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Ensure form elements are readable */
.form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Adjust card styles */
.card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

/* Adjust table styles */
.table {
    color: white;
}

.table thead th {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.table td, .table th {
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* Modal with Galaxy Background */
#bookingModal .modal-content {
    position: relative;
    background: url('../../assets/img/galaxy.jpeg') center/cover no-repeat;
    color: white;
    border: none;
    overflow: hidden;
}

#bookingModal .modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 0;
}

#bookingModal .modal-header,
#bookingModal .modal-body,
#bookingModal .modal-footer {
    position: relative;
    z-index: 1;
    background: transparent;
    border: none;
}

#bookingModal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
}

#bookingModal .modal-body {
    padding: 2rem;
}

#bookingModal .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
}

#bookingModal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.8;
}

#bookingModal .form-control,
#bookingModal .form-select {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

#bookingModal .form-control:focus,
#bookingModal .form-select:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #40E0D0;
    color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(64, 224, 208, 0.25);
}

#bookingModal .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

#bookingModal .btn-primary {
    background-color: #40E0D0;
    border: none;
    color: #000;
    font-weight: 600;
    transition: all 0.3s ease;
}

#bookingModal .btn-primary:hover {
    background-color: #00BFFF;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(64, 224, 208, 0.3);
}

#bookingModal .btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    transition: all 0.3s ease;
}

#bookingModal .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Make the modal more transparent on mobile */
@media (max-width: 768px) {
    #bookingModal .modal-content::before {
        filter: brightness(0.3);
    }
    
    #bookingModal .modal-header,
    #bookingModal .modal-body,
    #bookingModal .modal-footer {
        background: rgba(0, 0, 0, 0.8);
    }
}
