/* ============================================
   WebMasterBun — Blue, Green & Red Glassy Theme
   ============================================ */

:root {
    --bg: #04070f;
    --bg-2: #070d1c;
    --blue: #3b82f6;
    --blue-2: #60a5fa;
    --blue-deep: #1d4ed8;
    --green: #00ff41;
    --green-2: #39ff6e;
    --green-deep: #009926;
    --red: #ef4444;
    --red-2: #f87171;
    --red-deep: #dc2626;
    --cyan: #22d3ee;
    --text: #e7edf8;
    --text-dim: #9fb0c9;
    --glass-bg: rgba(20, 34, 66, 0.28);
    --glass-border: rgba(96, 165, 250, 0.16);
    --glass-border-strong: rgba(96, 165, 250, 0.35);
    --radius: 18px;
    --font-head: 'Sora', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: radial-gradient(1200px 800px at 70% -10%, #0b1b3a 0%, var(--bg) 55%);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(239, 68, 68, 0.4); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--blue), var(--green), var(--red)); border-radius: 10px; }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    width: min(1160px, 92%);
    margin-inline: auto;
}

/* ---------- Background decoration ---------- */
.bg-orbs { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
    animation: float 16s ease-in-out infinite;
}
.orb-1 { width: 520px; height: 520px; background: rgba(37, 99, 235, 0.35); top: -140px; left: -120px; }
.orb-2 { width: 460px; height: 460px; background: rgba(0, 255, 65, 0.22); top: 30%; right: -160px; animation-delay: -6s; }
.orb-3 { width: 380px; height: 380px; background: rgba(239, 68, 68, 0.28); bottom: -120px; left: 30%; animation-delay: -11s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.08); }
}

/* ---------- Animated light dots ---------- */
.light-dots {
    position: fixed; inset: 0;
    z-index: -1; overflow: hidden;
    pointer-events: none;
}
.dot-light {
    position: absolute;
    width: 4px; height: 4px;
    border-radius: 50%;
    opacity: 0;
    will-change: transform, opacity;
    animation-timing-function: linear;
}
.dot-green {
    background: #00ff41;
    box-shadow: 0 0 6px #00ff41, 0 0 15px #00ff41, 0 0 40px rgba(0, 255, 65, 0.6), 0 0 80px rgba(0, 255, 65, 0.3);
}
.dot-blue {
    background: #3b82f6;
    box-shadow: 0 0 6px #3b82f6, 0 0 15px #3b82f6, 0 0 40px rgba(59, 130, 246, 0.6), 0 0 80px rgba(59, 130, 246, 0.3);
}
.dot-red {
    background: #ef4444;
    box-shadow: 0 0 6px #ef4444, 0 0 15px #ef4444, 0 0 40px rgba(239, 68, 68, 0.6), 0 0 80px rgba(239, 68, 68, 0.3);
}
.dot-light::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    animation: glow-pulse 2s ease-in-out infinite alternate;
}
.dot-green::after { background: radial-gradient(circle, rgba(0, 255, 65, 0.25) 0%, transparent 70%); }
.dot-blue::after  { background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, transparent 70%); }
.dot-red::after   { background: radial-gradient(circle, rgba(239, 68, 68, 0.25) 0%, transparent 70%); }

@keyframes glow-pulse {
    from { opacity: 0.5; transform: scale(1); }
    to   { opacity: 1; transform: scale(2.2); }
}

/* --- Top-left to bottom-right diagonal --- */
.dot-1 { top: -5%; left: 10%; animation: drift-1 9s 0s linear infinite; }
.dot-2 { top: -5%; left: 35%; animation: drift-1 12s 2s linear infinite; }
.dot-3 { top: -5%; left: 70%; animation: drift-1 10s 5s linear infinite; }

/* --- Bottom-left to top-right diagonal --- */
.dot-4 { bottom: -5%; left: 5%; animation: drift-2 11s 1s linear infinite; }
.dot-5 { bottom: -5%; left: 50%; animation: drift-2 9s 4s linear infinite; }
.dot-6 { bottom: -5%; left: 80%; animation: drift-2 13s 0.5s linear infinite; }

/* --- Left to right horizontal --- */
.dot-7  { top: 25%; left: -5%; animation: drift-3 14s 3s linear infinite; }
.dot-8  { top: 55%; left: -5%; animation: drift-3 11s 7s linear infinite; }
.dot-9  { top: 80%; left: -5%; animation: drift-3 12s 1.5s linear infinite; }

