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

:root {
    --glass-bg: rgba(255, 255, 255, 0.18);
    --glass-bg-strong: rgba(255, 255, 255, 0.28);
    --glass-border: rgba(255, 255, 255, 0.22);
    --glass-highlight: rgba(255, 255, 255, 0.45);
    --glass-shadow: rgba(0, 0, 0, 0.06);
    --glass-blur: blur(40px) saturate(1.8);
    --text: #1a1a2e;
    --text-muted: rgba(30, 30, 60, 0.6);
    --text-light: rgba(30, 30, 60, 0.4);
    --accent: #007AFF;
    --accent-glow: rgba(0, 122, 255, 0.3);
    --radius: 24px;
    --radius-sm: 16px;
    --radius-xs: 10px;
    --max-w: 1200px;
    --nav-h: 60px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 56px); }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Noto Sans SC', sans-serif;
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
}

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ===== Animated Background ===== */
.bg-canvas {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    background: linear-gradient(135deg, #dce5f4 0%, #c8d8f0 25%, #e0ccf0 50%, #c8d8f0 75%, #d5e8f0 100%);
    background-size: 400% 400%;
    animation: bgShift 25s ease infinite;
}

@keyframes bgShift {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 50% 0%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 100%; }
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
    animation: orbDrift 22s ease-in-out infinite;
}

.bg-orb:nth-child(1) {
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.35), transparent 70%);
    top: -8%; left: -5%;
    animation-duration: 24s;
}

.bg-orb:nth-child(2) {
    width: 580px; height: 580px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.3), transparent 70%);
    top: 35%; right: -12%;
    animation-duration: 28s;
    animation-delay: -6s;
}

.bg-orb:nth-child(3) {
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.25), transparent 70%);
    bottom: -5%; left: 25%;
    animation-duration: 26s;
    animation-delay: -12s;
}

.bg-orb:nth-child(4) {
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(244, 63, 94, 0.2), transparent 70%);
    top: 15%; left: 55%;
    animation-duration: 30s;
    animation-delay: -18s;
}

@keyframes orbDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -35px) scale(1.08); }
    50% { transform: translate(-25px, 45px) scale(0.95); }
    75% { transform: translate(35px, 15px) scale(1.04); }
}

/* Particles */
.particles {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1; pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px; height: 3px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ===== Content Layer ===== */
.content-layer {
    position: relative;
    z-index: 2;
}

/* ===== Glass Mixin Utility ===== */
.glass {
    background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.10) 50%, rgba(255,255,255,0.15) 100%);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px var(--glass-shadow), inset 0 1px 0 var(--glass-highlight);
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(40px) saturate(1.8);
    -webkit-backdrop-filter: blur(40px) saturate(1.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    transition: box-shadow 0.3s, background 0.3s;
}
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04);
}

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

.nav-brand {
    font-size: 1.2rem; font-weight: 800; color: var(--text);
    text-decoration: none; letter-spacing: -0.3px;
}

.nav-links { display: flex; gap: 3px; list-style: none; }

.nav-links a {
    display: block; padding: 7px 14px; color: var(--text-muted);
    text-decoration: none; font-size: 0.88rem; font-weight: 500;
    border-radius: 12px; transition: all 0.3s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.25); }
.nav-links a.active { color: var(--accent); background: rgba(0,122,255,0.1); }

.nav-toggle {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    background: none; border: none; cursor: pointer;
    width: 38px; height: 38px; padding: 8px; border-radius: 12px;
}
.nav-toggle:hover { background: rgba(255,255,255,0.25); }
.nav-toggle span {
    display: block; width: 100%; height: 2px; background: var(--text);
    border-radius: 1px; transition: all 0.3s; transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
    position: relative; z-index: 2;
    padding: calc(var(--nav-h) + 72px) 0 56px;
    text-align: center;
}

.hero-avatar {
    width: 100px; height: 100px; border-radius: 30px;
    margin: 0 auto 28px; display: flex; align-items: center; justify-content: center;
    font-size: 2.6rem; font-weight: 800;
    color: var(--accent);
    background: linear-gradient(135deg, rgba(0,122,255,0.2), rgba(168,85,247,0.2));
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1.5px solid rgba(255,255,255,0.35);
    box-shadow: 0 12px 40px rgba(0,122,255,0.15), inset 0 1px 0 rgba(255,255,255,0.5);
    position: relative; overflow: hidden;
    animation: avatarFloat 6s ease-in-out infinite;
}

