/* =======================================================================
   DEV91 — Light portfolio · inspired by bipinmv.netlify.app
   ======================================================================= */

:root {
    --primary:       #091292;
    --primary-dark:  #060c6e;
    --primary-light: #2631d4;
    --primary-pale:  #eef0ff;

    --bg:            #ffffff;
    --bg-alt:        #f5f6ff;
    --bg-dark:       #091292;

    --text:          #212529;
    --text-muted:    #6c757d;
    --text-grey:     #727070;
    --border:        #dee2e6;

    --shadow:        0 2px 12px rgba(9,18,146,0.08);
    --shadow-hover:  0 6px 24px rgba(9,18,146,0.18);
    --shadow-card:   0 3px 0 #ddd;

    --font-main:     'Montserrat', system-ui, sans-serif;
    --font-cursive:  'Arizonia', cursive;
    --font-watermark:'Fira Sans', sans-serif;

    --wrap:          1140px;
    --pad:           clamp(1rem, 4vw, 2rem);

    --r:    8px;
    --r-lg: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Scrollbar */
body::-webkit-scrollbar { width: 8px; }
body::-webkit-scrollbar-track { box-shadow: inset 0 0 6px rgba(0,0,0,.1); }
body::-webkit-scrollbar-thumb { background: #aeadb1; border-radius: 6px; }

img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--primary-light); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 3px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

/* ── Skip link ───────────────────────────────────────────────────────── */
.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--primary); color: #fff;
    padding: .45rem 1rem; z-index: 200; font-size: .875rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: .45rem;
    font-family: var(--font-main); font-size: .875rem; font-weight: 600;
    padding: .65rem 1.5rem; border-radius: 50px;
    border: 2px solid transparent; cursor: pointer;
    text-decoration: none; line-height: 1; letter-spacing: .02em;
    transition: all .2s ease; white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }

.btn-primary {
    background: var(--primary); color: #fff; border-color: var(--primary);
    box-shadow: var(--shadow);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-color: var(--primary-light);
    color: #fff; transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(9,18,146,.3);
}

.btn-outline {
    background: transparent; color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary); color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(9,18,146,.3);
}

.btn-tg {
    background: transparent; color: #0088cc; border-color: #0088cc;
}
.btn-tg:hover {
    background: #0088cc; color: #fff;
    transform: translateY(-2px);
}
.btn-tg svg { color: inherit; }

.btn[disabled] { opacity: .55; cursor: progress; transform: none !important; }

/* ── Header / Navbar ─────────────────────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 68px;
}
.brand {
    font-family: var(--font-main);
    font-weight: 900; font-size: 1.1rem;
    color: var(--primary);
    display: inline-flex; align-items: center; gap: .5rem;
    letter-spacing: .02em;
}
.brand-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--primary); display: inline-block;
    box-shadow: 0 0 6px rgba(9,18,146,.5);
}

.site-nav { position: relative; }
.nav-list {
    display: flex; align-items: center; gap: .25rem;
    list-style: none; margin: 0; padding: 0;
}
.nav-list a {
    font-size: .875rem; font-weight: 500;
    color: var(--text-muted); padding: .45rem .875rem;
    border-radius: var(--r);
    transition: color .15s, font-weight .1s;
    display: inline-block;
}
.nav-list a:hover { color: var(--primary); font-weight: 700; }

.nav-list .nav-hire {
    font-size: .8125rem; font-weight: 700;
    color: #fff; padding: .45rem 1.1rem;
    background: var(--primary);
    border-radius: 50px; margin-left: .5rem;
    transition: background .2s, transform .2s, box-shadow .2s;
}
.nav-list .nav-hire:hover {
    background: var(--primary-light);
    color: #fff; font-weight: 700;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(9,18,146,.35);
}

.nav-toggle {
    display: none;
    background: transparent; border: 2px solid var(--primary);
    border-radius: var(--r); width: 40px; height: 40px;
    padding: 0; cursor: pointer; color: var(--primary);
    flex-direction: column; justify-content: center; align-items: center; gap: 4px;
}
.nav-toggle span {
    display: block; width: 16px; height: 2px;
    background: currentColor;
    transition: transform .2s, opacity .2s;
}

/* ── Reveal ──────────────────────────────────────────────────────────── */
.reveal {
    opacity: 0; transform: translateY(20px);
    transition: opacity .65s cubic-bezier(.16,1,.3,1), transform .65s cubic-bezier(.16,1,.3,1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ── Section shared ──────────────────────────────────────────────────── */
.section { padding: 6rem 0; position: relative; overflow: hidden; }
.section-alt { background: var(--bg-alt); }

.section-watermark {
    position: absolute;
    font-family: var(--font-watermark);
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    opacity: .04;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    line-height: 1;
    right: var(--pad);
    top: 2rem;
    letter-spacing: .05em;
}

.section-label {
    font-size: .75rem; font-weight: 700;
    color: var(--primary); text-transform: uppercase;
    letter-spacing: .12em;
    display: flex; align-items: center; gap: .75rem;
    margin-bottom: .75rem;
}
.section-label::before {
    content: ''; width: 28px; height: 2px;
    background: var(--primary); border-radius: 2px;
}
.section-heading {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800; letter-spacing: -.02em; line-height: 1.15;
    color: var(--text); margin: 0 0 1rem;
}
.section-sub {
    font-size: 1rem; color: var(--text-muted); margin: 0;
    max-width: 56ch; line-height: 1.7;
}

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center;
    overflow: hidden;
}

#tsparticles {
    position: absolute; inset: 0;
    z-index: 0;
}

