/* Hero Section */
.hero {
    height: 300px;
    background: linear-gradient(180deg, #0a0a1a 0%, #0d1b2a 40%, #1b263b 70%, #1b3a4b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
}

/* Aurora Background */
.aurora-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.stars {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 20px 30px, #fff, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.9), transparent),
        radial-gradient(1px 1px at 160px 120px, #fff, transparent),
        radial-gradient(2px 2px at 200px 50px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 250px 35px, #fff, transparent),
        radial-gradient(2px 2px at 300px 90px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 350px 25px, #fff, transparent),
        radial-gradient(2px 2px at 400px 110px, rgba(255,255,255,0.9), transparent),
        radial-gradient(1px 1px at 450px 45px, #fff, transparent),
        radial-gradient(2px 2px at 500px 130px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 550px 70px, #fff, transparent),
        radial-gradient(2px 2px at 600px 20px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 650px 100px, #fff, transparent),
        radial-gradient(2px 2px at 700px 60px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 750px 140px, #fff, transparent),
        radial-gradient(2px 2px at 800px 85px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 850px 55px, #fff, transparent),
        radial-gradient(2px 2px at 900px 95px, rgba(255,255,255,0.8), transparent);
    animation: twinkle 4s ease-in-out infinite alternate;
}

.aurora {
    position: absolute;
    width: 200%;
    height: 100%;
    left: -50%;
    filter: blur(50px);
    opacity: 0.7;
    mix-blend-mode: screen;
}

.aurora-1 {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 119, 182, 0.5) 20%, rgba(0, 150, 199, 0.6) 40%, rgba(72, 202, 228, 0.3) 60%, transparent 80%);
    animation: aurora-wave 8s ease-in-out infinite;
    top: -20%;
}

.aurora-2 {
    background: linear-gradient(180deg, transparent 0%, rgba(124, 58, 237, 0.4) 25%, rgba(139, 92, 246, 0.5) 50%, rgba(91, 33, 182, 0.3) 70%, transparent 85%);
    animation: aurora-wave 12s ease-in-out infinite reverse;
    top: -10%;
    animation-delay: -4s;
}

.aurora-3 {
    background: linear-gradient(180deg, transparent 0%, rgba(16, 185, 129, 0.35) 30%, rgba(52, 211, 153, 0.4) 50%, transparent 70%);
    animation: aurora-wave 10s ease-in-out infinite;
    top: -15%;
    animation-delay: -2s;
}

@keyframes aurora-wave {
    0%, 100% { transform: translateX(-15%) skewX(-5deg) scaleY(1); }
    25% { transform: translateX(5%) skewX(3deg) scaleY(1.15); }
    50% { transform: translateX(15%) skewX(-3deg) scaleY(0.9); }
    75% { transform: translateX(-5%) skewX(5deg) scaleY(1.1); }
}

.shooting-star {
    position: absolute;
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, #fff, transparent);
    border-radius: var(--radius-full);
    top: 15%;
    left: 70%;
    animation: shoot 5s ease-out infinite;
    opacity: 0;
}

.shooting-star.s2 { top: 35%; left: 85%; animation-delay: 2.5s; width: 80px; }
.shooting-star.s3 { top: 55%; left: 50%; animation-delay: 4s; width: 100px; }

@keyframes shoot {
    0% { transform: translateX(0) translateY(0) rotate(-45deg); opacity: 1; }
    70% { opacity: 1; }
    100% { transform: translateX(-350px) translateY(350px) rotate(-45deg); opacity: 0; }
}

.moon {
    position: absolute;
    width: 45px;
    height: 45px;
    background: radial-gradient(circle at 30% 30%, #fffde7, #ffd54f 40%, #ffb300 100%);
    border-radius: var(--radius-full);
    top: 15%;
    right: 12%;
    box-shadow: 0 0 40px rgba(255, 213, 79, 0.6), 0 0 80px rgba(255, 213, 79, 0.3);
    animation: moon-glow 4s ease-in-out infinite alternate;
    will-change: box-shadow;
}

@keyframes moon-glow {
    0% { box-shadow: 0 0 40px rgba(255, 213, 79, 0.6), 0 0 80px rgba(255, 213, 79, 0.3); }
    100% { box-shadow: 0 0 50px rgba(255, 213, 79, 0.8), 0 0 100px rgba(255, 213, 79, 0.4); }
}

.mountains {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
}

.mountain {
    position: absolute;
    bottom: 0;
    width: 0;
    height: 0;
    border-style: solid;
}

.mountain-1 { left: -5%; border-width: 0 100px 70px 100px; border-color: transparent transparent #0a1628 transparent; }
.mountain-2 { left: 10%; border-width: 0 150px 90px 150px; border-color: transparent transparent #0d1e36 transparent; }
.mountain-3 { left: 35%; border-width: 0 110px 60px 110px; border-color: transparent transparent #0a1628 transparent; }
.mountain-4 { right: 20%; border-width: 0 160px 85px 160px; border-color: transparent transparent #0d1e36 transparent; }
.mountain-5 { right: -10%; border-width: 0 120px 75px 120px; border-color: transparent transparent #0a1628 transparent; }

.trees {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 50'%3E%3Cpath d='M10 50 L15 30 L12 30 L17 15 L14 15 L20 0 L26 15 L23 15 L28 30 L25 30 L30 50Z' fill='%23061018'/%3E%3Cpath d='M40 50 L44 35 L42 35 L46 22 L44 22 L48 10 L52 22 L50 22 L54 35 L52 35 L56 50Z' fill='%23061018'/%3E%3Cpath d='M70 50 L74 32 L72 32 L76 18 L74 18 L80 5 L86 18 L84 18 L88 32 L86 32 L90 50Z' fill='%23061018'/%3E%3C/svg%3E") repeat-x bottom;
    background-size: 200px 40px;
    z-index: 1;
}

.hero-content {
    color: var(--color-white);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.hero-content h1 span {
    background: linear-gradient(90deg, #7dd3fc, #a5f3fc, #7dd3fc);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine 3s linear infinite;
}

@keyframes shine {
    to { background-position: 200% center; }
}

.hero-content p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Home Dashboard */
.home-dashboard {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    width: 100%;
}

/* Stats Section - moved to after portfolio-btn */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-gray-900);
    margin: 0;
}

.total-posts {
    font-size: 0.85rem;
    color: var(--color-gray-700);
    font-weight: 500;
}

/* Contribution Graph */
.contribution-graph {
    overflow-x: auto;
}

.month-labels {
    display: grid;
    grid-template-columns: 25px repeat(53, 10px);
    gap: 2px;
    margin-bottom: 3px;
    font-size: 0.65rem;
    color: var(--color-gray-700);
}

.weeks-container {
    display: flex;
    gap: 2px;
}

.day-labels {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-right: 3px;
}

.day-labels span {
    height: 10px;
    font-size: 0.6rem;
    color: var(--color-gray-700);
    display: flex;
    align-items: center;
}

.week {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.day {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-xs);
    background: var(--color-gray-200);
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s;
}

.day:hover {
    transform: scale(1.3);
    box-shadow: 0 0 4px rgba(0,0,0,0.2);
    z-index: 1;
    position: relative;
}

.day.outside {
    visibility: hidden;
}

.day.level-0 { background: var(--color-gray-200); }
.day.level-1 { background: #9be9a8; }
.day.level-2 { background: #40c463; }
.day.level-3 { background: #30a14e; }
.day.level-4 { background: #216e39; }

/* Contribution Footer */
.contribution-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-gray-200);
}

.contribution-stats {
    display: flex;
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-success);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--color-gray-700);
}

/* Legend */
.contribution-legend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: var(--color-gray-700);
}

/* Recent Posts */
.recent-posts {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-gray-200);
}

.recent-posts h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-gray-900);
    margin: 0 0 0.6rem;
}

.recent-posts ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--color-gray-100);
}

.recent-posts li:last-child {
    border-bottom: none;
}

.recent-posts a {
    font-size: 0.85rem;
    color: var(--color-gray-900);
    text-decoration: none;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 1rem;
}

.recent-posts a:hover {
    color: var(--color-primary);
}

.recent-posts .post-date {
    font-size: 0.75rem;
    color: var(--color-gray-600);
    flex-shrink: 0;
}

.legend-box {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-xs);
}

.legend-box.level-0 { background: var(--color-gray-200); }
.legend-box.level-1 { background: #9be9a8; }
.legend-box.level-2 { background: #40c463; }
.legend-box.level-3 { background: #30a14e; }
.legend-box.level-4 { background: #216e39; }

/* Profile Section */
.profile-section {
    flex: 1;
    background: var(--gradient-ocean-135);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

/* Ocean Background Animation */
.ocean-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.ocean-bg .wave {
    position: absolute;
    width: 200%;
    height: 100%;
    background: linear-gradient(180deg, transparent 40%, rgba(255, 255, 255, 0.1) 50%, transparent 60%);
    animation: ocean-wave 8s ease-in-out infinite;
}

.ocean-bg .wave-1 {
    bottom: -20%;
    animation-delay: 0s;
}

.ocean-bg .wave-2 {
    bottom: -30%;
    opacity: 0.5;
    animation-delay: -2s;
    animation-duration: 10s;
}

.ocean-bg .wave-3 {
    bottom: -40%;
    opacity: 0.3;
    animation-delay: -4s;
    animation-duration: 12s;
}

@keyframes ocean-wave {
    0%, 100% { transform: translateX(-25%) rotate(2deg); }
    50% { transform: translateX(0%) rotate(-2deg); }
}

/* Bubbles */
.bubbles .bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    animation: bubble-rise 6s ease-in infinite;
}

.bubbles .bubble:nth-child(1) { width: 8px; height: 8px; left: 20%; bottom: -20px; animation-delay: 0s; }
.bubbles .bubble:nth-child(2) { width: 12px; height: 12px; left: 40%; bottom: -20px; animation-delay: 1.5s; }
.bubbles .bubble:nth-child(3) { width: 6px; height: 6px; left: 60%; bottom: -20px; animation-delay: 3s; }
.bubbles .bubble:nth-child(4) { width: 10px; height: 10px; left: 75%; bottom: -20px; animation-delay: 2s; }
.bubbles .bubble:nth-child(5) { width: 7px; height: 7px; left: 85%; bottom: -20px; animation-delay: 4s; }

@keyframes bubble-rise {
    0% { transform: translateY(0) scale(1); opacity: 0.6; }
    50% { opacity: 0.8; }
    100% { transform: translateY(-250px) scale(0.5); opacity: 0; }
}

/* Profile Content */
.profile-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 1rem 0.75rem;
    text-align: center;
    color: var(--color-white);
}

.profile-avatar {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.15rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.profile-role {
    font-size: 0.85rem;
    margin: 0 0 0.75rem;
    opacity: 0.9;
}

.portfolio-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-ocean);
    text-decoration: none;
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 600;
    transition: var(--transition-fast);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.portfolio-btn svg {
    width: 14px;
    height: 14px;
}

.portfolio-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    background: var(--color-white);
}

/* Stats Section */
.stats-section {
    flex: 1.5;
    display: flex;
    align-items: stretch;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    width: 100%;
    height: 100%;
}

.stat-card {
    border-radius: var(--radius-xl);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--gradient-ocean);
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-card .theme-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.stat-card .stat-number,
.stat-card .stat-label {
    position: relative;
    z-index: 1;
}

/* Bubbles for stat cards */
.stat-card .theme-bg .bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-full);
    animation: bubble-rise 5s ease-in infinite;
}

.stat-card .theme-bg .bubble:nth-child(1) { width: 6px; height: 6px; left: 15%; bottom: -10px; animation-delay: 0s; animation-duration: 4s; }
.stat-card .theme-bg .bubble:nth-child(2) { width: 8px; height: 8px; left: 45%; bottom: -10px; animation-delay: 1s; animation-duration: 5s; }
.stat-card .theme-bg .bubble:nth-child(3) { width: 5px; height: 5px; left: 75%; bottom: -10px; animation-delay: 2s; animation-duration: 4.5s; }

/* Profile Social Icons */
.profile-social {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: var(--color-white);
    transition: all 0.3s ease;
}

.social-icon svg {
    width: 16px;
    height: 16px;
}

.social-icon:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.95);
}

.social-icon.github:hover {
    color: var(--color-github);
}

.social-icon.linkedin:hover {
    color: var(--color-linkedin);
}

.social-icon.email:hover {
    color: var(--color-google-red);
}

/* Charts Section (column: 2 rows) */
.charts-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 2.5;
}

.chart-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0.75rem;
    flex: 1;
}

#category-pie {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.category-blocks {
    display: flex;
    flex-direction: row;
    gap: 0.4rem;
    flex: 1;
    flex-wrap: nowrap;
    position: relative;
    z-index: 1;
}

.category-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-xl);
    text-decoration: none;
    transition: var(--transition-fast);
    border-top: 3px solid var(--cat-color);
    width: 80px;
    flex-shrink: 0;
    text-align: center;
}