.hero-avatar::after {
    content: '';
    position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
    animation: sheen 5s ease-in-out infinite;
}

@keyframes avatarFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes sheen {
    0%, 100% { transform: translateX(-100%) rotate(45deg); }
    50% { transform: translateX(100%) rotate(45deg); }
}

.hero-title {
    font-size: 3rem; font-weight: 800; letter-spacing: -1.5px;
    line-height: 1.2; margin-bottom: 14px;
    background: linear-gradient(135deg, #1a1a2e 0%, #007AFF 50%, #AF52DE 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientText 6s ease-in-out infinite;
}

@keyframes gradientText {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.hero-subtitle {
    font-size: 1.05rem; color: var(--text-muted); line-height: 1.8;
    margin-bottom: 32px; max-width: 460px; margin-left: auto; margin-right: auto;
}

.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 12px 26px; border-radius: var(--radius-sm);
    font-size: 0.93rem; font-weight: 600; text-decoration: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer; border: none; font-family: inherit;
}
.btn-primary {
    background: linear-gradient(135deg, #007AFF, #5856D6);
    color: #fff; box-shadow: 0 6px 24px var(--accent-glow);
}
.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 36px rgba(0,122,255,0.4);
}
.btn-outline {
    background: rgba(255,255,255,0.2);
    color: var(--text);
    border: 1.5px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.35);
    transform: translateY(-2px);
}

/* ===== Section Common ===== */
.section { position: relative; z-index: 2; padding: 64px 0; }

.section-header { text-align: center; margin-bottom: 40px; }

.section-badge {
    display: inline-block; font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--accent);
    background: rgba(0,122,255,0.1);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0,122,255,0.15);
    padding: 4px 14px; border-radius: 20px; margin-bottom: 10px;
}

.section-header h2 {
    font-size: 1.9rem; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 6px;
}
.section-header p { color: var(--text-muted); font-size: 0.95rem; }

/* ===== Year Navigation ===== */
.year-nav {
    position: sticky; top: var(--nav-h); z-index: 100;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px) saturate(1.6);
    -webkit-backdrop-filter: blur(30px) saturate(1.6);
    border-bottom: 1px solid rgba(255,255,255,0.12);
    padding: 10px 0;
    display: flex; justify-content: center; gap: 6px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.year-nav::-webkit-scrollbar { display: none; }

.year-pill {
    padding: 6px 18px; border-radius: 14px; font-size: 0.85rem;
    font-weight: 600; color: var(--text-muted); background: transparent;
    border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
    transition: all 0.3s; font-family: inherit;
}
.year-pill:hover { color: var(--text); background: rgba(255,255,255,0.22); }
.year-pill.active {
    color: var(--accent);
    background: rgba(0,122,255,0.12);
    border-color: rgba(0,122,255,0.25);
    box-shadow: 0 2px 12px rgba(0,122,255,0.1);
}

/* ===== Year Section ===== */
.year-section { padding: 48px 0 24px; }

.year-header {
    display: flex; align-items: center; gap: 14px; margin-bottom: 28px;
}

.year-number { font-size: 2.4rem; font-weight: 800; letter-spacing: -1px; }

.year-count {
    font-size: 0.78rem; font-weight: 600; color: var(--text-light);
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.18);
    padding: 3px 10px; border-radius: 10px;
}

.year-line { flex: 1; height: 1px; background: rgba(255,255,255,0.2); }

/* ===== Diary Card Grid ===== */
.diary-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}

.diary-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.08));
    backdrop-filter: blur(40px) saturate(1.8);
    -webkit-backdrop-filter: blur(40px) saturate(1.8);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: var(--radius);
    overflow: hidden; cursor: pointer;
    box-shadow: 0 8px 32px rgba(0,0,0,0.05), inset 0 1px 0 rgba(255,255,255,0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.diary-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 100%);
    opacity: 0; transition: opacity 0.4s; pointer-events: none; z-index: 1;
}

.diary-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 16px 48px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.5);
}
.diary-card:hover::before { opacity: 1; }

/* Card Media */
.card-media { position: relative; overflow: hidden; }

