:root {
    --bg-color: #0a0a0c;
    --card-bg: rgba(255, 255, 255, 0.03);
    --primary: #6366f1;
    --secondary: #a855f7;
    --accent: #22d3ee;
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
    --nav-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #15151a 0%, #0a0a0c 100%);
}

header {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav a {
    color: var(--text-dim);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: 0.3s;
}

nav a:hover {
    color: var(--text-main);
    text-shadow: 0 0 10px var(--primary);
}

section {
    padding: 100px 10%;
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: relative;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    font-weight: 900;
}

.hero .gradient-text {
    background: linear-gradient(90deg, #fff, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 600px;
    margin-bottom: 2rem;
}

.glow-btn {
    padding: 12px 30px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.glow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.6);
}

.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: 0.4s;
}

.glass-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.commit-section h2 {
    margin-bottom: 2rem;
    text-align: center;
}

.commit-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    padding: 20px;
}

.commit-day {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.05);
    transition: 0.2s;
}

.commit-day:hover {
    transform: scale(1.5);
    z-index: 10;
}

.lvl-1 { background: #0e4429; }
.lvl-2 { background: #006d32; }
.lvl-3 { background: #26a641; }
.lvl-4 { background: #39d353; box-shadow: 0 0 10px #39d353; }

.experience-list {
    display: grid;
    gap: 2rem;
}

.exp-item {
    display: flex;
    gap: 2rem;
}

.exp-date {
    min-width: 150px;
    font-weight: 700;
    color: var(--primary);
}

.exp-content h3 {
    margin-bottom: 0.5rem;
}

.exp-description {
    color: var(--text-dim);
    font-size: 0.95rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    font-size: 0.9rem;
    border: 1px solid transparent;
    transition: 0.3s;
}

.skill-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.commit-wrapper {
    position: relative;
    padding: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-box {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.stat-box h4 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat-box p {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tooltip {
    position: absolute;
    background: #1e293b;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 100;
    border: 1px solid var(--primary);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    white-space: nowrap;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; }
    header { padding: 0 5%; }
    section { padding: 80px 5%; }
}