.category-block:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.02);
}

.cat-icon {
    font-size: 1.2rem;
}

.cat-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.cat-name {
    font-size: 0.65rem;
    color: var(--color-gray-900);
    font-weight: 500;
    line-height: 1.2;
    word-break: keep-all;
}

.cat-pct {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--cat-color);
}

.visitor-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    background: var(--gradient-ocean);
    border-radius: var(--radius-xl);
    padding: 0.75rem 1rem;
    position: relative;
    overflow: hidden;
}

.visitor-stats {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.visitor-today {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
}

.visitor-today .stat-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    margin: 0;
}

.visitor-today .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
}

.visitor-today .stat-diff {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.1rem 0.3rem;
    border-radius: var(--radius-sm);
}

.visitor-today .stat-diff.positive {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.15);
}

.visitor-today .stat-diff.negative {
    color: #f87171;
    background: rgba(248, 113, 113, 0.15);
}

.visitor-meta {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.visitor-meta span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
}

.visitor-thanks {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    margin-top: 0.2rem;
}

.category-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    background: var(--gradient-ocean);
    border-radius: var(--radius-xl);
    padding: 0.75rem 1rem;
    position: relative;
    overflow: hidden;
}

/* Wrap Bubbles for category-wrap and visitor-wrap */
.wrap-bubbles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.wrap-bubbles .bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    animation: bubble-rise 6s ease-in infinite;
}