.card-media img {
    width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.diary-card:hover .card-media img { transform: scale(1.05); }

.card-media .media-badge {
    position: absolute; top: 10px; right: 10px;
    padding: 4px 10px; border-radius: 10px;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    color: #fff; font-size: 0.7rem; font-weight: 600;
}

.card-video-ph {
    width: 100%; aspect-ratio: 4/3;
    background: linear-gradient(135deg, #1e293b, #334155);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; color: #fff;
}
.card-video-ph .play-icon {
    width: 56px; height: 56px; border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; margin-bottom: 8px;
    transition: all 0.3s;
}
.diary-card:hover .play-icon {
    background: rgba(255,255,255,0.25);
    transform: scale(1.1);
}
.card-video-ph .video-label { font-size: 0.75rem; color: rgba(255,255,255,0.55); }

/* Card Body */
.card-body { padding: 14px 16px 16px; }

.card-date { font-size: 0.76rem; color: var(--text-light); font-weight: 500; margin-bottom: 4px; }

.card-title {
    font-size: 0.98rem; font-weight: 700; margin-bottom: 6px;
    line-height: 1.4; letter-spacing: -0.2px;
}

.card-text {
    font-size: 0.84rem; color: var(--text-muted); line-height: 1.65;
    display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden;
}

/* ===== Lightbox ===== */
.lightbox {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    display: none; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 24px; opacity: 0; transition: opacity 0.3s;
}
.lightbox.show { display: flex; opacity: 1; }

.lightbox-close {
    position: absolute; top: 16px; right: 16px;
    width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    color: #fff; font-size: 1.2rem; cursor: pointer; transition: all 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

.lightbox-media-wrap {
    max-width: 90vw; max-height: 65vh;
    display: flex; align-items: center; justify-content: center;
}
.lightbox-media-wrap img {
    max-width: 100%; max-height: 65vh; border-radius: 12px; object-fit: contain;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.lightbox-media-wrap video {
    max-width: 100%; max-height: 65vh; border-radius: 12px; outline: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.lightbox-nav { display: flex; gap: 8px; margin-top: 12px; }

.lightbox-nav button {
    width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    color: #fff; font-size: 1.1rem; cursor: pointer; transition: all 0.2s;
}
.lightbox-nav button:hover { background: rgba(255,255,255,0.2); }

.lightbox-counter {
    color: rgba(255,255,255,0.5); font-size: 0.8rem;
    display: flex; align-items: center; padding: 0 12px;
}

.lightbox-info { text-align: center; margin-top: 16px; color: #fff; max-width: 600px; }
.lightbox-date { font-size: 0.78rem; color: rgba(255,255,255,0.4); margin-bottom: 6px; }
.lightbox-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.lightbox-text {
    font-size: 0.88rem; color: rgba(255,255,255,0.6); line-height: 1.8;
    max-height: 120px; overflow-y: auto;
}
.lightbox-text::-webkit-scrollbar { width: 3px; }
.lightbox-text::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 2px; }

/* ===== Apps ===== */
.apps-section { padding-top: 84px; padding-bottom: 84px; }

.apps-showcase {
    position: relative;
    padding: 36px;
    border-radius: 34px;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.28), transparent 30%),
        linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.08));
    backdrop-filter: blur(40px) saturate(1.8);
    -webkit-backdrop-filter: blur(40px) saturate(1.8);
    border: 1px solid rgba(255,255,255,0.24);
    box-shadow: 0 18px 48px rgba(31, 41, 55, 0.08), inset 0 1px 0 rgba(255,255,255,0.42);
    overflow: hidden;
}

.apps-showcase::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.08), transparent 40%),
        radial-gradient(circle at 85% 20%, rgba(0,122,255,0.08), transparent 18%);
    pointer-events: none;
}

.apps-showcase-head {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.apps-copy { max-width: 640px; }

.apps-heading-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.apps-kicker {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 700;
}

.apps-copy h2 {
    font-size: 2.2rem;
    line-height: 1.15;
    letter-spacing: -0.04em;
    margin-bottom: 10px;
}

.apps-copy p {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 560px;
}

.apps-overview-btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 124px;
    padding: 12px 18px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 600;
    background: rgba(255,255,255,0.34);
    border: 1px solid rgba(255,255,255,0.45);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.apps-overview-btn:hover {
    background: rgba(255,255,255,0.44);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(31, 41, 55, 0.08), inset 0 1px 0 rgba(255,255,255,0.58);
}

.apps-subnote {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    padding: 14px 16px;
    border-radius: 20px;
    background: rgba(255,255,255,0.22);
    border: 1px solid rgba(255,255,255,0.18);
}

.apps-subnote-label {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(0,122,255,0.1);
    white-space: nowrap;
}

.apps-subnote p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.apps-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.app-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 320px;
    padding: 22px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.34), rgba(255,255,255,0.16));
    border: 1px solid rgba(255,255,255,0.28);
    box-shadow: 0 14px 36px rgba(31, 41, 55, 0.07), inset 0 1px 0 rgba(255,255,255,0.42);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.app-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid transparent;
    transition: border-color 0.35s ease, opacity 0.35s ease;
    opacity: 0;
    pointer-events: none;
}

