:root {
    --dark-bg: #111111;
    --medium-bg: #1a1a1a;
    --light-bg: #222222;
    --accent-color: #d32f2f;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --border-color: #333333;
    --success-color: #4caf50;
}

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

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" opacity="0.05"><rect fill="%23ffffff" width="100" height="100"/><path d="M0 0L100 100M100 0L0 100" stroke="%23ffffff" stroke-width="1"/></svg>');
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: rgba(17, 17, 17, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(5px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    height: 60px;
    display: flex;
    align-items: center;
}

.logo img {
    height: 100%;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

.logo h1 {
    margin-left: 15px;
    font-size: 1.8rem;
    color: var(--text-primary);
}

.book-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 25px;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.book-btn:hover {
    background-color: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.hero {
    margin-top: 100px;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(211, 47, 47, 0.1) 0%, rgba(17, 17, 17, 0.9) 70%);
    z-index: -1;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 30px;
    color: var(--text-secondary);
}

/* Search Section */
.search-section {
    padding: 30px 0;
    background-color: var(--medium-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    background-color: var(--light-bg);
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-box input {
    flex: 1;
    padding: 15px 20px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Rajdhani', sans-serif;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0 25px;
    cursor: pointer;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

.search-box button:hover {
    background-color: #b71c1c;
}

/* Gallery Section */
.gallery-section {
    padding: 50px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    font-size: 2.5rem;
    letter-spacing: 2px;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 15px auto;
}

.gallery-category {
    margin-bottom: 60px;
}

.category-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    border-left: 4px solid var(--accent-color);
    padding-left: 15px;
}

.gallery-scroll-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.gallery-scroll {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 15px;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--dark-bg);
    flex: 1;
}

.gallery-scroll::-webkit-scrollbar {
    height: 8px;
}

.gallery-scroll::-webkit-scrollbar-track {
    background: var(--dark-bg);
    border-radius: 4px;
}

.gallery-scroll::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

.scroll-btn {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 10;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.scroll-btn:hover {
    background-color: var(--accent-color);
}

.scroll-left {
    left: 10px;
}

.scroll-right {
    right: 10px;
}

.gallery-item {
    flex: 0 0 auto;
    width: 300px;
    height: 300px;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .play-icon {
    opacity: 1;
}

.gallery-item .play-icon::before {
    content: '';
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 20px solid white;
    margin-left: 5px;
}

.gallery-indicator {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.indicator-dot.active {
    background-color: var(--accent-color);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    overflow: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    background-color: var(--medium-bg);
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal-media-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 70vh;
    overflow: hidden;
}

.modal-media {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-info {
    padding: 20px;
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.modal-details {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.modal-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Auth Modal */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.auth-content {
    background-color: var(--medium-bg);
    width: 90%;
    max-width: 400px;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s ease;
}

.auth-header {
    background-color: var(--accent-color);
    padding: 20px;
    text-align: center;
}

.auth-header h3 {
    font-size: 1.5rem;
    margin: 0;
}

.auth-body {
    padding: 30px;
    text-align: center;
}

.auth-body p {
    margin-bottom: 25px;
    color: var(--text-secondary);
}

.google-btn {
    display: inline-flex;
    align-items: center;
    background-color: #4285F4;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 2px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.google-btn:hover {
    background-color: #3367D6;
}

.google-btn img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.auth-footer {
    padding: 15px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Booking Modal */
.booking-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.booking-content {
    background-color: var(--medium-bg);
    width: 90%;
    max-width: 500px;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s ease;
}

.booking-header {
    background-color: var(--accent-color);
    padding: 20px;
    text-align: center;
    position: relative;
}

.booking-header h3 {
    font-size: 1.5rem;
    margin: 0;
}

.booking-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.booking-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.file-upload {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-upload input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: block;
    padding: 12px 15px;
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-label:hover {
    border-color: var(--accent-color);
}

.file-name {
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.submit-btn {
    width: 100%;
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 15px;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 2px;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #b71c1c;
}

.submit-btn:disabled {
    background-color: #666;
    cursor: not-allowed;
}

.success-message {
    text-align: center;
    padding: 20px;
    color: var(--success-color);
    font-weight: 600;
}

.error-message {
    text-align: center;
    padding: 10px;
    color: var(--accent-color);
    font-weight: 600;
    margin-top: 10px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-weight: 600;
}

.logout-btn {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 8px 15px;
    border-radius: 2px;
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Footer */
footer {
    background-color: var(--medium-bg);
    border-top: 1px solid var(--border-color);
    padding: 50px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.contact-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 10px;
    color: var(--accent-color);
    width: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--light-bg);
    border-radius: 50%;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

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

/* Responsive Styles */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        padding: 10px 0;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .hero {
        margin-top: 140px;
        padding: 40px 0;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .gallery-item {
        width: 250px;
        height: 250px;
    }
    
    .scroll-btn {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    .user-info {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .gallery-item {
        width: 200px;
        height: 200px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .booking-body {
        padding: 20px;
    }
    
    .scroll-btn {
        display: none; /* Hide scroll buttons on very small screens */
    }
}

/* Placeholder and Loading Styles */
.gallery-item.placeholder {
    background-color: var(--light-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px dashed var(--border-color);
}

.placeholder-content {
    text-align: center;
    color: var(--text-muted);
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.placeholder-text {
    font-size: 1rem;
    line-height: 1.4;
}

.gallery-item.error {
    border-color: var(--accent-color);
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    color: var(--text-muted);
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

/* Touch scrolling improvements */
.gallery-scroll {
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scroll-snap-type: x mandatory;
}

.gallery-item {
    scroll-snap-align: start;
}

/* Debug info */
.debug-info {
    position: fixed;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 12px;
    z-index: 10000;
}

/* Error and Loading States */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
    color: var(--text-muted);
    font-size: 1.2rem;
    width: 100%;
}

.loading.error {
    color: var(--accent-color);
    border: 2px dashed var(--accent-color);
    border-radius: 2px;
}

.gallery-item.placeholder {
    background-color: var(--light-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px dashed var(--border-color);
    min-height: 300px;
}

.placeholder-content {
    text-align: center;
    color: var(--text-muted);
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.placeholder-text {
    font-size: 1rem;
    line-height: 1.4;
}

.gallery-item.error {
    border-color: var(--accent-color);
}

.gallery-item.error .placeholder-content {
    color: var(--accent-color);
}