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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #0a0a0a 100%);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2rem;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.header-logo svg {
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

.header-logo svg:hover {
    transform: scale(1.1);
}

.header-text {
    flex: 1;
    text-align: center;
    margin-right: 50px; /* Offset to keep text truly centered */
}

.header-text h1 {
    color: #fff;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.header-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 300;
}

/* Swiper Container */
.swiper-container {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0 80px;
    position: relative;
    min-height: 0;
}

.swiper {
    width: 100%;
    height: 100%;
    padding: 50px 0;
    touch-action: pan-y;
}

.swiper-slide {
    background-position: center;
    background-size: cover;
    width: 70%;
    max-width: 800px;
    height: auto;
    aspect-ratio: 16 / 10;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    transition: transform 0.3s ease;
    will-change: transform;
}

.swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.swiper-slide a::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.swiper-slide a:hover::after {
    opacity: 0.9;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    user-select: none;
    -webkit-user-drag: none;
    transition: transform 0.3s ease;
}

.swiper-slide a:hover img {
    transform: scale(1.05);
}

/* Slide Caption */
.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 3rem 2rem 2rem;
    color: white;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.swiper-slide-active .slide-caption {
    transform: translateY(0);
}

.slide-caption h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.slide-caption p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 300;
    opacity: 0.95;
}

/* Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 24px;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.swiper-button-next:active,
.swiper-button-prev:active {
    transform: scale(0.95);
}

/* Swiper Pagination */
.swiper-pagination {
    bottom: 20px !important;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #fff;
    width: 40px;
    border-radius: 6px;
}

/* Footer Styles */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.3);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
}

.footer-content p {
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    margin: 0.2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 0.8rem 1rem;
    }
    
    .header-logo {
	    display: none;
    }
    
    .header-content {
        gap: 1rem;
    }
    
    .header-logo svg {
        width: 40px;
        height: 40px;
    }
    
    .header-text {
        margin: 0 !important;
    }
    
    .footer {
        padding: 0.8rem 1rem;
    }
    
    .swiper-container {
        padding: 80px 0 70px;
    }
    
    .swiper-slide {
        width: 85%;
        aspect-ratio: 4 / 3;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 45px;
        height: 45px;
    }
    
    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 18px;
    }
    
    .slide-caption {
        padding: 2rem 1.5rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .swiper-slide {
        width: 90%;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 40px;
        height: 40px;
    }
    
    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 16px;
    }
}

/* Touch-specific optimizations */
@media (hover: none) and (pointer: coarse) {
    .swiper-button-next,
    .swiper-button-prev {
        opacity: 0.7;
    }
    
    .swiper-button-next:active,
    .swiper-button-prev:active {
        opacity: 1;
    }
}

/* Landscape orientation for tablets */
@media (orientation: landscape) and (max-height: 768px) {
    .swiper-container {
        padding: 70px 0 60px;
    }
    
    .swiper-slide {
        aspect-ratio: 16 / 9;
    }
    
    .header-content h1 {
        font-size: 1.8rem;
    }
    
    .slide-caption {
        padding: 1.5rem 1.5rem 1rem;
    }
}

/* GLightbox Custom Styles */
.glightbox-container {
    width: 100vw !important;
    height: 100vh !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 999999 !important;
    background: rgba(0, 0, 0, 0.95) !important;
}

.gslide-image img {
    max-width: 90vw !important;
    max-height: 90vh !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

.gslide-media {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body.glightbox-open {
    overflow: hidden !important;
    height: 100vh !important;
}

.glightbox-clean .gslide-description {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 10px;
}

.glightbox-clean .gdesc-inner h4 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.glightbox-clean .gdesc-inner p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.glightbox-clean .gslide-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Custom zoom controls styling */
.glightbox-clean .gslide-media {
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

/* Touch feedback for lightbox */
.glightbox-clean .gnext,
.glightbox-clean .gprev {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.glightbox-clean .gnext:hover,
.glightbox-clean .gprev:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.glightbox-clean .gclose {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.glightbox-clean .gclose:hover {
    background: rgba(255, 0, 0, 0.8);
    transform: scale(1.1) rotate(90deg);
}
