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

html {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #fff;
    height: 100%;
    background: #2a3a2e;
}

html:has(.home) {
    overflow: hidden;
    overscroll-behavior: none;
}

/* ——————————————————————————————————
   HOMEPAGE
   —————————————————————————————————— */

.home {
    position: fixed;
    inset: 0;
    overflow: hidden;
    background: #2a3a2e;
}

#glass-canvas {
    position: fixed;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0;
}

/* Fallback when WebGL is unavailable */
.home.no-webgl {
    background:
        url('/GlassmorphicTheme/images/background.jpg') center / cover no-repeat fixed;
}

.overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 40px 120px;
    gap: 28px;
    overflow: hidden;
}


/* Broad dark glow behind all glass cards for contrast */
.overlay::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    height: 80%;
    background: radial-gradient(ellipse at center,
        rgba(0,0,0,0.50) 0%,
        rgba(0,0,0,0.48) 5%,
        rgba(0,0,0,0.44) 10%,
        rgba(0,0,0,0.38) 17%,
        rgba(0,0,0,0.30) 25%,
        rgba(0,0,0,0.22) 33%,
        rgba(0,0,0,0.15) 42%,
        rgba(0,0,0,0.09) 52%,
        rgba(0,0,0,0.04) 63%,
        rgba(0,0,0,0.01) 75%,
        transparent 90%
    );
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

/* Glass panels */
.glass-panel {
    border-radius: 36px;
    padding: 36px 32px;
    color: #fff;
    position: relative;
    background: transparent;
    border: none;
}

/* WebGL active — blur handled entirely in WebGL shader */

/* No WebGL — full CSS glassmorphism fallback */
.no-webgl .glass-panel {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(40px) saturate(1.4);
    -webkit-backdrop-filter: blur(40px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Cards row */
.cards-row {
    display: flex;
    gap: 24px;
    max-width: 920px;
    width: 100%;
    align-items: stretch;
}

/* ——————————————————————————————————
   ABOUT CARD
   —————————————————————————————————— */

.about {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    max-width: 380px;
}

.avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.08));
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    flex-shrink: 0;
}

.about h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: #fff;
}

.role {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 2px;
}

.tagline {
    font-size: 0.85rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 2px;
}

.links {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.social-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: color 0.25s ease;
    padding: 4px 0;
}

.social-link:hover {
    color: #fff;
    text-decoration: none;
}

/* ——————————————————————————————————
   EXPERIENCE CARD
   —————————————————————————————————— */

.experience {
    flex: 1.2;
    max-width: 520px;
}

.experience h2 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.job {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.job:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.job:first-of-type {
    padding-top: 0;
}

.job-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
}

.job-logo.padded {
    padding: 4px;
    background: #fff;
    object-fit: contain;
}

.job-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.2;
}

.job-role {
    font-size: 0.8rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 1px;
}

.job-duration {
    font-size: 0.72rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 2px;
    display: block;
}

/* ——————————————————————————————————
   DOCK
   —————————————————————————————————— */

.dock {
    position: fixed;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 28px;
    padding: 28px 36px 18px;
    border-radius: 36px;
    max-width: calc(100vw - 24px);
    flex-wrap: nowrap;
}

.dock-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transform: scale(var(--dock-scale, 1));
    will-change: transform;
}

.dock-icon {
    width: clamp(48px, 8vw, 72px);
    height: clamp(48px, 8vw, 72px);
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}


.dock-icon[alt="Vector"],
.dock-icon[alt="Mirage"] {
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.dock-app:hover .dock-icon[alt="Vector"],
.dock-app:hover .dock-icon[alt="Mirage"] {
    box-shadow: none;
}

.dock-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.02em;
    transition: color 0.25s ease;
}

.dock-app:hover .dock-label {
    color: rgba(255, 255, 255, 0.9);
}

