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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-optical-sizing: auto;
    background: var(--bg-deep);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.has-appbar {
    padding-top: 66px;
}

/* Mobile edge-gap and card sizing: ensure 15px left/right page edges and no extra card margins */
@media (max-width: 680px) {
    body.has-appbar {
        padding-top: 62px;
    }
}

@media (max-width: 480px) {
    :root {
        --edge-gap: 15px;
    }

    .container,
    .about,
    .services,
    .industries,
    .technologies,
    .contact-section,
    .callback-section,
    .service-grid,
    .industry-grid {
        padding-inline: var(--edge-gap);
    }

    .service-card,
    .industry-card,
    .legal-card {
        flex: 0 0 min(320px, calc(100% - 30px));
        width: auto;
        margin-left: 0;
        margin-right: 0;
    }

    /* Ensure contact/callback respect 15px edges */
    .contact,
    .callback {
        width: calc(100% - 30px);
        padding-inline: var(--edge-gap);
    }
}

/* Unified section and card heading styles across the project */
.reveal h1,
.reveal h2,
.card h3,
.contact-section h2,
.technologies h2,
.services h2,
.industries h2 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    line-height: 1.06;
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
}

/* Consistent section subtext */
.section-sub {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 720px;
    margin: 0 auto 28px;
}

/* ══════════════════════════════════════════
   SNACKBAR / TOAST NOTIFICATIONS
   ══════════════════════════════════════════ */
#snackbar-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
    max-width: calc(100vw - 32px);
}

.snackbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    max-width: 440px;
    width: max-content;
    color: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    pointer-events: auto;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.snackbar--visible {
    opacity: 1;
    transform: translateY(0);
}

.snackbar__icon {
    flex: 0 0 auto;
    font-size: 1.05rem;
}

.snackbar__text {
    flex: 1 1 auto;
    min-width: 0;
    word-break: break-word;
}

/* ── Variants ── */
.snackbar--success {
    background: rgba(16, 185, 129, 0.92);
}

.snackbar--error {
    background: rgba(239, 68, 68, 0.92);
}

.snackbar--info {
    background: var(--text);
    color: var(--bg-deep);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

@media (max-width: 480px) {
    .snackbar {
        max-width: 100%;
        width: 100%;
    }
}

/* ── Minimalist Flat Hover Reset ── */
.appbar-nav-pill:hover,
.appbar-nav-pill:focus-visible,
.theme-toggle:hover,
.theme-toggle:focus-visible,
.lang-toggle:hover,
.lang-toggle:focus-visible,
.admin-button:hover,
.admin-button:focus-visible,
.product-cta:hover,
.product-cta:focus-visible,
.footer-nav a:hover,
.legal-nav a:hover,
.social-btn:hover {
    transform: none !important;
}
