:root {
    --bg-dark: #01030a;
    --bg-card: rgba(25, 29, 41, 0.9);
    --text-primary: #f8fafc;
    --text-secondary: #a1acc6;
    --primary: #7c6dff;
    --accent: #14b8a6;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius-lg: 16px;
    --radius-md: 10px;
    --transition: all 0.35s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.background-glow {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(124, 109, 255, 0.15), transparent 40%),
        radial-gradient(circle at 80% 10%, rgba(20, 184, 166, 0.2), transparent 45%);
    filter: blur(35px);
    opacity: 0.7;
    z-index: -1;
    pointer-events: none;
}

a {
    color: inherit;
    text-decoration: none;
}

.nav-container {
    position: fixed;
    inset: 0 auto auto 0;
    width: 100%;
    background: rgba(1, 3, 10, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 100;
}

nav {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-family: var(--font-mono);
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
}

.nav-cta {
    padding: 0.4rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.nav-cta:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.nav-pill {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    color: var(--primary);
}

main {
    padding: 6rem 1.5rem 3rem;
}

.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 3rem;
}

.hero-content {
    max-width: 900px;
}

.hero-content h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.hero-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn {
    border-radius: 999px;
    padding: 0.85rem 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn.primary {
    background: var(--primary);
    border-color: transparent;
    color: #fff;
}

.btn:hover {
    transform: translateY(-1px);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.hero-metric {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.hero-metric strong {
    display: block;
    font-size: 1.9rem;
    margin-bottom: 0.25rem;
}

.section {
    padding: 4rem 0;
    max-width: 1100px;
    margin: 0 auto;
}

.section-header h2 {
    font-size: 2.3rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.about-bullets {
    list-style: disc;
    padding-left: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.timeline-content,
.card,
.contact-section {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.timeline {
    position: relative;
    padding-left: 1.5rem;
    border-left: 2px solid rgba(255, 255, 255, 0.08);
}

.timeline-item {
    margin-bottom: 2.5rem;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0.75rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: var(--bg-dark);
}

.timeline-content {
    padding: 1.75rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.timeline-content h3 {
    margin-bottom: 0.4rem;
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--primary);
    background: rgba(124, 109, 255, 0.12);
    padding: 0.2rem 0.8rem;
    border-radius: 999px;
}

.company-name {
    color: var(--text-secondary);
}

.projects-intro {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.card {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-link {
    margin-top: auto;
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-card {
    padding: 1.2rem 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--bg-card);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 40px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), rgba(124, 109, 255, 0));
    opacity: 0.6;
}

.contact-section {
    padding: 2.5rem;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer {
    text-align: center;
    padding: 3rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}
