/* ===========================
   Darren Udaiyan — Software Developer & Physicist
   Minimal e-reader theme (paper / sepia / night)
   =========================== */

:root {
    /* ============================================================
       E-READER PALETTE — tweak these to restyle the whole site.
       Default "paper": warm off-white page, soft dark-grey ink.
       ============================================================ */
    --color-bg:           #f7f4ec;  /* page / paper background        */
    --color-bg-elevated:  #f1eadf;  /* notes, cards, code chips        */
    --color-bg-card:      #f1eadf;  /* alias used by gallery/music     */
    --color-text:         #2b2b2b;  /* body ink (soft dark grey)       */
    --color-text-muted:   #6f6859;  /* meta, captions, secondary text  */
    --color-accent:       #7a5230;  /* links & accents (ink-brown)     */
    --color-accent-light: #5d3d22;  /* link hover (darker = contrast)  */
    --color-border:       #e2dac9;  /* hairline dividers               */
    --color-border-light: #cdc3ad;  /* stronger hairline               */
    --color-nav-bg: rgba(247, 244, 236, 0.9); /* translucent nav bar   */

    /* Typography */
    --font-serif: 'Literata', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
    --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Layout */
    --reading-width: 680px;  /* narrow, comfortable reading column */
    --max-width: 1200px;     /* legacy wide container (gallery pages) */
    --transition: 0.25s ease;
}

/* --- Sepia: warmer paper for low light --- */
[data-theme="sepia"] {
    --color-bg:           #efe4cf;
    --color-bg-elevated:  #e7d9bd;
    --color-bg-card:      #e7d9bd;
    --color-text:         #433726;
    --color-text-muted:   #6f6048;
    --color-accent:       #845a2b;
    --color-accent-light: #5f3f1c;
    --color-border:       #ddceb0;
    --color-border-light: #c9b48c;
    --color-nav-bg: rgba(239, 228, 207, 0.9);
}

/* --- Night: soft dark (not pure black on white) --- */
[data-theme="night"] {
    --color-bg:           #15171a;
    --color-bg-elevated:  #1d2024;
    --color-bg-card:      #1d2024;
    --color-text:         #c9c4ba;
    --color-text-muted:   #8a8479;
    --color-accent:       #c2a06f;
    --color-accent-light: #d9bd8f;
    --color-border:       #2b2f35;
    --color-border-light: #3a3f47;
    --color-nav-bg: rgba(21, 23, 26, 0.92);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px; /* keep anchors clear of the fixed nav */
}

body {
    font-family: var(--font-serif);
    font-size: 1.125rem;   /* ~18px comfortable reading size */
    line-height: 1.65;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--transition), color var(--transition);
}

a {
    color: var(--color-accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-accent-light);
}

/* Visible keyboard focus for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: 2px;
}

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

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

/* Skip link — first tab stop, hidden until focused */
.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    z-index: 2000;
    padding: 0.6rem 1rem;
    background: var(--color-bg-elevated);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    left: 0;
}

/* Navigation links are chrome, not prose — no underlines */
.nav-brand,
.nav-links a {
    text-decoration: none;
}

/* ===========================
   Navigation
   =========================== */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-nav-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-brand {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-text);
    letter-spacing: 0.02em;
}

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

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    position: relative;
    padding: 0.25rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-text);
}

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

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    position: relative;
    height: 60vh;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1410 50%, #0a0a0a 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(201, 169, 110, 0.06) 0%, transparent 70%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30z' fill='none' stroke='rgba(201,169,110,0.03)' stroke-width='0.5'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    animation: fadeInUp 1.2s ease-out;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    font-weight: 300;
    color: var(--color-text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ===========================
   Page Header
   =========================== */
.page-header {
    padding: 10rem 0 4rem;
    text-align: center;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-elevated) 100%);
}

.page-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.page-subtitle {
    font-family: var(--font-serif);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    font-style: italic;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ===========================
   About Section
   =========================== */
.about-section {
    padding: 6rem 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 300;
    font-style: italic;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    text-align: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--color-text);
}

.about-text em {
    color: var(--color-accent-light);
    font-style: italic;
}

/* ===========================
   Essay / Page Text
   =========================== */
.page-text {
    padding: 4rem 0;
}

.essay-text {
    max-width: 800px;
    margin: 0 auto;
}

.essay-text h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.essay-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.85;
}

.essay-text p.lead {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--color-accent-light);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.essay-text em {
    color: var(--color-accent-light);
}