/* --- Right to left horizontal --- */
.dot-10 { top: 15%; right: -5%; animation: drift-4 13s 2.5s linear infinite; }
.dot-11 { top: 45%; right: -5%; animation: drift-4 10s 5.5s linear infinite; }
.dot-12 { top: 70%; right: -5%; animation: drift-4 15s 0s linear infinite; }

@keyframes drift-1 {
    0%   { transform: translate(0, 0); opacity: 0; }
    5%   { opacity: 0.8; }
    50%  { opacity: 1; }
    95%  { opacity: 0.8; }
    100% { transform: translate(80vw, 110vh); opacity: 0; }
}
@keyframes drift-2 {
    0%   { transform: translate(0, 0); opacity: 0; }
    5%   { opacity: 0.8; }
    50%  { opacity: 1; }
    95%  { opacity: 0.8; }
    100% { transform: translate(70vw, -110vh); opacity: 0; }
}
@keyframes drift-3 {
    0%   { transform: translate(0, 0) rotate(8deg); opacity: 0; }
    5%   { opacity: 0.7; }
    50%  { opacity: 1; }
    95%  { opacity: 0.7; }
    100% { transform: translate(110vw, 15vh) rotate(8deg); opacity: 0; }
}
@keyframes drift-4 {
    0%   { transform: translate(0, 0) rotate(-5deg); opacity: 0; }
    5%   { opacity: 0.7; }
    50%  { opacity: 1; }
    95%  { opacity: 0.7; }
    100% { transform: translate(-110vw, 12vh) rotate(-5deg); opacity: 0; }
}

.grid-overlay {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.15) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}

/* ---------- Glass utilities ---------- */
.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-radius: var(--radius);
}
.glass-soft { border-color: rgba(96, 165, 250, 0.12); }

/* ---------- Typography helpers ---------- */
.gradient-text {
    background: linear-gradient(90deg, var(--blue-2), var(--green-2), var(--red-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--green);
    background: rgba(0, 255, 65, 0.08);
    border: 1px solid rgba(0, 255, 65, 0.25);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 18px;
}

.section { padding: 110px 0; position: relative; }
.section-alt {
    background: linear-gradient(180deg, transparent, rgba(11, 25, 55, 0.45) 12%, rgba(11, 25, 55, 0.45) 88%, transparent);
}

.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-title { font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 14px; }
.section-sub { color: var(--text-dim); font-size: 1.05rem; }

.section-cta { text-align: center; margin-top: 56px; }

/* ---------- Buttons ---------- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-head);
    font-weight: 600;
    border-radius: 14px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    white-space: nowrap;
}
.btn-lg { padding: 18px 38px; font-size: 1.05rem; }
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }
.btn-primary {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
    color: #fff;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 44px rgba(37, 99, 235, 0.55); }
.btn-outline {
    background: transparent;
    border-color: var(--glass-border-strong);
    color: var(--text);
}
.btn-outline:hover { border-color: var(--blue); color: #fff; background: rgba(37, 99, 235, 0.12); transform: translateY(-3px); }
.btn-ghost {
    background: rgba(96, 165, 250, 0.06);
    border-color: var(--glass-border-strong);
    color: var(--text);
    backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(96, 165, 250, 0.16); transform: translateY(-3px); }
.w-full { width: 100%; }

/* --- Animated CTA button --- */
.cta-animated { overflow: hidden; animation: ctaPulse 2.6s ease-in-out infinite; }
.cta-animated .cta-label { position: relative; z-index: 2; }
.cta-animated .cta-glow {
    position: absolute; top: 0; bottom: 0; width: 60px;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.65), transparent);
    transform: skewX(-20deg);
    animation: ctaShine 2.6s ease-in-out infinite;
    z-index: 1;
}
@keyframes ctaShine {
    0% { left: -25%; }
    55% { left: 115%; }
    100% { left: 115%; }
}
@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4); }
    33% { box-shadow: 0 10px 50px rgba(0, 255, 65, 0.5); }
    66% { box-shadow: 0 10px 50px rgba(239, 68, 68, 0.5); }
}

