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

body, html { 
    height: 100%;
    width: 100%;
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #fff;
    color: #111827;
}

#dotbackground {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: #fff;
}

.navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 1000;
    overflow: hidden;
    border-bottom: 1px solid rgba(59, 130, 246, 0.25);
}

.nav-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    background-color: #dbeafe;
}

.navigation::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 0;
}

.nav-inner {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
    padding: 0 40px;
}

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

.nav-item {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    padding: 8px 0;
    position: relative;
    transition: color 0.2s ease;
}

.nav-item:hover, .nav-item.active { color: #1d4ed8; }

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #3b82f6;
    transition: width 0.2s ease;
}

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

.time-display {
    font-size: 0.95rem;
    font-weight: 500;
    color: #4b5563;
    font-variant-numeric: tabular-nums;
}

.content-container {
    height: 100vh;
    width: 100vw;
    padding-top: 70px;
    position: relative;
    z-index: 1;
}

.page {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease-in-out;
    padding: 40px;
}

.page.active { opacity: 1; pointer-events: auto; }

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 3;
}

.hero-title {
    font-size: 6rem;
    font-weight: 800;
    letter-spacing: -3px;
    margin-bottom: 15px;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 15px;
}

.hero-info {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #4b5563;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.about-content {
    align-items: flex-start;
    text-align: left;
    max-width: 500px;
    width: 100%;
}

.about-content .hero-info {
    text-align: left;
    margin: 0;
    max-width: 100%;
}

.github-card {
    width: 100%;
    max-width: 380px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(96, 165, 250, 0.25);
    border-radius: 16px;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.18);
}

.gh-card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.github-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 17, 23, 0.55), rgba(10, 14, 20, 0.88));
    z-index: 0;
}

.github-card > *:not(.gh-card-bg) {
    position: relative;
    z-index: 1;
}

.gh-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 16px;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.gh-username {
    color: #e6edf3;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.gh-bio {
    color: #4c525a;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    max-width: 280px;
}

.gh-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(33, 38, 45, 0.85);
    color: #e6edf3;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 8px;
    border: 1px solid rgba(240, 246, 252, 0.15);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.gh-link:hover {
    background-color: rgba(65, 70, 77, 0.9);
    box-shadow: 0 0 16px rgba(99, 104, 112, 0.35);
}

.gh-link svg { width: 18px; height: 18px; flex-shrink: 0; }

.gh-projects {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.project-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(59, 130, 246, 0.14);
    color: #cfe0ff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid rgba(96, 165, 250, 0.25);
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.project-pill:hover { background-color: rgba(59, 130, 246, 0.24); transform: translateX(2px); }
.project-pill .arrow { opacity: 0.6; }
.project-pill-disabled { cursor: default; opacity: 0.55; }
.project-pill-disabled:hover { background-color: rgba(59, 130, 246, 0.14); transform: none; }

#home-3d {
    width: 190px;
    height: 190px;
    margin: 0 auto 6px;
    display: block;
}

.pixelgrid, .icecreampic {
    position: absolute;
    z-index: 2;
    background-color: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.18);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.08);
    backdrop-filter: blur(6px);
}

.widget-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.widget-btn {
    background-color: #2563eb;
    color: #fff;
    border: none;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.widget-btn:hover { background-color: #1d4ed8; }
.widget-btn:disabled { opacity: 0.6; cursor: default; }

.pixelgrid { top: 108px; left: 4%; width: 190px; padding: 12px; }

.pixel-app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.mini-btn {
    background: none;
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #2563eb;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    cursor: pointer;
}

.mini-btn:hover { background-color: rgba(59, 130, 246, 0.08); }

.pixel-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: repeat(10, 1fr);
    width: 160px;
    height: 160px;
    border: 1px solid #e5e7eb;
    margin-bottom: 8px;
    user-select: none;
}

.pixel-cell { border: 1px solid #f1f5f9; background-color: #fff; cursor: crosshair; }
.pixel-palette { display: flex; gap: 6px; }

.palette-swatch {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
}

.palette-swatch.active { border-color: #111827; }

.icecreampic {
    bottom: 50px;
    left: 4%;
    width: 260px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#icecreamimg {
    width: 100%;
    height: 190px;
    border-radius: 10px;
    object-fit: cover;
    background-color: #e5e7eb;
}

.icecream-text { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

#notepad-3d {
    position: absolute;
    top: 50%;
    right: 4%;
    transform: translateY(-50%);
    width: 300px;
    height: 360px;
    z-index: 2;
}

@media (max-width: 860px), (max-height: 640px) {
    .hero-title { font-size: 4rem; }
    #home-3d { width: 140px; height: 140px; }
    .about-content { max-width: 340px; }
}

@media (max-width: 700px) {
    .pixelgrid, .icecreampic, #notepad-3d { display: none; }
}