/* Active magnification mode (applied by JS on pointer devices) */
.dock.dock-magnify {
    display: block;
    width: var(--dock-width);
    height: var(--dock-height);
    overflow: visible;
    transform: translateX(-50%) translateX(var(--dock-offset, 0px));
}

.dock.dock-magnify .dock-app {
    position: absolute;
    left: var(--dock-x, 0px);
    bottom: 18px;
    transform: scale(var(--dock-scale, 1));
    transform-origin: bottom center;
    will-change: transform;
}

/* ——————————————————————————————————
   APP DETAIL PAGES
   —————————————————————————————————— */

.app-page {
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #f5f5f7;
}

/* Subtle gradient tint per app — sampled from app icons */
.app-page[data-gradient="acrylic"] {
    background: linear-gradient(160deg, rgba(218,60,180,0.14) 0%, rgba(20,20,60,0.10) 50%, rgba(100,200,255,0.10) 100%), #f5f5f7;
}
.app-page[data-gradient="kairos"] {
    background: linear-gradient(160deg, rgba(40,200,180,0.14) 0%, rgba(30,120,220,0.10) 100%), #f5f5f7;
}
.app-page[data-gradient="neptune"] {
    background: linear-gradient(160deg, rgba(20,120,230,0.14) 0%, rgba(50,160,240,0.10) 100%), #f5f5f7;
}
.app-page[data-gradient="opensesame"] {
    background: linear-gradient(160deg, rgba(100,170,240,0.14) 0%, rgba(140,180,230,0.10) 100%), #f5f5f7;
}
.app-page[data-gradient="syndromi"] {
    background: linear-gradient(160deg, rgba(245,175,50,0.16) 0%, rgba(240,150,30,0.10) 100%), #f5f5f7;
}
.app-page[data-gradient="vector"] {
    background: linear-gradient(160deg, rgba(90,190,240,0.14) 0%, rgba(70,160,230,0.10) 100%), #f5f5f7;
}
.app-page[data-gradient="mirage"] {
    background: linear-gradient(160deg, rgba(70,100,190,0.14) 0%, rgba(90,130,210,0.10) 100%), #f5f5f7;
}

.app-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 24px 60px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.back-link {
    color: rgba(0, 0, 0, 0.45);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.2s;
    align-self: flex-start;
}

.back-link:hover {
    color: rgba(0, 0, 0, 0.8);
    text-decoration: none;
}

/* Glass cards on app pages */
.app-glass-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(40px) saturate(1.4);
    -webkit-backdrop-filter: blur(40px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06),
                0 1px 3px rgba(0, 0, 0, 0.04);
}

/* App header */
.app-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.app-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    object-fit: cover;
}

.app-icon-large[alt="Vector"],
.app-icon-large[alt="Mirage"] {
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.app-info {
    flex: 1;
}

.app-info h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.app-desc {
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.55);
    line-height: 1.5;
    margin-bottom: 12px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.tech-tag {
    background: rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.6);
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.app-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
}

.btn.primary {
    background: #1a1a1a;
    color: #fff;
}

.btn.primary:hover {
    background: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn.secondary {
    background: rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn.secondary:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* App content (markdown) */
.content-card {
    color: rgba(0, 0, 0, 0.75);
}

.content-card h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 24px 0 12px;
    letter-spacing: -0.01em;
}

.content-card h2:first-child {
    margin-top: 0;
}

.content-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.8);
    margin: 20px 0 10px;
}

.content-card p {
    font-size: 0.9rem;
    line-height: 1.65;
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 14px;
}

.content-card ul {
    padding-left: 18px;
    margin-bottom: 14px;
}

.content-card li {
    font-size: 0.9rem;
    line-height: 1.65;
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 6px;
}

.content-card a {
    color: #0066cc;
    text-decoration: underline;
    text-decoration-color: rgba(0, 102, 204, 0.3);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.2s;
}

.content-card a:hover {
    text-decoration-color: rgba(0, 102, 204, 0.8);
}

