:root {
    --bg: #0b1020;
    --surface: #111827;
    --text: #bdc1c4;
    --muted: #94a3b8;
    --accent: #60a5fa;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth
}

body {
    font-family: system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: min(1200px, 92%);
    margin: auto
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, .35);
    backdrop-filter: blur(20px);
    z-index: 1000;
}

.logo {
    font-size: 1.4rem;
    color: white;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none
}

nav a {
    color: var(--text);
    text-decoration: none
}

nav a:hover,
nav a.active {
    color: white;
}

.menu-toggle {
    display: none
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1;
    margin-bottom: 1.5rem
}

.hero h1 span {
    background: linear-gradient(90deg, #60a5fa, #22d3ee);
    -webkit-background-clip: text;
    color: transparent;
}

.badge {
    display: inline-block;
    padding: .5rem 1rem;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    margin-bottom: 1rem;
}

.buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem
}

.btn {
    padding: .9rem 1.4rem;
    border-radius: 14px;
    text-decoration: none;
}

.primary {
    background: var(--accent);
    color: #000
}

.secondary {
    border: 1px solid rgba(255, 255, 255, .15);
    color: #fff
}

.section {
    padding: 6rem 0
}

.grid {
    display: grid;
    grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    padding: 2rem;
    border-radius: 24px;
    transition: .3s;
}

.card:hover {
    transform: translateY(-8px)
}

#about p {
    margin-bottom: 1rem;
}

#about h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.skills span {
    padding: .75rem 1rem;
    background: rgba(255, 255, 255, .05);
    border-radius: 999px;
}

#projects .skills span {
    border: rgba(81, 162, 255, .40) 1px solid;
    padding: .20rem 1rem;
    color: rgba(190, 219, 255, 1);
    font-size: 0.9rem;
}

.timeline {
    border-left: 2px solid rgba(255, 255, 255, .1);
    padding-left: 2rem;
    margin-top: 2rem;
}

.timeline-item {
    margin-bottom: 2rem
}

.gradient-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: rgba(96, 165, 250, .2);
    filter: blur(120px);
    border-radius: 50%;
    animation: subtlefloat 12s infinite ease-in-out;
    z-index: -1;
}

@keyframes subtlefloat {
    50% {
        transform: translate(50px, -50px)
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: .8s;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

.cursor-glow {
    position: fixed;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(96, 165, 250, .08);
    filter: blur(90px);
    pointer-events: none;
    transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block
    }

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #111827;
        padding: 1rem;
        flex-direction: column;
    }

    nav ul.open {
        display: flex
    }
}
