:root{
    --bg:#070b08;
    --card:#0e1410;
    --card2:#111a14;
    --text:#f3fff6;
    --muted:#b7c9bd;

    --green:#00ff88;
    --green2:#39ffb0;
    --green3:#bfffe2;

    --border:rgba(255,255,255,.08);
    --shadow: 0 20px 60px rgba(0,0,0,.55);
    --radius: 18px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
    margin:0;
    font-family:"Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color:var(--text);
    background:
            radial-gradient(1000px 600px at 10% 10%, rgba(0,255,136,.18), transparent 60%),
            radial-gradient(900px 600px at 90% 20%, rgba(57,255,176,.12), transparent 60%),
            radial-gradient(700px 700px at 60% 90%, rgba(191,255,226,.08), transparent 60%),
            var(--bg);
    overflow-x:hidden;
}

.container{
    width:min(1100px, 92%);
    margin:0 auto;
    padding:90px 0 40px;
}

/* Blobs */
.blob{
    position:fixed;
    filter: blur(90px);
    opacity:.35;
    z-index:-1;
}
.blob-1{
    width:520px;height:520px;
    left:-160px; top:120px;
    background: radial-gradient(circle at 30% 30%, var(--green), transparent 55%);
}
.blob-2{
    width:560px;height:560px;
    right:-180px; top:60px;
    background: radial-gradient(circle at 40% 40%, var(--green2), transparent 60%);
}

/* Header / Nav */
.header{
    position:fixed;
    top:0; left:0; right:0;
    backdrop-filter: blur(12px);
    background: rgba(7,11,8,.60);
    border-bottom:1px solid var(--border);
    z-index:50;
}
.nav{
    width:min(1100px, 92%);
    margin:0 auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:14px 0;
}
.logo{
    display:flex;
    align-items:center;
    gap:10px;
    text-decoration:none;
    color:var(--text);
    font-weight:700;
    letter-spacing:.3px;
}
.logo-dot{
    width:10px;height:10px;
    border-radius:999px;
    background: linear-gradient(135deg, var(--green), var(--green2));
    box-shadow: 0 0 22px rgba(0,255,136,.35);
}

.nav-links{
    display:flex;
    align-items:center;
    gap:18px;
    list-style:none;
    padding:0;
    margin:0;
}
.nav-links a{
    color:var(--muted);
    text-decoration:none;
    font-weight:500;
    transition:.2s ease;
}
.nav-links a:hover{
    color:var(--text);
    text-shadow: 0 0 18px rgba(0,255,136,.18);
}

.menu-btn{
    display:none;
    width:44px;height:44px;
    border:1px solid var(--border);
    background: rgba(255,255,255,.04);
    border-radius:14px;
    cursor:pointer;
}
.menu-btn span{
    display:block;
    height:2px;
    width:20px;
    margin:5px auto;
    background: var(--text);
    border-radius:999px;
}

/* Hero */
.hero{
    display:grid;
    grid-template-columns: 1.2fr .9fr;
    gap:34px;
    align-items:center;
    padding-top:12px;
}

.pill{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:8px 12px;
    border:1px solid rgba(0,255,136,.25);
    background: rgba(0,255,136,.06);
    border-radius:999px;
    color: var(--green3);
    font-weight:500;
    margin:0 0 16px;
    box-shadow: 0 10px 30px rgba(0,255,136,.06);
}

.hero-title{
    font-size: clamp(34px, 4vw, 54px);
    line-height:1.08;
    margin:0 0 12px;
}
.grad{
    background: linear-gradient(135deg, var(--green), var(--green2));
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
    filter: drop-shadow(0 10px 25px rgba(0,255,136,.08));
}
.hero-sub{
    color:var(--muted);
    font-size: 16px;
    line-height:1.7;
    margin:0 0 22px;
    max-width: 54ch;
}

.hero-cta{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin-bottom:14px;
}

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:12px 16px;
    border-radius: 14px;
    border:1px solid rgba(0,255,136,.30);
    background: linear-gradient(135deg, rgba(0,255,136,.95), rgba(57,255,176,.95));
    color:#00150b;
    font-weight:800;
    text-decoration:none;
    box-shadow: 0 14px 38px rgba(0,255,136,.14);
    transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.btn:hover{
    transform: translateY(-1px);
    filter:brightness(1.02);
    box-shadow: 0 18px 48px rgba(0,255,136,.18);
}
.btn:active{ transform: translateY(0); }

.btn-ghost{
    background: rgba(255,255,255,.04);
    color:var(--text);
    border:1px solid var(--border);
    box-shadow:none;
}
.btn-ghost:hover{
    border-color: rgba(0,255,136,.22);
    box-shadow: 0 12px 32px rgba(0,255,136,.08);
}
.btn-small{ padding:10px 14px; border-radius: 13px; }

.hero-social{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}
.chip{
    text-decoration:none;
    color:var(--muted);
    border:1px solid var(--border);
    background: rgba(255,255,255,.03);
    padding:10px 12px;
    border-radius: 999px;
    transition:.2s ease;
}
.chip:hover{
    color:var(--text);
    border-color: rgba(0,255,136,.28);
    box-shadow: 0 10px 28px rgba(0,255,136,.10);
}