/* ——————————————————————————————————
   SECTION LISTING (Apps page)
   —————————————————————————————————— */

.section-page {
    min-height: 100vh;
    overflow-y: auto;
    background-color: #f5f5f7;
}

.section-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 24px 60px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.5);
    margin-top: 6px;
}

.section-page .app-glass-card {
    background: rgba(255, 255, 255, 0.6);
}

.app-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    padding: 14px;
    border-radius: 16px;
    transition: background 0.2s ease;
}

.app-list-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

.app-list-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.app-list-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
}

/* ——————————————————————————————————
   GENERIC PAGES (Privacy, etc.)
   —————————————————————————————————— */

.generic-page {
    min-height: 100vh;
    overflow-y: auto;
    background-color: #f5f5f7;
}

.generic-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

.generic-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(40px) saturate(1.3);
    -webkit-backdrop-filter: blur(40px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
}

.generic-card h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.generic-card p {
    font-size: 0.9rem;
    line-height: 1.65;
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 14px;
}

.generic-card h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.8);
    margin: 24px 0 12px;
}

.generic-card ul {
    padding-left: 18px;
    margin-bottom: 14px;
}

.generic-card li {
    font-size: 0.9rem;
    line-height: 1.65;
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 6px;
}

.generic-card a {
    color: #0066cc;
    text-decoration: underline;
    text-decoration-color: rgba(0, 102, 204, 0.3);
}

.generic-card a:hover {
    text-decoration-color: rgba(0, 102, 204, 0.7);
}

/* ——————————————————————————————————
   DARK MODE (app/section/generic pages only — homepage unchanged)
   —————————————————————————————————— */