.hero-content {
    position: relative; z-index: 1;
    width: 100%; padding: 4rem 0;
}

.hero-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
}

.hero-text {
    flex: 1 1 0;
    min-width: 0;
}

.hero-img-wrap {
    flex: 0 0 45%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.hero-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 600px;
    object-fit: contain;
}

.hero-greeting {
    font-size: 1.125rem; font-weight: 500;
    color: var(--text-muted); margin: 0 0 .5rem;
    letter-spacing: .04em;
}

.hero-name {
    font-family: var(--font-main);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    color: var(--primary);
    margin: 0 0 .75rem;
    line-height: 1.0;
    letter-spacing: -.03em;
}

.hero-role {
    font-size: clamp(1rem, 2.5vw, 1.375rem);
    font-weight: 400; color: var(--text-muted);
    margin: 0 0 1.5rem;
    min-height: 2em;
    display: flex; align-items: center; gap: .35rem; flex-wrap: wrap;
}
.hero-role strong { font-weight: 600; color: var(--text); }
.typed-text {
    font-weight: 700; color: var(--primary);
}
.typed-cursor {
    font-weight: 300; color: var(--primary);
    animation: cursor-blink .8s step-end infinite;
    font-size: 1.1em;
}
@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

.hero-bio {
    font-size: .9375rem; color: var(--text-grey);
    max-width: 52ch; line-height: 1.8;
    margin: 0 0 2.25rem;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero-stats {
    display: flex; flex-wrap: wrap; gap: 2.5rem;
    margin-top: 3rem; padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.hero-stat {}
.hstat-num {
    font-size: 1.625rem; font-weight: 900;
    color: var(--primary); line-height: 1;
    letter-spacing: -.02em;
}
.hstat-label {
    font-size: .75rem; font-weight: 500;
    color: var(--text-muted); text-transform: uppercase;
    letter-spacing: .08em; margin-top: .2rem;
}

/* ═══════════════════════════════════════
   ABOUT
═══════════════════════════════════════ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    position: relative; z-index: 1;
}
@media (min-width: 768px) {
    .about-grid { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
}

.about-avatar-wrap {
    display: flex; justify-content: center;
}
.about-avatar {
    width: clamp(200px, 30vw, 280px);
    height: clamp(200px, 30vw, 280px);
    border-radius: 50%;
    border: 5px solid var(--primary);
    background: var(--primary-pale);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 10px rgba(9,18,146,.06);
    overflow: hidden;
    flex-shrink: 0;
}
.about-avatar svg {
    width: 55%; height: 55%;
    color: var(--primary); opacity: .6;
}

.about-text-wrap {}
.about-text-wrap .section-label { margin-bottom: 1rem; }
.about-desc {
    font-size: .9375rem; color: var(--text-grey);
    line-height: 1.85; margin: 0 0 1.25rem;
}
.about-desc strong { color: var(--text); font-weight: 600; }

.about-detail-list {
    list-style: none; padding: 0; margin: 0 0 2rem;
    display: flex; flex-direction: column; gap: .6rem;
}
.about-detail-list li {
    font-size: .875rem; color: var(--text-muted);
    display: flex; align-items: center; gap: .6rem;
}
.about-detail-list li strong {
    color: var(--primary); font-weight: 700; min-width: 100px;
}
.about-detail-list li::before {
    content: '›'; color: var(--primary); font-size: 1.1rem; font-weight: 700;
}

/* ═══════════════════════════════════════
   SKILLS
═══════════════════════════════════════ */
.skills-intro {
    text-align: center;
    margin-bottom: 3rem;
    position: relative; z-index: 1;
}
.skills-intro .section-label { justify-content: center; }
.skills-intro .section-label::before { display: none; }
.skills-intro .section-label::after {
    content: ''; width: 28px; height: 2px;
    background: var(--primary); border-radius: 2px;
}

.skills-grid {
    display: flex; flex-wrap: wrap;
    justify-content: center; gap: 1.5rem;
    position: relative; z-index: 1;
}

.skill-item {
    display: flex; flex-direction: column; align-items: center; gap: .6rem;
    cursor: default;
}
.skill-icon-wrap {
    width: 80px; height: 80px;
    border-radius: var(--r-lg);
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow);
    transition: transform .15s ease-in-out, box-shadow .15s;
    overflow: hidden; padding: 12px;
}
.skill-item:hover .skill-icon-wrap {
    transform: scale(1.12);
    box-shadow: var(--shadow-hover);
}
.skill-icon-wrap img {
    width: 100%; height: 100%;
    object-fit: contain; display: block;
}
.skill-icon-wrap .skill-text-icon {
    font-size: .6875rem; font-weight: 800;
    color: var(--primary); text-align: center;
    line-height: 1.25; letter-spacing: .02em;
    text-transform: uppercase;
}
.skill-name {
    font-size: .75rem; font-weight: 600;
    color: var(--text-muted); text-align: center;
    letter-spacing: .02em;
}

/* ═══════════════════════════════════════
   SERVICES
═══════════════════════════════════════ */
.services-intro {
    margin-bottom: 3rem;
    position: relative; z-index: 1;
}
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    position: relative; z-index: 1;
}
@media (min-width: 560px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }

