/* ============================================================
   CODE-VIBE HERO SECTION CSS — Exact match to provided HTML
   ============================================================ */

/* ── Design Tokens ────────────────────────────────────────── */
:root {
    --primary:   #00ff9d;
    --bg-dark:   #05070a;
    --accent:    #2563eb;
    --text-main: #f8fafc;
    --text-dim:  #94a3b8;
    --fira:      'Fira Code', monospace;
    --outfit:    'Outfit', sans-serif;
    --tiro:      'Tiro Bangla', serif;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--outfit);
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.lang-bn * { font-family: var(--tiro) !important; }

/* ── CODE-VIBE BACKGROUND ──────────────────────────────────── */
.code-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    background:
        radial-gradient(circle at 50% 50%, rgba(37,99,235,0.05) 0%, transparent 50%),
        linear-gradient(rgba(0,255,157,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,255,157,0.02) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
}
.bg-snippet {
    position: absolute;
    font-family: var(--fira);
    font-size: 13px;
    color: rgba(0,255,157,0.08);
    pointer-events: none;
    user-select: none;
    line-height: 1.8;
    animation: codePulse 4s infinite alternate;
}
@keyframes codePulse { from { opacity: 0.03; } to { opacity: 0.15; } }

/* ── PRELOADER ─────────────────────────────────────────────── */
#preloader {
    position: fixed; inset: 0;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    transition: opacity .7s ease;
}
#preloader.done { opacity: 0; pointer-events: none; }
.preloader-logo {
    font-family: var(--fira);
    font-size: 20px;
    color: var(--primary);
    text-shadow: 0 0 20px rgba(0,255,157,0.5);
    animation: preloaderBlink 1s infinite;
}
@keyframes preloaderBlink { 0%,100%{ opacity:1; } 50%{ opacity:0; } }

/* ── DESKTOP HEADER ────────────────────────────────────────── */
.desktop-header {
    position: fixed; top: 0; left: 0; width: 100%;
    padding: 22px 0; z-index: 900;
    transition: all .4s ease;
}
.desktop-header.scrolled {
    background: rgba(5,7,10,.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,255,157,.1);
    padding: 14px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo {
    font-family: var(--fira);
    font-size: 22px;
    color: var(--primary);
    text-shadow: 0 0 15px rgba(0,255,157,0.35);
}
.desktop-nav { display: flex; align-items: center; gap: 36px; }
.desktop-nav a { font-size: 14px; font-weight: 600; color: var(--text-dim); transition: color .25s; }
.desktop-nav a:hover { color: var(--primary); }
.lang-switch {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 14px;
    background: rgba(0,255,157,.04);
    border: 1px solid rgba(0,255,157,.15);
    border-radius: 8px;
    font-family: var(--fira); font-size: 12px;
}
.lang-switch a { color: var(--text-dim); transition: .2s; }
.lang-switch a.active { color: var(--primary); }

/* ── CONTAINER ─────────────────────────────────────────────── */
.container { width: 92%; max-width: 1300px; margin: 0 auto; }
.section { padding: 110px 0; }
.section-title { font-size: clamp(28px,4vw,44px); font-weight: 900; margin-bottom: 12px; letter-spacing: -1px; }
.section-title span { color: var(--primary); }
.section-sub { color: var(--text-dim); font-size: 16px; margin-bottom: 60px; font-family: var(--fira); }

/* ── HERO ──────────────────────────────────────────────────── */
.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    min-height: 100vh;
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 20px;
    align-items: center;
    gap: 40px;
}
.about-card { z-index: 10; }
.code-path {
    font-family: var(--fira);
    color: var(--primary);
    font-size: 14px;
    margin-bottom: 15px;
    display: block;
    opacity: 0.8;
}
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -2px;
}
.hero-title span {
    color: var(--primary);
    text-shadow: 0 0 30px rgba(0,255,157,0.2);
}
.about-description {
    font-size: 1.15rem;
    color: var(--text-dim);
    line-height: 1.85;
    margin-bottom: 40px;
    border-left: 3px solid var(--accent);
    padding-left: 20px;
    max-width: 600px;
}
/* Buttons */
.btn-stack { display: flex; gap: 20px; flex-wrap: wrap; }
.btn {
    padding: 18px 40px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: .3s cubic-bezier(.175,.885,.32,1.275);
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: none;
}
.btn-main { background: var(--primary); color: var(--bg-dark); }
.btn-ghost {
    border: 1px solid rgba(255,255,255,.1);
    color: var(--text-main);
    background: rgba(255,255,255,.02);
}
.btn:hover { transform: scale(1.05); box-shadow: 0 10px 30px rgba(0,255,157,0.2); }