.wrap-bubbles .bubble:nth-child(1) { width: 8px; height: 8px; left: 10%; bottom: -15px; animation-delay: 0s; animation-duration: 5s; }
.wrap-bubbles .bubble:nth-child(2) { width: 12px; height: 12px; left: 35%; bottom: -15px; animation-delay: 1.5s; animation-duration: 6s; }
.wrap-bubbles .bubble:nth-child(3) { width: 6px; height: 6px; left: 60%; bottom: -15px; animation-delay: 3s; animation-duration: 5.5s; }
.wrap-bubbles .bubble:nth-child(4) { width: 10px; height: 10px; left: 85%; bottom: -15px; animation-delay: 2s; animation-duration: 6.5s; }

.nav-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    flex-shrink: 0;
}

.nav-total {
    font-size: 0.7rem;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-total strong {
    color: var(--color-white);
    font-size: 1.2rem;
}

.nav-thanks {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

#visitor-chart {
    flex: 1;
    height: 60px;
    position: relative;
    z-index: 1;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-xl);
    color: var(--color-white);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 70px;
}

.nav-btn svg {
    width: 20px;
    height: 20px;
}

.nav-btn-post {
    background: var(--gradient-cyan);
}

.nav-btn-post:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.nav-btn-hobby {
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
}

