:root {
    --bg: #050914;
    --bg-soft: #07111f;
    --surface: rgba(13, 22, 38, 0.72);
    --surface-strong: rgba(16, 27, 47, 0.92);
    --border: rgba(148, 163, 184, 0.15);
    --border-strong: rgba(59, 130, 246, 0.35);
    --text: #eef4ff;
    --muted: #9fb0c8;
    --muted-2: #708096;
    --primary: #0ea5ff;
    --primary-strong: #2563eb;
    --primary-soft: rgba(14, 165, 255, 0.12);
    --success: #20c997;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: radial-gradient(circle at 18% 8%, rgba(0, 2, 22, 0.527), transparent 34%), radial-gradient(circle at 80% 22%, rgba(19, 37, 139, 0.16), transparent 30%), linear-gradient(180deg, #050914 0%, #07111f 42%, #050914 100%);
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 75%);
    z-index: -2;
}

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

.text-gradient {
    background: linear-gradient(135deg, #0075F9 0%, #0075F9 42%, #0075F9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.mono {
    font-family: 'JetBrains Mono', monospace;
}

.navbar {
    min-height: 74px;
    background: rgba(5, 9, 20, 0.78);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);
}

.navbar-brand {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--text);
    font-weight: 800;
    letter-spacing: -0.06em;
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.24), rgba(14, 165, 255, 0.08));
    border: 1px solid var(--border-strong);
    box-shadow: 0 0 22px rgba(14, 165, 255, 0.13);
}

.navbar-brand img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.navbar .nav-link {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.6rem 0.9rem !important;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--text);
    background: rgba(37, 99, 235, 0.14);
}

.navbar-toggler {
    border-color: var(--border);
    box-shadow: none !important;
}

.navbar-toggler-icon {
    filter: invert(1) grayscale(1);
}

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

.hero {
    position: relative;
    padding: 142px 0 92px;
    border-bottom: 1px solid var(--border);
}

.hero::after {
    content: '';
    position: absolute;
    width: 520px;
    height: 520px;
    right: -120px;
    top: 80px;
    border-radius: 50%;
    border: 1px solid rgba(59, 130, 246, 0.12);
    box-shadow: inset 0 0 80px rgba(14, 165, 255, 0.08);
    pointer-events: none;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(14, 165, 255, 0.22);
    background: rgba(14, 165, 255, 0.08);
    color: #7dd3fc;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 5.8rem);
    line-height: 0.96;
    letter-spacing: -0.07em;
    font-weight: 800;
}

.hero-subtitle {
    color: #c8d6ea;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    font-weight: 600;
}

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

.btn-primary-custom {
    --bs-btn-color: #fff;
    --bs-btn-bg: #2563eb;
    --bs-btn-border-color: #2563eb;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #0ea5ff;
    --bs-btn-hover-border-color: #0ea5ff;
    min-height: 48px;
    padding: 0.78rem 1.15rem;
    border-radius: 13px;
    font-weight: 700;
    box-shadow: 0 12px 36px rgba(37, 99, 235, 0.28);
}

.btn-primary-custom-lock {
    --bs-btn-color: #fff;
    --bs-btn-bg: #2564ebd3;
    --bs-btn-border-color: #2564ebd3;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #0ea7ffcc;
    --bs-btn-hover-border-color: #0ea7ffc4;
    min-height: 48px;
    padding: 0.78rem 1.15rem;
    border-radius: 13px;
    font-weight: 700;
    box-shadow: 0 12px 36px rgba(37, 99, 235, 0.28);
}

.btn-outline-custom {
    min-height: 48px;
    padding: 0.78rem 1.15rem;
    border-radius: 13px;
    border: 1px solid var(--border);
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
    font-weight: 700;
}

.btn-outline-custom:hover {
    border-color: rgba(14, 165, 255, 0.48);
    background: rgba(14, 165, 255, 0.12);
    color: var(--text);
}

.icon-btn {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    transition: all 0.2s ease;
}

.icon-btn:hover {
    color: var(--text);
    border-color: rgba(14, 165, 255, 0.48);
    background: rgba(14, 165, 255, 0.12);
    transform: translateY(-2px);
}