/* Hero Image Frame */
.image-app-frame { position: relative; display: flex; justify-content: center; }
.glass-shell {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 12px;
    border-radius: 40px;
    box-shadow: 0 50px 100px rgba(0,0,0,0.6);
    position: relative;
}
.profile-img {
    width: 100%;
    max-width: 380px;
    height: 520px;
    object-fit: cover;
    border-radius: 30px;
    display: block;
}
.avatar-placeholder {
    width: 380px;
    height: 520px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(0,255,157,.08), rgba(37,99,235,.08));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    color: rgba(0,255,157,0.2);
}
.floating-info {
    position: absolute;
    bottom: -30px;
    right: -20px;
    background: #111;
    border: 1px solid var(--primary);
    padding: 15px 25px;
    border-radius: 15px;
    font-family: var(--fira);
    font-size: 13px;
    line-height: 1.9;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    animation: floatBadge 5s ease-in-out infinite;
}
@keyframes floatBadge {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-15px); }
}
.floating-info .dollar { color: var(--primary); }

/* ── GLASS PANEL (shared) ──────────────────────────────────── */
.glass {
    background: rgba(255,255,255,0.02);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    transition: border-color .35s, transform .35s;
}
.glass:hover {
    border-color: rgba(0,255,157,0.2);
    transform: translateY(-5px);
}

/* ── CODE TYPING EDITOR (Hero IDE Window) ──────────────────── */
.code-editor-wrap {
    padding: 0 20px 100px 20px;
    max-width: 1300px;
    margin: 0 auto;
}
.code-editor {
    background: #0d1117;
    border: 1px solid rgba(0,255,157,.12);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,.7), 0 0 60px rgba(0,255,157,.04);
    font-family: var(--fira);
}

/* Title Bar */
.ide-titlebar {
    background: #161b22;
    border-bottom: 1px solid rgba(255,255,255,.06);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.ide-dots { display: flex; gap: 8px; }
.ide-dot { width: 13px; height: 13px; border-radius: 50%; cursor: default; }
.ide-tabs { display: flex; gap: 2px; flex: 1; }
.ide-tab {
    padding: 6px 18px; font-size: 13px; color: var(--text-dim);
    border-radius: 6px 6px 0 0; cursor: pointer;
    display: flex; align-items: center; gap: 8px;
    transition: all .2s;
}
.ide-tab.active { background: #0d1117; color: var(--text-main); border: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid #0d1117; }
.ide-tab.muted { opacity: .4; font-size: 12px; }
.ide-status { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--primary); }
.ide-status-dot {
    width: 8px; height: 8px; background: var(--primary); border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
    animation: idePulse 1.5s ease-in-out infinite;
}
@keyframes idePulse { 0%,100%{opacity:1;} 50%{opacity:.3;} }

/* Code Body */
.ide-body {
    display: flex;
    padding: 20px 0;
    min-height: 320px;
    max-height: 420px;
    overflow: hidden;
}
.ide-gutter {
    padding: 0 20px;
    border-right: 1px solid rgba(255,255,255,.04);
    display: flex;
    flex-direction: column;
    min-width: 52px;
    user-select: none;
}
.line-num { font-size: 13px; color: rgba(255,255,255,.18); line-height: 1.7; text-align: right; }
.ide-code {
    flex: 1;
    padding: 0 24px;
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--text-main);
    white-space: pre;
    overflow: visible;
    font-family: var(--fira);
    min-height: 280px;
}

/* Blinking Cursor */
.cursor-blink {
    color: var(--primary);
    animation: cursorBlink .7s step-end infinite;
    font-weight: 400;
}
@keyframes cursorBlink { 0%,100%{opacity:1;} 50%{opacity:0;} }

