

/* NAVIGATION - HEADER */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-nav);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
    padding: 0 var(--space-md);
    background: transparent;
    color: white;
    overflow: visible;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.scrolled {
    background: rgba(9, 9, 11, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.header-menu-btn {
    position: relative;
    z-index: var(--z-header);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: none;
    border: none;
    color: white;
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-xs);
    transition: background 0.2s ease;
}

.header-menu-btn:hover {
    background: var(--glass-border);
}

.header-menu-btn:focus {
    outline: none;
}

.header-logo {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: white;
    text-decoration: none;
}

.theme-toggle {
    position: relative;
    z-index: var(--z-header);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    overflow: visible;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover {
    opacity: 0.7;
}

.theme-toggle .icon-moon {
    display: none;
}

body.light-mode .theme-toggle .icon-sun {
    display: none;
}

body.light-mode .theme-toggle .icon-moon {
    display: block;
}

body.light-mode .theme-toggle {
    color: #000;
}

body.light-mode .theme-toggle:hover {
    opacity: 0.7;
}

.toggle-tooltip {
    position: absolute;
    top: calc(100% + var(--space-sm));
    right: 50%;
    transform: translateX(50%) translateY(-4px);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.05em;
    color: var(--on-dark);
    background: var(--hairline);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    animation: tooltip-appear 0.4s ease 2s forwards, tooltip-pulse 2s ease-in-out 2.4s infinite;
}

.toggle-tooltip.hidden {
    display: none;
}

body.light-mode .toggle-tooltip {
    color: #000;
    background: rgba(0, 0, 0, 0.08);
}

@keyframes tooltip-appear {
    to { opacity: 1; transform: translateX(50%) translateY(0); }
}

@keyframes tooltip-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.header-dropdown {
    position: absolute;
    top: 100%;
    left: var(--space-md);
    min-width: 220px;
    background: rgba(20, 20, 20, 0.92);
    backdrop-filter: saturate(180%) blur(40px);
    -webkit-backdrop-filter: saturate(180%) blur(40px);
    border: 1px solid var(--glass-active);
    border-radius: var(--radius-sm);
    padding: var(--space-xs);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.header-dropdown.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.header-dropdown-item {
    display: block;
    padding: var(--space-sm) var(--space-md);
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background 0.2s ease, color 0.2s ease;
}

.header-dropdown-item:hover {
    background: var(--glass-hover);
    color: white;
}

/* SECTION HEADER (shared) */

.section-header {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--page-gutter);
    margin-bottom: 80px;
}

.section-header .caption {
    margin-bottom: var(--space-sm);
}

.section-header .display-lg {
    margin-bottom: var(--space-lg);
}

.section-body {
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.35;
    color: var(--body-strong);
    max-width: 640px;
}

/* BUTTONS */

.btn-glass {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--on-dark);
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 9999px;
    padding: 16px 36px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-icon {
    width: 64px;
    height: 64px;
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.06);
}

.btn-icon--sm {
    width: 44px;
    height: 44px;
}

.btn-icon svg {
    margin-left: 2px;
}

/* CARD BASE STYLES */

.project-card {
    width: 900px;
    flex-shrink: 0;
}

.project-card--wide {
    width: 900px;
}

.project-card--portrait {
    width: 240px;
}

.project-card--portrait .project-card-visual {
    width: 100%;
}

.project-card-visual {
    display: block;
    width: 100%;
    height: 520px;
    overflow: hidden;
    margin-bottom: var(--space-lg);
    position: relative;
    background: var(--surface-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    text-decoration: none;
}

.project-card-visual--dark {
    background: var(--surface-soft);
}

.project-card-visual--surface {
    background: var(--surface-elevated);
}

.project-card-visual img,
.project-card-visual video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.project-card-info .display-sm {
    font-family: var(--font-body);
    font-size: var(--text-md);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: normal;
    text-transform: none;
    color: var(--on-dark);
    margin-bottom: 0;
    display: inline;
}

.project-card-info .card-body {
    display: inline;
}

.card-body {
    font-family: var(--font-body);
    font-size: var(--text-md);
    font-weight: 400;
    line-height: 1.5;
    color: var(--body-strong);
}
