:root {
    /* Light Theme - Apple-like */
    --bg-body: #f5f5f7;
    --bg-card: #ffffff;
    --text-main: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-light: #8e8e93;
    --primary-blue: #007aff;
    --primary-blue-hover: #0062cc;
    --danger-red: #ff3b30;
    --border-color: #e5e5ea;
    --input-bg: #f2f2f7;
    --pill-bg-hover: #f2f2f7;

    --font-heading: "Space Grotesk", sans-serif;
    --font-body: "Plus Jakarta Sans", sans-serif;

    --shadow-card:
        0 6px 18px rgba(15, 23, 42, 0.08);
    --shadow-float: 0 20px 40px rgba(15, 23, 42, 0.12);

    --header-height: 72px;
    --filter-height: 64px;
}

/* Dark Theme - Apple-like */
body.dark-mode {
    --bg-body: #0b0b0f;
    --bg-card: #1c1c1e;
    --text-main: #f2f2f7;
    --text-secondary: #8e8e93;
    --text-light: #636366;
    --primary-blue: #0a84ff;
    --primary-blue-hover: #3b8cff;
    --danger-red: #ff453a;
    --border-color: #2c2c2e;
    --input-bg: #1c1c1e;
    --pill-bg-hover: #2c2c2e;

    --shadow-card: 0 10px 24px rgba(0, 0, 0, 0.45);
    --shadow-float: 0 30px 60px rgba(0, 0, 0, 0.55);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition:
        background-color 0.3s,
        color 0.3s;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
.logo,
.file-name,
.signature {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

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

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
    transition: all 0.2s;
    background: none;
    color: inherit;
}

/* --- Header (Solid, No Blur) --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--bg-body);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 20px;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 32px;
}

nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    position: relative;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--text-main);
}

nav a.active {
    color: var(--text-main);
    font-weight: 600;
}

nav a.active::after {
    content: "";
    position: absolute;
    bottom: -26px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text-main);
}

.theme-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    padding: 8px;
    font-size: 20px;
}

.theme-btn:hover {
    color: var(--text-main);
}

/* --- Album Pills (Solid) --- */
.filters-wrapper {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: var(--filter-height);
    background: var(--bg-body);
    z-index: 900;
    display: flex;
    align-items: center;
    padding-bottom: 32px;
    box-sizing: content-box;
}

.filters-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.filters-inner::-webkit-scrollbar {
    display: none;
}

.filter-pills {
    display: inline-flex;
    gap: 8px;
}

.pill {
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid transparent;
}

.pill.active {
    background: var(--text-main);
    color: var(--bg-body);
}

.pill:hover:not(.active) {
    color: var(--text-main);
    background: var(--pill-bg-hover);
}

/* --- Views Utility --- */
.view-wrapper {
    flex: 1;
}

.view-section {
    display: none;
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 40px;
}

.view-section.active-view {
    display: block;
    animation: fadeIn 0.3s ease;
}

#view-gallery {
    padding-top: calc(var(--header-height) + var(--filter-height) + 32px);
}

#view-gallery .container {
    padding-bottom: 40px;
}

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

/* --- GALLERY GRID --- */
.masonry-grid {
    position: relative;
    width: 100%;
}

.gallery-item {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity 0.4s ease,
        transform 0.4s ease;
}

.gallery-item img {
    width: 100%;
    border-radius: 8px;
    display: block;
    vertical-align: top;
}

.gallery-item a {
    display: block;
}


.gallery-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- ABOUT --- */
.about-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
}

.about-intro h1 {
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 32px;
    color: var(--text-main);
}

.about-text {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 24px;
}

.about-sidebar {
    padding-top: 12px;
}

.info-group {
    margin-bottom: 40px;
}

.info-label {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    color: var(--text-main);
    opacity: 0.8;
}

.info-list {
    list-style: none;
}

.info-list li {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list li span:last-child {
    color: var(--text-main);
    font-weight: 500;
}

.info-list li a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
}

.info-list li a:hover {
    color: var(--primary-blue);
}

.signature {
    margin-top: 40px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
}

/* --- FOOTER --- */
.site-footer {
    text-align: center;
    padding: 40px 0;
    margin-top: auto;
    font-size: 12px;
    color: var(--text-light);
    border-top: 1px solid transparent;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--primary-blue);
}

/* --- Responsive design --- */
@media (max-width: 768px) {
    .masonry-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    nav {
        gap: 16px;
    }

    .about-intro h1 {
        font-size: 32px;
    }
}

@media (max-width: 576px) {
    .masonry-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 20px;
    }

    .logo {
        font-size: 16px;
    }

    nav a {
        font-size: 12px;
    }

    .theme-btn {
        font-size: 16px;
    }

    .about-intro h1 {
        font-size: 28px;
    }
}
