/* ============================================================
   VARIABLES
============================================================ */
:root {
    --bg: #07070f;
    --bg-2: #0c0c1a;
    --bg-card: #111122;
    --bg-card-h: #16162c;
    --accent: #8b5cf6;
    --accent-2: #3b82f6;
    --grad: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
    --grad-r: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --border: rgba(139,92,246,.15);
    --border-h: rgba(139,92,246,.4);
    --text: #f0efff;
    --text-2: #9490b8;
    --text-3: #5a5878;
    --shadow: 0 20px 60px rgba(0,0,0,.5);
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;
    --t: all .3s cubic-bezier(.4,0,.2,1);
    --font: 'Inter', -apple-system, sans-serif;
    --font-h: 'Space Grotesk', 'Inter', sans-serif;
}

/* ============================================================
   BASE
============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.7; overflow-x: hidden; }
h1,h2,h3,h4,h5 { font-family: var(--font-h); font-weight: 700; line-height: 1.2; }
a { transition: var(--t); }
img { max-width: 100%; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ============================================================
   UTILITIES
============================================================ */
.grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-label {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(139,92,246,.1);
    border: 1px solid rgba(139,92,246,.22);
    border-radius: 50px;
    padding: .28rem .9rem;
    margin-bottom: .9rem;
}
.section-divider {
    width: 52px;
    height: 4px;
    background: var(--grad);
    border-radius: 2px;
    margin: .8rem 0 1.6rem;
}
.section-subtitle {
    color: var(--text-2);
    font-size: 1.08rem;
    max-width: 580px;
    margin-bottom: 3rem;
}

/* ============================================================
   BUTTONS
============================================================ */
.btn-p {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .82rem 2rem;
    background: var(--grad);
    color: #fff;
    font-weight: 600;
    font-size: .93rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(139,92,246,.35);
    transition: var(--t);
}
.btn-p:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(139,92,246,.55); color: #fff; }

.btn-s {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .82rem 2rem;
    background: transparent;
    color: var(--text);
    font-weight: 600;
    font-size: .93rem;
    border: 1px solid var(--border-h);
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--t);
}
.btn-s:hover { background: rgba(139,92,246,.1); border-color: var(--accent); color: var(--text); transform: translateY(-2px); }

/* ============================================================
   NAVBAR
============================================================ */
.navbar-custom {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 1.3rem 0;
    transition: var(--t);
}
.navbar-custom.scrolled {
    background: rgba(7,7,15,.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    padding: .85rem 0;
}
.navbar-brand-custom {
    font-family: var(--font-h);
    font-size: 1.65rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text);
}
.brand-accent { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.navbar-links { display: flex; align-items: center; gap: 2rem; list-style: none; padding: 0; margin: 0; }
.navbar-links a {
    color: var(--text-2);
    text-decoration: none;
    font-weight: 500;
    font-size: .93rem;
    position: relative;
}
.navbar-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--grad);
    border-radius: 2px;
    transition: var(--t);
}
.navbar-links a:hover, .navbar-links a.active { color: var(--text); }
.navbar-links a:hover::after, .navbar-links a.active::after { width: 100%; }

.nav-cta-btn {
    padding: .48rem 1.3rem !important;
    background: var(--grad) !important;
    color: #fff !important;
    border-radius: 50px;
    font-weight: 600 !important;
    box-shadow: 0 4px 14px rgba(139,92,246,.3);
}
.nav-cta-btn::after { display: none !important; }
.nav-cta-btn:hover { box-shadow: 0 6px 22px rgba(139,92,246,.5) !important; transform: translateY(-1px); color: #fff !important; }

.navbar-toggler-custom {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    padding: .42rem .75rem;
    border-radius: var(--r-sm);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--t);
}
.navbar-toggler-custom:hover { border-color: var(--accent); color: var(--accent); }

.mobile-menu { display: none; border-top: 1px solid var(--border); margin-top: 1rem; }
.mobile-menu.open { display: block; }
.mobile-links { list-style: none; padding: .75rem 0; margin: 0; display: flex; flex-direction: column; gap: .2rem; }
.mobile-links a {
    display: flex; align-items: center; gap: .7rem;
    padding: .75rem 1rem;
    color: var(--text-2);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--r-sm);
    transition: var(--t);
}
.mobile-links a:hover { background: rgba(139,92,246,.08); color: var(--text); }
.mobile-links a i { color: var(--accent); width: 16px; text-align: center; }

