:root {
    --color-primary: #6F4E37;
    /* Muted Brown */
    --color-accent: #6B8E23;
    /* Olive Green */
    --color-text: #2C2420;
    /* Dark Charcoal/Brownish */
    --color-text-light: #6D6460;
    --color-bg: #FAF9F6;
    /* Off-white */
    --color-white: #FFFFFF;
    --color-border: #E8E6E1;
    --color-coffee-dark: #3D2B1F;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    --border-radius: 4px;
    --transition: all 0.3s ease;
}

/* ========================================
   OPENING ANIMATION - Coffee Experience
   ======================================== */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: overlayFadeOut 0.8s ease-in-out forwards;
    animation-delay: 1.8s;
}

.coffee-scene {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Coffee Surface - The main circular coffee pool */
.coffee-surface {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.coffee-liquid {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at 40% 40%,
            #8B6914 0%,
            var(--color-primary) 40%,
            var(--color-coffee-dark) 100%);
    border-radius: 50%;
    transform: scale(0);
    box-shadow:
        0 0 60px rgba(111, 78, 55, 0.4),
        inset 0 -5px 15px rgba(0, 0, 0, 0.2),
        inset 0 5px 15px rgba(255, 255, 255, 0.1);
    animation: coffeeFill 0.8s ease-out forwards 0.2s;
}

/* Ripple effects on coffee surface */
.coffee-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    width: 100px;
    height: 100px;
    border: 1px solid rgba(139, 105, 20, 0.3);
    border-radius: 50%;
    opacity: 0;
}

.ripple-1 {
    animation: coffeeRipple 1.5s ease-out forwards 0.6s;
}

.ripple-2 {
    animation: coffeeRipple 1.5s ease-out forwards 0.9s;
}

.ripple-3 {
    animation: coffeeRipple 1.5s ease-out forwards 1.2s;
}

/* Steam wisps */
.steam-group {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 60px;
}

.steam-wisp {
    position: absolute;
    width: 3px;
    background: linear-gradient(to top,
            rgba(111, 78, 55, 0.15) 0%,
            rgba(111, 78, 55, 0) 100%);
    border-radius: 50%;
    bottom: 0;
    opacity: 0;
}

.wisp-1 {
    left: 30%;
    height: 40px;
    animation: steamFloat 2s ease-out infinite 0.8s;
}

.wisp-2 {
    left: 50%;
    height: 50px;
    animation: steamFloat 2.2s ease-out infinite 1s;
}

.wisp-3 {
    left: 70%;
    height: 35px;
    animation: steamFloat 1.8s ease-out infinite 1.2s;
}

/* Brand Name in Intro */
.intro-brand {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
    opacity: 0;
    animation: brandReveal 1s ease-out forwards 0.8s;
}

@keyframes brandReveal {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Animation Keyframes */
@keyframes coffeeFill {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes coffeeRipple {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.6;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
}

@keyframes steamFloat {
    0% {
        transform: translateY(0) scaleX(1);
        opacity: 0;
    }

    20% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-40px) scaleX(2);
        opacity: 0;
    }
}

@keyframes overlayFadeOut {
    0% {
        opacity: 1;
        visibility: visible;
    }

    100% {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

/* ========================================
   BASE STYLES
   ======================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
    transition: transform 0.6s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ========================================
   UTILITIES
   ======================================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.eyebrow {
    display: block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    color: var(--color-accent);
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(111, 78, 55, 0.2);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: 1px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-white);
    border: 1px solid var(--color-white);
}

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    background-color: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: var(--spacing-xs) 0;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.nav-links ul {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--color-primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    color: var(--color-white);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s ease;
}

.hero:hover .hero-bg img {
    transform: scale(1.05);
}

.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: var(--spacing-sm);
    color: var(--color-white);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    margin-bottom: var(--spacing-md);
    font-weight: 300;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    position: relative;
}

.scroll-indicator span::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scrollBounce 1.5s ease-in-out infinite;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateX(-50%) translateY(10px);
        opacity: 0.3;
    }
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-section {
    padding: var(--spacing-xl) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.about-image img {
    border-radius: var(--border-radius);
    position: relative;
    z-index: 1;
}

.about-image:hover img {
    transform: scale(1.03);
}

.about-image .accent-box {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 80%;
    height: 80%;
    background-color: var(--color-primary);
    opacity: 0.1;
    z-index: 0;
    border-radius: var(--border-radius);
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.about-text p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-light);
}

.features-list {
    margin-top: var(--spacing-md);
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.features-list li {
    position: relative;
    padding-left: 1.5rem;
    font-weight: 500;
}

.features-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-accent);
}

/* ========================================
   PHILOSOPHY SECTION
   ======================================== */
.philosophy-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-white);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.philosophy-card {
    padding: var(--spacing-md);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.philosophy-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(111, 78, 55, 0.08);
    transform: translateY(-5px);
}

.card-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-primary);
    opacity: 0.3;
    margin-bottom: var(--spacing-sm);
}

