/*------------------------------------------------------------------
Black Ops Solutions IT - site styles
-------------------------------------------------------------------*/

:root {
    --bg: #0a0a0d;
    --bg-2: #111116;
    --bg-3: #16161d;
    --panel: #1b1b24;
    --border: #26262f;
    --border-2: #33333f;
    --text: #e8e8ee;
    --muted: #9a9aa8;
    --accent: #ff6a00;
    --accent-2: #ff8a3d;
    --accent-soft: rgba(255, 106, 0, 0.12);
    --success: #4ade80;
    --shadow-1: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-2: 0 30px 80px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ---------- ACCESSIBILITY ---------- */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 0; top: -100px;
    background: var(--accent); color: #fff;
    padding: 0.7rem 1.1rem; font-weight: 600;
    border-radius: 0 0 10px 0; z-index: 100;
    transition: top 0.15s ease;
}
.skip-link:focus { top: 0; color: #fff; outline: 2px solid #fff; outline-offset: 2px; }

a:focus-visible,
button:focus-visible,
.btn-primary-bos:focus-visible,
.btn-ghost-bos:focus-visible,
.nav-toggle:focus-visible,
.project-card:focus-visible,
.nav-links a:focus-visible,
.nav-cta:focus-visible,
.footer-social a:focus-visible {
    outline: 2px solid #ffd9bd;
    outline-offset: 3px;
    border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #fff;
    margin: 0 0 0.6em;
}

h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.2rem; font-weight: 700; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- NAV ---------- */
.topnav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    background: rgba(10, 10, 13, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.topnav.scrolled {
    background: rgba(10, 10, 13, 0.85);
    border-bottom-color: var(--border);
}
.topnav-inner {
    max-width: 1200px; margin: 0 auto; padding: 0.65rem 1.25rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.65rem; color: #fff; flex-shrink: 0; }
.brand:hover { color: #fff; }
.brand-logo { height: 32px; width: auto; }
.brand-wordmark { height: 56px; width: auto; display: block; }
.brand-text { font-weight: 700; letter-spacing: 0.01em; font-size: 1rem; }
@media (max-width: 860px) { .brand-wordmark { height: 48px; } }
@media (max-width: 480px) { .brand-wordmark { height: 40px; } }
@media (max-width: 360px) { .brand-wordmark { height: 34px; } }

.nav-links {
    list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; align-items: center;
    flex: 1; justify-content: center;
}
.nav-links a {
    color: var(--text); font-weight: 500; font-size: 0.95rem; opacity: 0.85;
    transition: opacity 0.15s, color 0.15s;
}
.nav-links a:hover { opacity: 1; color: #fff; }

.nav-end {
    display: flex; align-items: center; gap: 0.5rem;
    flex-shrink: 0;
}

.nav-cta {
    background: var(--accent); color: #fff !important; padding: 0.5rem 1.05rem; border-radius: 8px;
    font-weight: 600; font-size: 0.92rem;
    white-space: nowrap;
    transition: background 0.15s ease;
}
.nav-cta:hover { background: var(--accent-2); }

.nav-toggle {
    display: none; background: transparent; border: 1px solid var(--border-2);
    color: #fff; padding: 0.55rem 0.8rem; border-radius: 8px; cursor: pointer;
    min-width: 44px; min-height: 44px;
    align-items: center; justify-content: center;
}

@media (max-width: 860px) {
    .nav-toggle { display: inline-flex; }
    .nav-links {
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; gap: 0; padding: 0.5rem 0;
        background: rgba(10, 10, 13, 0.97);
        border-bottom: 1px solid var(--border);
        max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
        flex: none; justify-content: flex-start;
    }
    .nav-links.open { max-height: 480px; }
    .nav-links li { width: 100%; }
    .nav-links a { display: block; padding: 0.85rem 1.5rem; }
}

@media (max-width: 420px) {
    .nav-cta { padding: 0.45rem 0.75rem; font-size: 0.85rem; }
    .topnav-inner { gap: 0.5rem; padding: 0.55rem 0.85rem; }
}

/* ---------- BUTTONS ---------- */
.btn-primary-bos, .btn-ghost-bos {
    display: inline-flex; align-items: center; gap: 0.55rem;
    padding: 0.75rem 1.4rem; border-radius: 10px;
    font-weight: 600; font-size: 0.95rem;
    text-decoration: none; cursor: pointer;
    transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s;
    border: 1px solid transparent; white-space: nowrap;
}
.btn-primary-bos {
    background: var(--accent); color: #fff;
    box-shadow: 0 8px 22px rgba(255, 106, 0, 0.28);
}
.btn-primary-bos:hover { background: var(--accent-2); color: #fff; transform: translateY(-1px); }
.btn-ghost-bos {
    background: transparent; color: #fff; border-color: var(--border-2);
}
.btn-ghost-bos:hover { border-color: var(--accent); color: var(--accent-2); }
.btn-lg-bos { padding: 0.95rem 1.7rem; font-size: 1rem; }

/* ---------- HERO ---------- */
.hero {
    position: relative; padding: 9rem 0 5rem; overflow: hidden;
    background:
        radial-gradient(ellipse 60% 60% at 80% 0%, rgba(255, 106, 0, 0.18), transparent 60%),
        radial-gradient(ellipse 40% 50% at 0% 100%, rgba(255, 106, 0, 0.08), transparent 60%),
        var(--bg);
}
.hero-bg {
    position: absolute; inset: 0; pointer-events: none; z-index: 0;
    /* Stock photo: Unsplash - circuit board macro by Alexandre Debiève (free under Unsplash licence). */
    background-image: url('https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=2400&q=70');
    background-size: cover; background-position: center;
    opacity: 0.18;
    filter: saturate(0.65) contrast(1.05);
    mask-image: radial-gradient(ellipse 95% 85% at 50% 45%, #000 25%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse 95% 85% at 50% 45%, #000 25%, transparent 85%);
}
.hero::after {
    /* Dark vignette overlay so foreground text contrast holds */
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
    background:
        linear-gradient(180deg, rgba(10,10,13,0.35) 0%, rgba(10,10,13,0.55) 60%, var(--bg) 100%);
}
.hero-grid {
    position: absolute; inset: 0; pointer-events: none; opacity: 0.28; z-index: 2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 30%, transparent 75%);
}
.hero-inner { z-index: 3; }
.hero-inner { position: relative; z-index: 3; }
.hero-tag {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.4rem 0.85rem; border-radius: 999px;
    background: var(--accent-soft); color: var(--accent-2);
    border: 1px solid rgba(255, 106, 0, 0.3);
    font-size: 0.85rem; font-weight: 500; margin-bottom: 1.5rem;
}
.hero-tag .dot {
    width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
}
.hero-title {
    font-size: clamp(2rem, 5.5vw, 4.4rem);
    font-weight: 800; letter-spacing: -0.03em; margin-bottom: 1.2rem;
}
.hero-title .accent {
    background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 50%, #ffd9bd 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
    color: var(--muted); font-size: 1.1rem; max-width: 640px;
    margin: 0 0 2rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 3rem; }
.hero-stats {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem; max-width: 720px;
    border-top: 1px solid var(--border); padding-top: 1.5rem;
}
.hero-stats > div { display: flex; flex-direction: column; }
.hero-stats strong {
    color: #fff; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em;
}
.hero-stats span { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 600px) {
    .hero-stats { grid-template-columns: 1fr; }
    .hero { padding: 6rem 0 3.5rem; }
}

/* ---------- SECTIONS ---------- */
.section { padding: 5rem 0; }
.section-dark { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 780px; margin: 0 auto 3rem; text-align: center; }
.eyebrow {
    display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--accent-2); margin-bottom: 0.75rem;
}
.eyebrow-light { color: var(--accent-2); }
.lead { color: var(--muted); font-size: 1.08rem; }

/* ---------- SERVICES ---------- */
.service-grid {
    display: grid; gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.service-card {
    background: var(--bg-2); border: 1px solid var(--border);
    border-radius: 14px; padding: 1.5rem; transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.service-card:hover {
    transform: translateY(-3px); border-color: var(--accent);
    background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-3) 100%);
}
.service-icon {
    width: 44px; height: 44px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-soft); color: var(--accent-2);
    font-size: 1.15rem; margin-bottom: 1rem;
    border: 1px solid rgba(255, 106, 0, 0.25);
}
.service-card h3 { color: #fff; margin-bottom: 0.5rem; }
.service-card p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* ---------- AI PANEL ---------- */
.check-list { list-style: none; padding: 0; margin: 1.25rem 0; }
.check-list li {
    padding: 0.5rem 0; color: var(--text); display: flex; align-items: flex-start; gap: 0.65rem;
}
.check-list i { color: var(--accent); margin-top: 0.3rem; }
.ai-panel {
    background: #0d0d12; border: 1px solid var(--border);
    border-radius: 14px; overflow: hidden;
    box-shadow: var(--shadow-2);
    margin-top: 1.5rem;
}
.ai-panel-header {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.7rem 1rem; border-bottom: 1px solid var(--border);
    background: var(--bg-3);
}
.ai-panel-header .dot {
    width: 10px; height: 10px; border-radius: 50%; background: #555;
}
.ai-panel-header .dot.red { background: #ff5f56; }
.ai-panel-header .dot.amber { background: #ffbd2e; }
.ai-panel-header .dot.green { background: #27c93f; }
.ai-panel-title {
    margin-left: 0.5rem; color: var(--muted); font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}
.ai-code {
    margin: 0; padding: 1.5rem;
    font-family: 'JetBrains Mono', monospace; font-size: 0.9rem;
    color: #cfcfd6; line-height: 1.7; overflow-x: auto;
    background: transparent;
}
.ai-code .c { color: #8a93a0; }
.ai-code .k { color: #ff8a3d; }
.ai-code .s { color: #7ed4ad; }

/* ---------- FEATURE / ALERTAVULN ---------- */
.section-feature { padding: 4rem 0; }
.feature-card {
    position: relative;
    background:
        radial-gradient(ellipse 60% 80% at 100% 0%, rgba(255, 106, 0, 0.18), transparent 60%),
        linear-gradient(180deg, var(--bg-2) 0%, var(--bg-3) 100%);
    border: 1px solid var(--border-2);
    border-radius: 20px; padding: 3rem; box-shadow: var(--shadow-2);
}
.feature-badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: var(--accent); color: #fff;
    padding: 0.35rem 0.8rem; border-radius: 999px;
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; margin-bottom: 1.25rem;
}

/* Matched sticker frame - BOS + AlertaVuln slot into the same frame */
.sticker-frame {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.5rem;
    align-items: center;
    margin: 0 0 2rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px dashed var(--border-2);
    border-radius: 14px;
}
.sticker-slot {
    display: flex; align-items: center; justify-content: center;
    padding: 0.85rem 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
    border: 1px solid var(--border);
    border-radius: 10px;
    min-height: 80px;
}
.sticker-slot img {
    max-width: 100%; height: auto; max-height: 56px; display: block;
}
.sticker-divider {
    display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
    color: var(--muted); font-size: 0.85rem;
}
.sticker-divider span {
    width: 1px; height: 14px; background: var(--border-2);
}
.sticker-divider i { color: var(--accent); }
@media (max-width: 640px) {
    .sticker-frame { grid-template-columns: 1fr; }
    .sticker-divider { flex-direction: row; }
    .sticker-divider span { width: 14px; height: 1px; }
}
.feature-title { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.feature-lead { color: var(--text); font-size: 1.1rem; margin-bottom: 1rem; }
.feature-card p { color: var(--muted); }
.feature-card p strong { color: #fff; }
.feature-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.feature-stats {
    display: flex; flex-direction: column; gap: 0.85rem;
    margin-top: 1.5rem;
}
.stat-row {
    display: flex; gap: 1rem; align-items: flex-start;
    padding: 1rem; background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border); border-radius: 12px;
}
.stat-row > i {
    color: var(--accent); font-size: 1.1rem; flex-shrink: 0;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-soft); border-radius: 8px;
}
.stat-row strong { display: block; color: #fff; font-size: 1rem; }
.stat-row span { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 768px) { .feature-card { padding: 2rem 1.5rem; } }

/* ---------- PROJECTS ---------- */
.project-grid {
    display: grid; gap: 1.25rem;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.project-card {
    display: flex; flex-direction: column; gap: 0.75rem;
    padding: 1.5rem; border-radius: 14px;
    background: var(--bg-2); border: 1px solid var(--border);
    color: var(--text); text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
    min-height: 200px;
}
a.project-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    background: var(--bg-3);
    color: var(--text);
}
.project-card-feature {
    border-color: rgba(255, 106, 0, 0.45);
    background:
        radial-gradient(ellipse 80% 100% at 100% 0%, rgba(255, 106, 0, 0.15), transparent 60%),
        var(--bg-2);
}
.project-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem; border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-2);
    color: var(--muted);
}
.tag-accent {
    background: var(--accent-soft); color: var(--accent-2);
    border-color: rgba(255, 106, 0, 0.3);
}
.project-card h3 { margin: 0; color: #fff; }
.project-card p { color: var(--muted); margin: 0; flex: 1; font-size: 0.95rem; }
.project-link {
    color: var(--accent-2); font-weight: 600; font-size: 0.9rem;
    display: inline-flex; align-items: center; gap: 0.4rem;
    margin-top: auto;
}

/* ---------- CONTACT ---------- */
.section-contact {
    background:
        radial-gradient(ellipse 50% 60% at 0% 100%, rgba(255, 106, 0, 0.1), transparent 70%),
        var(--bg);
}
.contact-card {
    background:
        linear-gradient(180deg, var(--bg-2) 0%, var(--bg-3) 100%);
    border: 1px solid var(--border-2);
    border-radius: 20px; padding: 3rem;
    box-shadow: var(--shadow-2);
}
.contact-title { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin-bottom: 1rem; }
.contact-lead { color: var(--muted); font-size: 1.05rem; margin-bottom: 1.5rem; }
.contact-methods { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.contact-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 0.85rem;
}
.contact-list li {
    display: flex; align-items: center; gap: 0.7rem;
    color: var(--muted); padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border); border-radius: 10px;
}
.contact-list li i { color: var(--accent); width: 18px; text-align: center; }
.contact-list li { flex-wrap: wrap; row-gap: 0.4rem; }
.contact-list a { color: var(--text); }
.contact-list a:hover { color: var(--accent-2); }
@media (max-width: 768px) { .contact-card { padding: 2rem 1.5rem; } }

/* ---------- FOOTER ---------- */
.footer {
    border-top: 1px solid var(--border); padding: 2rem 0;
    background: var(--bg-2);
}
.footer-inner {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 1rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.65rem; color: var(--text); }
.footer-logo { height: 28px; width: auto; }
.footer-wordmark { height: 34px; width: auto; display: block; }
.footer-meta {
    display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
    color: var(--muted); font-size: 0.9rem;
}
.footer-social {
    list-style: none; padding: 0; margin: 0;
    display: flex; gap: 0.25rem;
}
.footer-social a {
    color: var(--muted); font-size: 1.1rem; transition: color 0.15s;
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
}
.footer-social a:hover { color: var(--accent); }
.footer-social-logo {
    width: 22px; height: 22px; display: block;
    filter: grayscale(1) brightness(1.1);
    opacity: 0.7;
    transition: filter 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}
.footer-social a:hover .footer-social-logo,
.footer-social a:focus-visible .footer-social-logo {
    filter: grayscale(0) brightness(1);
    opacity: 1;
    transform: scale(1.05);
}

/* ---------- MOBILE FINAL POLISH ---------- */
@media (max-width: 600px) {
    .ai-code { font-size: 0.78rem; padding: 1rem; line-height: 1.6; }
}
@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .feature-card, .contact-card { padding: 1.5rem 1.1rem; border-radius: 14px; }
    .btn-primary-bos, .btn-ghost-bos { white-space: normal; }
    .hero-cta .btn-primary-bos, .hero-cta .btn-ghost-bos,
    .feature-cta .btn-primary-bos, .feature-cta .btn-ghost-bos,
    .contact-methods .btn-primary-bos { width: 100%; justify-content: center; }
}
@media (max-width: 380px) {
    .service-grid { grid-template-columns: 1fr; }
    .project-grid { grid-template-columns: 1fr; }
}