.svc-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    transition: box-shadow .22s, transform .22s, border-color .22s;
    position: relative; overflow: hidden;
}
.svc-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    opacity: 0; transition: opacity .22s;
}
.svc-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
    border-color: rgba(9,18,146,.15);
}
.svc-card:hover::before { opacity: 1; }

.svc-num {
    font-size: .7rem; font-weight: 700;
    color: var(--primary); letter-spacing: .1em;
    text-transform: uppercase; margin-bottom: 1rem; display: block;
    opacity: .6;
}
.svc-icon-wrap {
    width: 48px; height: 48px;
    border-radius: var(--r);
    background: var(--primary-pale);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.125rem;
    color: var(--primary);
    transition: background .2s, transform .2s;
}
.svc-card:hover .svc-icon-wrap {
    background: var(--primary);
    color: #fff;
    transform: rotate(-3deg) scale(1.05);
}
.svc-icon-wrap svg { width: 22px; height: 22px; }
.svc-title {
    font-size: 1.0625rem; font-weight: 700;
    color: var(--text); margin: 0 0 .6rem;
    letter-spacing: -.01em;
}
.svc-desc {
    font-size: .875rem; line-height: 1.75;
    color: var(--text-muted); margin: 0 0 1.125rem;
}
.svc-tags {
    display: flex; flex-wrap: wrap; gap: .35rem;
}
.svc-tag {
    font-size: .7rem; font-weight: 600;
    color: var(--primary);
    background: var(--primary-pale);
    padding: .25rem .65rem; border-radius: 50px;
    letter-spacing: .02em;
}

