/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg:         #0d1117;
    --bg-card:    #161b22;
    --bg-card2:   #1c2128;
    --blue:       #3b82f6;
    --blue-dim:   #1e40af;
    --blue-glow:  rgba(59, 130, 246, 0.15);
    --text:       #e6edf3;
    --text-muted: #8b949e;
    --border:     #21262d;
    --green:      #22c55e;
    --yellow:     #eab308;
    --purple:     #a855f7;
    --radius:     12px;
}

html {
    scroll-behavior: smooth;
}

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

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 64px;
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue);
    letter-spacing: 0.5px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
    background: var(--blue-glow);
    color: var(--blue);
}

/* ===== SECTIONS ===== */
section {
    min-height: 100vh;
    padding: 100px 2rem 60px;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ===== HERO ===== */
.hero {
    margin-bottom: 3.5rem;
}

.hero-greeting {
    color: var(--blue);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    letter-spacing: 0.5px;
}

.hero-name {
    font-size: clamp(2rem, 6vw, 3.2rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.1;
    margin-bottom: 0.8rem;
}

.hero-sub {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ===== SECTION TITLE ===== */
.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    height: 3px;
    width: 40px;
    background: var(--blue);
    border-radius: 2px;
    margin-top: 6px;
}

/* ===== SKILLS ===== */
.skills-wrapper {
    margin-bottom: 3rem;
}

.skill-group {
    margin-bottom: 1.6rem;
}

.group-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
    padding-left: 4px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    transition: border-color 0.2s, background 0.2s;
}

.skill-item:hover {
    border-color: var(--blue);
    background: var(--bg-card2);
}

.skill-icon {
    font-size: 1.6rem;
    width: 32px;
    text-align: center;
    flex-shrink: 0;
}

.skill-name {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
}

/* ===== BADGES ===== */
.badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.badge-advanced {
    background: rgba(34, 197, 94, 0.12);
    color: var(--green);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-medium {
    background: rgba(234, 179, 8, 0.12);
    color: var(--yellow);
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.badge-learning {
    background: rgba(168, 85, 247, 0.12);
    color: var(--purple);
    border: 1px solid rgba(168, 85, 247, 0.3);
}

/* ===== SOCIALS ===== */
.socials {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius);
    font-size: 0.95rem;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.social-btn i {
    font-size: 1.2rem;
}

.social-btn:hover {
    color: #e1306c;
    border-color: #e1306c;
    background: rgba(225, 48, 108, 0.08);
}

/* ===== CONTACT ===== */
#kontakt {
    border-top: 1px solid var(--border);
    min-height: unset;
    padding-top: 60px;
    padding-bottom: 60px;
}

.contact-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-sub {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--blue);
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.85rem 1.4rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    width: fit-content;
    transition: border-color 0.2s, background 0.2s;
}

.contact-email i {
    font-size: 1.1rem;
}

.contact-email:hover {
    border-color: var(--blue);
    background: var(--blue-glow);
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 500px) {
    .navbar {
        padding: 0 1rem;
    }

    section {
        padding: 90px 1rem 50px;
    }

    .hero-name {
        font-size: 2rem;
    }
}