.avatar-frame {
    position: relative;
    width: min(420px, 84vw);
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    margin-inline: auto;
}

.avatar-frame::before {
    content: '';
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    border: 4px solid rgba(14, 165, 255, 0.86);
    box-shadow: 0 0 42px rgba(14, 165, 255, 0.45), inset 0 0 48px rgba(14, 165, 255, 0.08);
}

.avatar-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.32), transparent 54%), linear-gradient(90deg, transparent, rgba(14, 165, 255, 0.12), transparent);
    filter: blur(36px);
    z-index: -1;
}

.avatar {
    position: relative;
    width: 72%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 24%, rgba(96, 165, 250, 0.22), transparent 35%), linear-gradient(145deg, #0f172a, #08111f);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.avatar .initials {
    font-size: clamp(4.8rem, 11vw, 8rem);
    font-weight: 800;
    letter-spacing: -0.12em;
    color: #dbeafe;
    transform: translateX(-0.08em);
}

.avatar .role-badge {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    border: 1px solid rgba(14, 165, 255, 0.32);
    background: rgba(5, 9, 20, 0.78);
    color: #bfdbfe;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
}

.section-label {
    color: #38bdf8;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

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

.section-description {
    color: var(--muted);
    line-height: 1.75;
}

.section-description,
.glass-card,
.chip,
.form-control {
    overflow-wrap: anywhere;
}

.glass-card {
    height: 100%;
    border: 1px solid var(--border);
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.78), rgba(7, 17, 31, 0.72));
    border-radius: var(--radius);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(18px);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(14, 165, 255, 0.36);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34), 0 0 35px rgba(14, 165, 255, 0.08);
}

.feature-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #7dd3fc;
    background: rgba(14, 165, 255, 0.1);
    border: 1px solid rgba(14, 165, 255, 0.18);
    font-size: 1.24rem;
}

.skill-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    padding: 6px 0;
    font-size: 0.95rem;
}

.skill-list i {
    color: #7dd3fc;
    font-size: 0.74rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 9px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(255, 255, 255, 0.045);
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 600;
}

.experience-wrap {
    position: relative;
    max-width: 1040px;
    margin: 0 auto;
}

.experience-wrap::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 22px;
    bottom: 22px;
    width: 2px;
    background: linear-gradient(180deg, transparent, rgba(14, 165, 255, 0.65), rgba(14, 165, 255, 0.18), transparent);
}

.experience-item {
    position: relative;
    padding-left: 72px;
    margin-bottom: 28px;
}

.experience-dot {
    position: absolute;
    left: 12px;
    top: 24px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid rgba(14, 165, 255, 0.85);
    background: #07111f;
    box-shadow: 0 0 24px rgba(14, 165, 255, 0.42);
}

.experience-dot::after {
    content: '';
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    background: #0ea5ff;
}

.project-shot {
    height: 168px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(14, 165, 255, 0.16), rgba(37, 99, 235, 0.06)), linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
    position: relative;
    overflow: hidden;
}

.project-shot::before {
    content: '';
    position: absolute;
    inset: 18px;
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 21%, transparent 21% 24%, rgba(255, 255, 255, 0.08) 24% 100%), repeating-linear-gradient(180deg, transparent 0 18px, rgba(255, 255, 255, 0.08) 18px 19px);
    opacity: 0.56;
}

.project-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.project-shot:has(img)::before {
    content: none;
}

.project-shot.code::before {
    background: repeating-linear-gradient(180deg, rgba(125, 211, 252, 0.22) 0 2px, transparent 2px 18px), linear-gradient(90deg, rgba(37, 99, 235, 0.14), transparent);
    inset: 24px;
}

.project-shot.icon-shot {
    display: grid;
    place-items: center;
}

.project-shot.icon-shot::before {
    inset: 18px;
    background: radial-gradient(circle, rgba(125, 211, 252, 0.16), transparent 58%), linear-gradient(90deg, rgba(37, 99, 235, 0.14), transparent);
}

