:root {
    --bg: #071018;
    --card: rgba(255, 255, 255, .06);
    --stroke: rgba(255, 255, 255, .12);
    --text: #eaf2ff;
    --muted: rgba(234, 242, 255, .72);
    --grad: linear-gradient(90deg, #8b5cf6, #22d3ee);
    --shadow: 0 20px 60px rgba(0, 0, 0, .35);
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: "Cairo", system-ui, -apple-system, Segoe UI, Roboto, Arial;
    background: radial-gradient(1200px 600px at 80% 20%, rgba(139, 92, 246, .25), transparent 60%),
        radial-gradient(900px 600px at 20% 80%, rgba(34, 211, 238, .20), transparent 60%),
        var(--bg);
    color: var(--text);
}

.bg-grid {
    position: fixed;
    inset: 0;
    background-image: linear-gradient(to right, rgba(255, 255, 255, .06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: .08;
    pointer-events: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 18px
}

.nav {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(10px);
    background: rgba(7, 16, 24, .55);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 700
}

.brand-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, #8b5cf6, #22d3ee);
    box-shadow: 0 0 22px rgba(139, 92, 246, .55);
}

.links {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap
}

.links a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600
}

.links a:hover {
    color: var(--text)
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .08);
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}

.btn:hover {
    transform: translateY(-1px)
}

.btn-sm {
    padding: 9px 12px;
    border-radius: 12px;
    font-weight: 700
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .14);
}

.flash-wrap {
    margin: 18px 0
}

.flash {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .06);
}

.flash.success {
    border-color: rgba(34, 211, 238, .35)
}

.flash.error {
    border-color: rgba(244, 63, 94, .35)
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 22px;
    padding: 40px 0 18px;
    align-items: center;
}

.pill {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .06);
    color: var(--muted);
    font-weight: 700;
    width: max-content;
}

h1 {
    font-size: 52px;
    line-height: 1.05;
    margin: 14px 0 12px
}

.grad {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.lead {
    font-size: 18px;
    color: var(--muted);
    max-width: 52ch
}

.hero-cta {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap
}

.stats {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap
}

.stat {
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .06);
    min-width: 120px;
}

.stat-num {
    font-weight: 800
}

.stat-lbl {
    color: var(--muted);
    font-size: 13px
}

.orb-wrap {
    position: relative;
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center
}

.orb {
    width: 290px;
    height: 290px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 45%),
        radial-gradient(circle at 70% 70%, rgba(34, 211, 238, .45), rgba(34, 211, 238, 0) 55%),
        radial-gradient(circle at 60% 35%, rgba(139, 92, 246, .65), rgba(139, 92, 246, 0) 60%),
        linear-gradient(135deg, rgba(139, 92, 246, .85), rgba(34, 211, 238, .75));
    filter: blur(.0px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
    transform: rotate(-10deg);
}

.orb-shadow {
    position: absolute;
    bottom: 28px;
    width: 220px;
    height: 40px;
    background: rgba(0, 0, 0, .55);
    filter: blur(18px);
    border-radius: 999px;
    opacity: .6;
}

.section {
    padding: 26px 0
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px
}

.section-head h2 {
    margin: 0;
    font-size: 26px
}

.link {
    color: var(--muted);
    text-decoration: none;
    font-weight: 700
}

.link:hover {
    color: var(--text)
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.card {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .06);
    padding: 16px;
    box-shadow: var(--shadow);
}

.card h2,
.card h3 {
    margin: 0 0 8px
}

.muted {
    color: var(--muted)
}

.bullets {
    margin: 10px 0 0;
    padding: 0 18px;
    color: var(--muted)
}

.bullets li {
    margin: 6px 0
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px
}

.chip {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(0, 0, 0, .12);
    color: var(--muted);
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
}

.link-chip:hover {
    color: var(--text);
    border-color: rgba(34, 211, 238, .35)
}

.card-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap
}

.page-head {
    padding: 26px 0 10px
}

.page-head h1 {
    font-size: 38px;
    margin: 0 0 6px
}

.skill {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 12px;
    align-items: center;
    margin: 12px 0
}

.bar {
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .10);
    overflow: hidden;
}

.bar span {
    display: block;
    height: 100%;
    background: var(--grad);
    border-radius: 999px;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 10px
}

input,
textarea {
    width: 100%;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(0, 0, 0, .18);
    color: var(--text);
    outline: none;
}

label {
    color: var(--muted);
    font-weight: 700
}

.quick {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.divider {
    height: 1px;
    background: rgba(255, 255, 255, .10);
    margin: 16px 0
}

.footer {
    padding: 22px 0 28px;
    color: var(--muted);
    border-top: 1px solid rgba(255, 255, 255, .08);
    margin-top: 30px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 26px
    }

    h1 {
        font-size: 42px
    }

    .grid-3 {
        grid-template-columns: 1fr
    }

    .grid-2 {
        grid-template-columns: 1fr
    }
}

#bg3d {
    width: 100%;
    height: 420px;
    max-width: 520px;
    display: block;
    margin: 0 auto;
}