/* ---------- Nav ---------- */
.nav {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1160px, 94%);
    z-index: 1000;
    border-radius: 100px;
    padding: 0 26px;
    transition: top 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    border-color: rgba(0, 255, 0, 0.3);
    background: linear-gradient(0deg, rgba(0, 100, 0, 0.9) 0%, rgba(0, 255, 65, 0.75) 100%);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.nav.scrolled { top: 10px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    font-family: var(--font-head); font-weight: 800; font-size: 0.95rem;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--green));
    border-radius: 12px;
    box-shadow: var(--shadow-glow);
    overflow: hidden;
}
.brand-mark-img { border-radius: inherit; }
.brand-name { font-family: var(--font-head); font-size: 1.05rem; font-weight: 400; color: var(--text); letter-spacing: -0.01em; }
.brand-name b { font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
    padding: 9px 15px;
    border-radius: 100px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text);
    transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(0, 255, 65, 0.12); }
.nav-cta { color: #fff !important; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    width: 24px; height: 2px;
    background: var(--text);
    border-radius: 4px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 150px 0 90px;
    position: relative;
}
.hero-inner { text-align: center; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 9px 18px;
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 30px;
    animation: fadeDown 0.8s ease both;
}
.pulse-dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: #00ff41;
    box-shadow: 0 0 0 0 rgba(0, 255, 65, 0.7);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 65, 0.7); }
    70% { box-shadow: 0 0 0 12px rgba(0, 255, 65, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 65, 0); }
}

