@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Playfair+Display:ital,wght@0,600;1,600&display=swap');

:root {
    --bg-dark: #0a0a0c;
    --bg-card: #141417;
    --text-main: #f0f0f2;
    --text-muted: #8e8e99;
    --gold: #d4af37;
    --gold-muted: rgba(212, 175, 55, 0.7);
    --gold-glow: rgba(212, 175, 55, 0.15);
    --border-color: rgba(255, 255, 255, 0.08);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

b {
    color: var(--gold);
    font-weight: 600;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* HERO SECTION */
.hero {
    padding: 120px 0 80px;
    background: radial-gradient(circle at top, rgba(20, 20, 24, 1) 0%, var(--bg-dark) 100%);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero .intro {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
}

/* HORIZONTAL CAROUSEL */
.carousel-container {
    width: 100%;
    overflow: hidden;
    padding: 20px 0 60px;
    /* Bottom padding for reflection */
    margin-top: 48px;
    white-space: nowrap;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1) 15%, rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0));
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1) 15%, rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0));
}

.carousel-track {
    display: inline-flex;
    gap: 24px;
    width: max-content;
    animation: scrollCarousel 40s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}

.carousel-item {
    height: 240px;
    width: auto;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    -webkit-box-reflect: below 4px linear-gradient(transparent, transparent 60%, rgba(255, 255, 255, 0.15));
}

@keyframes scrollCarousel {
    0% {
        transform: translateX(0);
    }

    100% {
        /* -50% to translate exactly half of the double track, minus half the gap */
        transform: translateX(calc(-50% - 12px));
    }
}

/* CONTENT SECTIONS */
section {
    padding: 80px 0;
}

.bio-section h2,
.gallery-section h2 {
    font-size: 2rem;
    margin-bottom: 24px;
    color: #fff;
}

.bio-section p,
.gallery-section p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 900px;
}

/* GALLERY GRID */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.gallery-item {
    display: block;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--bg-card);
    aspect-ratio: 4 / 3;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

.gallery-item .image-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 24px;
}

.gallery-item .overlay span {
    color: var(--gold);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transform: translateY(10px);
    transition: var(--transition);
}

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

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

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

/* SINGLE IMAGE PAGE */
.single-image-page {
    background-color: #050505;
}

.nav-bar {
    padding: 32px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
}

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

.logo {
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.single-view {
    padding: 64px 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

@media (min-width: 900px) {
    .single-view {
        grid-template-columns: 3fr 2fr;
    }
}

.image-showcase {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    position: relative;
}

.image-showcase::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    pointer-events: none;
}

.main-image {
    width: 100%;
    height: auto;
    display: block;
}

.image-details h1 {
    font-size: 2.25rem;
    margin-bottom: 24px;
    line-height: 1.2;
}

.image-details p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 32px;
}

.seo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-muted);
}

/* FOOTER */
footer {
    padding: 48px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 64px;
}

footer p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* LOADING ANIMATION */
.page-loader {
    position: fixed;
    inset: 0;
    background-color: #050505;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeOut 0.8s ease-in-out 1.5s forwards;
    pointer-events: none;
}

.page-loader-text {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--gold);
    letter-spacing: 0.05em;
    opacity: 0;
    animation: textAppear 1.2s ease-in-out forwards;
}

@keyframes textAppear {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        visibility: visible;
    }

    100% {
        opacity: 0;
        visibility: hidden;
    }
}