:root {
    --cream: #f9f7f4;
    --charcoal: #2a2a2a;
    --warm-grey: #8a8481;
    --accent: #6d5d52;
    --border: rgba(42, 42, 42, 0.15);
}

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

body {
    font-family: 'Cormorant Garamond', serif;
    background: var(--cream);
    color: var(--charcoal);
    line-height: 1.6;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(249, 247, 244, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

nav .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--charcoal);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.6;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--charcoal);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--charcoal);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover {
    color: var(--accent);
}

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

.nav-links a.active::after {
    width: 100%;
}

/* Landing Page (index only) */
.landing-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--charcoal);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 1;
    transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    padding: 3rem;
}

.landing-page.fade-out {
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.5s ease;
}

.landing-page.hidden {
    display: none;
}

.landing-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: imageFadeIn 2.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes imageFadeIn {
    0% { opacity: 0; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

.landing-logo {
    position: relative;
    z-index: 1;
    max-width: 400px;
    max-height: 40vh;
    width: 80%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
    animation: logoFadeIn 2s cubic-bezier(0.16, 1, 0.3, 1);
    animation-delay: 0.5s;
    animation-fill-mode: both;
    opacity: 0;
}

@keyframes logoFadeIn {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes staggerIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* About Page */
.about-page {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 150px 3rem 3rem;
    min-height: 100vh;
}

.about-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('Iceland Gallery/Iceland_120mm_Slight_Edit-31.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

.about-content {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
    animation: staggerIn 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-logo-footer {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1100px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 0 3rem 0;
    margin: 0 auto;
}

.about-logo-footer img {
    max-width: 300px;
    width: 50%;
    height: auto;
    opacity: 0.6;
    animation: staggerIn 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    animation-delay: 0.3s;
    animation-fill-mode: both;
}

.about-image {
    width: 100%;
    aspect-ratio: 1/1;
    background: var(--warm-grey);
    border: 1px solid var(--border);
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: var(--cream);
    letter-spacing: 0.1em;
    animation-delay: 0.2s;
}

.about-text h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.about-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-weight: 300;
    color: var(--charcoal);
}

/* Portfolio Page */
.portfolio-page {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 100px;
    background: #e8e4df;
}

.portfolio-header {
    padding: 2rem 3rem;
    text-align: center;
    z-index: 2;
}

.portfolio-header h1 {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    color: var(--charcoal);
    margin: 0;
}

.portfolio-content {
    display: flex;
    width: 100%;
    flex: 1;
}

.portfolio-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(165deg, #d6d1cc 0%, #c9c3be 100%);
    opacity: 0.4;
    z-index: 0;
}

.portfolio-nav {
    position: relative;
    z-index: 1;
    width: 300px;
    padding: 3rem 2rem 3rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-nav.collapsed {
    width: 200px;
    gap: 1rem;
}

.portfolio-link {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--charcoal);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.5;
    letter-spacing: -0.01em;
}

.portfolio-link:hover {
    opacity: 1;
    transform: translateX(8px);
}

.portfolio-link.active {
    opacity: 1;
    font-weight: 400;
}

.portfolio-nav.collapsed .portfolio-link {
    font-size: 1.125rem;
}

.gallery-container {
    position: relative;
    z-index: 1;
    flex: 1;
    padding: 3rem 3rem 3rem 2rem;
    display: none;
    animation: expandIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-container.active {
    display: block;
}

@keyframes expandIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.gallery-main {
    width: 100%;
    max-height: 65vh;
    background: transparent;
    border: none;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gallery-main img {
    max-width: 50%;
    max-height: 65vh;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

img[src*="DSCF3690"] {
    filter: brightness(1.1);
}

.gallery-thumbnails {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.gallery-thumbnails::-webkit-scrollbar {
    height: 4px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: var(--border);
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 2px;
}

.thumbnail {
    min-width: 120px;
    height: 80px;
    background: var(--warm-grey);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    overflow: hidden;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 120px;
}

.thumbnail-caption {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.75rem;
    font-weight: 300;
    font-style: italic;
    color: var(--warm-grey);
    text-align: center;
    line-height: 1.3;
    opacity: 0.8;
}

.thumbnail:hover {
    opacity: 1;
    transform: translateY(-4px);
    border-color: var(--accent);
}

.thumbnail.active {
    opacity: 1;
    border-color: var(--charcoal);
}

/* Shop & Contact Pages */
.simple-page {
    position: relative;
    padding: 100px 3rem 3rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.simple-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(155deg, #d9d4cf 0%, #cbc6c1 100%);
    opacity: 0.25;
    z-index: 0;
}

.simple-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 600px;
    animation: staggerIn 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.simple-content h1 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.simple-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    font-weight: 300;
    color: var(--warm-grey);
}

/* Responsive */
@media (max-width: 768px) {
    nav .container {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-background {
        opacity: 0.07;
    }

    .about-text {
        background: rgba(249, 247, 244, 0.85);
        padding: 1.5rem;
        border-radius: 4px;
    }

    .portfolio-page {
        flex-direction: column;
    }

    .portfolio-content {
        flex-direction: column;
    }

    .portfolio-nav {
        width: 100%;
        padding: 1.5rem;
        flex-direction: row;
        overflow-x: auto;
        gap: 1.5rem;
    }

    .portfolio-nav.collapsed {
        width: 100%;
    }

    .gallery-container {
        padding: 1.5rem;
    }

    .gallery-main {
        max-height: 50vh;
    }

    .gallery-main img {
        max-width: 90%;
        max-height: 50vh;
    }

    .simple-content h1 {
        font-size: 2rem;
    }
}
