/* Modern Personal Portfolio - Design System */
:root {
    --primary: #ffffff;
    --primary-dark: #cccccc;

    --bg-body: #000000;
    --bg-surface: rgba(255, 255, 255, 0.04);
    --text-main: #f5f5f5;
    --text-muted: #c0c0c0;

    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.18);

    --glass-bg: rgba(0, 0, 0, 0.72);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-blur: blur(20px);

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.6);
    --shadow-md: 0 4px 24px rgb(0 0 0 / 0.7);
    --shadow-lg: 0 10px 40px rgb(0 0 0 / 0.8);

    --font-heading: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    --nav-height: 70px;
}

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

html {
    scroll-behavior: smooth;
}

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;
    padding-top: var(--nav-height);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Everything sits above the clouds */
nav, header, main, section, footer { position: relative; z-index: 1; }


h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

/* Layout Container */
.container {
    width: 100%;
    max-width: 1280px;
    /* Wider container */
    margin: 0 auto;
    padding: 0 2rem;
}

/* Sticky Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 1.5rem;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
    text-shadow: 0 0 20px rgba(255,255,255,0.2);
    flex-shrink: 0;
}

/* Responsive logo text */
.logo-mid,
.logo-short { display: none; }

@media (max-width: 720px) {
    .logo-full  { display: none; }
    .logo-mid   { display: inline; }
}