/* ============================================================
   HERO
============================================================ */
.hero-section {
    min-height: 100vh;
    display: flex; align-items: center;
    padding: 7rem 0 4rem;
    position: relative; overflow: hidden;
}
.orb {
    position: absolute; border-radius: 50%;
    filter: blur(90px); pointer-events: none; z-index: 0;
}
.orb-1 { width: 650px; height: 650px; background: radial-gradient(circle, rgba(139,92,246,.14), transparent 70%); top: -120px; right: -80px; }
.orb-2 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(59,130,246,.11), transparent 70%); bottom: -50px; left: -60px; }

.hero-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .82rem; font-weight: 600;
    color: var(--accent);
    background: rgba(139,92,246,.1);
    border: 1px solid rgba(139,92,246,.25);
    padding: .38rem 1rem; border-radius: 50px;
    margin-bottom: 1.6rem;
}
.hero-badge .dot {
    width: 8px; height: 8px;
    background: var(--accent); border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
    animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:.5; transform:scale(1.3); } }

.hero-title { font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 800; margin-bottom: 1.5rem; }
.hero-desc { font-size: 1.18rem; color: var(--text-2); max-width: 520px; margin-bottom: 2.4rem; line-height: 1.85; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.hero-stats { display: flex; gap: 2.2rem; margin-top: 3rem; flex-wrap: wrap; }
.stat-num { font-size: 2.1rem; font-weight: 800; font-family: var(--font-h); line-height: 1; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-lbl { font-size: .82rem; color: var(--text-3); margin-top: .2rem; }

/* Code card */
.code-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.6rem;
    min-width: 350px;
    font-family: 'Courier New', monospace;
    font-size: .83rem;
    box-shadow: var(--shadow), 0 0 80px rgba(139,92,246,.07);
    position: relative;
}
.code-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(139,92,246,.04), transparent); pointer-events: none; }
.code-header { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.3rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.cdot { width: 12px; height: 12px; border-radius: 50%; }
.cdot.r { background: #ff5f57; } .cdot.y { background: #febc2e; } .cdot.g { background: #28c840; }
.code-fname { margin-left: auto; font-family: var(--font); font-size: .72rem; color: var(--text-3); }
.cl { margin-bottom: .28rem; white-space: nowrap; }
.kw { color: #c792ea; } .fn { color: #82aaff; } .str { color: #c3e88d; } .cm { color: #546e7a; } .vr { color: #f07178; } .nm { color: #f78c6c; }

.float-badge {
    position: absolute; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--r-md); padding: .55rem .95rem;
    font-size: .78rem; font-weight: 600;
    display: flex; align-items: center; gap: .45rem;
    box-shadow: 0 8px 28px rgba(0,0,0,.4);
    animation: floatY 3s ease-in-out infinite;
}
.float-badge.tl { top: -18px; left: -25px; animation-delay: 0s; }
.float-badge.br { bottom: -18px; right: -18px; animation-delay: 1.5s; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ============================================================
   SECTIONS
============================================================ */
section { padding: 6rem 0; }

/* About */
.about-section { background: var(--bg-2); position: relative; overflow: hidden; }
.about-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.about-text { font-size: 1.06rem; color: var(--text-2); line-height: 1.9; margin-bottom: 1.4rem; }
.about-check-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.about-check-list li { display: flex; align-items: center; gap: .75rem; color: var(--text-2); font-size: .94rem; }
.check-ico { width: 22px; height: 22px; background: rgba(139,92,246,.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--accent); font-size: .65rem; }

.avatar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 2.4rem 2rem;
    text-align: center;
    position: relative; overflow: hidden;
    max-width: 300px; margin: 0 auto;
}
.avatar-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); }
.avatar-ico { width: 96px; height: 96px; background: var(--grad); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; margin: 0 auto 1.4rem; box-shadow: 0 8px 28px rgba(139,92,246,.4); }
.avatar-name { font-family: var(--font-h); font-size: 1.35rem; font-weight: 700; margin-bottom: .2rem; }
.avatar-role { color: var(--text-3); font-size: .88rem; margin-bottom: 1.5rem; }
.avatar-meta { display: flex; flex-direction: column; gap: .45rem; text-align: left; }
.meta-item { display: flex; align-items: center; gap: .55rem; font-size: .84rem; color: var(--text-2); padding: .38rem .8rem; background: rgba(139,92,246,.05); border-radius: var(--r-sm); }
.meta-item i { color: var(--accent); width: 14px; text-align: center; }