.hero-title {
    font-family: var(--font-head);
    font-size: clamp(2.4rem, 6.5vw, 4.4rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    animation: fadeUp 0.8s 0.12s ease both;
}

.hero-title-slide {
    display: none;
}

.hero-title-slide.active {
    display: block;
}

.hero-subtitle {
    max-width: 620px;
    margin: 0 auto 40px;
    color: var(--text-dim);
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    animation: fadeUp 0.8s 0.24s ease both;
}

.hero-cta {
    display: flex; justify-content: center; align-items: center; gap: 18px; flex-wrap: wrap;
    margin-bottom: 64px;
    animation: fadeUp 0.8s 0.36s ease both;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 30px 40px;
    max-width: 720px;
    margin: 0 auto;
    animation: fadeUp 0.8s 0.5s ease both;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
    font-family: var(--font-head);
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(180deg, #fff, var(--green-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 0.82rem; color: var(--text-dim); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

.scroll-hint {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    place-items: center;
}
.mouse {
    width: 26px; height: 42px;
    border: 2px solid var(--glass-border-strong);
    border-radius: 20px;
    display: grid;
    justify-content: center;
    padding-top: 8px;
}
.wheel {
    width: 4px; height: 9px;
    background: var(--blue-2);
    border-radius: 4px;
    animation: wheel 1.6s ease-in-out infinite;
}
@keyframes wheel {
    0% { transform: translateY(0); opacity: 1; }
    70% { transform: translateY(12px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Services / Cards ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.service-card {
    padding: 34px 26px;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    will-change: transform;
}
.service-card:hover {
    border-color: var(--glass-border-strong);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}
.card-icon {
    width: 56px; height: 56px;
    display: grid; place-items: center;
    font-size: 1.6rem;
    background: linear-gradient(0deg, rgba(0, 100, 0, 0.9) 0%, rgba(0, 255, 65, 0.75) 100%);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 16px;
    margin-bottom: 20px;
}
.service-card h3 { font-family: var(--font-head); font-size: 1.12rem; font-weight: 600; margin-bottom: 10px; }
.service-card p { font-size: 0.92rem; color: var(--text-dim); margin-bottom: 16px; }
.card-link { font-size: 0.85rem; font-weight: 600; color: var(--green-2); }

/* ---------- Portfolio ---------- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
}
.portfolio-grid.single-child {
    grid-template-columns: 1fr;
    max-width: 50%;
    margin-inline: auto;
}
.project-card {
    display: block;
    overflow: hidden;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    will-change: transform;
}
a.project-card { cursor: pointer; }
.project-card:hover { border-color: var(--glass-border-strong); box-shadow: 0 20px 55px rgba(0, 0, 0, 0.55); }

.project-thumb {
    height: 230px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.12), transparent 45%),
        linear-gradient(140deg, var(--thumb), #04070f 70%);
    position: relative;
    overflow: hidden;
}
.project-thumb::after {
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.4;
}
.project-mock { font-size: 4.2rem; position: relative; z-index: 1; filter: drop-shadow(0 14px 24px rgba(0,0,0,0.5)); transition: transform 0.4s ease; }
.project-card:hover .project-mock { transform: scale(1.15) rotate(-4deg); }
.project-thumb .project-img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center; z-index: 1;
    transition: transform 0.45s ease;
}
.project-card:hover .project-img { transform: scale(1.05); }

.project-link-badge {
    position: absolute; top: 14px; right: 14px; z-index: 2;
    width: 34px; height: 34px;
    display: grid; place-items: center;
    font-size: 1rem; color: #fff;
    background: rgba(2, 8, 20, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    backdrop-filter: blur(6px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease, background 0.3s ease;
}
.project-card:hover .project-link-badge { transform: scale(1.12) rotate(45deg); background: rgba(37, 99, 235, 0.75); }

.project-thumb-link { display: block; position: relative; }
.project-thumb-link:hover .project-img { transform: scale(1.05); }

.project-price {
    display: flex; gap: 10px; flex-wrap: wrap;
    margin: 16px 0 4px;
}
.price-item {
    display: inline-flex; align-items: baseline; gap: 6px;
    background: rgba(96, 165, 250, 0.08);
    border: 1px solid rgba(96, 165, 250, 0.16);
    border-radius: 10px;
    padding: 6px 12px;
}
.price-item small { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim); }
.price-item b { font-family: var(--font-head); font-size: 1.05rem; color: var(--text); }

.project-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.project-actions .btn { flex: 1 1 auto; min-width: 120px; }
.project-actions .btn-primary { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%); }

/* ---------- Buy / pricing page ---------- */
.buy-hero { padding: 170px 0 40px; }
.buy-back {
    display: inline-block; margin-bottom: 18px;
    color: var(--text-dim); font-size: 0.9rem;
}
.buy-back:hover { color: var(--cyan); }
.buy-wrap { max-width: 860px; }
.buy-alert {
    padding: 16px 20px; margin-bottom: 22px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: rgba(96, 165, 250, 0.08);
    color: var(--text);
}
.buy-alert.success { border-color: rgba(0, 255, 65, 0.4); background: rgba(0, 255, 65, 0.1); color: var(--green-2); }
.buy-alert.error { border-color: rgba(248, 113, 113, 0.4); background: rgba(248, 113, 113, 0.1); color: #f87171; }

.buy-panel { padding: 36px; }
.buy-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
    margin: 8px 0;
}
.buy-project { display: flex; gap: 22px; align-items: center; margin-bottom: 28px; }
.buy-thumb {
    width: 180px; height: 120px; flex-shrink: 0;
    display: grid; place-items: center; overflow: hidden;
    border-radius: 14px;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.12), transparent 45%),
        linear-gradient(140deg, var(--thumb), #04070f 70%);
    position: relative;
}
.buy-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.buy-mock { font-size: 2.4rem; position: relative; z-index: 1; }
.buy-project-info h3 { margin-bottom: 6px; }
.buy-project-info p { color: var(--text-dim); font-size: 0.95rem; margin: 0; }

.buy-label {
    font-family: var(--font-head); font-size: 0.95rem; font-weight: 700;
    letter-spacing: 0.04em; text-transform: uppercase;
    margin: 22px 0 12px; color: var(--text);
}

.license-options { display: grid; gap: 14px; }
.license-option {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 20px 22px;
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    background: rgba(6, 12, 26, 0.5);
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease;
}
.license-option:hover { border-color: var(--glass-border-strong); background: rgba(20, 34, 66, 0.35); }
.license-option:has(input:checked) {
    border-color: var(--blue);
    background: rgba(37, 99, 235, 0.12);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18), inset 0 0 0 1px rgba(59, 130, 246, 0.15);
}
.license-option input[type="radio"] { margin-top: 4px; accent-color: var(--blue); flex-shrink: 0; }
.license-body { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.license-body strong { font-family: var(--font-head); font-size: 1.05rem; }
.license-body small { color: var(--text-dim); font-size: 0.88rem; }
.license-price {
    align-self: flex-end; margin-left: auto;
    font-family: var(--font-head); font-size: 1.5rem; font-weight: 800;
    color: var(--red-2);
}
.license-body small, .license-price { margin-top: 6px; }

.pay-methods { display: flex; gap: 12px; flex-wrap: wrap; }
.pay-method {
    display: flex; gap: 12px; align-items: center;
    flex: 1 1 220px;
    padding: 16px 18px;
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    background: rgba(6, 12, 26, 0.5);
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease;
}
.pay-method:hover { border-color: var(--glass-border-strong); background: rgba(20, 34, 66, 0.35); }
.pay-method:has(input:checked) {
    border-color: var(--blue);
    background: rgba(37, 99, 235, 0.12);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18), inset 0 0 0 1px rgba(59, 130, 246, 0.15);
}
.pay-method:has(input:disabled) { opacity: 0.45; cursor: not-allowed; }
.pay-method input[type="radio"] { accent-color: var(--blue); }
.pay-icon { font-size: 1.4rem; line-height: 1; }
.pay-method strong { display: block; font-family: var(--font-head); font-size: 0.98rem; }
.pay-method small { display: block; color: var(--text-dim); font-size: 0.82rem; }
.pay-method em {
    display: block; margin-top: 2px; font-style: normal;
    font-size: 0.72rem; color: #fbbf24;
}

.buy-submit { margin-top: 26px; text-align: center; }
.buy-submit .btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; pointer-events: none; }
.buy-note { margin: 14px auto 0; max-width: 460px; color: var(--text-dim); font-size: 0.85rem; }

/* --- Buy form inputs --- */
.buy-form .form-row { margin-bottom: 0; }
.buy-form .field { margin-bottom: 0; }
.buy-form .field-label {
    display: block; font-size: 0.78rem; font-weight: 600;
    color: var(--text-dim); margin-bottom: 8px;
    letter-spacing: 0.04em; text-transform: uppercase;
}
.buy-form .field input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(6, 12, 26, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.buy-form .field input::placeholder { color: rgba(159, 176, 201, 0.45); }
.buy-form .field input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
    background: rgba(6, 12, 26, 0.8);
}
.buy-form .buy-label {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-head); font-size: 0.88rem; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase;
    margin: 28px 0 14px; color: var(--text);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--glass-border);
}
.buy-form .buy-label:first-of-type { margin-top: 0; }

@media (max-width: 600px) {
    .buy-project { flex-direction: column; align-items: flex-start; }
    .buy-thumb { width: 100%; height: 160px; }
    .buy-panel { padding: 24px 20px; }
    .buy-form .form-row { grid-template-columns: 1fr; }
    .buy-form .buy-label { font-size: 0.82rem; }
}

.project-body { padding: 24px 26px; }
.project-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--green);
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid rgba(0, 255, 65, 0.22);
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 12px;
}
.project-body h3 { font-family: var(--font-head); font-size: 1.2rem; margin-bottom: 8px; }
.project-body p { font-size: 0.9rem; color: var(--text-dim); }

