:root {
    --bg: #070b14;
    --panel: #0b1220;
    --panel2: #0d172a;
    --txt: #e9eefc;
    --muted: rgba(233, 238, 252, .72);
    --line: rgba(255, 255, 255, .08);
    --brand: #4f8cff;
    --brand2: #7c5cff;
    --ok: #2ee59d;
    --shadow: 0 18px 55px rgba(0, 0, 0, .55);
    --radius: 18px;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial;
    background:
        radial-gradient(1200px 700px at 15% 10%, rgba(79, 140, 255, .14), transparent 55%),
        radial-gradient(900px 600px at 80% 20%, rgba(124, 92, 255, .12), transparent 55%),
        var(--bg);
    color: var(--txt);
    overflow-x: hidden;
}

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

.container {
    width: min(1120px, 92%);
    margin: 0 auto
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--brand2));
    width: 0%;
    z-index: 9999;
}

/* Header / Nav */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(14px);
    background: rgba(7, 11, 20, .55);
    border-bottom: 1px solid var(--line);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px
}

.brand-text strong {
    display: block;
    font-size: 14px;
    letter-spacing: .2px
}

.brand-text small {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px
}

.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(79, 140, 255, .25), rgba(124, 92, 255, .25));
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    overflow: hidden;
    position: relative;
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px
}

.brand-logo.logo-fallback .logo-text {
    opacity: 1
}

.logo-text {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-weight: 800;
    letter-spacing: .6px;
    opacity: 0;
}

.nav {
    display: flex;
    align-items: center;
    gap: 18px
}

.nav-link {
    font-size: 13px;
    color: rgba(233, 238, 252, .86);
    padding: 10px 10px;
    border-radius: 10px;
    transition: .2s;
}

.nav-link:hover {
    background: rgba(255, 255, 255, .06)
}

.nav-link.active {
    background: rgba(79, 140, 255, .16);
    color: var(--txt);
    border: 1px solid rgba(79, 140, 255, .25)
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .04);
    cursor: pointer;
    gap: 5px;
    padding: 10px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: rgba(233, 238, 252, .9);
    border-radius: 2px;
}

/* Drawer */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    opacity: 0;
    pointer-events: none;
    transition: .25s;
    z-index: 1200;
}

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: min(360px, 92vw);
    background: rgba(11, 18, 32, .92);
    border-left: 1px solid var(--line);
    transform: translateX(105%);
    transition: .25s;
    z-index: 1300;
    backdrop-filter: blur(18px);
}

.drawer-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 18px
}

.drawer.open {
    transform: translateX(0)
}

.drawer-backdrop.open {
    opacity: 1;
    pointer-events: auto
}

.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px
}

.drawer-brand {
    display: flex;
    align-items: center;
    gap: 12px
}

.drawer-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(79, 140, 255, .25), rgba(124, 92, 255, .25));
    display: grid;
    place-items: center;
    overflow: hidden;
    position: relative;
}

.drawer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px
}

.drawer-logo.logo-fallback .logo-text {
    opacity: 1
}

.drawer-close {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .04);
    color: var(--txt);
    cursor: pointer;
}

.drawer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px
}

.drawer-link {
    padding: 12px 12px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, .03);
}

.drawer-link:hover {
    border-color: rgba(79, 140, 255, .25);
    background: rgba(79, 140, 255, .08)
}

.drawer-cta {
    margin-top: auto;
    display: grid;
    gap: 12px
}

.drawer-meta {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 12px
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .04);
    color: var(--txt);
    cursor: pointer;
    transition: .2s;
    font-weight: 600;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35)
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand2));
    border-color: transparent;
}

.btn-ghost {
    background: transparent
}

.btn-sm {
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px
}

.w-100 {
    width: 100%
}

.section {
    padding: 78px 0
}

.section-alt {
    background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent 65%)
}

.section-head {
    display: grid;
    gap: 12px;
    margin-bottom: 26px
}

.section-head h2 {
    margin: 0;
    font-size: 34px;
    letter-spacing: -.6px
}

.section-head p {
    margin: 0;
    color: var(--muted);
    max-width: 860px;
    line-height: 1.7
}

