/* =================================================================
   DESIGN TOKENS — edit these to change the whole look
   ================================================================= */

:root {
    /* Colors – light mode */
    --color-bg:         #fafaf9;
    --color-bg-alt:     #f5f5f4;
    --color-surface:    #ffffff;
    --color-text:       #1c1917;
    --color-text-secondary: #78716c;
    --color-accent:     #2563eb;
    --color-accent-hover: #1d4ed8;
    --color-border:     #e7e5e4;
    --color-code-bg:    #f5f5f4;

    /* Typography */
    --font-body:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono:  'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    --font-size:  16px;
    --line-height: 1.7;

    /* Layout */
    --container-width:  720px;
    --container-wide:   960px;
    --nav-height:       60px;
    --radius:           8px;
    --radius-lg:        12px;

    /* Shadows */
    --shadow-sm:  0 1px 2px rgba(0,0,0,0.04);
    --shadow-md:  0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg:  0 8px 24px rgba(0,0,0,0.08);

    /* Transitions */
    --transition: 0.2s ease;
}

[data-theme="dark"] {
    --color-bg:         #171717;
    --color-bg-alt:     #262626;
    --color-surface:    #1e1e1e;
    --color-text:       #fafaf9;
    --color-text-secondary: #a8a29e;
    --color-accent:     #60a5fa;
    --color-accent-hover: #93c5fd;
    --color-border:     #404040;
    --color-code-bg:    #2a2a2a;
    --shadow-sm:  0 1px 2px rgba(0,0,0,0.2);
    --shadow-md:  0 4px 12px rgba(0,0,0,0.3);
    --shadow-lg:  0 8px 24px rgba(0,0,0,0.4);
}

/* =================================================================
   RESET & BASE
   ================================================================= */

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

html {
    font-size: var(--font-size);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    line-height: var(--line-height);
    color: var(--color-text);
    background-color: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color var(--transition), color var(--transition);
}

img { max-width: 100%; height: auto; display: block; }

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--color-accent-hover); text-decoration: underline; }

::selection {
    background: var(--color-accent);
    color: #fff;
}

/* =================================================================
   CONTAINER
   ================================================================= */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* =================================================================
   NAVIGATION
   ================================================================= */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-height);
    background: rgba(250, 250, 249, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: background var(--transition), border-color var(--transition);
}

[data-theme="dark"] .site-nav {
    background: rgba(23, 23, 23, 0.85);
}

.nav-inner {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: -0.02em;
}
.nav-logo:hover { color: var(--color-accent); text-decoration: none; }

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-link {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
    transition: color var(--transition), border-color var(--transition);
}
.nav-link:hover,
.nav-link.active {
    color: var(--color-text);
    border-color: var(--color-accent);
    text-decoration: none;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
}
.lang-btn {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    transition: all var(--transition);
}
.lang-btn.active {
    color: var(--color-text);
    background: var(--color-bg-alt);
}
.lang-btn:hover { color: var(--color-text); text-decoration: none; }
.lang-sep { color: var(--color-border); }

.theme-toggle {
    background: none;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all var(--transition);
}
.theme-toggle:hover {
    background: var(--color-bg-alt);
    border-color: var(--color-text-secondary);
}

/* Hamburger (mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 640px) {
    .hamburger { display: flex; }
    .nav-right {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--color-surface);
        border-bottom: 1px solid var(--color-border);
        flex-direction: column;
        padding: 1rem 1.5rem;
        gap: 1rem;
        box-shadow: var(--shadow-md);
    }
    .nav-right.open { display: flex; }
    .nav-link { font-size: 1rem; }
}

/* =================================================================
   HERO
   ================================================================= */

.hero {
    padding: 4rem 0 3rem;
    border-bottom: 1px solid var(--color-border);
}

.hero-inner {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.hero-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--color-border);
}