/* Portrait */
.portrait-card{
    position:relative;
    border:1px solid var(--border);
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
    border-radius: 26px;
    padding:14px;
    box-shadow: var(--shadow);
}
.portrait{
    width:100%;
    height: 420px;
    object-fit: cover;
    border-radius: 20px;
    display:block;
    border:1px solid rgba(255,255,255,.10);
}
.portrait-glow{
    position:absolute;
    inset:-34px;
    background: radial-gradient(circle at 35% 25%, rgba(0,255,136,.22), transparent 55%);
    filter: blur(34px);
    z-index:-1;
}

.mini-badges{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-top:12px;
}
.mini{
    font-size:13px;
    color:var(--green3);
    padding:8px 10px;
    border-radius: 999px;
    border:1px solid rgba(0,255,136,.25);
    background: rgba(0,255,136,.08);
}

/* Sections */
.section{ margin-top: 70px; }

.section-head{ margin-bottom: 18px; }
.section-head h2{
    font-size: 28px;
    margin:0 0 8px;
}
.section-head p{
    margin:0;
    color:var(--muted);
    line-height:1.7;
}

.grid-2{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap:18px;
}

/* Cards */
.card{
    border:1px solid var(--border);
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
    border-radius: var(--radius);
    padding:18px;
    box-shadow: 0 14px 40px rgba(0,0,0,.28);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover{
    transform: translateY(-2px);
    border-color: rgba(0,255,136,.18);
    box-shadow: 0 18px 55px rgba(0,0,0,.42);
}
.card h3{ margin:0 0 10px; }
.muted{ color:var(--muted); }
.tiny{ font-size: 12px; margin-top:10px; }

.bullets{
    margin:12px 0 0;
    padding-left: 18px;
    color: var(--muted);
}
.bullets li{ margin:8px 0; }

/* Facts */
.facts{
    display:flex;
    flex-direction:column;
    gap:12px;
}
.fact{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding:12px 12px;
    border-radius: 14px;
    border:1px solid rgba(255,255,255,.08);
    background: rgba(0,0,0,.18);
}
.fact b{
    color: var(--text);
    letter-spacing:.2px;
}
.fact span{ color:var(--muted); font-size: 13px; }

/* Skills */
.skills{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap:18px;
}
.tags{ display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.tag{
    font-size:12px;
    padding:7px 10px;
    border-radius:999px;
    border:1px solid rgba(0,255,136,.25);
    background: rgba(0,255,136,.07);
    color: var(--green3);
}

/* Projects */
.projects{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap:18px;
}
.project-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
}
.badge{
    font-size:12px;
    padding:6px 10px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.10);
    color: var(--muted);
    background: rgba(255,255,255,.04);
}
.project-links{
    display:flex;
    gap:12px;
    margin-top:12px;
}
.link{
    color: var(--green2);
    text-decoration:none;
    font-weight:700;
}
.link:hover{
    text-decoration: underline;
    text-shadow: 0 0 18px rgba(0,255,136,.12);
}

/* Form */
.form label{
    display:block;
    margin:12px 0;
    color: var(--muted);
    font-size: 13px;
}
input, textarea{
    width:100%;
    margin-top:6px;
    border-radius: 14px;
    padding:12px 12px;
    border:1px solid rgba(255,255,255,.10);
    background: rgba(0,0,0,.25);
    color: var(--text);
    outline:none;
}
input:focus, textarea:focus{
    border-color: rgba(0,255,136,.45);
    box-shadow: 0 0 0 4px rgba(0,255,136,.10);
}

/* Footer */
.footer{
    margin-top: 50px;
    padding: 20px 0 10px;
    text-align:center;
    color: var(--muted);
    border-top:1px solid var(--border);
}

/* Responsive */
@media (max-width: 980px){
    .hero{ grid-template-columns: 1fr; }
    .portrait{ height: 420px; }
    .skills{ grid-template-columns: 1fr; }
    .projects{ grid-template-columns: 1fr; }
    .grid-2{ grid-template-columns: 1fr; }
}

@media (max-width: 720px){
    .menu-btn{ display:block; }
    .nav-links{
        position:absolute;
        top:64px;
        left:4%;
        right:4%;
        padding:14px;
        border-radius: 18px;
        border:1px solid var(--border);
        background: rgba(7,11,8,.92);
        backdrop-filter: blur(12px);
        display:none;
        flex-direction:column;
        align-items:stretch;
        gap:10px;
    }
    .nav-links.open{ display:flex; }
    .nav-links a{ padding:10px 12px; border-radius: 14px; }
    .nav-links a:hover{ background: rgba(255,255,255,.04); }
}
.images img{
    width: 150px;
}
.images {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 180px;
}

.images img {
    max-width: 90%;
    max-height: 100%;
    object-fit: contain;
}
#loader {
    position: fixed;
    inset: 0;
    background: #0b0f0d;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
#contact_color{
    background: #1efc8f;
    color: #0b0f0d;
    font-weight: 600;
}