:root {
    --bg: #f3f6ff;
    --bg-strong: #0f172a;
    --panel: rgba(255, 255, 255, 0.9);
    --panel-soft: #eef2ff;
    --accent: #7c3aed;
    --accent-2: #3b82f6;
    --accent-3: #22c55e;
    --text: #1f2937;
    --muted: #64748b;
    --border: rgba(124, 58, 237, 0.15);
    --shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(circle at top, #eef2ff 0%, #f8fafc 30%, #eef4ff 100%);
    color: var(--text);
    line-height: 1.7;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    background: rgba(15, 23, 42, 0.82) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #fff !important;
}

header {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1d4ed8 0%, #7c3aed 52%, #0f172a 100%);
    color: #fff;
    padding: 110px 0 90px;
}

header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255,255,255,0.18), transparent 38%);
}

header .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

header img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 24px 40px rgba(15, 23, 42, 0.25);
    margin: 0 auto 22px;
}

header h1 {
    font-size: clamp(2.4rem, 5vw, 4.3rem);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: 0.04em;
}

header h4 {
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    opacity: 0.9;
    margin-bottom: 10px;
}

header p {
    margin: 0;
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.85);
}

section {
    padding: 88px 0;
}

section h2 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 16px;
    text-align: center;
    color: var(--bg-strong);
}

#about,
#contact {
    background: rgba(255, 255, 255, 0.6);
}

#hobby {
    background: linear-gradient(180deg, #f5f3ff 0%, #eef6ff 100%);
}

.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-2), var(--accent), var(--accent-3));
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 50px rgba(76, 29, 149, 0.12);
}

.card h4,
.card h5 {
    color: var(--bg-strong);
    font-weight: 800;
    margin-bottom: 14px;
}

.card p {
    color: var(--muted);
    margin-bottom: 0;
}

#hobby .card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #eef2ff 100%);
}

#hobby .card h5 {
    margin: 0;
    font-size: 1.35rem;
}

footer {
    background: linear-gradient(135deg, #0f172a, #111827);
    color: rgba(255,255,255,0.9);
    text-align: center;
    padding: 26px 18px;
    font-weight: 600;
}

.lab-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 28px 18px 40px;
    background: #0b1120;
}

.lab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #7c3aed, #3b82f6);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(124, 58, 237, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(59, 130, 246, 0.28);
    color: #fff;
}

@media (max-width: 767px) {
    header {
        padding-top: 90px;
    }

    header img {
        width: 180px;
        height: 180px;
    }

    .navbar-brand {
        letter-spacing: 0.04em;
    }

    section {
        padding: 72px 0;
    }
}