.project-shot.icon-shot i {
    position: relative;
    z-index: 1;
    color: #7dd3fc;
    font-size: 3.4rem;
    text-shadow: 0 0 28px rgba(14, 165, 255, 0.35);
}

.stat-card {
    text-align: center;
    padding: 26px 20px;
}

.stat-value {
    font-size: 2.2rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.stat-label {
    color: var(--muted);
    margin-top: 8px;
    font-size: 0.9rem;
}

.form-control {
    min-height: 50px;
    border-radius: 13px;
    border: 1px solid var(--border);
    background-color: rgba(255, 255, 255, 0.035);
    color: var(--text);
}

.form-control:focus {
    border-color: rgba(14, 165, 255, 0.55);
    background-color: rgba(255, 255, 255, 0.055);
    color: var(--text);
    box-shadow: 0 0 0 0.25rem rgba(14, 165, 255, 0.1);
}

.form-control::placeholder {
    color: var(--muted-2);
}

footer {
    border-top: 1px solid var(--border);
    background: rgba(5, 9, 20, 0.7);
}

.footer-copy {
    color: var(--muted);
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 991.98px) {
    .hero {
        padding: 116px 0 72px;
    }

    .navbar-collapse {
        padding: 16px 0 8px;
    }

    .navbar .nav-link {
        border-radius: 12px;
    }
}

@media (max-width: 767.98px) {
    .section-padding {
        padding: 64px 0;
    }

    .navbar {
        min-height: 66px;
    }

    .navbar-brand {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .hero {
        padding: 96px 0 60px;
        text-align: center;
    }

    .hero::after {
        display: none;
    }

    .hero .row {
        --bs-gutter-x: 1.5rem;
        --bs-gutter-y: 2rem;
        margin-right: 0;
        margin-left: 0;
    }

    .hero .row > * {
        padding-right: 0;
        padding-left: 0;
    }

    .hero-title {
        font-size: clamp(2.65rem, 16vw, 3.8rem);
        letter-spacing: -0.055em;
    }

    .hero-description {
        margin-inline: auto;
        font-size: 0.98rem;
        line-height: 1.7;
    }

    .hero-actions {
        justify-content: center;
    }

    .avatar-frame {
        width: min(240px, 64vw);
    }

    .avatar-frame::before {
        border-width: 3px;
    }

    .avatar .role-badge {
        bottom: 18px;
        max-width: 88%;
        padding: 7px 10px;
        font-size: 0.66rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .section-title {
        font-size: clamp(1.85rem, 9vw, 2.4rem);
    }

    .experience-wrap::before {
        left: 16px;
    }

    .experience-item {
        padding-left: 44px;
        margin-bottom: 22px;
    }

    #contact .row.g-5 {
        --bs-gutter-x: 1.5rem;
        margin-right: 0;
        margin-left: 0;
    }

    #contact .row.g-5 > * {
        padding-right: 0;
        padding-left: 0;
    }

    .experience-dot {
        left: 4px;
        width: 24px;
        height: 24px;
    }

    .project-shot {
        height: 150px;
    }

    .feature-icon {
        flex: 0 0 auto;
    }

    .footer-copy {
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    body::before {
        background-size: 40px 40px;
    }

    .container {
        --bs-gutter-x: 1.5rem;
    }

    .navbar-collapse {
        margin-top: 12px;
        padding: 12px;
        border: 1px solid var(--border);
        border-radius: 16px;
        background: rgba(5, 9, 20, 0.94);
    }

    .navbar .nav-link {
        padding: 0.78rem 0.9rem !important;
    }

    .hero {
        padding-top: 88px;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.55;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-actions .icon-btn {
        width: 50px;
        height: 50px;
    }

    .glass-card {
        border-radius: 18px;
    }

    .experience-item .glass-card {
        padding: 1.25rem !important;
    }

    .experience-item .d-flex.align-items-center {
        align-items: flex-start !important;
    }

    .chip {
        font-size: 0.74rem;
    }

    .form-control {
        font-size: 1rem;
    }

    footer .icon-btn {
        width: 44px;
        height: 44px;
    }
}