.nav-btn-hobby:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.nav-btn-apps {
    background: linear-gradient(135deg, #0891b2 0%, #22d3ee 100%);
}

.nav-btn-apps:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.stat-chart {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 40%;
    pointer-events: none;
    z-index: 0;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
    position: relative;
    z-index: 1;
}

/* Home Series & Tags Section */
.home-series-tags {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.home-series-wrap {
    min-width: 0;
}


.home-series-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.home-series-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-xl);
    text-decoration: none;
    overflow: hidden;
    transition: var(--transition-fast);
}

@keyframes seriesFlow {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

.series-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: var(--radius-xl);
    --series-c1: 44,62,80;
    --series-c2: 52,73,94;
    --series-c3: 44,62,80;
}

.series-bg.has-gradient {
    background: linear-gradient(
        135deg,
        rgba(var(--series-c1), 0.65) 0%,
        rgba(var(--series-c2), 0.5) 25%,
        rgba(var(--series-c3), 0.55) 50%,
        rgba(var(--series-c2), 0.5) 75%,
        rgba(var(--series-c1), 0.65) 100%
    );
    background-size: 200% 200%;
    animation: seriesFlow 15s ease-in-out infinite;
}

.home-series-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.series-icon {
    position: relative;
    z-index: 1;
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex-shrink: 0;
    background: var(--color-white);
    border-radius: 50%;
    padding: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.series-info {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
}

.series-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.series-count {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text);
    margin-top: 0.15rem;
}