.hero-text h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.hero-role {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.hero-bio {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

@media (max-width: 640px) {
    .hero { padding: 2.5rem 0 2rem; }
    .hero-inner { flex-direction: column; align-items: center; text-align: center; }
    .hero-photo { width: 100px; height: 100px; }
    .hero-text h1 { font-size: 1.6rem; }
}

/* =================================================================
   BLOG POSTS GRID
   ================================================================= */

.posts-section {
    padding: 3rem 0 4rem;
}

.posts-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.post-card {
    display: block;
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    text-decoration: none;
    transition: all var(--transition);
}
.post-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    transform: translateY(-2px);
}

.post-date {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.post-card .post-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.post-subtitle {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}

.post-desc {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.post-link {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent);
}

/* =================================================================
   BLOG POST (single)
   ================================================================= */

.blog-post {
    padding: 2rem 0 4rem;
}

.back-link {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    transition: color var(--transition);
}
.back-link:hover { color: var(--color-accent); text-decoration: none; }

.post-header h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.post-meta {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.post-body h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2.5rem 0 0.75rem;
    letter-spacing: -0.01em;
}

.post-body h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 2rem 0 0.5rem;
}

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

.post-body ul,
.post-body ol {
    margin: 0.5rem 0 1rem 1.5rem;
}

.post-body li {
    margin-bottom: 0.4rem;
}

.post-body pre {
    background: var(--color-code-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    overflow-x: auto;
    margin: 1rem 0;
    font-size: 0.85rem;
    line-height: 1.6;
}

.post-body code {
    font-family: var(--font-mono);
    font-size: 0.85em;
}

.post-body p code,
.post-body li code {
    background: var(--color-code-bg);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.85em;
    border: 1px solid var(--color-border);
}

.post-body figure {
    margin: 1.5rem 0;
    text-align: center;
}

.post-body figure img {
    margin: 0 auto;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}

.post-body figcaption {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin-top: 0.5rem;
}

.img-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 1.5rem 0;
}

.embed-responsive {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    margin: 1.5rem 0;
}
.embed-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

@media (max-width: 640px) {
    .post-header h1 { font-size: 1.5rem; }
    .post-body h2 { font-size: 1.2rem; }
    .img-row { flex-direction: column; align-items: center; }
}

/* =================================================================
   CV PAGE
   ================================================================= */

.cv-page {
    padding: 3rem 0 4rem;
}

.cv-page .container {
    max-width: var(--container-wide);
}

.cv-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.cv-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--color-border);
}

.cv-header h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.cv-role {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    font-weight: 500;
}

.cv-meta {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-top: 0.25rem;
}
.cv-meta a { color: var(--color-accent); }

.cv-download-btn {
    margin-bottom: 2rem;
}

.cv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.cv-section {
    margin-bottom: 2rem;
}

.cv-section h3 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 0.4rem;
    margin-bottom: 1rem;
}

.cv-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.15rem;
}

.cv-period {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.4rem;
}

.cv-section ul {
    margin: 0.3rem 0 0.75rem 1.25rem;
    font-size: 0.9rem;
}

.cv-section li {
    margin-bottom: 0.25rem;
}

.cv-section p {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

/* Skills */
.skill-group {
    margin-bottom: 0.75rem;
}

.skill-stars,
.skill-label {
    font-size: 0.85rem;
    color: #d97706;
    display: block;
    margin-bottom: 0.3rem;
}

.skill-label {
    color: var(--color-text-secondary);
    font-weight: 600;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.skill-tags span {
    display: inline-block;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 0.15rem 0.5rem;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

@media (max-width: 768px) {
    .cv-grid { grid-template-columns: 1fr; gap: 0; }
    .cv-header { flex-direction: column; text-align: center; }
    .cv-header h1 { font-size: 1.6rem; }
    .cv-download-btn { display: block; text-align: center; }
}

/* =================================================================
   GALLERY
   ================================================================= */

.gallery-page {
    padding-bottom: 4rem;
}

.gallery-header {
    padding: 3rem 0 2rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 2rem;
}

.gallery-header h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.gallery-subtitle {
    color: var(--color-text-secondary);
    font-size: 1rem;
}

.gallery-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Category filter buttons */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.filter-btn {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all var(--transition);
}

.filter-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-text);
}

.filter-btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

/* Category sections */
.gallery-category {
    margin-bottom: 2.5rem;
}

.gallery-category.hidden {
    display: none;
}

.category-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--color-border);
    letter-spacing: 0.02em;
}

/* Flexbox justified layout — images share row height, width follows aspect ratio */
.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Invisible tail filler prevents the last row from stretching */
.gallery-grid::after {
    content: "";
    flex-grow: 999;
}

.gallery-item {
    height: 240px;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: pointer;
    position: relative;
    background: var(--color-bg-alt);
    transition: opacity var(--transition);
}

.gallery-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, filter 0.35s ease;
    display: block;
}

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

@media (max-width: 640px) {
    .gallery-item { height: 160px; }
    .gallery-header { padding: 2rem 0 1.5rem; }
    .gallery-header h1 { font-size: 1.5rem; }
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    -webkit-user-select: none;
    user-select: none;
}

.lightbox.open {
    display: flex;
}

.lightbox-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 3.5rem 3.5rem 2.5rem;
    overflow: hidden;
}