/* ---------- Filter bar ---------- */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    margin-bottom: 44px;
}
.filter-btn {
    padding: 9px 18px;
    border-radius: 100px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-dim);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}
.filter-btn:hover { color: var(--text); }
.filter-btn.active {
    background: linear-gradient(135deg, var(--blue), var(--green));
    color: #fff;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* ---------- About ---------- */
.about-inner {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 70px;
    align-items: center;
}
.about-visual {
    position: relative;
    min-height: 420px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 45%, rgba(0, 255, 65, 0.22), transparent 55%),
        var(--glass-bg);
}
.about-avatar {
    width: 190px; height: 190px;
    display: grid; place-items: center;
    font-size: 6rem;
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.3), rgba(239, 68, 68, 0.18));
    border: 1px solid var(--glass-border-strong);
    border-radius: 50%;
    box-shadow: 0 0 70px rgba(0, 255, 65, 0.35);
    animation: bob 5s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.about-badge {
    position: absolute;
    font-family: var(--font-head);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 100px;
    background: rgba(11, 22, 48, 0.75);
    border: 1px solid var(--glass-border-strong);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-glow);
    animation: bob 6s ease-in-out infinite;
}
.badge-1 { top: 12%; left: 8%; }
.badge-2 { top: 22%; right: 6%; animation-delay: -2s; }
.badge-3 { bottom: 12%; left: 20%; animation-delay: -4s; }

