body {
    background-color: #050505;
    color: #ffffff;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #00f3ff #050505;
}

#interactive-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, rgba(0, 243, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(176, 38, 255, 0.05) 0%, transparent 40%);
    transition: background 0.3s ease-out;
    pointer-events: none;
}

.data-point {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.5s ease;
}

.data-point.active {
    background: #00f3ff;
    box-shadow: 0 0 10px #00f3ff, 0 0 20px #00f3ff;
    transform: scale(1.5);
}

.glass-panel {
    background: rgba(20, 20, 30, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-panel:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 243, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 243, 255, 0.1);
}

.text-gradient {
    background: linear-gradient(to right, #00f3ff, #b026ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #050505;
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 243, 255, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 243, 255, 0.6);
}

.cursor-glow {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0,243,255,0.15) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    opacity: 0;
}

.project-card .project-content {
    transform: translateY(20px);
    opacity: 0.8;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.project-card:hover .project-content {
    transform: translateY(0);
    opacity: 1;
}

.code-block {
    background: #0d1117;
    border-left: 3px solid #b026ff;
    font-family: 'JetBrains Mono', monospace;
}

.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #00f3ff;
    transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* About story modal — profile photo 3D tilt animation */
#about-story-img-container {
    transition: transform 0.12s ease-out;
}

/* Masonry grid for project archive */
.masonry-grid {
    column-count: 1;
    column-gap: 1rem;
}
@media (min-width: 640px) {
    .masonry-grid { column-count: 2; }
}
.masonry-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    display: block;
}