.lightbox-img-wrap img {
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-img-wrap img.loaded {
    opacity: 1;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    z-index: 10;
    padding: 0.75rem;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    color: #fff;
}

.lightbox-close {
    top: 0.75rem;
    right: 1rem;
    font-size: 2.5rem;
    line-height: 1;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    font-size: 3.5rem;
    line-height: 1;
}

.lightbox-prev { left: 0.5rem; }
.lightbox-next { right: 0.5rem; }

.lightbox-prev:hover { transform: translateY(-50%) translateX(-2px); }
.lightbox-next:hover { transform: translateY(-50%) translateX(2px); }

.lightbox-counter {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    padding-bottom: 1rem;
    text-align: center;
}

@media (max-width: 640px) {
    .lightbox-img-wrap { padding: 3rem 0.25rem 2rem; }
    .lightbox-img-wrap img { max-width: 98vw; max-height: 80vh; }
    .lightbox-prev, .lightbox-next { font-size: 2.5rem; }
    .lightbox-close { font-size: 2rem; }
    .gallery-filters { gap: 0.35rem; }
    .filter-btn { padding: 0.3rem 0.75rem; font-size: 0.8rem; }
}

/* 360 Gallery Item Badge */
.gallery-item--360 {
    position: relative;
}

.gallery-360-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    padding: 4px 10px;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    pointer-events: none;
    z-index: 2;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.gallery-360-badge svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* =================================================================
   360° VIRTUAL TOUR VIEWER
   ================================================================= */

.viewer-360 {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 1001;
    display: none;
    flex-direction: column;
}

.viewer-360.open {
    display: flex;
}

.viewer-360-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    z-index: 20;
    padding: 0.5rem;
    transition: color 0.2s, transform 0.2s;
}

.viewer-360-close:hover {
    color: #fff;
    transform: scale(1.1);
}

.viewer-360-titlebar {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    padding: 10px 18px;
    font-family: var(--font-body);
    border-radius: 8px;
    max-width: 50%;
    z-index: 15;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.viewer-360-titlebar h3 {
    margin: 0 0 2px;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.8;
}

.viewer-360-titlebar h4 {
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 700;
}

.viewer-360-titlebar p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.75;
}

.viewer-360-pano {
    flex: 1;
    width: 100%;
    min-height: 0;
    background: #000;
    touch-action: none;
    overscroll-behavior: none;
}

.viewer-360-rooms {
    display: flex;
    justify-content: center;
    overflow-x: auto;
    padding: 10px;
    gap: 10px;
    z-index: 15;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.viewer-360-rooms .room-button {
    background: rgba(255, 255, 255, 0.85);
    color: #000;
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.3s;
}

.viewer-360-rooms .room-button:hover {
    background: #fff;
}

.viewer-360-rooms .room-button.active {
    background: var(--color-accent);
    color: #fff;
}

/* Marzipano hotspot styles (inside the 360 viewer) */
.viewer-360 .hotspot {
    background: rgba(255, 255, 255, 0.88);
    color: #222;
    border: 1px solid #999;
    border-radius: 6px;
    padding: 5px 10px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.viewer-360 .hotspot:hover {
    background: #fff;
    transform: scale(1.15);
}

.viewer-360 .hotspot--info {
    opacity: 0.7;
    background: rgba(240, 240, 240, 0.9);
    color: #444;
    border-color: #ccc;
    font-style: italic;
    pointer-events: none;
    cursor: default;
}

.viewer-360 .hotspot--info:hover {
    transform: none;
    background: rgba(240, 240, 240, 0.9);
}

@media (max-width: 640px) {
    .viewer-360-titlebar {
        max-width: 70%;
        padding: 8px 12px;
    }
    .viewer-360-titlebar h4 { font-size: 0.9rem; }
    .viewer-360-titlebar p { font-size: 0.75rem; }
    .viewer-360-rooms .room-button {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

/* =================================================================
   FOOTER
   ================================================================= */

.site-footer {
    margin-top: auto;
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    padding: 3rem 0 2rem;
    transition: background var(--transition), border-color var(--transition);
}

.footer-grid {
    display: flex;
    gap: 4rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
    margin-bottom: 0.75rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.4rem;
}

.footer-col a {
    color: var(--color-text);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color var(--transition);
}
.footer-col a:hover { color: var(--color-accent); }

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 1.25rem;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

@media (max-width: 640px) {
    .footer-grid { flex-direction: column; gap: 2rem; }
}

/* =================================================================
   COOKIE BANNER
   ================================================================= */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 200;
    font-size: 0.85rem;
}

.cookie-banner p { margin: 0; color: var(--color-text-secondary); }

.cookie-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
}

/* =================================================================
   BUTTONS
   ================================================================= */

.btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid var(--color-accent);
    background: var(--color-accent);
    color: #fff;
    transition: all var(--transition);
}
.btn:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    text-decoration: none;
    color: #fff;
}

.btn-sm {
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
}

.btn-outline {
    background: transparent;
    color: var(--color-text-secondary);
    border-color: var(--color-border);
}
.btn-outline:hover {
    background: var(--color-bg-alt);
    color: var(--color-text);
    border-color: var(--color-text-secondary);
}

/* =================================================================
   UTILITIES
   ================================================================= */

.main {
    flex: 1;
}

/* Fade-in on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
