:root {
    --bg: #0d0d0d;
    --bg-secondary: #151515;
    --card: #1f1f1f;
    --card-light: #252525;
    --text: #f5f5f5;
    --text-muted: #a3a3a3;
    --border: #333333;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-family: 'Inter', sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.04), transparent 25%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.035), transparent 25%);
    pointer-events: none;
    z-index: -1;
}

.navbar {
    background: rgba(13, 13, 13, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.navbar-brand,
.nav-link {
    color: var(--text) !important;
}

.nav-link {
    color: var(--text-muted) !important;
}

.nav-link:hover {
    color: var(--white) !important;
}

.hero-section {
    min-height: 100vh;
    padding-top: 90px;
}

.badge-custom {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 4rem);
    line-height: 1.05;
    font-weight: 400;
    letter-spacing: -0.04em;
    max-width: 900px;
}

.hero-text {
    max-width: 650px;
    color: var(--text-muted);
    font-size: 1.2rem;
    line-height: 1.8;
}

.btn-main {
    background: var(--white);
    color: #000;
    border: 1px solid var(--white);
    border-radius: 12px;
    font-weight: 700;
    padding: 12px 24px;
}

.btn-main:hover {
    background: #d4d4d4;
    border-color: #d4d4d4;
    color: #000;
}

.btn-outline-custom {
    color: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-weight: 700;
    padding: 12px 24px;
}

.btn-outline-custom:hover {
    background: var(--card-light);
    color: var(--white);
    border-color: #555;
}

.profile-card,
.content-card,
.skill-card,
.project-card,
.contact-card {
    background: linear-gradient(180deg, #222222 0%, #171717 100%);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.profile-card {
    padding: 2.2rem;
}

.profile-card h2,
.skill-card h3,
.project-card h3,
.section-title h2,
.cta-section h2 {
    color: var(--text);
}

.profile-card h2,
.project-card h3,
.cta-section h2 {
    color: var(--text);
    font-weight: 500;
}

.avatar {
    width: 90px;
    height: 90px;
    border-radius: 24px;
    background: linear-gradient(135deg, #ffffff, #7a7a7a);
    color: #000;
    display: grid;
    place-items: center;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.stack-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.5rem;
}

.stack-list span {
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: #2a2a2a;
    color: var(--text);
    border: 1px solid #3a3a3a;
    font-size: 0.9rem;
}

.section-padding {
    padding: 100px 0;
}

.section-dark {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-title {
    max-width: 780px;
    margin-bottom: 3rem;
}

.section-title p {
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.section-title h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    letter-spacing: -0.03em;
}

.content-card,
.skill-card,
.contact-card {
    padding: 2rem;
}

.skill-card {
    min-height: 190px;
    transition: 0.25s ease;
}

.skill-card:hover {
    transform: translateY(-6px);
    border-color: #555;
}

.skill-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.project-card {
    padding: 2rem;
}

.project-preview {
    min-height: 350px;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
        #111111;
    border: 1px dashed #555;
    display: grid;
    place-items: center;
    color: var(--text-muted);
    font-weight: 800;
    letter-spacing: 0.05em;
}

.project-tag {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-weight: 700;
}

.project-list {
    color: var(--text-muted);
    padding-left: 1.2rem;
}

.project-list li {
    margin-bottom: 0.55rem;
}

.cta-section {
    background: #050505;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.contact-card a {
    color: var(--white);
    font-weight: 700;
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}

footer {
    background: #050505;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding-top: 120px;
    }

    .hero-text {
        margin-left: auto;
        margin-right: auto;
    }

    .section-padding {
        padding: 70px 0;
    }

    .profile-card {
        text-align: center;
    }

    .avatar {
        margin-left: auto;
        margin-right: auto;
    }

    .stack-list {
        justify-content: center;
    }
}