.app-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 48px rgba(31, 41, 55, 0.1), inset 0 1px 0 rgba(255,255,255,0.55);
    border-color: rgba(255,255,255,0.4);
}

.app-card:hover::after {
    border-color: rgba(0,122,255,0.18);
    opacity: 1;
}

.app-card-soon {
    background: linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.08));
    border-style: dashed;
    border-color: rgba(255,255,255,0.22);
}

.app-card-soon .app-icon-wrap,
.app-card-soon .app-status-badge,
.app-card-soon .app-code {
    opacity: 0.82;
}

.app-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.app-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    color: #0f5fd3;
    background: rgba(0,122,255,0.1);
    border: 1px solid rgba(0,122,255,0.12);
}

.app-code {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-light);
}

.app-icon-wrap {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    background: linear-gradient(135deg, rgba(255,255,255,0.65), rgba(255,255,255,0.2));
    border: 1px solid rgba(255,255,255,0.38);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.58);
}

.app-icon {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--text);
}

.app-content { margin-bottom: 18px; }

.app-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.app-card .app-desc {
    font-size: 0.92rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.app-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 18px;
}

.app-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(26, 26, 46, 0.76);
    background: rgba(255,255,255,0.34);
    border: 1px solid rgba(255,255,255,0.24);
}

.app-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.app-meta {
    font-size: 0.77rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-light);
}

.app-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #0b74ff, #5b5bd6);
    box-shadow: 0 10px 20px rgba(0,122,255,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, gap 0.3s ease;
}

.app-cta:hover {
    transform: translateY(-1px);
    gap: 10px;
    box-shadow: 0 14px 26px rgba(0,122,255,0.26);
}

.app-cta-arrow { transition: transform 0.3s ease; }
.app-card:hover .app-cta-arrow { transform: translateX(4px); }

.app-cta.is-disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 700;
    color: rgba(26, 26, 46, 0.45);
    background: rgba(255,255,255,0.24);
    border: 1px solid rgba(255,255,255,0.2);
    cursor: not-allowed;
}

.apps-footer-note {
    position: relative;
    margin-top: 24px;
    text-align: center;
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* ===== About ===== */
.about-content { max-width: 640px; margin: 0 auto; }

.about-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.08));
    backdrop-filter: blur(40px) saturate(1.8);
    -webkit-backdrop-filter: blur(40px) saturate(1.8);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.05), inset 0 1px 0 rgba(255,255,255,0.4);
}
.about-card p {
    font-size: 0.95rem; color: var(--text-muted); line-height: 1.9; margin-bottom: 10px;
}
.about-card p strong { color: var(--text); }

.about-card ul {
    list-style: none; display: grid;
    grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px;
}
.about-card li {
    font-size: 0.88rem; color: var(--text-muted);
    padding: 8px 12px; border-radius: var(--radius-xs);
    background: rgba(255,255,255,0.15);
    display: flex; align-items: center; gap: 8px;
}
.about-card li::before {
    content: ''; width: 6px; height: 6px;
    border-radius: 50%; background: var(--accent); flex-shrink: 0;
}

/* ===== Contact ===== */
.contact-content { display: flex; justify-content: center; }

.contact-card {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 32px;
    background: linear-gradient(135deg, rgba(255,255,255,0.22), rgba(255,255,255,0.08));
    backdrop-filter: blur(40px) saturate(1.8);
    -webkit-backdrop-filter: blur(40px) saturate(1.8);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: var(--radius);
    text-decoration: none; color: var(--text);
    box-shadow: 0 8px 32px rgba(0,0,0,0.05), inset 0 1px 0 rgba(255,255,255,0.4);
    transition: all 0.3s;
}
.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.contact-icon {
    width: 44px; height: 44px; border-radius: 14px;
    background: rgba(0,122,255,0.12);
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}

.contact-label {
    display: block; font-size: 0.72rem; color: var(--text-light);
    font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
}
.contact-value { font-size: 0.9rem; font-weight: 600; }

