@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    background-color: #ffffff;
    color: #1a1a1a;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f8f8f8; 
}
::-webkit-scrollbar-thumb {
    background: #be2f29; 
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8a1f1a; 
}

/* Lightbox Styles */
.lightbox {
    display: none; 
    position: fixed; 
    z-index: 10000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.95);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    width: auto;
    max-width: 90vw;
    max-height: 90vh;
    animation-name: zoom;
    animation-duration: 0.4s;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    object-fit: contain;
}

@keyframes zoom {
    from {transform: translate(-50%, -50%) scale(0.8); opacity:0;} 
    to {transform: translate(-50%, -50%) scale(1); opacity:1;}
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: 300;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #be2f29;
    text-decoration: none;
    cursor: pointer;
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 1000px;
    text-align: center;
    color: #fff;
    padding: 15px 0;
    font-size: 1.2rem;
    font-weight: 500;
}

.lightbox-prev, .lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    background-color: rgba(0,0,0,0.3);
}

.lightbox-next {
    right: 20px;
    border-radius: 3px 0 0 3px;
}
.lightbox-prev {
    left: 20px;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* Micro animations */
.hover-scale {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.hover-scale:hover {
    transform: scale(1.05);
}

/* Scroll Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Dynamic Navbar */
.nav-scrolled {
    background-color: #ffffff !important;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.1);
}

/* Hero Background Crossfade */
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 1s ease-in-out;
    opacity: 0;
}
.hero-bg.active {
    opacity: 0.5;
}
.hero-bg-overlay {
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0) 100%);
}