@media (max-width: 420px) {
    .logo-mid   { display: none; }
    .logo-short { display: inline; }
    .logo       { padding-right: 0.75rem; }
    .nav-links  { gap: 1.25rem; }
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-link:hover {
    color: var(--primary);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

/* Hero Section */
.hero-section {
    padding: 6rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Hero glow bloom */
.hero-section::before {
    content: '';
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 80vh;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.07) 0%, rgba(255,255,255,0.02) 40%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(40px);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    letter-spacing: -0.03em;
    text-shadow:
        0 0 40px rgba(255, 255, 255, 0.25),
        0 0 80px rgba(255, 255, 255, 0.1);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.btn-primary {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 4px 20px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(255, 255, 255, 0.06);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(255, 255, 255, 0.12);
    color: var(--text-main);
}

/* Projects Section */
.projects-section {
    padding: 4rem 0 6rem;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1rem;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px 12px 0 0;
    padding: 1rem 1.5rem;
}

.section-title {
    font-size: 2rem;
    color: var(--text-main);
}

.section-label {
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    /* Wider cards */
    gap: 2.5rem;
    /* More breathing room */
}

/* Project Card */
.project-card {
    background: rgba(0, 0, 0, 0.72);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    top: 0;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.04),
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(255, 255, 255, 0.03);
}

.project-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 20px 60px rgba(0, 0, 0, 0.7),
        0 0 80px rgba(255, 255, 255, 0.08);
}

.card-header {
    padding: 1.5rem 1.5rem 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.folder-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.card-content {
    padding: 0 1.5rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.project-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.project-meta {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: var(--text-muted);
    border-radius: 6px;
    font-weight: 500;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Card Links - Buttons */
.card-actions {
    display: flex;
    gap: 1rem;
    width: 100%;
    margin-top: 0.5rem;
}

.btn-card {
    flex: 1;
    text-align: center;
    padding: 0.6rem 0;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-card.outline {
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-card.outline:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.07);
}

.btn-card.fill {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 0 24px rgba(255, 255, 255, 0.06);
}

.btn-card.fill:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 0 36px rgba(255, 255, 255, 0.1);
}

/* Footer */
footer {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    margin-top: 2.5rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.social-link:hover {
    color: var(--primary);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

/* Mouse Glow Orb */
#mouse-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 750px;
    height: 750px;
    margin-left: -375px;
    margin-top: -375px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(24px);
    will-change: transform;
}

/* Animations & Utilities */
.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading,
.error-message {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    width: 100%;
}

/* ─── Shared: fade-up scroll animation ──────────────────── */
.fade-up {
    opacity: 0;
    transform: translateY(48px) scale(0.97);
    filter: blur(6px);
    transition:
        opacity  1.1s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1.1s cubic-bezier(0.16, 1, 0.3, 1),
        filter   0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Stagger delay utilities */
.delay-1 { transition-delay: 0.12s !important; }
.delay-2 { transition-delay: 0.24s !important; }
.delay-3 { transition-delay: 0.36s !important; }
.delay-4 { transition-delay: 0.48s !important; }
.delay-5 { transition-delay: 0.60s !important; }

/* ─── Background clouds ──────────────────────────────────── */
.bg-clouds {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.cloud {
    position: absolute;
    border-radius: 50%;
    will-change: transform;
}

@keyframes cloudRight {
    0%   { transform: translateX(0);       opacity: 0; }
    6%   { opacity: 1; }
    94%  { opacity: 1; }
    100% { transform: translateX(120vw);   opacity: 0; }
}

@keyframes cloudLeft {
    0%   { transform: translateX(0);       opacity: 0; }
    6%   { opacity: 1; }
    94%  { opacity: 1; }
    100% { transform: translateX(-120vw);  opacity: 0; }
}

/* ─── Shared: glass panel ────────────────────────────────── */
.glass-panel {
    background: rgba(0, 0, 0, 0.72);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.1),
        0 8px 32px rgba(0,0,0,0.5);
    padding: 2rem;
}

/* ─── Shared: spinner ────────────────────────────────────── */
.spinner {
    width: 28px;
    height: 28px;
    border: 2px solid rgba(255,255,255,0.08);
    border-top-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Shared: active nav ─────────────────────────────────── */
.nav-link.active { color: var(--primary); }

/* ─── Shared: page hero (non-fullscreen pages) ───────────── */
.page-hero {
    padding: 5rem 0 3rem;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 60vw;
    height: 60vh;
    background: radial-gradient(ellipse, rgba(255,255,255,0.05) 0%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
}
.page-hero .container {
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 2.5rem 3rem;
}

/* ─── Shared: hero label ─────────────────────────────────── */
.hero-label {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* ─── Shared: btn-ghost ──────────────────────────────────── */
.btn-ghost {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 9999px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover {
    border-color: rgba(255,255,255,0.3);
    color: var(--text-main);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 0 30px rgba(255,255,255,0.06);
}

/* ─── Shared: skills ─────────────────────────────────────── */
.skills-list { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.skill-tag {
    font-size: 0.8rem;
    padding: 0.3rem 0.85rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09);
    color: var(--text-muted);
    border-radius: 6px;
    font-weight: 500;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: all 0.2s;
}
.skill-tag:hover {
    border-color: rgba(255,255,255,0.22);
    color: var(--text-main);
    box-shadow: 0 0 16px rgba(255,255,255,0.06);
}

/* ─── Homepage ───────────────────────────────────────────── */
.hero-fullscreen {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}
.hero-fullscreen::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 70vh;
    background: radial-gradient(ellipse, rgba(255,255,255,0.06) 0%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
    padding-top: 3.5rem;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 24px;
    padding: 3.5rem 3rem 3rem;
}
.hero-title {
    font-size: clamp(2.6rem, 6vw, 5rem);
    margin-bottom: 1.5rem;
    line-height: 1.05;
    letter-spacing: -0.03em;
    text-shadow: 0 0 60px rgba(255,255,255,0.18), 0 0 120px rgba(255,255,255,0.06);
}
.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.scroll-hint {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 4rem;
    padding-left: 2rem;
}
.scroll-line {
    width: 48px;
    height: 1px;
    background: linear-gradient(to right, rgba(255,255,255,0.3), transparent);
}

/* Preview cards */
.preview-section { padding: 5rem 0; }

/* Solo preview stops — each card is its own full-height section */
.preview-solo {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
}

.preview-solo > .container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.preview-solo-card {
    width: 100%;
    max-width: 740px;
    background: rgba(0, 0, 0, 0.72);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 4rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.1),
        0 8px 40px rgba(0,0,0,0.6);
}

.preview-big-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 800;
    color: rgba(255,255,255,0.06);
    line-height: 1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.05em;
}

.preview-solo-card h3 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.preview-solo-card p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.85;
    max-width: 540px;
    margin-bottom: 0.25rem;
}
.preview-detail {
    margin-top: 1.25rem !important;
    margin-bottom: 0.5rem !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45) !important;
}
.preview-class-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.preview-class-list li {
    font-size: 1rem;
    color: var(--text-main);
    padding-left: 1.1rem;
    position: relative;
    line-height: 1.5;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.65rem;
}
.preview-class-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: rgba(255,255,255,0.35);
}
.preview-class-name {
    color: var(--text-main);
}
.preview-class-name::after {
    content: '·';
    margin-left: 0.65rem;
    color: rgba(255,255,255,0.35);
}
.preview-class-list a,
.preview-class-project {
    color: rgba(255,255,255,0.72);
    text-decoration: none;
    transition: color 0.2s ease;
}
.preview-class-list a:hover,
.preview-class-project:hover {
    color: var(--primary);
}

/* snap-section is just a JS marker class — no layout overrides */
.preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.preview-card {
    background: rgba(0, 0, 0, 0.72);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 8px 32px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}
.preview-card:hover {
    border-color: rgba(255,255,255,0.15);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 16px 48px rgba(0,0,0,0.6), 0 0 60px rgba(255,255,255,0.05);
    transform: translateY(-4px);
}
.preview-number {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-family: var(--font-body);
}
.preview-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.preview-card p  { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

/* CTA section */
.cta-section {
    padding: 2.5rem 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cta-content {
    background: rgba(0, 0, 0, 0.72);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 0 80px rgba(255,255,255,0.04);
    padding: 5.5rem 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}
.cta-content h2 { font-size: 2rem; letter-spacing: -0.02em; }

/* ─── About Page ─────────────────────────────────────────── */
.photo-section { padding: 2rem 0 1rem; }

.photo-strip-wrapper { overflow: hidden; }

@keyframes photo-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.photo-strip {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 0;
    width: max-content;
    animation: photo-marquee linear infinite;
}

.photo-card {
    flex-shrink: 0;
    height: 280px;
    width: auto;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 8px 32px rgba(0,0,0,0.6);
    position: relative;
}

/* Same height, natural width — no cropping */
.photo-card img {
    height: 100%;
    width: auto;
    display: block;
}

.photo-placeholder {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-add-label {
    color: rgba(255,255,255,0.2);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 1rem 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.55) 55%, transparent 100%);
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.95);
    text-align: center;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    line-height: 1.4;
}

.photo-hint {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    margin-top: 0.5rem;
    opacity: 0.6;
}

.bio-section { padding: 5rem 0; }
.bio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}
.bio-block {
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 2.5rem;
}
.bio-block h2 { font-size: 2rem; margin: 0.5rem 0 1.5rem; letter-spacing: -0.02em; }
.bio-block p  { color: var(--text-muted); line-height: 1.85; margin-bottom: 1.1rem; font-size: 1.05rem; }
.bio-eyebrow {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.skills-section { padding: 0 0 2rem; }
.skills-panel-full {
    background: rgba(0, 0, 0, 0.72);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 8px 32px rgba(0,0,0,0.5);
}
.skills-panel-full h2 { font-size: 1.6rem; margin: 0.5rem 0 0; letter-spacing: -0.02em; }

/* ─── Projects Page ──────────────────────────────────────── */
.projects-page-main { padding: 2rem 0 6rem; }

/* ─── Project Detail Page ────────────────────────────────── */
.back-link {
    display: inline-block;
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: all 0.2s;
}
.back-link:hover { color: var(--text-main); }
.back-link.fade-up { opacity: 0; transform: translateY(28px); }
.back-link.fade-up.visible { opacity: 1; transform: translateY(0); }

.project-detail-page { padding: 2rem 0 6rem; }

.detail-loading {
    text-align: center;
    padding: 6rem 2rem;
    color: var(--text-muted);
}

.detail-hero {
    padding: 3rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.detail-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 70% at 50% 0%, rgba(255,255,255,0.04) 0%, transparent 70%);
    filter: blur(30px);
    pointer-events: none;
}
.detail-hero .container { position: relative; z-index: 1; }

.detail-meta-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.detail-badge {
    font-size: 0.78rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 999px;
    color: var(--text-muted);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.detail-date { font-size: 0.78rem; color: var(--text-muted); }

.project-badge {
    display: inline-block;
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 200, 80, 0.18), rgba(255, 140, 50, 0.18));
    border: 1px solid rgba(255, 190, 80, 0.35);
    color: #f5c842;
}
.project-badge.badge-blue {
    background: linear-gradient(135deg, rgba(80, 160, 255, 0.18), rgba(50, 100, 255, 0.18));
    border: 1px solid rgba(80, 160, 255, 0.35);
    color: #6ab4ff;
}
.detail-hero-badge {
    margin-bottom: 0.75rem;
    font-size: 0.78rem;
}

.detail-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    text-shadow: 0 0 40px rgba(255,255,255,0.15);
}
.detail-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 680px;
    line-height: 1.75;
    margin-bottom: 2rem;
}
.detail-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.detail-body { max-width: 860px; }
.detail-section { margin-bottom: 3rem; }
.detail-section-title {
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--text-muted);
    font-weight: 600;
}
.detail-writeup, .detail-screenshots { min-height: 200px; }
.detail-placeholder {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
    opacity: 0.6;
}
.detail-placeholder code {
    background: rgba(255,255,255,0.07);
    border-radius: 4px;
    padding: 0.1rem 0.4rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.detail-error {
    padding: 3rem;
    color: var(--text-muted);
    text-align: center;
}

/* ─── Contact Page ───────────────────────────────────────── */
.contact-page-main { padding: 2rem 0 6rem; }

.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2.5rem;
    align-items: start;
}

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.5rem; }