/* Skills */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 1rem; }
.skill-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 1.5rem 1rem; text-align: center; transition: var(--t); cursor: default; }
.skill-card:hover { border-color: var(--accent); background: var(--bg-card-h); transform: translateY(-4px); box-shadow: 0 8px 24px rgba(139,92,246,.14); }
.skill-ico { font-size: 1.9rem; margin-bottom: .65rem; display: block; }
.skill-nm { font-size: .82rem; font-weight: 600; color: var(--text-2); }
.cat-title { font-size: .77rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--text-3); margin-bottom: .85rem; margin-top: 2.2rem; }

/* Portfolio */
.portfolio-section { background: var(--bg-2); position: relative; overflow: hidden; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 1.6rem; }
.project-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; transition: var(--t); }
.project-card:hover { border-color: var(--border-h); transform: translateY(-6px); box-shadow: 0 24px 56px rgba(0,0,0,.45), 0 0 32px rgba(139,92,246,.1); }

.browser-bar { background: #14142a; padding: .58rem 1rem; display: flex; align-items: center; gap: .5rem; border-bottom: 1px solid var(--border); }
.bdots { display: flex; gap: 5px; }
.bdot { width: 10px; height: 10px; border-radius: 50%; }
.bdot.r { background: #ff5f57; } .bdot.y { background: #febc2e; } .bdot.g { background: #28c840; }
.b-url { flex: 1; background: rgba(255,255,255,.05); border-radius: 50px; padding: .18rem .75rem; font-size: .7rem; color: var(--text-3); text-align: center; margin-left: .5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser-preview { height: 175px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.bp-content { text-align: center; z-index: 1; }
.bp-icon { font-size: 2.6rem; margin-bottom: .45rem; display: block; }
.bp-name { font-size: 1.05rem; font-weight: 700; color: #fff; }
.bp-tag { font-size: .72rem; color: rgba(255,255,255,.55); margin-top: .2rem; }

.proj-info { padding: 1.4rem; }
.proj-cat { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: .45rem; }
.proj-title { font-size: 1.15rem; font-weight: 700; margin-bottom: .45rem; }
.proj-desc { font-size: .86rem; color: var(--text-2); line-height: 1.65; margin-bottom: 1.1rem; }
.proj-tags { display: flex; flex-wrap: wrap; gap: .38rem; margin-bottom: 1.1rem; }
.proj-tag { font-size: .7rem; font-weight: 600; padding: .18rem .58rem; background: rgba(139,92,246,.08); border: 1px solid rgba(139,92,246,.15); border-radius: 50px; color: var(--text-2); }
.proj-link { display: inline-flex; align-items: center; gap: .4rem; font-size: .84rem; font-weight: 600; color: var(--accent); text-decoration: none; transition: var(--t); }
.proj-link:hover { color: var(--accent-2); gap: .7rem; }

/* CTA */
.cta-section { position: relative; overflow: hidden; }
.cta-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 4rem; text-align: center; position: relative; overflow: hidden; }
.cta-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(139,92,246,.1), transparent 70%); pointer-events: none; }
.cta-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--grad); }
.cta-title { font-size: clamp(1.8rem,3.5vw,2.5rem); font-weight: 800; margin-bottom: 1rem; }
.cta-sub { font-size: 1.08rem; color: var(--text-2); max-width: 480px; margin: 0 auto 2rem; }