.hero {
    padding: 70px 0 40px;
    position: relative
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 28px;
    align-items: start;
}

.hero-left h1 {
    margin: 14px 0 10px;
    font-size: 46px;
    letter-spacing: -1px;
    line-height: 1.08;
}

.grad {
    background: linear-gradient(90deg, var(--brand), var(--brand2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lead {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
    font-size: 15px;
    max-width: 660px
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03);
    font-size: 12px;
    color: rgba(233, 238, 252, .85);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ok), var(--brand));
    box-shadow: 0 0 0 5px rgba(46, 229, 157, .12);
}

.hero-stats {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stat {
    padding: 14px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03);
}

.stat strong {
    display: block
}

.stat span {
    display: block;
    color: var(--muted);
    margin-top: 6px;
    font-size: 12px
}

.hero-card {
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hero-media {
    aspect-ratio: 16/10;
    background: rgba(255, 255, 255, .02)
}

.cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center
}

.hero-card-body {
    padding: 16px;
    display: grid;
    gap: 12px
}

.mini {
    display: flex;
    gap: 10px;
    align-items: flex-start
}

.mini-ic {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(79, 140, 255, .12);
    border: 1px solid rgba(79, 140, 255, .18);
}

.mini strong {
    display: block;
    font-size: 13px
}

.mini small {
    display: block;
    color: var(--muted);
    margin-top: 4px;
    line-height: 1.5
}

.hero-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.badge {
    font-size: 12px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .03);
}

.float-card {
    margin-top: 12px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(79, 140, 255, .20);
    background: rgba(79, 140, 255, .08);
}

.float-card small {
    color: rgba(233, 238, 252, .8)
}

.hero-glow {
    position: absolute;
    inset: auto 0 -60px 0;
    height: 160px;
    background: radial-gradient(closest-side, rgba(79, 140, 255, .18), transparent 70%);
    pointer-events: none;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.card {
    padding: 18px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03);
    box-shadow: 0 10px 35px rgba(0, 0, 0, .28);
}

.card h3 {
    margin: 0 0 8px
}

.card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75
}

.icon-card .ic {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(79, 140, 255, .22);
    background: rgba(79, 140, 255, .10);
    margin-bottom: 10px;
    font-size: 20px;
}

.about-strip {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.strip-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 14px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .02);
}

.strip-ic {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(124, 92, 255, .12);
    border: 1px solid rgba(124, 92, 255, .18);
}

.strip-item small {
    color: var(--muted);
    display: block;
    margin-top: 4px
}

.proj {
    border-radius: 22px;
    border: 1px solid var(--line);
    overflow: hidden;
    background: rgba(255, 255, 255, .03);
}

.proj-media {
    aspect-ratio: 16/10;
    background: rgba(255, 255, 255, .02)
}

.proj-body {
    padding: 16px
}

.pill {
    display: inline-flex;
    font-size: 12px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(124, 92, 255, .12);
    border: 1px solid rgba(124, 92, 255, .20);
    color: rgba(233, 238, 252, .9);
}

.proj-body h3 {
    margin: 10px 0 6px;
    font-size: 18px
}

.proj-body p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7
}

.subhead {
    margin: 10px 0 14px;
    font-size: 18px
}

.mt-32 {
    margin-top: 32px
}

.person {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03);
}

.avatar {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .10);
    background: linear-gradient(135deg, rgba(79, 140, 255, .18), rgba(124, 92, 255, .18));
    position: relative;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center
}

.avatar.avatar-fallback::after {
    content: attr(data-fallback);
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-weight: 800;
    letter-spacing: .6px;
}

.person-body strong {
    display: block
}

.person-body span {
    display: block;
    color: rgba(233, 238, 252, .85);
    margin-top: 4px;
    font-size: 13px
}

.person-body .muted {
    display: block;
    color: var(--muted);
    margin-top: 6px;
    font-size: 12px
}

.contact-grid {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 16px;
}

.kv {
    display: grid;
    gap: 6px;
    margin: 12px 0
}

.kv span {
    color: var(--muted);
    font-size: 12px
}

