/* ─── Base ─────────────────────────────────────────────────────────────────── */
body { font-family: 'Inter', sans-serif; }

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.shadow-soft {
    box-shadow: 0px 15px 30px -10px rgba(26, 33, 47, 0.04);
}

/* ─── Animation initial state (elements start hidden, JS reveals them) ──────── */
.hero-animate,
.solution-card,
.pillar-item,
.section-fade,
.cta-animate,
.bento-card,
.team-member { opacity: 0; }

/* ─── Fish swim (index.html hero) ────────────────────────────────────────────── */
@keyframes fish-swim {
    0%   { transform: translateX(-280px); opacity: 0; }
    5%   { opacity: 0.32; }
    88%  { transform: translateX(110vw);  opacity: 0.32; }
    95%  { transform: translateX(110vw);  opacity: 0; }
    100% { transform: translateX(-280px); opacity: 0; }
}

.fish-swim {
    position: absolute;
    bottom: 12%;
    left: 0;
    width: 240px;
    pointer-events: none;
    z-index: 2;
    animation: fish-swim 7s linear infinite;
    will-change: transform;
}

@media (max-width: 768px) {
    .fish-swim { width: 110px; bottom: 10%; }
}

/* ─── About page ─────────────────────────────────────────────────────────────── */
.bento-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -10px rgba(26, 33, 47, 0.08);
}

/* ─── Portfolio page ─────────────────────────────────────────────────────────── */
.portfolio-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
}
.portfolio-card:hover { transform: translateY(-6px); }
.portfolio-card:hover .card-preview-img { transform: scale(1.03); }
.card-preview-img { transition: transform 0.4s ease; }
.portfolio-card.card-hidden { display: none; }

.browser-chrome-light { background: #e5e5e5; padding: 9px 12px; display: flex; align-items: center; gap: 6px; }
.browser-chrome-dark  { background: #2a2a2a; padding: 9px 12px; display: flex; align-items: center; gap: 6px; }
.b-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.b-url-light { flex: 1; background: #fff; height: 18px; border-radius: 3px; margin-left: 8px; opacity: 0.8; }
.b-url-dark  { flex: 1; background: #3a3a3a; height: 18px; border-radius: 3px; margin-left: 8px; }

.filter-pill { transition: all 0.18s ease; cursor: pointer; white-space: nowrap; }
.filter-pill.active { background: #ffffff; color: #040a17; border-color: #ffffff; }

.badge-branding  { background: rgba(212,160,23,0.15);  color: #d4a017; }
.badge-website   { background: rgba(99,102,241,0.15);  color: #818cf8; }
.badge-crm       { background: rgba(16,185,129,0.15);  color: #34d399; }
.badge-fullstack { background: rgba(168,85,247,0.15);  color: #c084fc; }

.swatch { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.12); flex-shrink: 0; }

/* ─── Services page ──────────────────────────────────────────────────────────── */
.svc-card {
    background: #0d1525;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 24px;
    transition: border-color 0.25s ease, transform 0.25s ease;
}
@media (min-width: 768px) {
    .svc-card { padding: 40px; }
}
.svc-card:hover {
    border-color: rgba(211,228,254,0.2);
    transform: translateY(-4px);
}
.svc-num {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #4a7cbe;
    margin-bottom: 24px;
}
.svc-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
}
.svc-desc {
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    font-size: 15px;
    margin-top: 14px;
}
.svc-list { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.svc-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255,255,255,0.45);
}
.svc-list li::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #4a7cbe;
    flex-shrink: 0;
}
.cap-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: rgba(255,255,255,0.55);
    padding: 7px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.cap-list li::before { content: '→'; color: #4a7cbe; font-size: 12px; flex-shrink: 0; }

/* ─── Dark mode ───────────────────────────────────────────────────────────────── */
html.dark { color-scheme: dark; }
html.dark body { background-color: #0b1120; color: #e0e8f5; }
html.dark .bg-surface                  { background-color: #0b1120 !important; }
html.dark .bg-surface-container-lowest { background-color: #111827 !important; }
html.dark .bg-surface-container-low    { background-color: #0f1627 !important; }
html.dark .bg-surface-container        { background-color: #151f33 !important; }
html.dark .bg-surface-container-high   { background-color: #1a2641 !important; }
html.dark .bg-surface-container-highest{ background-color: #1f2d4a !important; }
html.dark .bg-primary-container        { background-color: #050c1e !important; }
html.dark .bg-secondary-container      { background-color: #162035 !important; }
html.dark .text-primary                { color: #e0e8f5 !important; }
html.dark .text-on-surface             { color: #e0e8f5 !important; }
html.dark .text-on-surface-variant     { color: #8a9ab8 !important; }
html.dark .text-secondary              { color: #8a9ab8 !important; }
html.dark .text-on-secondary-container { color: #6b9fd8 !important; }
html.dark .text-on-primary-container   { color: #a0b4d0 !important; }
html.dark nav,
html.dark header { background-color: #111827 !important; box-shadow: 0 1px 0 #1e2d47 !important; }
html.dark #mobileMenu { background-color: #111827 !important; border-color: #1e2d47 !important; }
html.dark nav img[src*="fish.png"]:not(.invert),
html.dark header img[src*="fish.png"]:not(.invert) { filter: invert(1); }
html.dark nav a.border-primary  { border-color: #e0e8f5 !important; }
html.dark .border-outline-variant { border-color: #1e2d47 !important; }
html.dark .shadow-soft { box-shadow: 0px 15px 30px -10px rgba(0,0,0,0.4); }
html.dark .shadow-sm   { box-shadow: 0 1px 3px 0 rgba(0,0,0,0.5); }
html.dark .fish-swim   { filter: invert(1); }
/* Keep text readable on light-background buttons in dark mode */
html.dark .bg-surface-bright        { color: #040a17 !important; }
html.dark .bg-surface-container-highest { color: #040a17 !important; }
