/* ========================================
   Gallery Page Styles (Optimized for Performance)
   ======================================== */

/* CSS Variables */
:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #e94560;
    --gold: #ffd700;
    --gold-color: #ffd700;
    --gold-light: #ffeb3b;
    --gold-dark: #e6c200;
    --maroon: #800020;
    --maroon-color: #800020;
    --maroon-light: #a0002a;
    --maroon-dark: #600018;
    --maroon-darker: #3c001f;
    --text-light: #ffffff;
    --text-dark: #333333;
    --gradient-bg: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --maroon-gradient: linear-gradient(135deg, #800020 0%, #a0002a 50%, #600018 100%);
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
    padding-top: 75px;
}

/* Header Styles - Gallery page has fixed background from start */
.header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(128, 0, 32, 0.15);
}

.header-wrapper.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
}

.top-bar {
    background: rgba(128, 0, 32, 0.1);
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--maroon-color);
    border-bottom: 1px solid rgba(128, 0, 32, 0.2);
}

.top-bar .contact-info {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.top-bar .contact-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-bar .contact-info i {
    color: var(--gold-color);
}

.top-bar .social-links {
    display: flex;
    gap: 1rem;
}

.top-bar .social-links a {
    color: var(--text-light);
    font-size: 1rem;
    transition: color 0.3s ease;
    padding: 0.25rem;
}

.top-bar .social-links a:hover {
    color: var(--gold-color);
    transform: translateY(-2px);
}

.main-header {
    padding: 0.25rem 0; /* Further reduced from 0.5rem to make navbar even thinner */
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--maroon-color);
    text-decoration: none;
    letter-spacing: 2px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem; /* Space between logo image and text */
}

.logo-image {
    height: 45px; /* Fixed height */
    width: 45px; /* Fixed width for perfect circle */
    border-radius: 50%; /* Makes it perfectly round */
    object-fit: cover; /* Ensures image fits well within the circle */
    border: 2px solid rgba(255, 255, 255, 0.2); /* Subtle border */
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1); /* Subtle background for better visibility */
}

