:root {
    --bg: #0a0f1e;
    --bg-alt: #0d1426;
    --surface: #121b30;
    --surface-2: #17223c;
    --border: rgba(255, 255, 255, 0.08);
    --text: #e8edf7;
    --text-muted: #90a0bb;
    --cyan: #35d6e0;
    --violet: #7c6cf0;
    --amber: #f5a623;
    --radius: 18px;
    --font-display: "Space Grotesk", sans-serif;
    --font-body: "Inter", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .brand-text, .stat-number {
    font-family: var(--font-display);
    letter-spacing: -0.01em;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--surface);
    color: var(--text);
    padding: 10px 16px;
    z-index: 2000;
}
.skip-link:focus { left: 10px; top: 10px; }

a { color: inherit; text-decoration: none; }

.text-muted-light { color: var(--text-muted); }

.text-gradient {
    background: linear-gradient(100deg, var(--cyan), var(--violet));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn-gradient {
    background: linear-gradient(100deg, var(--cyan), var(--violet));
    color: #06111f;
    font-weight: 600;
    border: none;
    border-radius: 999px;
    padding: 0.7rem 1.6rem;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 8px 24px rgba(53, 214, 224, 0.18);
}
.btn-gradient:hover { transform: translateY(-2px); color: #06111f; box-shadow: 0 12px 30px rgba(124, 108, 240, 0.3); }

.btn-outline-light {
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    padding: 0.7rem 1.6rem;
    background: transparent;
    transition: border-color .2s ease, background .2s ease;
}
.btn-outline-light:hover { border-color: var(--cyan); background: rgba(53, 214, 224, 0.06); color: var(--text); }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 15, 30, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
}
.brand-text { font-size: 1.15rem; color: var(--text); }
.brand-text strong { font-weight: 700; }

.nav-link { color: var(--text-muted) !important; font-weight: 500; }
.nav-link:hover { color: var(--text) !important; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 6rem 0 4rem;
    overflow: hidden;
}
.hero-glow {
    position: absolute;
    top: -200px;
    right: -150px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124,108,240,0.28), transparent 70%);
    filter: blur(10px);
    pointer-events: none;
}
.hero-title {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.2rem;
}
.hero-lead { color: var(--text-muted); font-size: 1.1rem; max-width: 560px; }

.hero-stats .stat-number { display: block; font-size: 1.6rem; font-weight: 700; color: var(--cyan); }
.hero-stats .stat-label { display: block; font-size: 0.8rem; color: var(--text-muted); }

.hero-panel {
    background: linear-gradient(160deg, var(--surface), var(--surface-2));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem;
    box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}
.hero-panel-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 0.6rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}
.hero-panel-row:last-child { border-bottom: none; }
.hero-panel-row i { color: var(--cyan); font-size: 1.2rem; width: 26px; }
.hero-panel-row span:nth-child(2) { flex: 1; }
.badge-status {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(53, 214, 224, 0.12);
    color: var(--cyan);
    position: relative;
    padding-left: 18px;
}
.badge-status::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 0 0 rgba(53,214,224,0.6);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(53,214,224,0.5); }
    70% { box-shadow: 0 0 0 8px rgba(53,214,224,0); }
    100% { box-shadow: 0 0 0 0 rgba(53,214,224,0); }
}

/* ---------- Trust strip ---------- */
.trust-strip { padding: 2.2rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-label { font-size: 0.75rem; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 1.2rem; }
.trust-logos span { color: var(--text-muted); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.trust-logos i { color: var(--cyan); }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.page-hero { padding: 4.5rem 0 2.5rem; text-align: center; }
.section-heading { max-width: 640px; margin: 0 auto 3rem; }
.section-sub { color: var(--text-muted); }

/* ---------- Service cards ---------- */
.service-card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    height: 100%;
    transition: transform .2s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-4px); border-color: var(--cyan); }
.service-icon {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(53,214,224,0.15), rgba(124,108,240,0.15));
    color: var(--cyan);
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
}
.service-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.service-card p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 1rem; }
.service-link { color: var(--cyan); font-weight: 600; font-size: 0.88rem; }

.chip-card {
    display: flex; align-items: center; gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    font-size: 0.88rem;
    height: 100%;
    transition: border-color .2s ease, background .2s ease;
}
.chip-card i { color: var(--cyan); }
.chip-card:hover { border-color: var(--cyan); background: var(--surface-2); }

.service-group-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border);
}

/* ---------- About ---------- */
.about-card {
    background: linear-gradient(160deg, var(--surface), var(--surface-2));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.2rem;
}
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 0.8rem; color: var(--text-muted); }
.check-list i { color: var(--cyan); margin-top: 4px; }

/* ---------- Portfolio & Blog cards ---------- */
.portfolio-card, .blog-card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
    transition: transform .2s ease;
}
.portfolio-card:hover, .blog-card:hover { transform: translateY(-4px); }
.portfolio-image, .blog-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: var(--surface-2);
}
.portfolio-body, .blog-body { padding: 1.4rem; }
.portfolio-body h3, .blog-body h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.portfolio-body p, .blog-body p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* ---------- Contact ---------- */
.contact-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
}
.form-control, .form-select {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
}
.form-control:focus, .form-select:focus {
    background: var(--bg-alt);
    color: var(--text);
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(53,214,224,0.15);
}
.form-label { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 0.4rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 4rem 0 2rem; }
.footer-heading { font-family: var(--font-display); font-size: 0.95rem; margin-bottom: 1rem; color: var(--text); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: var(--text-muted); font-size: 0.92rem; }
.footer-links a:hover { color: var(--cyan); }
.footer-divider { border-color: var(--border); }
.social-links a {
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: border-color .2s ease, color .2s ease;
}
.social-links a:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---------- Prose (blog/service detail content) ---------- */
.prose { color: var(--text-muted); font-size: 1.02rem; }
.prose h2, .prose h3 { color: var(--text); margin-top: 2rem; }
.prose img { border-radius: var(--radius); }

/* ---------- Focus visibility ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}

/* ---------- Admin panel ---------- */
.admin-shell { display: flex; min-height: 100vh; background: var(--bg); color: var(--text); }
.admin-sidebar {
    width: 250px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 1.5rem 1rem;
    flex-shrink: 0;
}
.admin-sidebar .brand-text { font-size: 1rem; }
.admin-nav { list-style: none; padding: 0; margin-top: 2rem; }
.admin-nav li a {
    display: flex; align-items: center; gap: 10px;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 4px;
}
.admin-nav li a:hover, .admin-nav li a.active { background: var(--surface-2); color: var(--text); }
.admin-main { flex: 1; padding: 2rem; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.admin-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem;
}
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem;
}
.stat-card .value { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--cyan); }
.stat-card .label { color: var(--text-muted); font-size: 0.85rem; }
.table { color: var(--text); }
.table > :not(caption) > * > * { background: transparent; color: var(--text); border-bottom-color: var(--border); }
.admin-login-wrap {
    min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg);
}
.admin-login-card {
    width: 100%; max-width: 400px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
}