/* ============================================================
   CONTACT PAGE
============================================================ */
.contact-page { padding: 8rem 0 6rem; }
.contact-info-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 2rem; position: sticky; top: 6rem; }
.c-info-item { display: flex; align-items: flex-start; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--border); }
.c-info-item:last-of-type { border-bottom: none; }
.c-info-ico { width: 42px; height: 42px; background: rgba(139,92,246,.1); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; }
.c-info-lbl { font-size: .75rem; color: var(--text-3); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.c-info-val { font-size: .9rem; color: var(--text); margin-top: .15rem; }

.contact-form-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 2.4rem; }
.form-lbl { font-size: .83rem; font-weight: 600; color: var(--text-2); margin-bottom: .45rem; display: block; }
.form-inp {
    width: 100%;
    background: rgba(255,255,255,.03);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: .78rem 1rem;
    color: var(--text);
    font-size: .93rem;
    font-family: var(--font);
    transition: var(--t);
    outline: none;
}
.form-inp::placeholder { color: var(--text-3); }
.form-inp:focus { border-color: var(--accent); background: rgba(139,92,246,.04); box-shadow: 0 0 0 3px rgba(139,92,246,.1); }
.form-inp.input-error { border-color: #ef4444; }
textarea.form-inp { resize: vertical; min-height: 145px; }
.field-error { font-size: .78rem; color: #ef4444; margin-top: .3rem; }

/* ============================================================
   SUCCESS PAGE
============================================================ */
.success-section { min-height: 70vh; display: flex; align-items: center; padding: 8rem 0; }
.success-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 4rem; text-align: center; max-width: 520px; margin: 0 auto; position: relative; overflow: hidden; }
.success-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #28c840, #3b82f6); }
.success-ico { width: 80px; height: 80px; background: rgba(40,200,64,.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #28c840; margin: 0 auto 1.5rem; border: 1px solid rgba(40,200,64,.2); }

/* ============================================================
   SOCIAL LINKS
============================================================ */
.social-links { display: flex; gap: .7rem; }
.social-link {
    width: 40px; height: 40px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-2);
    text-decoration: none;
    transition: var(--t);
    font-size: .88rem;
}
.social-link:hover { background: rgba(139,92,246,.1); border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ============================================================
   FOOTER
============================================================ */
.footer-custom { background: var(--bg-2); border-top: 1px solid var(--border); padding: 4rem 0 2rem; }
.footer-brand { font-family: var(--font-h); font-size: 1.45rem; font-weight: 800; text-decoration: none; color: var(--text); display: inline-block; margin-bottom: .7rem; }
.footer-tagline { font-size: .88rem; color: var(--text-3); max-width: 250px; line-height: 1.65; }
.footer-col-title { font-size: .77rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--text-3); margin-bottom: 1.1rem; }
.footer-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.footer-links a { color: var(--text-2); text-decoration: none; font-size: .88rem; }
.footer-links a:hover { color: var(--accent); }
.footer-icon { color: var(--accent); margin-right: .45rem; width: 14px; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; margin-top: .5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; }
.footer-bottom-text { font-size: .82rem; color: var(--text-3); }
.footer-heart { color: var(--accent); }

/* ============================================================
   ADMIN PANEL
============================================================ */
.admin-body { background: var(--bg); min-height: 100vh; }
.admin-nav { background: var(--bg-2); border-bottom: 1px solid var(--border); padding: .9rem 0; position: sticky; top: 0; z-index: 100; }
.admin-wrap { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem; }
.admin-stat { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 1.5rem; text-align: center; }
.admin-stat-num { font-size: 2.3rem; font-weight: 800; font-family: var(--font-h); line-height: 1; }
.admin-stat-lbl { font-size: .82rem; color: var(--text-3); margin-top: .25rem; }
.admin-table-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; padding: .75rem 1rem; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); background: var(--bg-2); border-bottom: 1px solid var(--border); }
.admin-table td { padding: .95rem 1rem; border-bottom: 1px solid rgba(255,255,255,.03); font-size: .88rem; color: var(--text-2); vertical-align: top; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,255,255,.015); color: var(--text); }
.admin-table tr.unread td { color: var(--text); }
.admin-table tr.unread td:first-child { border-left: 3px solid var(--accent); }
.badge-new { display: inline-block; font-size: .63rem; font-weight: 700; padding: .14rem .5rem; background: rgba(139,92,246,.2); color: var(--accent); border-radius: 50px; text-transform: uppercase; letter-spacing: .05em; }
.badge-read { display: inline-block; font-size: .63rem; font-weight: 700; padding: .14rem .5rem; background: rgba(255,255,255,.06); color: var(--text-3); border-radius: 50px; text-transform: uppercase; letter-spacing: .05em; }
.admin-btn { background: transparent; border: 1px solid var(--border); color: var(--text-2); padding: .28rem .7rem; border-radius: var(--r-sm); font-size: .76rem; font-weight: 600; cursor: pointer; transition: var(--t); display: inline-flex; align-items: center; gap: .3rem; text-decoration: none; }
.admin-btn:hover { border-color: var(--accent); color: var(--accent); }
.admin-btn.del:hover { border-color: #ef4444; color: #ef4444; }
.msg-preview { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.login-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 3rem; max-width: 420px; width: 100%; position: relative; overflow: hidden; }
.login-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); }
.login-icon { width: 58px; height: 58px; background: var(--grad); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 0 auto 1rem; }
.alert-error { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); border-radius: var(--r-sm); padding: .7rem 1rem; margin-bottom: 1.4rem; font-size: .88rem; color: #ef4444; }