.about-content p { color: var(--text-dim); margin-bottom: 22px; }
.about-list { margin-bottom: 30px; }
.about-list li { display: flex; align-items: flex-start; gap: 12px; padding: 9px 0; font-size: 0.98rem; }
.about-list span { color: var(--green); font-weight: 700; }

/* ---------- Process ---------- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.process-step {
    padding: 34px 26px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
}
.process-step:hover { transform: translateY(-8px); border-color: var(--glass-border-strong); }
.step-num {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 2.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(0, 255, 65, 0.9), rgba(239, 68, 68, 0.9));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}
.process-step h3 { font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 8px; }
.process-step p { font-size: 0.88rem; color: var(--text-dim); }

/* ---------- Contact ---------- */
.contact-panel {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    padding: 60px;
}
.contact-info p { color: var(--text-dim); margin-bottom: 30px; }
.contact-channels { display: flex; flex-direction: column; gap: 14px; }
.channel {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(96, 165, 250, 0.06);
    border: 1px solid var(--glass-border);
    transition: background 0.25s ease, transform 0.25s ease;
}
.channel:hover { background: rgba(96, 165, 250, 0.14); transform: translateX(6px); }
.channel-icon { font-size: 1.4rem; }
.channel strong { display: block; font-size: 0.95rem; }
.channel small { color: var(--text-dim); }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px 18px;
    background: rgba(6, 12, 26, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    resize: vertical;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(159, 176, 201, 0.6); }
.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.hp-field {
    position: absolute; left: -9999px; top: -9999px;
    width: 1px; height: 1px; overflow: hidden; opacity: 0;
}
.form-status { min-height: 1.2em; margin: -4px 0 2px; font-size: 0.9rem; }
.form-status.success { color: var(--green-2); }
.form-status.error { color: #f87171; }

/* ---------- Page hero (portfolio) ---------- */
.page-hero { padding: 170px 0 60px; }
.page-hero-inner { text-align: center; }
.page-title { font-family: var(--font-head); font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 16px; }
.page-sub { color: var(--text-dim); font-size: 1.08rem; }

/* ---------- Footer ---------- */
.footer {
    border-top: 1px solid rgba(0, 255, 0, 0.3);
    background: linear-gradient(0deg, rgba(0, 100, 0, 0.9) 0%, rgba(0, 255, 65, 0.75) 100%);
    padding: 80px 0 0;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 44px;
}
.footer-brand p { color: var(--text); font-size: 0.9rem; margin-top: 14px; max-width: 280px; }
.footer-col h4, .footer-social h4 { font-family: var(--font-head); font-size: 0.9rem; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text); font-size: 0.9rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--green-2); }
.social-links { display: flex; gap: 10px; }
.social-links a {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    font-size: 0.78rem; font-weight: 700;
    border-radius: 12px;
    background: rgba(96, 165, 250, 0.08);
    border: 1px solid var(--glass-border);
    color: var(--text);
    transition: all 0.25s ease;
}
.social-links a:hover { background: var(--red); color: #fff; transform: translateY(-3px); box-shadow: 0 0 30px rgba(239, 68, 68, 0.4); }
.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding: 20px 0;
    text-align: center;
}
.footer-bottom p { font-size: 0.85rem; color: var(--text-dim); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .about-inner { grid-template-columns: 1fr; gap: 44px; }
    .about-visual { min-height: 320px; }
    .contact-panel { grid-template-columns: 1fr; padding: 36px; }
    .nav-toggle { display: flex; }
    .nav-links {
        position: absolute;
        top: 78px;
        left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 18px;
        background: rgba(8, 16, 36, 0.96);
        border: 1px solid var(--glass-border-strong);
        border-radius: 20px;
        backdrop-filter: blur(20px);
        opacity: 0;
        transform: translateY(-14px);
        pointer-events: none;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    .nav-links.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
    .nav-links a { display: block; text-align: center; }
    .nav-cta { margin-top: 8px; }
}

@media (max-width: 640px) {
    .section { padding: 76px 0; }
    .services-grid { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .portfolio-grid.single-child { max-width: 100%; }
    .process-grid { grid-template-columns: 1fr; }
    .hero-stats { grid-template-columns: 1fr; gap: 18px; padding: 26px; }
    .form-row { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .hero-cta { flex-direction: column; }
    .btn-lg { width: 100%; }
    .contact-panel { padding: 26px 20px; }
    .scroll-hint { display: none; }
}