/* Blockquote */
.artist-quote {
    margin: 3rem 0;
    padding: 2rem 2.5rem;
    border-left: 2px solid var(--color-accent);
    background: var(--color-bg-elevated);
    border-radius: 0 4px 4px 0;
}

.artist-quote p {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.artist-quote p:last-child {
    margin-bottom: 0;
}

/* ===========================
   Gallery
   =========================== */
.gallery-section {
    padding: 4rem 0 8rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: var(--color-bg-card);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition), opacity var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.03);
    opacity: 0.9;
}

/* ===========================
   Lightbox
   =========================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 2rem;
}

.lightbox.active {
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: color var(--transition);
}

.lightbox-close:hover {
    color: var(--color-accent);
}

/* ===========================
   Music Section
   =========================== */
.music-section {
    padding: 2rem 0 8rem;
}

.music-player-list {
    max-width: 800px;
    margin: 0 auto;
}

.music-track {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.75rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    transition: border-color var(--transition), background var(--transition);
}

.music-track:hover {
    border-color: var(--color-border-light);
    background: var(--color-bg-elevated);
}

.track-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 200px;
}

.track-number {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--color-accent);
    min-width: 28px;
}

.track-name {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--color-text);
}

.music-track audio {
    flex: 1;
    height: 40px;
    min-width: 0;
    border-radius: 20px;
    background: var(--color-bg-elevated);
}

/* Dark audio widget only in night reading mode */
[data-theme="night"] .music-track audio {
    filter: invert(1) hue-rotate(180deg) brightness(0.85) contrast(1.05);
}

/* ===========================
   CV Section
   =========================== */
.cv-section {
    padding: 2rem 0 8rem;
}

.cv-content {
    max-width: 800px;
    margin: 0 auto;
}

.cv-block {
    margin-bottom: 4rem;
}

.cv-heading {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--color-accent);
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.cv-item {
    display: flex;
    gap: 2rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--color-border);
}

.cv-item:last-child {
    border-bottom: none;
}

.cv-date {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
    min-width: 100px;
    flex-shrink: 0;
    padding-top: 0.1rem;
}

.cv-detail {
    font-size: 0.95rem;
    line-height: 1.6;
}

.cv-detail strong {
    color: var(--color-text);
}

.cv-detail p {
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

.cv-detail em {
    color: var(--color-accent-light);
}

.cv-representation {
    margin-top: 4rem;
    padding: 2rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    text-align: center;
    font-size: 1rem;
}

/* ===========================
   Contact Section
   =========================== */
.contact-section {
    padding: 2rem 0 8rem;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.85;
}

.contact-text h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-accent);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.contact-card {
    margin: 2.5rem 0;
    padding: 2.5rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.contact-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.contact-detail {
    padding: 1.25rem 1.5rem;
    background: var(--color-bg-elevated);
    border-left: 3px solid var(--color-accent);
    border-radius: 0 4px 4px 0;
    margin: 1.5rem 0;
    font-size: 1.1rem;
}

.contact-detail a {
    font-size: 1.2rem;
    font-weight: 500;
}

.contact-note {
    font-size: 0.95rem !important;
    color: var(--color-text-muted);
    font-style: italic;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.service-list li {
    padding: 1rem 1.5rem;
    margin-bottom: 0.75rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.service-list li strong {
    color: var(--color-accent);
}

.contact-closing {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--color-accent);
    text-align: center;
    margin-top: 3rem;
}

/* ===========================
   E-reader reading layout
   (the developer site — calm, book-like)
   =========================== */

/* Narrow centred reading column with generous margins */
.reader {
    max-width: var(--reading-width);
    margin: 0 auto;
    padding: 6rem 1.5rem 2rem; /* top clears the fixed nav */
}

/* --- Masthead: page title block --- */
.masthead {
    margin-bottom: 2.5rem;
}

.masthead-title {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: clamp(2rem, 5vw, 2.8rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--color-text);
}

.masthead-tagline {
    margin-top: 0.6rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
}

/* --- Disambiguation note ("I am NOT the artist") --- */
.disambiguation {
    margin: 2rem 0;
    padding: 1.1rem 1.3rem;
    background: var(--color-bg-elevated);
    border-left: 2px solid var(--color-accent);
    border-radius: 0 3px 3px 0;
}

.disambiguation p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--color-text);
}

/* --- Hairline divider, like a chapter break --- */
.rule {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 3rem 0;
}