.form-group label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); opacity: 0.45; }

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(255,255,255,0.25);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.05);
}

.contact-submit {
    align-self: flex-start;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.form-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    opacity: 0.5;
    margin-top: 0.25rem;
}

.contact-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

.contact-info-card h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.contact-info-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.75;
}

.contact-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-links-list li { display: flex; flex-direction: column; gap: 0.2rem; }

.contact-link-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    opacity: 0.6;
}

.contact-link-val {
    font-size: 0.9rem;
    color: var(--text-main);
    transition: opacity 0.2s;
}

.contact-link-val:hover { opacity: 0.6; }

/* ─── Cloud color picker ─────────────────────────────────── */
#cloud-picker {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 500;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.6rem;
}

#cloud-picker-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 4px 16px rgba(0,0,0,0.5);
}

#cloud-picker-toggle:hover {
    color: var(--text-main);
    border-color: rgba(255,255,255,0.3);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 0 20px rgba(255,255,255,0.08);
}

#cloud-picker-panel {
    background: rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 8px 32px rgba(0,0,0,0.6);
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 180px;
}

#cloud-picker.open #cloud-picker-panel { display: flex; }

.picker-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.picker-presets {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.picker-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s;
}

.picker-swatch:hover { transform: scale(1.15); }

.picker-swatch.active {
    border-color: white;
    box-shadow: 0 0 8px rgba(255,255,255,0.4);
}

#picker-custom {
    width: 100%;
    height: 28px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    background: rgba(255,255,255,0.06);
    cursor: pointer;
    padding: 0;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
    .preview-grid        { grid-template-columns: 1fr; }
    .bio-grid            { grid-template-columns: 1fr; gap: 3rem; }
    .cta-content         { flex-direction: column; text-align: center; padding: 2.5rem; }
    .cta-content h2      { font-size: 1.6rem; }
    .contact-page-grid   { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .hero-title   { font-size: 2.4rem; }
    .hero-actions { flex-direction: column; }
    .detail-title { font-size: 2rem; }
    .form-row     { grid-template-columns: 1fr; }
}