.philosophy-card h3 {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-xs);
}

.philosophy-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* ========================================
   MENU SECTION
   ======================================== */
.menu-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-bg);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
}

.section-header.light h2,
.section-header.light p,
.section-header.light .eyebrow {
    color: var(--color-white);
}

.section-header.light .eyebrow {
    opacity: 0.8;
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-lg);
}

.menu-item.featured {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    height: fit-content;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-item.featured:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.menu-img-gallery {
    background: var(--color-bg);
}

.main-image-container {
    height: 350px;
    width: 100%;
    overflow: hidden;
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.menu-item.featured .menu-details {
    padding: var(--spacing-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.menu-details h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    transition: opacity 0.3s ease;
}

.menu-details p {
    color: var(--color-text-light);
    transition: opacity 0.3s ease;
}

.menu-details .price {
    display: block;
    margin-top: auto;
    padding-top: var(--spacing-sm);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    transition: opacity 0.3s ease;
}

.menu-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.menu-category {
    margin-top: var(--spacing-sm);
}

.menu-category:first-child {
    margin-top: 0;
}

.category-title {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-light);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--spacing-xs);
    margin-bottom: var(--spacing-xs);
}

.menu-list-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: var(--spacing-sm);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.menu-list-item:hover,
.menu-list-item.active {
    background-color: var(--color-white);
    border-color: var(--color-border);
}

.menu-list-item.active {
    border-left: 3px solid var(--color-primary);
}

.menu-list-item h4 {
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
    transition: color 0.3s ease;
}

.menu-list-item:hover h4 {
    color: var(--color-primary);
}

.menu-list-item p {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.menu-list-item .price {
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
}

/* ========================================
   GALLERY SECTION
   ======================================== */
.gallery-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: var(--spacing-sm);
}

.gallery-item {
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* ========================================
   TESTIMONIAL SECTION
   ======================================== */
.testimonial-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-bg);
}

.testimonial-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-content blockquote {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-style: italic;
    color: var(--color-primary);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.testimonial-content cite {
    font-style: normal;
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* ========================================
   INFO / CONTACT SECTION
   ======================================== */
.info-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-primary);
    color: var(--color-white);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    text-align: center;
    margin-top: var(--spacing-lg);
}

.info-card h3 {
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
}

.info-card p,
.info-card li {
    opacity: 0.9;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.info-card li span {
    font-weight: 500;
    display: block;
    margin-bottom: 0.2rem;
}

.link-underline {
    display: inline-block;
    margin-top: var(--spacing-sm);
    padding-bottom: 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    transition: border-color 0.3s ease;
}

.link-underline:hover {
    border-bottom-color: var(--color-white);
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    padding: var(--spacing-lg) 0 var(--spacing-md);
    text-align: center;
    border-top: 1px solid var(--color-border);
    background-color: var(--color-bg);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.footer-brand {
    text-align: center;
}

.logo-footer {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--color-primary);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-style: italic;
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--color-text);
}

.footer-links a:hover {
    color: var(--color-primary);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
}

.social-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
}

.social-links a:hover {
    color: var(--color-accent);
}

.copyright {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-top: var(--spacing-sm);
}

/* ========================================
   ANIMATIONS
   ======================================== */

/* Hero Animations */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
    animation-delay: 2s;
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease forwards;
    animation-delay: 2.2s;
}

.animate-slide-up.delay-1 {
    animation-delay: 2.4s;
}

.animate-slide-up.delay-2 {
    animation-delay: 2.6s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Reveal Animations */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}

.delay-1 {
    transition-delay: 0.15s;
}

.delay-2 {
    transition-delay: 0.3s;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 992px) {
    .philosophy-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 200px);
    }

    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-xl: 4rem;
        --spacing-lg: 3rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-bg);
        padding: var(--spacing-md);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
        border-bottom: 1px solid var(--color-border);
    }

    .nav-links.active {
        display: block;
    }

    .nav-links ul {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }

    .nav-links a::after {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hamburger {
        display: block;
        width: 25px;
        height: 2px;
        background-color: var(--color-primary);
        position: relative;
        transition: var(--transition);
    }

    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        width: 25px;
        height: 2px;
        background-color: var(--color-primary);
        transition: var(--transition);
    }

    .hamburger::before {
        top: -8px;
    }

    .hamburger::after {
        top: 8px;
    }

    .menu-toggle.active .hamburger {
        background-color: transparent;
    }

    .menu-toggle.active .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }

    .menu-toggle.active .hamburger::after {
        transform: rotate(-45deg);
        top: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .about-grid,
    .menu-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .main-image-container {
        height: 280px;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 150px);
    }

    .gallery-item.large {
        grid-column: span 2;
    }

    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    .btn {
        width: 100%;
    }

    .features-list {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ========================================
   LIGHTBOX MODAL
   ======================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 90%;
    max-height: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}