/* --- Chapters (content sections) --- */
.chapter {
    margin: 2.5rem 0;
}

.chapter-title {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: 0.01em;
    margin-bottom: 1.25rem;
    color: var(--color-text);
}

.chapter-intro {
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
}

.chapter p {
    margin-bottom: 1.2rem;
}

.about-links {
    font-family: var(--font-sans);
    font-size: 0.9rem;
}

.about-links .sep {
    margin: 0 0.5rem;
    color: var(--color-text-muted);
}

/* --- Experience / Education timeline --- */
.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
}

.entry {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.entry:last-child {
    border-bottom: none;
}

.entry-head {
    margin-bottom: 0.35rem;
}

.entry-role {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--color-text);
}

.entry-org {
    font-size: 1rem;
    color: var(--color-text);
}

.entry-type {
    color: var(--color-text-muted);
}

.entry-meta {
    margin-bottom: 0.75rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    color: var(--color-text-muted);
}

.entry-note {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--color-text-muted);
}

.entry-list {
    margin: 0.5rem 0 1rem 1.1rem;
    padding: 0;
}

.entry-list li {
    margin-bottom: 0.4rem;
    padding-left: 0.25rem;
}

.entry-tools {
    font-size: 0.92rem;
    color: var(--color-text-muted);
}

.entry-tools strong {
    color: var(--color-text);
}

/* --- Open-source repositories --- */
.repo {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.repo:last-child {
    border-bottom: none;
}

.repo-name {
    margin-bottom: 0.2rem;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.2rem;
}

.repo-alias {
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.repo-meta {
    margin-bottom: 0.75rem;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.repo code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.88em;
    background: var(--color-bg-elevated);
    padding: 0.1em 0.35em;
    border-radius: 3px;
}

/* --- Contact definition list --- */
.contact-list {
    display: grid;
    grid-template-columns: 7rem 1fr;
    gap: 0.6rem 1.5rem;
    margin: 0;
}

.contact-list dt {
    padding-top: 0.15rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
}

.contact-list dd {
    margin: 0;
    font-size: 1.02rem;
}

@media (max-width: 480px) {
    .contact-list {
        grid-template-columns: 1fr;
        gap: 0.15rem 0;
    }
    .contact-list dd {
        margin-bottom: 0.75rem;
    }
}

/* --- Night-reading toggle button (in the nav) --- */
.theme-toggle {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-muted);
    background: none;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 0.3rem 0.8rem;
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition);
}

.theme-toggle:hover {
    color: var(--color-text);
    border-color: var(--color-border-light);
}

/* ===========================
   Footer
   =========================== */
.site-footer {
    padding: 1rem 0 3rem;
    text-align: center;
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
}

.footer-text {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.footer-text.small {
    font-size: 0.82rem;
}

/* ===========================
   Animations
   =========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade in on scroll */
.gallery-item,
.cv-block,
.music-track {
    animation: fadeInUp 0.6s ease-out backwards;
}

.gallery-item:nth-child(2) { animation-delay: 0.1s; }
.gallery-item:nth-child(3) { animation-delay: 0.2s; }
.gallery-item:nth-child(4) { animation-delay: 0.3s; }
.gallery-item:nth-child(5) { animation-delay: 0.4s; }
.gallery-item:nth-child(6) { animation-delay: 0.5s; }

.music-track:nth-child(2) { animation-delay: 0.05s; }
.music-track:nth-child(3) { animation-delay: 0.1s; }
.music-track:nth-child(4) { animation-delay: 0.15s; }
.music-track:nth-child(5) { animation-delay: 0.2s; }
.music-track:nth-child(6) { animation-delay: 0.25s; }
.music-track:nth-child(7) { animation-delay: 0.3s; }
.music-track:nth-child(8) { animation-delay: 0.35s; }

/* ===========================
   Responsive
   =========================== */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--color-nav-bg);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 2rem 0;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.4s ease, opacity 0.4s ease;
    }

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

    .nav-links li {
        padding: 0.75rem 0;
    }

    .nav-links a {
        font-size: 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .music-track {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .track-info {
        min-width: auto;
    }

    .music-track audio {
        width: 100%;
    }

    .cv-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .cv-date {
        min-width: auto;
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .page-header {
        padding: 8rem 0 3rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

    .gallery-grid {
        gap: 1rem;
    }

    .contact-card {
        padding: 1.5rem;
    }
}