/* Home Tags Section */
.home-tags-wrap {
    min-width: 0;
    display: flex;
    align-items: stretch;
}

.home-tags-cloud {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.6rem;
    width: 100%;
    min-height: 200px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: transparent;
}

.tags-cloud-header {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-gray-700);
    text-align: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px dashed var(--color-gray-300);
}

.tag-row {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    min-height: 1.6rem;
}

.cloud-tag {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-sm);
    border: 1px solid currentColor;
    background: var(--color-white);
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.cloud-tag:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.cloud-tag.removing {
    opacity: 0;
    transform: scale(0);
    padding: 0;
    margin: 0 -0.175rem;
    font-size: 0;
    border: 0;
}

.cloud-tag.adding {
    opacity: 0;
    transform: scale(0);
    padding: 0;
    margin: 0 -0.175rem;
    font-size: 0;
    border: 0;
}

.posts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.posts-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-gray-900);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.posts-header h2 svg {
    width: 18px;
    height: 18px;
    color: var(--color-gray-800);
}

.posts-header .view-all {
    font-size: 0.8rem;
    color: var(--color-gray-600);
    text-decoration: none;
    transition: color 0.2s;
}

.posts-header .view-all:hover {
    color: var(--color-primary);
}

.home-tag {
    padding: 0.05rem 0.35rem;
    background: transparent;
    border-radius: var(--radius-xs);
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid currentColor;
}

/* Tag colors defined in base.css */


/* Home Projects Section */
.home-projects {
    margin-top: 2rem;
}


.home-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.home-cards-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    grid-auto-rows: 1fr;
}

.home-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: var(--transition-fast);
}

.home-card:hover .home-card-thumb img {
    transform: scale(1.03);
}

.home-card:hover .home-card-title {
    color: var(--color-primary);
}

.home-card-thumb {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-gray-200);
}

.home-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.home-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f1f3f5 100%);
}

.home-card-placeholder span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-gray-600);
    text-align: center;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Breadcrumb */
.home-card-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--color-gray-600);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s;
}

.home-card-breadcrumb:hover {
    color: var(--color-primary);
}

.home-card-breadcrumb .breadcrumb-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    flex-shrink: 0;
}

.home-card-body {
    padding: 0.6rem 0.2rem 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.home-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
}

.home-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-gray-900);
    margin: 0 0 0.3rem 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-card-summary {
    font-size: 0.8rem;
    color: var(--color-gray-700);
    margin: 0 0 auto 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-card-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    color: var(--color-gray-700);
    font-weight: 500;
}