/* Syntax Token Colors (VS Code Dark+) */
.tk-comment { color: #6a9955; font-style: italic; }
.tk-keyword { color: #569cd6; }
.tk-string  { color: #ce9178; }
.tk-var     { color: #9cdcfe; }
.tk-prop    { color: #9cdcfe; }
.tk-fn      { color: #dcdcaa; }
.tk-num     { color: #b5cea8; }
.tk-op      { color: var(--primary); }
.tk-punc    { color: #d4d4d4; }
.tk-class   { color: #4ec9b0; }
.tk-import  { color: #c586c0; }

/* Status Bar */
.ide-statusbar {
    background: #007acc;
    padding: 4px 20px;
    display: flex;
    gap: 24px;
    align-items: center;
    font-size: 12px;
    color: rgba(255,255,255,.85);
}
.ide-statusbar span { display: flex; align-items: center; gap: 5px; }

/* Mobile: hide code editor */
@media (max-width: 850px) { .code-editor-wrap { display: none; } }

/* ── SERVICES — Code-Vibe ───────────────────────────────────── */

.service-area {
    padding: 100px 20px;
    background-color: var(--bg-dark);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Header Box */
.header-box {
    margin-bottom: 60px;
    border-left: 4px solid var(--primary);
    padding-left: 20px;
}
.header-box span {
    font-family: var(--fira);
    color: var(--primary);
    font-size: 14px;
    display: block;
    margin-bottom: 10px;
    opacity: 0.8;
}
.header-box h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
}

/* Service Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

/* Service Card */
.service-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 28px;
    padding: 40px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.service-item:hover {
    border-color: var(--primary);
    background: rgba(0,255,157,0.02);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Icon Box */
.icon-box {
    width: 55px;
    height: 55px;
    background: rgba(0,255,157,0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 25px;
    transition: all 0.4s ease;
}
.service-item:hover .icon-box {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(0,255,157,0.5);
}

.service-item h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 14px;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.service-item p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* Code Label — </> prefix via CSS */
.code-label {
    font-family: var(--fira);
    font-size: 12px;
    color: var(--primary);
    opacity: 0.6;
    display: flex;
    align-items: center;
    gap: 8px;
}
.code-label::before {
    content: '</>';
    font-weight: 700;
}

/* Mobile */
@media (max-width: 768px) {
    .service-grid { grid-template-columns: 1fr; }
    .service-item { padding: 30px; border-radius: 20px; }
    .header-box {
        text-align: center;
        border-left: none;
        border-bottom: 2px solid var(--primary);
        padding: 0 0 20px 0;
    }
}



/* ── PORTFOLIO ZIG-ZAG ─────────────────────────────────────── */
.portfolio-filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 50px; }
.filter-btn {
    padding: 8px 22px; border-radius: 8px;
    border: 1px solid rgba(0,255,157,.15);
    background: transparent; color: var(--text-dim);
    font-size: 13px; font-weight: 600; cursor: pointer;
    font-family: var(--fira);
    transition: .3s;
}
.filter-btn.active, .filter-btn:hover {
    border-color: var(--primary); color: var(--primary);
    background: rgba(0,255,157,.05);
}
.portfolio-grid { display: grid; grid-template-columns: repeat(12,1fr); gap: 24px; }
.port-item { border-radius: 16px; overflow: hidden; position: relative; }
.port-item:nth-child(1) { grid-column: span 7; min-height: 420px; }
.port-item:nth-child(2) { grid-column: span 5; min-height: 420px; }
.port-item:nth-child(3) { grid-column: span 4; min-height: 360px; margin-top: 40px; }
.port-item:nth-child(4) { grid-column: span 8; min-height: 360px; margin-top: 40px; }
.port-item:nth-child(5) { grid-column: span 6; min-height: 380px; margin-top: -20px; }
.port-item:nth-child(6) { grid-column: span 6; min-height: 380px; margin-top: -20px; }
.port-item-img {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transition: transform .6s;
}
.port-item:hover .port-item-img { transform: scale(1.07); }
.port-item-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(5,7,10,.95) 0%, rgba(5,7,10,.1) 60%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 28px; opacity: .98;
}
.port-cat {
    font-family: var(--fira); font-size: 11px; font-weight: 700;
    color: var(--primary); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 6px;
}
.port-title { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.port-links { display: flex; gap: 12px; }
.port-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-dim); transition: color .25s; }
.port-link:hover { color: var(--primary); }
.port-placeholder {
    background: rgba(255,255,255,.01);
    border: 2px dashed rgba(0,255,157,.08);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
}
.port-placeholder i, .port-placeholder .ph { font-size: 40px; color: rgba(0,255,157,.2); }
.port-placeholder p { font-size: 13px; color: var(--text-dim); text-align: center; font-family: var(--fira); }

/* ── EXPERIENCE TIMELINE ───────────────────────────────────── */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
    content: '';
    position: absolute; top: 0; bottom: 0; left: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--primary), transparent);
}
.tl-item { position: relative; margin-bottom: 52px; }
.tl-item::before {
    content: '';
    position: absolute; left: -47px; top: 6px;
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(0,255,157,.15), 0 0 15px rgba(0,255,157,.4);
}
.tl-year { font-family: var(--fira); font-size: 12px; font-weight: 700; color: var(--primary); letter-spacing: 1px; margin-bottom: 8px; }
.tl-role { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.tl-company { font-size: 14px; color: var(--accent); margin-bottom: 12px; font-family: var(--fira); }
.tl-desc { font-size: 15px; color: var(--text-dim); line-height: 1.8; }

/* ── TESTIMONIALS ──────────────────────────────────────────── */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 24px; }
.testi-card { padding: 34px; border-radius: 16px; }
.testi-stars { color: #FBBF24; font-size: 15px; margin-bottom: 16px; }
.testi-text { font-size: 15px; color: var(--text-dim); line-height: 1.9; margin-bottom: 24px; font-style: italic; }
.testi-text::before { content: '"'; font-size: 48px; color: var(--primary); line-height: 0; vertical-align: -22px; opacity: .6; }
.testi-author { display: flex; align-items: center; gap: 14px; }
.testi-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary); background: rgba(0,255,157,.1); }
.testi-name { font-size: 15px; font-weight: 800; }
.testi-designation { font-size: 12px; color: var(--text-dim); font-family: var(--fira); margin-top: 2px; }

/* ── CONTACT ───────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start; }
.contact-info h3 { font-size: 34px; font-weight: 900; margin-bottom: 18px; }
.contact-info p { color: var(--text-dim); font-size: 15px; margin-bottom: 32px; line-height: 1.9; }
.contact-details { list-style: none; display: flex; flex-direction: column; gap: 18px; margin-bottom: 32px; }
.contact-details li { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--text-dim); font-family: var(--fira); }
.contact-details li i, .contact-details li .ph { font-size: 20px; color: var(--primary); }
.social-icons { display: flex; gap: 12px; }
.social-icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(0,255,157,.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: var(--text-dim); transition: .3s;
}
.social-icon:hover { background: rgba(0,255,157,.08); border-color: var(--primary); color: var(--primary); }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-family: var(--fira); font-size: 12px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .5px; }
.form-group input, .form-group textarea {
    padding: 16px 20px;
    background: rgba(255,255,255,.02);
    border: 1.5px solid rgba(0,255,157,.12);
    border-radius: 10px;
    color: var(--text-main);
    font-family: var(--outfit);
    font-size: 15px;
    transition: border-color .25s;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,255,157,.08);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ── ABOUT SECTION ─────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; align-items: center; }
.about-img-wrap {
    position: relative;
    width: 100%; max-width: 340px;
    aspect-ratio: 1;
    border-radius: 30px;
    overflow: hidden;
    border: 2px solid transparent;
    background: linear-gradient(var(--bg-dark), var(--bg-dark)) padding-box,
                linear-gradient(135deg, var(--primary), var(--accent)) border-box;
}
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; border-radius: 28px; }
.about-img-placeholder-sq {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(0,255,157,.06), rgba(37,99,235,.06));
    display: flex; align-items: center; justify-content: center;
    font-size: 80px; color: rgba(0,255,157,.2);
}
.about-bio { font-size: 16px; color: var(--text-dim); line-height: 1.95; margin-bottom: 30px; }
.about-bio strong { color: var(--text-main); }
.stats { display: flex; gap: 40px; margin-bottom: 36px; flex-wrap: wrap; }
.stat-num { font-size: 42px; font-weight: 900; color: var(--primary); text-shadow: 0 0 20px rgba(0,255,157,.25); }
.stat-label { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .5px; font-family: var(--fira); }

/* ── CHAT WIDGET ───────────────────────────────────────────── */
#chat-widget { position: fixed; bottom: 30px; right: 30px; z-index: 800; }
.chat-toggle-btn {
    width: 58px; height: 58px; border-radius: 50%;
    background: var(--primary); border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    color: var(--bg-dark);
    box-shadow: 0 0 25px rgba(0,255,157,0.4);
    position: relative; transition: transform .3s;
}
.chat-toggle-btn:hover { transform: scale(1.1); }
.chat-toggle-btn::before {
    content: '';
    position: absolute; inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(0,255,157,0.3);
    animation: chatRing 2s infinite;
}
@keyframes chatRing { 0%{transform:scale(1);opacity:.6;} 100%{transform:scale(1.5);opacity:0;} }
.chat-box {
    position: absolute; bottom: 70px; right: 0;
    width: 320px;
    background: rgba(10,14,20,.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0,255,157,.15);
    border-radius: 18px; overflow: hidden;
    display: none; flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.chat-box.open { display: flex; animation: slideUpChat .3s ease; }
@keyframes slideUpChat { from{opacity:0;transform:translateY(15px);} to{opacity:1;transform:translateY(0);} }
.chat-header {
    padding: 16px 20px;
    background: rgba(0,255,157,.04);
    border-bottom: 1px solid rgba(0,255,157,.1);
    display: flex; align-items: center; gap: 12px;
}
.chat-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--primary); display: flex; align-items: center; justify-content: center;
    font-family: var(--fira); font-weight: 700; font-size: 14px; color: var(--bg-dark);
}
.chat-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 6px var(--primary); margin-left: auto; }
.chat-messages { padding: 14px; height: 200px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.chat-messages::-webkit-scrollbar { width: 3px; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(0,255,157,.2); border-radius: 3px; }
.msg { font-size: 13px; padding: 10px 14px; border-radius: 10px; max-width: 85%; line-height: 1.55; }
.msg-in { background: rgba(255,255,255,.04); color: var(--text-main); border-bottom-left-radius: 3px; align-self: flex-start; }
.msg-out { background: var(--primary); color: var(--bg-dark); font-weight: 600; border-bottom-right-radius: 3px; align-self: flex-end; }
.msg-time { font-size: 10px; color: var(--text-dim); margin-top: 3px; font-family: var(--fira); }
.chat-input-area { padding: 10px; border-top: 1px solid rgba(0,255,157,.1); display: flex; gap: 8px; }
.chat-input-area input {
    flex: 1; padding: 10px 14px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(0,255,157,.12);
    border-radius: 100px;
    color: var(--text-main);
    font-family: var(--outfit); font-size: 13px;
}
.chat-input-area input:focus { outline: none; border-color: var(--primary); }
.chat-send-btn {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--primary); border: none; cursor: pointer;
    color: var(--bg-dark); font-size: 15px;
    display: flex; align-items: center; justify-content: center;
}

/* ── BACK TO TOP ───────────────────────────────────────────── */
#back-to-top {
    position: fixed; bottom: 30px; left: 30px;
    width: 44px; height: 44px; border-radius: 10px;
    background: rgba(0,255,157,.06);
    border: 1px solid rgba(0,255,157,.15);
    color: var(--text-dim);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; cursor: pointer; z-index: 700;
    opacity: 0; pointer-events: none; transition: all .3s;
}
#back-to-top.show { opacity: 1; pointer-events: all; }
#back-to-top:hover { background: rgba(0,255,157,.12); color: var(--primary); border-color: var(--primary); }

/* ── FOOTER ────────────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid rgba(0,255,157,.08);
    padding: 40px 0 28px;
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-logo { font-family: var(--fira); color: var(--primary); font-size: 18px; }
.footer-copy { font-size: 13px; color: var(--text-dim); font-family: var(--fira); }

/* ──────────────────────────────────────────────────────────────
   MOBILE APP VIEW
   ────────────────────────────────────────────────────────────── */
.desktop-only { display: block; }
.mobile-only  { display: none; }

@media (max-width: 850px) {
    .desktop-only { display: none !important; }
    .mobile-only  { display: block !important; }

    /* App Header */
    .app-header {
        position: fixed; top: 0; left: 0; width: 100%;
        z-index: 900; padding: 14px 20px;
        display: flex; align-items: center; gap: 14px;
        background: rgba(5,7,10,.82);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(0,255,157,.08);
    }
    .app-avatar {
        width: 40px; height: 40px; border-radius: 50%;
        border: 2px solid var(--primary);
        overflow: hidden; flex-shrink: 0;
        box-shadow: 0 0 10px rgba(0,255,157,.3);
    }
    .app-avatar img { width: 100%; height: 100%; object-fit: cover; }
    .app-avatar-placeholder {
        width: 100%; height: 100%;
        background: var(--primary); display: flex; align-items: center; justify-content: center;
        font-family: var(--fira); font-weight: 700; font-size: 15px; color: var(--bg-dark);
    }
    .app-header-info { flex: 1; }
    .app-header-info .greeting { font-family: var(--fira); font-size: 10px; color: var(--text-dim); }
    .app-header-info .name { font-size: 16px; font-weight: 800; }
    .app-header-actions { display: flex; align-items: center; gap: 10px; }
    .app-lang-pill {
        padding: 5px 12px; border-radius: 8px;
        background: rgba(0,255,157,.04);
        border: 1px solid rgba(0,255,157,.15);
        font-family: var(--fira); font-size: 12px;
    }
    .app-lang-pill a { color: var(--text-dim); }
    .app-lang-pill a.active { color: var(--primary); }

    /* Skills stories */
    .skills-stories-wrap { padding: 100px 20px 0 20px; }
    .skills-stories-label { font-family: var(--fira); font-size: 11px; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
    .skills-stories { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 10px; -ms-overflow-style: none; scrollbar-width: none; }
    .skills-stories::-webkit-scrollbar { display: none; }
    .story-bubble { text-align: center; flex-shrink: 0; }
    .story-bubble .bubble-ring { width: 62px; height: 62px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); padding: 2px; margin: 0 auto 6px; transition: transform .2s; }
    .story-bubble:active .bubble-ring { transform: scale(.95); }
    .story-bubble .bubble-inner { width: 100%; height: 100%; border-radius: 50%; background: var(--bg-dark); display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--primary); }
    .story-bubble .bubble-label { font-family: var(--fira); font-size: 10px; color: var(--text-dim); }

    /* App Hero */
    .app-hero { padding: 28px 20px; }
    .app-hero h1 { font-size: 32px; font-weight: 900; margin-bottom: 10px; letter-spacing: -1px; }
    .app-hero h1 span { color: var(--primary); }
    .app-hero .typed-text { font-family: var(--fira); font-size: 15px; color: var(--primary); font-weight: 500; }
    .app-hero .hero-btns { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
    .app-section { padding: 30px 20px 0 20px; }
    .app-section-title { font-size: 22px; font-weight: 800; margin-bottom: 6px; border-left: 3px solid var(--primary); padding-left: 12px; }
    .app-section-title span { color: var(--primary); }

    /* Project Feed */
    .project-feed { padding: 16px 20px; display: flex; flex-direction: column; gap: 18px; }
    .project-card-mobile { border-radius: 14px; overflow: hidden; }
    .project-thumb-mobile { width: 100%; aspect-ratio: 16/9; background: rgba(0,255,157,.04); display: flex; align-items: center; justify-content: center; font-size: 34px; color: rgba(0,255,157,.2); }
    .project-thumb-mobile img { width: 100%; height: 100%; object-fit: cover; }
    .project-card-mobile-body { padding: 16px; }
    .project-card-mobile-body .port-cat { font-size: 10px; letter-spacing: 2px; }
    .project-card-mobile-body h3 { font-size: 17px; margin: 6px 0; }
    .project-card-mobile-body p { font-size: 13px; color: var(--text-dim); }
    .project-card-mobile-body .view-btn { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--primary); font-family: var(--fira); }

    /* Bottom Navbar */
    .app-bottom-nav {
        position: fixed; bottom: 0; left: 0; width: 100%;
        z-index: 1000;
        background: rgba(5,7,10,.85);
        backdrop-filter: blur(24px);
        border-top: 1px solid rgba(0,255,157,.08);
        display: flex; justify-content: space-around;
        padding: 12px 10px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    }
    .nav-tab {
        display: flex; flex-direction: column; align-items: center; gap: 4px;
        color: #475569; text-decoration: none;
        font-family: var(--fira); font-size: 10px; font-weight: 600;
        transition: all .25s; padding: 4px 10px; border-radius: 8px; flex: 1; text-align: center;
    }
    .nav-tab i, .nav-tab .ph { font-size: 22px; display: block; }
    .nav-tab.active { color: var(--primary); }
    .nav-tab.active i { filter: drop-shadow(0 0 5px var(--primary)); }

    /* Responsive overrides */
    .hero-container { grid-template-columns: 1fr; text-align: center; padding-top: 80px; }
    .image-app-frame { order: -1; margin-bottom: 50px; }
    .about-description { margin: 0 auto 40px auto; border-left: none; border-top: 2px solid var(--accent); padding: 20px 0; }
    .btn-stack { flex-direction: column; align-items: center; }
    .floating-info { right: 0; left: 0; bottom: -40px; width: 90%; margin: 0 auto; text-align: left; }
    .profile-img, .avatar-placeholder { height: 400px; max-width: 100%; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .portfolio-grid { display: flex; flex-direction: column; }
    .port-item { min-height: 260px !important; margin-top: 0 !important; }
    .stats { flex-wrap: wrap; gap: 24px; }
    .form-row { grid-template-columns: 1fr; }
    #chat-widget { bottom: 100px; right: 20px; }
    .app-content-area { flex: 1; padding-bottom: 85px; overflow-y: auto; }
}