.kv strong {
    font-size: 13px;
    line-height: 1.5
}

.link {
    color: rgba(233, 238, 252, .92);
    text-decoration: underline;
    text-underline-offset: 4px
}

.map {
    margin-top: 12px
}

.map-placeholder {
    border-radius: 18px;
    border: 1px dashed rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .02);
    padding: 18px;
    min-height: 180px;
    display: grid;
    place-items: center;
    text-align: center;
}

.map-placeholder small {
    color: var(--muted);
    margin-top: 6px
}

.form {
    display: grid;
    gap: 14px
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

.field label {
    display: block;
    font-size: 12px;
    color: rgba(233, 238, 252, .85);
    margin-bottom: 8px
}

input,
textarea {
    width: 100%;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .10);
    color: var(--txt);
    padding: 12px 12px;
    border-radius: 14px;
    outline: none;
}

input:focus,
textarea:focus {
    border-color: rgba(79, 140, 255, .45);
    box-shadow: 0 0 0 4px rgba(79, 140, 255, .12);
}

.hp {
    position: absolute;
    left: -9999px;
    opacity: 0
}

.alert {
    margin-top: 10px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03);
    font-size: 13px;
}

.alert.ok {
    border-color: rgba(46, 229, 157, .35);
    background: rgba(46, 229, 157, .08)
}

.alert.bad {
    border-color: rgba(255, 120, 120, .35);
    background: rgba(255, 120, 120, .08)
}

.footer {
    padding: 26px 0;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, .02);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr 1fr;
    gap: 14px;
    align-items: start;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px
}

.footer-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(79, 140, 255, .25), rgba(124, 92, 255, .25));
    display: grid;
    place-items: center;
    overflow: hidden;
    position: relative;
}

.footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px
}

.footer-logo.logo-fallback .logo-text {
    opacity: 1
}

.footer-links {
    display: grid;
    gap: 10px
}

.footer-links a {
    color: rgba(233, 238, 252, .85)
}

.footer-links a:hover {
    color: var(--txt);
    text-decoration: underline;
    text-underline-offset: 4px
}

.footer-meta {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 12px
}

.muted {
    color: var(--muted)
}

/* Responsive */
@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 18px
    }

    .hero-left h1 {
        font-size: 38px
    }

    .grid-3 {
        grid-template-columns: 1fr 1fr
    }

    .about-strip {
        grid-template-columns: 1fr
    }

    .contact-grid {
        grid-template-columns: 1fr
    }
}

@media (max-width: 720px) {
    .nav {
        display: none
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center
    }

    .hero-left h1 {
        font-size: 34px
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .grid-3 {
        grid-template-columns: 1fr
    }

    .row {
        grid-template-columns: 1fr
    }

    .footer-grid {
        grid-template-columns: 1fr
    }
}

/* ===== Mobile Drawer Fix (iPhone / Safari) ===== */
@media (max-width: 720px) {

    /* Backdrop ko strong karo taa ke page peeche dim ho */
    .drawer-backdrop {
        background: rgba(0, 0, 0, .72) !important;
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }

    /* Drawer ka background SOLID (no see-through) */
    .drawer {
        background: var(--panel) !important;
        /* #0b1220 */
        opacity: 1 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* iPhone notch / safe area spacing */
    .drawer-inner {
        padding-top: calc(18px + env(safe-area-inset-top)) !important;
        padding-bottom: calc(18px + env(safe-area-inset-bottom)) !important;
    }

    /* Links ko card-style background do */
    .drawer-links {
        background: rgb(14, 8, 57) !important;
        border: 1px solid rgba(255, 255, 255, .08) !important;
        border-radius: 16px !important;
        padding: 10px !important;
    }

    .drawer-link {
        background: rgba(255, 255, 255, .05) !important;
        border: 1px solid rgba(255, 255, 255, .10) !important;
        color: rgba(233, 238, 252, .92) !important;
        font-weight: 600;
    }

    .drawer-link:hover {
        background: rgba(79, 140, 255, .12) !important;
        border-color: rgba(79, 140, 255, .25) !important;
    }
}