/* ============================================================
   AD SLOTS (future monetization)
============================================================ */
.ad-slot { background: var(--bg-card); border: 1px dashed var(--border); border-radius: var(--r-md); padding: 1rem; text-align: center; color: var(--text-3); font-size: .78rem; margin: 2rem 0; min-height: 90px; display: flex; align-items: center; justify-content: center; }

/* ============================================================
   SCROLL REVEAL
============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; } .d3 { transition-delay: .3s; } .d4 { transition-delay: .4s; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 991px) {
    .code-card, .hero-visual { display: none; }
    .hero-title { font-size: clamp(2.6rem, 8vw, 4rem); }
    .cta-card { padding: 3rem 2rem; }
}
@media (max-width: 767px) {
    section { padding: 4rem 0; }
    .hero-section { text-align: center; padding: 7rem 0 4rem; }
    .hero-cta, .hero-stats { justify-content: center; }
    .hero-desc { margin: 0 auto 2.4rem; }
    .section-subtitle { margin-left: auto; margin-right: auto; }
    .section-divider { margin-left: auto; margin-right: auto; }
    .about-section .order-mob-1 { order: 1; margin-bottom: 2rem; }
    .about-section .order-mob-2 { order: 2; }
    .projects-grid { grid-template-columns: 1fr; }
    .skills-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-bottom { flex-direction: column; text-align: center; }
    .admin-table th:nth-child(3), .admin-table td:nth-child(3) { display: none; }
}
@media (max-width: 480px) {
    .skills-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-form-card, .contact-info-card { padding: 1.5rem; }
    .hero-stats { gap: 1.4rem; }
}

}

/* ============================================================
   SERVICES
============================================================ */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.6rem; margin-top: 2.5rem; }
.service-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 2rem; transition: var(--t); position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); transform: scaleX(0); transition: transform .35s ease; transform-origin: left; }
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { border-color: var(--border-h); transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0,0,0,.35), 0 0 30px rgba(139,92,246,.08); }
.service-ico { width: 52px; height: 52px; background: rgba(139,92,246,.1); border: 1px solid rgba(139,92,246,.2); border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 1.35rem; margin-bottom: 1.3rem; transition: var(--t); }
.service-card:hover .service-ico { background: rgba(139,92,246,.2); border-color: var(--accent); transform: scale(1.08); }
.service-title { font-size: 1.1rem; font-weight: 700; margin-bottom: .6rem; }
.service-desc { font-size: .88rem; color: var(--text-2); line-height: 1.75; margin-bottom: 1.2rem; }
.service-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.service-list li { font-size: .82rem; color: var(--text-3); display: flex; align-items: center; gap: .5rem; }
.service-list li::before { content: '→'; color: var(--accent); font-size: .72rem; }

/* ============================================================
   PROCESS
============================================================ */
.process-section { background: var(--bg-2); position: relative; overflow: hidden; }
.process-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.process-step { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.8rem 1.4rem; text-align: center; transition: var(--t); }
.process-step:hover { border-color: var(--border-h); transform: translateY(-5px); }
.process-num { font-family: var(--font-h); font-size: 2.2rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; margin-bottom: .5rem; }
.process-ico { width: 52px; height: 52px; background: rgba(139,92,246,.08); border: 1px solid rgba(139,92,246,.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 1.25rem; margin: 0 auto 1.2rem; transition: var(--t); }
.process-step:hover .process-ico { background: rgba(139,92,246,.18); border-color: var(--accent); }
.process-title { font-size: 1rem; font-weight: 700; margin-bottom: .55rem; }
.process-desc { font-size: .83rem; color: var(--text-2); line-height: 1.7; }

/* ============================================================
   PORTFOLIO FILTER
============================================================ */
.portfolio-filter { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2.5rem; }
.filter-btn { background: transparent; border: 1px solid var(--border); color: var(--text-2); padding: .42rem 1.15rem; border-radius: 50px; font-size: .83rem; font-weight: 600; cursor: pointer; transition: var(--t); font-family: var(--font); }
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 4px 16px rgba(139,92,246,.3); }
.project-card.hidden { display: none; }
.project-count { font-size: .82rem; color: var(--text-3); text-align: center; margin-bottom: 1.5rem; }