/* ===== Footer ===== */
.footer {
    position: relative; z-index: 2;
    background: rgba(20, 20, 40, 0.25);
    backdrop-filter: blur(40px) saturate(1.5);
    -webkit-backdrop-filter: blur(40px) saturate(1.5);
    border-top: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6);
    padding: 36px 0; text-align: center;
}

.footer-nav {
    display: flex; justify-content: center; gap: 20px; margin-bottom: 16px;
}
.footer-nav a {
    color: rgba(255,255,255,0.4); text-decoration: none;
    font-size: 0.82rem; font-weight: 500; transition: color 0.2s;
}
.footer-nav a:hover { color: #fff; }
.footer p { font-size: 0.8rem; }

/* ===== Reveal Animation ===== */
.reveal {
    opacity: 0; transform: translateY(24px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .diary-grid { grid-template-columns: repeat(2, 1fr); }
    .apps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .apps-showcase-head { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: absolute; top: var(--nav-h); left: 0; right: 0;
        flex-direction: column;
        background: rgba(214, 224, 242, 0.95);
        backdrop-filter: blur(40px) saturate(1.8);
        -webkit-backdrop-filter: blur(40px) saturate(1.8);
        border-bottom: 1px solid rgba(255,255,255,0.35);
        padding: 6px 14px; display: none;
        box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 11px 14px; }

    .bg-orb:nth-child(1) { width: 300px; height: 300px; }
    .bg-orb:nth-child(2) { width: 350px; height: 350px; }
    .bg-orb:nth-child(3) { width: 250px; height: 250px; }
    .bg-orb:nth-child(4) { width: 220px; height: 220px; }

    .section { padding: 48px 0; }
    .section-header { margin-bottom: 28px; }
    .section-header h2 { font-size: 1.5rem; }

    .hero { padding: calc(var(--nav-h) + 48px) 0 36px; }
    .hero-title { font-size: 2.2rem; }

    .diary-grid { grid-template-columns: 1fr; gap: 14px; }
    .apps-section { padding-top: 56px; padding-bottom: 56px; }
    .apps-showcase { padding: 24px 18px; border-radius: 28px; }
    .apps-copy h2 { font-size: 1.7rem; }
    .apps-subnote {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 22px;
    }
    .apps-grid { grid-template-columns: 1fr; gap: 16px; }
    .app-card { min-height: auto; padding: 20px; }
    .app-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    .apps-overview-btn { width: 100%; }
    .about-card { padding: 24px; }
    .about-card ul { grid-template-columns: 1fr; }
    .year-number { font-size: 1.8rem; }
    .year-nav { justify-content: flex-start; padding: 10px 16px; gap: 4px; }
    .year-pill { padding: 5px 14px; font-size: 0.82rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-title { font-size: 1.85rem; }
    .hero-avatar { width: 80px; height: 80px; font-size: 2rem; border-radius: 24px; }
    .btn { padding: 10px 22px; font-size: 0.88rem; }
    .card-body { padding: 12px 14px 14px; }
    .apps-heading-line { gap: 8px; }
    .apps-kicker,
    .app-meta { letter-spacing: 0.08em; }
}

/* ===== BGM Button ===== */
.bgm-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, rgba(255,255,255,0.22), rgba(255,255,255,0.08));
    backdrop-filter: blur(24px) saturate(1.6);
    -webkit-backdrop-filter: blur(24px) saturate(1.6);
    color: var(--text);
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255,255,255,0.4);
}
.bgm-btn:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.35), rgba(255,255,255,0.15));
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(0, 122, 255, 0.15), inset 0 1px 0 rgba(255,255,255,0.5);
}

.bgm-disc {
    display: inline-block;
    transition: transform 0.3s;
}
.bgm-btn.playing .bgm-disc {
    animation: bgmSpin 2.5s linear infinite;
}
.bgm-btn.playing {
    border-color: rgba(0, 122, 255, 0.35);
    box-shadow: 0 6px 24px rgba(0, 122, 255, 0.2), inset 0 1px 0 rgba(255,255,255,0.4);
}

@keyframes bgmSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== Snow Canvas ===== */
#snowCanvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 2500;
    pointer-events: none;
}

/* ===== Cursor Effect Canvas ===== */
#cursorCanvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 2501;
    pointer-events: none;
}

#fireworksCanvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 2502;
    pointer-events: none;
}