/* ═══════════════════════════════════════
   CONTACT
═══════════════════════════════════════ */
.contact-section {
    background: linear-gradient(135deg, #f5f6ff 0%, #eef0ff 100%);
}

.contact-top {
    text-align: center; margin-bottom: 3rem;
    position: relative; z-index: 1;
}
.contact-top .section-label { justify-content: center; }
.contact-top .section-label::before { display: none; }
.contact-top .section-label::after {
    content: ''; width: 28px; height: 2px;
    background: var(--primary); border-radius: 2px;
}
.contact-top .section-sub { margin-inline: auto; }

.contact-methods {
    display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem;
    margin-bottom: 3rem;
    position: relative; z-index: 1;
}
.contact-btn {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--font-main); font-size: .8125rem; font-weight: 700;
    padding: .65rem 1.375rem; border-radius: 50px; border: none;
    cursor: pointer; text-decoration: none; line-height: 1;
    background: var(--primary); color: #fff;
    transition: all .2s ease; letter-spacing: .02em;
    box-shadow: var(--shadow);
    overflow: hidden; position: relative;
}
.contact-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.contact-btn .btn-text-reveal {
    max-width: 0; overflow: hidden;
    transition: max-width .5s;
    white-space: nowrap; vertical-align: top;
}
.contact-btn:hover .btn-text-reveal { max-width: 8rem; }
.contact-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(9,18,146,.35);
}
.contact-btn.tg-btn { background: #2aabee; }
.contact-btn.tg-btn:hover { background: #1a9de0; }

.contact-form-wrap {
    max-width: 680px; margin: 0 auto;
    background: var(--bg);
    border: 1px solid rgba(9,18,146,.1);
    border-radius: var(--r-lg);
    padding: 2.25rem;
    box-shadow: var(--shadow-hover);
    position: relative; z-index: 1;
}
.contact-form { display: grid; gap: 1.125rem; }

.flash {
    padding: .8rem 1rem; border-radius: var(--r);
    font-size: .875rem; border: 1px solid transparent; font-weight: 500;
}
.flash-ok  { background: #f0fff4; border-color: #68d391; color: #276749; }
.flash-err { background: #fff5f5; border-color: #fc8181; color: #c53030; }

.contact-form label { display: block; width: 100%; }
.field-label {
    display: block; font-size: .7rem; font-weight: 700;
    color: var(--text-muted); text-transform: uppercase;
    letter-spacing: .1em; margin-bottom: .45rem;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%; background: var(--bg-alt); color: var(--text);
    border: 1.5px solid var(--border); border-radius: var(--r);
    padding: .75rem 1rem; font-family: var(--font-main); font-size: .9rem;
    transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #aaa; }
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary); outline: none;
    box-shadow: 0 0 0 3px rgba(9,18,146,.1);
    background: #fff;
}
.contact-form textarea { resize: vertical; min-height: 140px; line-height: 1.65; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.125rem; }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; }
.form-actions .btn { padding: .75rem 2rem; font-size: .9rem; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer {
    margin-top: auto; padding: 1.75rem 0;
    background: var(--bg); border-top: 1px solid var(--border);
}
.footer-inner {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: .5rem;
    font-size: .8125rem; color: var(--text-muted);
}
.footer-inner a { color: var(--primary); font-weight: 500; }
.footer-inner a:hover { color: var(--primary-light); text-decoration: underline; }

/* ── Toast ───────────────────────────────────────────────────────────── */
.toast {
    position: fixed; bottom: 1.5rem; left: 50%;
    transform: translateX(-50%) translateY(.75rem);
    background: #fff; border: 1px solid var(--border);
    color: var(--text); padding: .8rem 1.5rem;
    border-radius: 50px; font-size: .875rem; font-weight: 500;
    opacity: 0; pointer-events: none;
    transition: opacity .22s, transform .22s cubic-bezier(.16,1,.3,1);
    z-index: 200; max-width: calc(100% - 2rem);
    box-shadow: 0 8px 28px rgba(0,0,0,.12);
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.toast.toast-ok  { border-color: #68d391; color: #276749; }
.toast.toast-err { border-color: #fc8181; color: #c53030; }

/* ── Mobile nav ──────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .nav-toggle { display: inline-flex; }
    .nav-list {
        position: absolute; top: calc(100% + 8px); right: 0;
        flex-direction: column; gap: 0;
        background: #fff; border: 1px solid var(--border);
        border-radius: var(--r-lg); padding: .5rem;
        min-width: 180px; display: none;
        box-shadow: 0 12px 32px rgba(0,0,0,.12);
    }
    .nav-list a { display: block; padding: .65rem .875rem; }
    .nav-list .nav-hire { margin-left: 0; border-radius: var(--r); margin-top: .25rem; }
    .site-nav.is-open .nav-list { display: flex; }
    .site-nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .site-nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
    .site-nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

    .hero { min-height: auto; padding: 5rem 0 4rem; }
    .hero-inner { flex-direction: column; }
    .hero-img-wrap { flex: unset; width: 70%; max-width: 300px; align-self: center; }
    .section { padding: 4rem 0; }
    .section-watermark { font-size: 20vw; }
}

/* ── Selection ───────────────────────────────────────────────────────── */
::selection { background: var(--primary); color: #fff; }