.logo:hover .logo-image {
    border-color: var(--gold-color); /* Gold border on hover */
    transform: scale(1.05); /* Slight scale effect on hover */
    box-shadow: 0 0 15px rgba(212, 165, 116, 0.3); /* Gold glow effect */
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.logo:hover::after {
    transform: scaleX(1);
}

.logo:hover {
    color: var(--gold-color);
}

.navbar-nav {
    gap: 0.2rem; /* Further reduced from 0.5rem for minimal space between items */
    margin-left: 0; /* Changed from auto to start nav items from left */
}

.nav-link {
    color: var(--maroon-color) !important;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.3rem 0.7rem !important; /* Further reduced padding for thinner navbar */
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(128, 0, 32, 0.1);
    color: var(--maroon-color) !important;
    transform: translateY(-2px);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
}

.navbar-toggler {
    border: 1px solid var(--maroon-color);
    padding: 0.5rem;
    border-radius: 10px;
    background: rgba(128, 0, 32, 0.1);
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: none;
    position: relative;
    width: 25px;
    height: 2px;
    background: var(--maroon-color);
    border-radius: 1px;
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 2px;
    background: var(--maroon-color);
    border-radius: 1px;
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before {
    top: -8px;
}

.navbar-toggler-icon::after {
    bottom: -8px;
}

/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--maroon-gradient);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 215, 0, 0.3);
    border-top: 3px solid var(--gold-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer Styles */
.footer-wrapper {
    background: var(--maroon-gradient);
    color: var(--text-light);
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.footer-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(255,215,0,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,215,0,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,215,0,0.1)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

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

.footer-main {
    padding: 4rem 0 2rem;
    position: relative;
    z-index: 1;
}

.footer-section {
    height: 100%;
}

.footer-title {
    color: var(--gold-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gold-color);
    border-radius: 2px;
}

.company-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(45deg, var(--gold-color), #ffeb3b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 215, 0, 0.1);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.social-link:hover {
    background: var(--gold-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid var(--gold-color);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.contact-item i {
    color: var(--gold-color);
    font-size: 1.2rem;
    margin-top: 2px;
    width: 20px;
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.contact-value {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-value:hover {
    color: var(--gold-color);
}

.address-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.address-item {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    transition: all 0.3s ease;
}

.address-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
}

.address-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.address-header i {
    color: var(--gold-color);
    font-size: 1.1rem;
    width: 18px;
}

.address-type {
    color: var(--gold-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.address-text {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0;
    padding-left: 1.5rem;
}

/* Sister Concern Card Styles */
.sister-concern-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(128, 0, 32, 0.1);
}

.sister-title {
    color: #ffd700;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sister-title i {
    color: #ffd700;
    font-size: 1rem;
}

.sister-concern-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(128, 0, 32, 0.03));
    border: 1px solid rgba(128, 0, 32, 0.15);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.sister-concern-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(128, 0, 32, 0.15);
    border-color: rgba(128, 0, 32, 0.25);
}

.sister-card-header {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(128, 0, 32, 0.1);
}

.company-logo-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.company-logo-section i {
    color: #ffd700;
    font-size: 1rem;
    background: rgba(255, 215, 0, 0.15);
    padding: 0.4rem;
    border-radius: 6px;
}

.company-name {
    color: #ffd700;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.sister-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.company-specialty {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    line-height: 1.4;
}

.company-specialty i {
    color: var(--gold-color);
    font-size: 0.9rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.company-address {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.company-address i {
    color: var(--gold-color);
    font-size: 0.9rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.address-details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.address-line {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    line-height: 1.3;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    position: relative;
    z-index: 1;
}

.copyright {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.9rem;
}

.brand-name {
    color: var(--gold-color);
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gold-color);
    color: var(--primary-color);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.back-to-top:hover {
    background: #ffeb3b;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ========================================
   Gallery Page Specific Styles
   ======================================== */

/* Gallery Hero Section */
.gallery-hero {
    min-height: 60vh;
    background: linear-gradient(135deg, 
        rgba(128, 0, 32, 0.9) 0%, 
        rgba(96, 0, 24, 0.95) 50%, 
        rgba(60, 0, 31, 0.98) 100%),
        url('https://storage.solitudeltd.com/factory_photo/01.webp') center/cover no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.gallery-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(255, 215, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    animation: heroOverlay 15s ease-in-out infinite;
    z-index: 1;
}

@keyframes heroOverlay {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.02); }
}

.gallery-hero-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.gallery-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

.gallery-hero p {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    margin-bottom: 0;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gallery Main Section */
.gallery-main {
    padding: 120px 0;
    background: linear-gradient(135deg, 
        rgba(248, 249, 250, 0.98) 0%, 
        rgba(255, 255, 255, 0.95) 25%, 
        rgba(255, 215, 0, 0.04) 75%, 
        rgba(128, 0, 32, 0.03) 100%);
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.gallery-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(128, 0, 32, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.03) 0%, transparent 50%);
    animation: mainBackground 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes mainBackground {
    0%, 100% { opacity: 1; transform: translateY(0); }
    50% { opacity: 0.7; transform: translateY(-10px); }
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--maroon);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--maroon), var(--gold));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 0;
    font-weight: 300;
}

/* Gallery Grid */
.gallery-grid {
    position: relative;
    z-index: 2;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: white;
    animation: galleryItemFadeIn 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

/* Staggered animation delays */
.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.15s; }
.gallery-item:nth-child(3) { animation-delay: 0.2s; }
.gallery-item:nth-child(4) { animation-delay: 0.25s; }
.gallery-item:nth-child(5) { animation-delay: 0.3s; }
.gallery-item:nth-child(6) { animation-delay: 0.35s; }
.gallery-item:nth-child(7) { animation-delay: 0.4s; }
.gallery-item:nth-child(8) { animation-delay: 0.45s; }
.gallery-item:nth-child(9) { animation-delay: 0.5s; }
.gallery-item:nth-child(10) { animation-delay: 0.55s; }
.gallery-item:nth-child(11) { animation-delay: 0.6s; }
.gallery-item:nth-child(12) { animation-delay: 0.65s; }
.gallery-item:nth-child(13) { animation-delay: 0.7s; }
.gallery-item:nth-child(14) { animation-delay: 0.75s; }
.gallery-item:nth-child(15) { animation-delay: 0.8s; }

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

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(128, 0, 32, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
    border-radius: 20px;
}

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

/* Gallery Overlay */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(128, 0, 32, 0.8) 0%, 
        rgba(96, 0, 24, 0.9) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay-content {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay-content {
    transform: translateY(0);
}

.gallery-overlay i {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 1rem;
    animation: bounceIcon 2s ease-in-out infinite;
}

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

.gallery-overlay span {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Category Filter */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid var(--maroon);
    color: var(--maroon);
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--maroon);
    transition: left 0.3s ease;
    z-index: -1;
}

.filter-btn:hover::before,
.filter-btn.active::before {
    left: 0;
}

.filter-btn:hover,
.filter-btn.active {
    color: white;
    border-color: var(--maroon);
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: lightboxFadeIn 0.3s ease;
}

@keyframes lightboxFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.lightbox img {
    width: 100%;
    height: auto;
    display: block;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(128, 0, 32, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: var(--maroon);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(128, 0, 32, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav:hover {
    background: var(--maroon);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Gallery Statistics */
.gallery-stats {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    padding: 3rem 2rem;
    margin-top: 4rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(128, 0, 32, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(128, 0, 32, 0.05), rgba(255, 215, 0, 0.05));
    border-radius: 16px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(128, 0, 32, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--maroon);
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.stat-label {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Dropdown Styles */
.dropdown-menu {
    background: var(--maroon-color);
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(128, 0, 32, 0.4);
    margin-top: 0.5rem;
    padding: 1rem 0;
    min-width: 250px;
}

.dropdown-item {
    color: var(--text-light);
    padding: 0.75rem 1.5rem;
    font-weight: 400;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    background: rgba(255, 215, 0, 0.15);
    color: var(--gold-color);
    border-left-color: var(--gold-color);
    transform: translateX(5px);
}

.dropdown-item i {
    margin-right: 0.5rem;
    width: 20px;
}

/* Mobile Menu Responsive Fixes */
@media (max-width: 991.98px) {
    .top-bar {
        display: none;
    }
    
    .navbar-nav {
        background: var(--maroon-color);
        border-radius: 15px;
        margin-top: 1rem;
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-link {
        color: #ffffff !important;
    }
    
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        color: var(--gold-color) !important;
    }
    
    .nav-link {
        margin: 0.25rem 1rem;
        text-align: center;
    }
    
    .dropdown-menu {
        background: rgba(96, 0, 24, 0.95);
        margin-left: 1rem;
        margin-right: 1rem;
        border-radius: 10px;
    }
    
    .navbar-nav .dropdown-item {
        color: #ffffff !important;
    }
    
    .navbar-nav .dropdown-item:hover {
        color: var(--gold-color) !important;
        background: rgba(255, 215, 0, 0.1) !important;
    }
}

@media (max-width: 767.98px) {
    body {
        padding-top: 60px;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .main-header {
        padding: 0.75rem 0;
    }
}

/* Loading Animation */
.gallery-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 0;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(128, 0, 32, 0.2);
    border-top: 3px solid var(--maroon);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Gallery Enhancement Effects */
.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    left: 100%;
}
