body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #050505;
    color: #ececec;
    font-weight: 300;
    line-height: 1.6;
    letter-spacing: 0.02em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

/* Hide scrollbar for a cleaner look natively */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #444;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 400;
}

/* Elegant Thin Lines */
.separator {
    height: 1px;
    background-color: #222;
    width: 100%;
    margin: 4rem 0;
}

/* Minimalist Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.gallery-item {
    overflow: hidden;
    position: relative;
    background-color: #0a0a0a;
    aspect-ratio: 3/2;
    /* Standard photo aspect ratio */
    border: none !important;
    /* Remove old borders */
    border-radius: 0 !important;
    /* Sharp edges are more premium */
}

.gallery-item img {
    cursor: pointer;
    transition: filter 0.8s ease, transform 1.2s ease;
    filter: grayscale(15%);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.08);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 1.5s ease-out forwards;
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

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

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

.delay-200 {
    animation-delay: 200ms;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease-out, transform 1s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Gallery Entry Animation */
@keyframes popIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.gallery-pop {
    opacity: 0;
    animation: popIn 0.8s ease-out forwards;
}

/* Series Landing Tiles */
.category-tile {
    position: relative;
    overflow: hidden;
    height: 60vh;
    min-height: 400px;
}

.category-tile:hover .crossfade-img {
    transform: scale(1.1);
}

.tile-bg {
    position: absolute;
    inset: 0;
}

.crossfade-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: crossfade 20s infinite;
    transform: scale(1.05);
    /* Base scale */
    transition: transform 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes crossfade {
    0% {
        opacity: 1;
        z-index: 2;
    }

    20% {
        opacity: 1;
        z-index: 2;
    }

    25% {
        opacity: 0;
        z-index: 1;
    }

    95% {
        opacity: 0;
        z-index: 1;
    }

    100% {
        opacity: 1;
        z-index: 2;
    }
}

/* Page Transition */
.page {
    display: none;
}

#main-content {
    display: block;
}

.hidden-view {
    display: none !important;
}

.page-transition {
    animation: fadeIn 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Skeleton Loading */
.skeleton {
    position: relative;
    background: #111;
    overflow: hidden;
}

.skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.03) 20%,
        rgba(255, 255, 255, 0.05) 60%,
        rgba(255, 255, 255, 0)
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Ghost styling for buttons */
.btn-ghost {
    background: transparent;
    color: #fff;
    border: 1px solid #333;
    padding: 0.8rem 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    transition: all 0.4s ease;
    cursor: pointer;
    border-radius: 0;
    /* Sharp edges */
}

.btn-ghost:hover {
    border-color: #fff;
    background: #fff;
    color: #000;
}

/* Language Toggle - Minimal */
.toggle-checkbox:checked {
    transform: translateX(1.25rem);
    border-color: #fff;
}

.toggle-label {
    background-color: #222;
}

.toggle-checkbox {
    border-color: #444;
}

.toggle-checkbox:checked+.toggle-label {
    background-color: #444;
}

/* Custom Header */
header {
    background: rgba(5, 5, 5, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 50%;
    background-color: #fff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Lightbox - Full Screen Minimal */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #030303;
    /* Solid stark background */
    z-index: 9999;
    display: flex;
    visibility: hidden;
    opacity: 0;
    justify-content: center;
    align-items: center;
    padding: 0;
    transition: opacity 0.5s ease, visibility 0.5s;
}

#lightbox.active {
    visibility: visible;
    opacity: 1;
}

#lightbox-main-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lightbox-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
    transition: none;
}

.lightbox-slide.animating {
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.lightbox-slider-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    background-color: #0a0a0a;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
    box-sizing: border-box;
}

#lightbox.active img {
    transform: scale(1);
}

.lightbox-btn {
    position: absolute;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    border: none;
    font-size: 2.5rem;
    font-weight: 100;
    cursor: pointer;
    padding: 2rem;
    transition: color 0.3s, transform 0.3s;
    user-select: none;
    z-index: 10000;
}

.lightbox-btn:hover {
    color: #fff;
    transform: scale(1.1);
}

#lightbox-close {
    top: 20px;
    right: 20px;
    font-size: 3rem;
}

#lightbox-prev {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

#lightbox-next {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* Typography sizing for hero */
.hero-title {
    font-size: clamp(2.5rem, 5vw, 5rem);
    line-height: 1.1;
    letter-spacing: 0.2em;
}
/* Blog Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.blog-card {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.6s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    border-color: #333;
}

.blog-card-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.1);
}

.blog-card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-date {
    font-size: 0.7rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

.blog-card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    color: #fff;
}

.blog-card-excerpt {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.blog-card-link {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #fff;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.3s ease;
}

.blog-card-link:hover {
    opacity: 0.7;
}

/* Blog Post Page */
.post-header {
    margin-bottom: 6rem;
    text-align: center;
}

.post-meta {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 2rem;
}

.post-title {
    font-size: clamp(2rem, 6vw, 4rem);
    margin-bottom: 3rem;
}

.post-hero-image {
    width: 100%;
    max-height: 80vh;
    object-fit: cover;
    margin-bottom: 6rem;
}

.post-body {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 2;
    color: #ccc;
}

.post-body p {
    margin-bottom: 2.5rem;
}

.post-body h2 {
    font-size: 1.75rem;
    margin: 5rem 0 2rem;
    color: #fff;
}

.post-image-wide {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 6rem;
    margin-bottom: 6rem;
}

.post-image-wide img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: cover;
}

.post-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 6rem 0;
}

@media (max-width: 768px) {
    .post-grid {
        grid-template-columns: 1fr;
    }
}