@media (prefers-color-scheme: dark) {
    .app-page {
        background-color: #1a1a1a;
    }
    .app-page[data-gradient="acrylic"] {
        background: linear-gradient(160deg, rgba(218,60,180,0.08) 0%, rgba(20,20,60,0.06) 50%, rgba(100,200,255,0.06) 100%), #1a1a1a;
    }
    .app-page[data-gradient="kairos"] {
        background: linear-gradient(160deg, rgba(40,200,180,0.08) 0%, rgba(30,120,220,0.06) 100%), #1a1a1a;
    }
    .app-page[data-gradient="neptune"] {
        background: linear-gradient(160deg, rgba(20,120,230,0.08) 0%, rgba(50,160,240,0.06) 100%), #1a1a1a;
    }
    .app-page[data-gradient="opensesame"] {
        background: linear-gradient(160deg, rgba(100,170,240,0.08) 0%, rgba(140,180,230,0.06) 100%), #1a1a1a;
    }
    .app-page[data-gradient="syndromi"] {
        background: linear-gradient(160deg, rgba(245,175,50,0.10) 0%, rgba(240,150,30,0.06) 100%), #1a1a1a;
    }
    .app-page[data-gradient="vector"] {
        background: linear-gradient(160deg, rgba(90,190,240,0.08) 0%, rgba(70,160,230,0.06) 100%), #1a1a1a;
    }
    .app-page[data-gradient="mirage"] {
        background: linear-gradient(160deg, rgba(70,100,190,0.08) 0%, rgba(90,130,210,0.06) 100%), #1a1a1a;
    }

    .app-glass-card {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
    }

    .back-link { color: rgba(255, 255, 255, 0.5); }
    .back-link:hover { color: rgba(255, 255, 255, 0.85); }

    .app-info h1 { color: #f0f0f0; }
    .app-desc { color: rgba(255, 255, 255, 0.6); }
    .tech-tag { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.7); }
    .btn.primary { background: #f0f0f0; color: #1a1a1a; }
    .btn.primary:hover { background: #fff; }
    .btn.secondary { background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.75); border-color: rgba(255, 255, 255, 0.12); }
    .btn.secondary:hover { background: rgba(255, 255, 255, 0.14); }

    .content-card { color: rgba(255, 255, 255, 0.8); }
    .content-card h2 { color: #f0f0f0; }
    .content-card h3 { color: rgba(255, 255, 255, 0.9); }
    .content-card p, .content-card li { color: rgba(255, 255, 255, 0.65); }
    .content-card a { color: #5ac8fa; text-decoration-color: rgba(90, 200, 250, 0.3); }
    .content-card a:hover { text-decoration-color: rgba(90, 200, 250, 0.7); }

    .section-page { background-color: #1a1a1a; }
    .section-page .app-glass-card { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.1); }
    .section-header h1 { color: #f0f0f0; }
    .section-header p { color: rgba(255, 255, 255, 0.5); }
    .app-list-item:hover { background: rgba(255, 255, 255, 0.06); }
    .app-list-item h3 { color: #f0f0f0; }

    .generic-page { background-color: #1a1a1a; }
    .generic-card { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.1); }
    .generic-card h1 { color: #f0f0f0; }
    .generic-card h2 { color: rgba(255, 255, 255, 0.9); }
    .generic-card p, .generic-card li { color: rgba(255, 255, 255, 0.6); }
    .generic-card a { color: #5ac8fa; text-decoration-color: rgba(90, 200, 250, 0.3); }
    .generic-card a:hover { text-decoration-color: rgba(90, 200, 250, 0.7); }
}

/* ——————————————————————————————————
   RESPONSIVE
   —————————————————————————————————— */

/* Short viewport at any width: inline dock so nothing overlaps */
@media (max-height: 820px) and (min-width: 769px) {
    .overlay {
        padding: 24px 24px;
        gap: 20px;
    }

    .dock {
        position: static;
        transform: none;
        flex-shrink: 0;
    }

    .dock.dock-magnify {
        display: flex;
        width: auto;
        transform: none;
    }
    .dock.dock-magnify .dock-app {
        position: static;
        left: auto;
        transform: none;
    }
}

@media (max-width: 768px) {
    html:has(.home) {
        overflow: hidden;
    }

    .overlay {
        padding: 16px;
        padding-top: max(16px, env(safe-area-inset-top, 16px));
        padding-bottom: max(16px, env(safe-area-inset-bottom, 16px));
        justify-content: center;
        gap: 12px;
    }

    .cards-row {
        flex-direction: column;
        gap: 12px;
        flex: 0 1 auto;
        min-height: 0;
    }

    .about, .experience {
        max-width: none;
    }

    .about {
        gap: 2px;
    }

    .glass-panel {
        padding: 14px 16px;
        border-radius: 22px;
    }

    .about h1 {
        font-size: 1.4rem;
    }

    .avatar {
        width: 44px;
        height: 44px;
        font-size: 1rem;
        margin-bottom: 2px;
    }

    .role {
        font-size: 0.85rem;
    }

    .tagline {
        font-size: 0.75rem;
    }

    .links {
        margin-top: 6px;
        gap: 12px;
    }

    .social-link {
        font-size: 0.72rem;
    }

    .experience h2 {
        margin-bottom: 8px;
    }

    .job {
        gap: 10px;
        padding: 6px 0;
    }

    .job-logo {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }

    .job-info h3 {
        font-size: 0.85rem;
    }

    .job-role {
        font-size: 0.72rem;
    }

    .job-duration {
        font-size: 0.65rem;
    }

    .dock {
        position: static;
        transform: none;
        gap: 6px;
        padding: 12px 12px;
        flex-wrap: nowrap;
        justify-content: center;
        width: auto;
        flex-shrink: 0;
    }

    .dock.dock-magnify {
        display: flex;
        width: auto;
        transform: none;
    }
    .dock.dock-magnify .dock-app {
        position: static;
        left: auto;
        transform: none;
    }

    .overlay::before {
        top: 45%;
        width: 160%;
        height: 140%;
        border-radius: 50%;
        background: radial-gradient(ellipse at center,
            rgba(0,0,0,0.70) 0%,
            rgba(0,0,0,0.66) 8%,
            rgba(0,0,0,0.58) 16%,
            rgba(0,0,0,0.48) 25%,
            rgba(0,0,0,0.36) 35%,
            rgba(0,0,0,0.24) 46%,
            rgba(0,0,0,0.14) 58%,
            rgba(0,0,0,0.06) 72%,
            rgba(0,0,0,0.02) 86%,
            transparent 100%
        );
    }

    .dock-icon {
        width: clamp(40px, 10vw, 56px);
        height: clamp(40px, 10vw, 56px);
        border-radius: 12px;
    }

    .dock-label {
        font-size: clamp(0.48rem, 1.8vw, 0.6rem);
        white-space: nowrap;
    }

    .dock-app {
        flex-shrink: 1;
        min-width: 0;
        gap: 4px;
    }

    /* App pages */
    .app-container {
        padding: 30px 16px 50px;
    }

    .app-glass-card {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .app-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .tech-tags {
        justify-content: center;
    }

    .app-actions {
        justify-content: center;
    }

    .app-info h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 400px) {
    .overlay {
        padding: max(12px, env(safe-area-inset-top, 12px)) 14px max(12px, env(safe-area-inset-bottom, 12px));
        gap: 8px;
    }

    .glass-panel {
        padding: 16px 14px;
    }

    .about h1 {
        font-size: 1.2rem;
    }

    .avatar {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }

    .dock {
        gap: 6px;
        padding: 10px 10px;
    }

    .dock-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }

    .dock-label {
        font-size: 0.42rem;
    }
}

/* ——————————————————————————————————
   LANDSCAPE PHONES
   —————————————————————————————————— */

@media (max-height: 500px) and (orientation: landscape) {
    .overlay {
        padding: max(6px, env(safe-area-inset-top, 6px))
                 max(16px, env(safe-area-inset-right, 16px))
                 max(6px, env(safe-area-inset-bottom, 6px))
                 max(16px, env(safe-area-inset-left, 16px));
        gap: 6px;
        justify-content: center;
    }

    .cards-row {
        flex-direction: row;
        gap: 10px;
        flex: 1 1 auto;
        min-height: 0;
        max-width: 700px;
    }

    .about, .experience {
        max-width: none;
    }

    .glass-panel {
        padding: 8px 12px;
        border-radius: 16px;
    }

    .about {
        gap: 0px;
    }

    .about h1 {
        font-size: 1rem;
    }

    .avatar {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
        margin-bottom: 2px;
    }

    .role {
        font-size: 0.68rem;
    }

    .tagline {
        font-size: 0.6rem;
    }

    .links {
        margin-top: 4px;
        gap: 8px;
    }

    .social-link {
        font-size: 0.58rem;
    }

    .experience h2 {
        margin-bottom: 4px;
        font-size: 0.6rem;
    }

    .job {
        gap: 6px;
        padding: 3px 0;
    }

    .job-logo {
        width: 24px;
        height: 24px;
        border-radius: 6px;
    }

    .job-info h3 {
        font-size: 0.7rem;
    }

    .job-role {
        font-size: 0.58rem;
    }

    .job-duration {
        font-size: 0.5rem;
    }

    .dock {
        position: static;
        transform: none;
        gap: 8px;
        padding: 8px 14px;
        flex-wrap: nowrap;
        justify-content: center;
        width: auto;
        flex-shrink: 0;
        border-radius: 18px;
    }

    .dock-icon {
        width: clamp(32px, 8vh, 44px);
        height: clamp(32px, 8vh, 44px);
        border-radius: 10px;
    }

    .dock-label {
        font-size: 0.45rem;
        white-space: nowrap;
    }

    .dock-app {
        gap: 3px;
    }
}

/* Global link reset */
a {
    color: inherit;
    text-decoration: none;
}