/* ============================================================
   BACK TO TOP
============================================================ */
.back-to-top { position: fixed; bottom: 2rem; right: 2rem; width: 44px; height: 44px; background: var(--grad); border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: .9rem; box-shadow: 0 4px 20px rgba(139,92,246,.45); cursor: pointer; transition: var(--t); opacity: 0; visibility: hidden; z-index: 998; }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(139,92,246,.6); }

/* ============================================================
   TYPING ANIMATION
============================================================ */
.hero-typed-roles { font-size: 1.05rem; font-weight: 600; color: var(--accent); margin-bottom: 1.2rem; min-height: 1.7rem; display: flex; align-items: center; gap: 2px; }
.typing-cursor { display: inline-block; width: 2px; height: 1.1em; background: var(--accent); border-radius: 1px; animation: blink .75s step-end infinite; vertical-align: middle; flex-shrink: 0; margin-left: 1px; }
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0; } }

/* ============================================================
   FAQ
============================================================ */
.faq-section { background: var(--bg-2); position: relative; }
.faq-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: .75rem; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; transition: border-color .3s; }
.faq-item:hover { border-color: var(--border-h); }
.faq-item.open { border-color: rgba(139,92,246,.4); }
.faq-q { width: 100%; text-align: left; background: transparent; border: none; padding: 1.15rem 1.4rem; font-family: var(--font); font-size: .95rem; font-weight: 600; color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; transition: color .2s; }
.faq-q:hover { color: var(--accent); }
.faq-q .faq-icon { color: var(--accent); flex-shrink: 0; font-size: .82rem; transition: transform .3s ease; }
.faq-item.open .faq-q .faq-icon { transform: rotate(180deg); }
.faq-a { padding: 0 1.4rem; max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .25s ease; font-size: .9rem; color: var(--text-2); line-height: 1.8; }
.faq-item.open .faq-a { max-height: 300px; padding: 0 1.4rem 1.15rem; }

/* ============================================================
   SECTION TITLE (utility)
============================================================ */
.section-title { font-size: clamp(1.75rem, 3.5vw, 2.4rem); font-weight: 800; margin-bottom: .5rem; }

/* ============================================================
   RESPONSIVE — NEW SECTIONS
============================================================ */
@media (max-width: 991px) {
    .process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .process-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .back-to-top { bottom: 1.25rem; right: 1.25rem; width: 40px; height: 40px; font-size: .82rem; }
}

/* ============================================================
   LEGAL PAGES (Privacy & Cookie)
============================================================ */
.legal-page { padding: 8rem 0 6rem; }
.legal-content { max-width: 820px; margin: 0 auto; }
.legal-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 2rem 2.4rem; margin-bottom: 1.4rem; }
.legal-card h2 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: .85rem; display: flex; align-items: center; gap: .6rem; }
.legal-card h2 i { color: var(--accent); font-size: 1rem; }
.legal-card p, .legal-card li { font-size: .93rem; color: var(--text-2); line-height: 1.9; margin-bottom: .55rem; }
.legal-card ul { padding-left: 1.3rem; margin-bottom: .5rem; }
.legal-card ul li { margin-bottom: .3rem; }
.legal-card a { color: var(--accent); text-decoration: none; }
.legal-card a:hover { text-decoration: underline; }
.legal-card p:last-child { margin-bottom: 0; }
.legal-meta { background: rgba(139,92,246,.06); border: 1px solid rgba(139,92,246,.18); border-radius: var(--r-md); padding: 1.2rem 1.6rem; margin-bottom: 2rem; }
.legal-meta p { font-size: .9rem; color: var(--text-2); margin-bottom: .35rem; }
.legal-meta p:last-child { margin-bottom: 0; }
.legal-meta strong { color: var(--text); }
.legal-badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: rgba(139,92,246,.1); border: 1px solid rgba(139,92,246,.2); color: var(--accent); padding: .25rem .75rem; border-radius: 50px; margin-bottom: .6rem; }
.footer-legal-link { color: var(--text-3) !important; text-decoration: none; font-size: .82rem; transition: var(--t); }
.footer-legal-link:hover { color: var(--accent) !important; }