.home-card-footer span {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.home-card-footer svg {
    width: 12px;
    height: 12px;
}

.home-card-footer .sep {
    color: var(--color-gray-400);
}

.home-card-tags {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.2rem;
    margin-top: 0.3rem;
    overflow: hidden;
}

.home-tag-more {
    font-size: 0.7rem;
    color: var(--color-gray-500);
}

/* Dark Mode */
body.dark-mode .contribution-section {
    background: var(--color-editor-bg);
    border-color: var(--color-gray-900);
}

body.dark-mode .section-header h2 {
    color: var(--color-gray-300);
}

body.dark-mode .total-posts,
body.dark-mode .month-labels,
body.dark-mode .day-labels span,
body.dark-mode .contribution-legend {
    color: var(--color-gray-600);
}

body.dark-mode .day.level-0 { background: #161b22; }
body.dark-mode .legend-box.level-0 { background: #161b22; }

body.dark-mode .contribution-footer,
body.dark-mode .recent-posts {
    border-color: var(--color-gray-900);
}

body.dark-mode .recent-posts h3 {
    color: var(--color-gray-300);
}

body.dark-mode .recent-posts li {
    border-color: var(--color-bg-tertiary);
}

body.dark-mode .recent-posts a {
    color: var(--color-gray-500);
}

body.dark-mode .recent-posts a:hover {
    color: var(--color-primary-lighter);
}

body.dark-mode .stat-name {
    color: var(--color-gray-600);
}

/* Dark mode - Home Series Section */

body.dark-mode .home-series-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

/* Dark mode - Home Tags Section */
body.dark-mode .home-tags-cloud {
    background: transparent;
}

body.dark-mode .cloud-tag {
    background: var(--color-bg-secondary);
}

/* Dark mode - Home Posts Section */

body.dark-mode .posts-header h2 {
    color: var(--color-text);
}

body.dark-mode .posts-header .view-all {
    color: var(--color-gray-600);
}

body.dark-mode .posts-header .view-all:hover {
    color: var(--color-primary-light);
}

body.dark-mode .home-tag {
    opacity: 0.9;
}

/* Dark mode - Home Projects Section */

body.dark-mode .home-card-thumb {
    border-color: var(--color-gray-700);
}

body.dark-mode .home-card-placeholder {
    background: linear-gradient(135deg, #2d3436 0%, #3d4448 50%, #2d3436 100%);
}

body.dark-mode .home-card-placeholder span {
    color: var(--color-gray-400);
}

body.dark-mode .home-card:hover .home-card-title {
    color: var(--color-primary-light);
}

body.dark-mode .home-card-title {
    color: var(--color-gray-300);
}

body.dark-mode .home-card-summary {
    color: var(--color-code-text);
}

body.dark-mode .home-card-footer {
    color: var(--color-gray-400);
}

body.dark-mode .home-card-footer .sep {
    color: var(--color-gray-800);
}

body.dark-mode .home-card-tags .home-tag {
    opacity: 0.9;
}

/* Dark mode - Category blocks */
body.dark-mode .category-block {
    background: var(--color-bg-secondary);
    border-color: var(--color-gray-200);
}

body.dark-mode .category-block:hover {
    background: var(--color-bg-tertiary);
}

body.dark-mode .cat-name {
    color: var(--color-gray-400);
}

/* Dark mode - Empty message */
body.dark-mode .empty-msg {
    color: var(--color-gray-600);
}

body.dark-mode .post-date {
    color: var(--color-gray-600);
}

/* Responsive - Tablet (900px) */
@media (max-width: 1024px) {
    .ocean-bg .wave-1 {
        bottom: -30%;
    }
    .ocean-bg .wave-2 {
        bottom: -40%;
    }
    .ocean-bg .wave-3 {
        display: none;
    }

    .home-dashboard {
        flex-direction: column;
        gap: 0.75rem;
    }

    .profile-section {
        min-height: 200px;
    }

    .stats-section {
        flex: none;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }

    .charts-section {
        flex: none;
    }

    .chart-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .category-wrap {
        flex-wrap: wrap;
        justify-content: center;
    }

    .category-blocks {
        flex-wrap: wrap;
        justify-content: center;
    }

    .visitor-wrap {
        flex-wrap: wrap;
    }

    .home-series-tags {
        grid-template-columns: 1fr;
    }

    .home-series-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .home-tags-wrap {
        display: none;
    }

    .home-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-btn-post,
    .nav-btn-hobby,
    .nav-btn-apps {
        display: none;
    }
}

/* Responsive - Large Phone (600px) */
@media (max-width: 600px) {
    .home-series-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .home-series-card {
        padding: 0.6rem 0.75rem;
    }

    .series-icon {
        width: 32px;
        height: 32px;
    }

    .series-name {
        font-size: 0.8rem;
    }

    .ocean-bg .wave-1 {
        bottom: -40%;
    }
    .ocean-bg .wave-2 {
        display: none;
    }

    .hero {
        height: 180px;
        border-radius: var(--radius-lg);
    }

    .hero-content h1 {
        font-size: 1.4rem;
    }

    .hero-content p {
        font-size: 0.85rem;
    }

    .moon {
        width: 30px;
        height: 30px;
        top: 10%;
        right: 8%;
    }

    .home-dashboard {
        gap: 0.5rem;
    }

    .profile-section {
        min-height: 180px;
    }

    .profile-avatar {
        width: 60px;
        height: 60px;
    }

    .profile-name {
        font-size: 1rem;
    }

    .profile-role {
        font-size: 0.75rem;
    }

    .portfolio-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }

    .profile-social {
        gap: 0.4rem;
    }

    .social-icon {
        width: 28px;
        height: 28px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .stat-card {
        padding: 0.75rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.65rem;
        margin-top: 0.25rem;
    }

    .category-wrap,
    .visitor-wrap {
        padding: 0.5rem 0.75rem;
        flex-direction: column;
        align-items: stretch;
    }

    #category-pie {
        width: 70px;
        height: 70px;
        margin: 0 auto;
    }

    .category-blocks {
        justify-content: center;
    }

    .category-block {
        width: 60px;
        padding: 0.4rem;
    }

    .cat-icon {
        font-size: 1rem;
    }

    .cat-name {
        font-size: 0.6rem;
    }

    .visitor-stats {
        width: 100%;
        text-align: center;
    }

    .visitor-today {
        justify-content: center;
    }

    .visitor-meta {
        justify-content: center;
    }

    .visitor-meta span {
        font-size: 0.75rem;
    }

    #visitor-chart {
        width: 100%;
        height: 50px;
    }

    .nav-btn {
        width: 60px;
        padding: 0.4rem 0.75rem;
        font-size: 0.65rem;
    }

    .nav-btn svg {
        width: 16px;
        height: 16px;
    }

    .posts-header h2 {
        font-size: 0.9rem;
    }

    .home-card-breadcrumb {
        font-size: 0.6rem;
    }

    .home-card-breadcrumb .breadcrumb-icon {
        width: 12px;
        height: 12px;
    }

    .home-tag {
        font-size: 0.6rem;
        padding: 0.02rem 0.25rem;
    }

    .posts-header h2 {
        font-size: 1rem;
    }

    .home-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .home-card-thumb {
        height: 100px;
    }

    .home-card-title {
        font-size: 0.8rem;
    }

    .home-card-summary {
        font-size: 0.7rem;
        -webkit-line-clamp: 1;
    }
}

/* Responsive - Small Phone (480px) */
@media (max-width: 480px) {
    .home-series-grid {
        grid-template-columns: 1fr;
    }

    .profile-avatar {
        width: 50px;
        height: 50px;
        margin-bottom: 0.3rem;
    }

    .profile-avatar img {
        border-width: 2px;
    }

    .profile-name {
        font-size: 0.95rem;
        margin-bottom: 0.1rem;
    }

    .profile-role {
        font-size: 0.7rem;
        margin-bottom: 0.5rem;
    }

    .stats-grid {
        gap: 0.4rem;
    }

    .stat-card {
        padding: 0.6rem 0.4rem;
        border-radius: var(--radius-lg);
    }

    .stat-number {
        font-size: 1.3rem;
    }

    .stat-label {
        font-size: 0.6rem;
    }

    .chart-row {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .category-wrap {
        flex: 1 1 100%;
    }

    .visitor-wrap {
        flex: 1 1 100%;
    }

    .nav-btn {
        flex: 1;
        width: auto;
    }

    .category-block {
        width: 55px;
    }

    .home-card-body {
        padding: 0.4rem 0.1rem 0;
    }

    .home-card-footer {
        font-size: 0.65rem;
    }

    .home-card-footer span:not(:first-child) {
        display: none;
    }
}
