/* =====================
   ROOT COLORS & VARIABLES
   ===================== */
@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');

:root {
    /* ── Primary Palette ──────────────────────────────── */
    --accent-red:      #C8281E;   /* CTA buttons, icons, active states, highlights */
    --accent-red-dark: #A01F17;   /* Hover states for red elements */
    --accent-red-soft: rgba(200, 40, 30, 0.08);  /* Subtle tinted backgrounds */

    /* ── Neutral / Background Scale ───────────────────── */
    --bg-base:         #FAFAF8;   /* Page background — warm off-white */
    --bg-cream:        #F5F2ED;   /* Section alternates — soft cream */
    --bg-cream-deep:   #EDE9E1;   /* Deeper cream for contrast panels */
    --surface:         #FFFFFF;   /* Card / panel surfaces */
    --surface-tinted:  #F9F7F4;   /* Lightly tinted card alternate */

    /* ── Text ─────────────────────────────────────────── */
    --heading:         #1A1A1A;   /* h1-h6 – near-black */
    --body-text:       #4A4540;   /* Body copy – warm dark gray */
    --muted-text:      #7D7670;   /* Captions, secondary copy */

    /* ── Borders & Dividers ───────────────────────────── */
    --border:          #E2DDD7;   /* Default borders */
    --border-strong:   #C8BFB4;   /* Visible separators */

    /* ── Legacy aliases (keeps old var() refs working) ── */
    --primary-red:     var(--accent-red);
    --dark-red:        var(--accent-red-dark);
    --light-bg:        var(--bg-cream);
    --dark-text:       var(--heading);
    --gray-text:       var(--body-text);
}

/* =====================
   GLOBAL STYLES
   ===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--body-text);
    background-color: var(--bg-base);
    overflow-x: hidden;
}

/* =====================
   TYPOGRAPHY
   ===================== */
h1, h2, h3, h4, h5, h6 {
    color: var(--heading);
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    letter-spacing: 0.5px;
}

p {
    line-height: 1.7;
    font-family: 'Poppins', sans-serif;
    color: var(--body-text);
}

.lead {
    font-size: 1.15rem;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}

/* =====================
   TOP INFO BAR
   ===================== */
.top-info-bar {
    background-color: linear-gradient(135deg, #FEFAF2 0%, #F4E7D0 100%);   /* dark charcoal — clean, premium */
    color: var(--bg-cream);
    padding: 0.75rem 0;
    font-size: 0.88rem;
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
}

.top-info-bar .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-info-bar .contact-info {
    display: flex;
    align-items: center;
    gap: 0;
}

.top-info-bar a {
    color: black;
    text-decoration: none;
    margin: 0 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.25s ease;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.02em;
}

.top-info-bar a:hover {
    color: var(--accent-red-dark);
}

.top-info-bar .social-icons {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.top-info-bar .social-icons a {
    font-size: 1rem;
    margin: 0;
    color: #9E968E;
    transition: color 0.25s ease;
}

.top-info-bar .social-icons a:hover {
    color: red;
}

.top-info-bar i {
    font-size: 1.5rem;
    color: #cf6b64;
}

.social-icons.footer {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-top: 2rem;
}

.social-icons.footer a {
    font-size: 1.8rem;
    margin: 0;
    color: var(--muted-text);
    transition: color 0.25s ease, transform 0.25s ease;
}

.social-icons.footer a:hover {
    color: var(--accent-red);
    transform: translateY(-2px);
}

/* =====================
   NAVBAR STYLES
   ===================== */
.navbar {
    background: var(--surface) !important;
    padding: 0.4rem 0;
    box-shadow: 0 1px 0 var(--border), 0 4px 16px rgba(0,0,0,0.06);
    border-bottom: 1px solid var(--border);
}

.navbar-brand {
    font-size: 1.3rem;
    letter-spacing: 0.5px;
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 700;
    margin-left: 0.75rem;
}

.navbar-brand:hover {
    transform: translateY(-1px);
    transition: transform 0.25s ease;
}

.navbar-brand img {
    transition: filter 0.3s ease;
}

.navbar-brand:hover img {
    filter: drop-shadow(0 2px 6px rgba(200, 40, 30, 0.15));
}

.nav-link {
    font-weight: 600;
    transition: color 0.25s ease;
    margin: 0 0.5rem;
    color: var(--body-text) !important;
    position: relative;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
    font-size: 1rem;
    padding-bottom: 0.35rem !important;
}

.nav-link:hover {
    color: var(--accent-red) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-red);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

.nav-link.active {
    color: var(--accent-red) !important;
}

.navbar-toggler {
    border: 1.5px solid var(--border-strong) !important;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(200, 40, 30, 0.15) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231A1A1A' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* =====================
   HERO SECTION
   ===================== */
.hero-section {
    background: url('https://images.unsplash.com/photo-1552664730-d307ca884978?w=1400&h=600&fit=crop') center/cover no-repeat;
    color: white;
    min-height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(18, 15, 12, 0.72) 0%,
        rgba(30, 22, 18, 0.65) 60%,
        rgba(200, 40, 30, 0.25) 100%
    );
    z-index: 0;
}

/* Subtle grain for richness */
.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    color: #FFFFFF;
    font-size: 3.6rem;
    font-weight: 700;
    line-height: 1.08;
    text-shadow: 0 2px 24px rgba(0,0,0,0.3);
}

.hero-content .lead {
    color: rgba(255, 255, 255, 0.88);
    background: linear-gradient(
        135deg,
        rgba(158, 156, 156, 0.75) 0%,
        rgba(119, 115, 115, 0.65) 100%
    );
}

/* =====================
   PAGE HEADER SECTION
   ===================== */
.page-header {
    background: url('https://images.unsplash.com/photo-1552664730-d307ca884978?w=1200&h=400&fit=crop') center/cover no-repeat;
    position: relative;
    color: white;
    padding: 5.5rem 0;
    text-align: center;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(18, 15, 12, 0.78) 0%,
        rgba(200, 40, 30, 0.18) 100%
    );
    z-index: 1;
}

.page-header > * {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    color: white;
    font-size: 2.6rem;
    text-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

.page-header .lead {
    color: rgba(255, 255, 255, 0.88);
}

/* =====================
   BUTTONS & CTAs
   ===================== */
.btn-primary {
    background: #cf6b64;
    border: none;
    border-radius: 6px;
    padding: 0.72rem 2rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.02em;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(200, 40, 30, 0.28);
    color: #fff;
}

.btn-outline-primary {
    color: var(--heading);
    border: 1.5px solid var(--accent-red);
    border-radius: 6px;
    padding: 0.72rem 2rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: all 0.25s ease;
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(200, 40, 30, 0.22);
}

.btn-light {
    border-radius: 6px;
    padding: 0.72rem 2rem;
    transition: all 0.25s ease;
    background: rgba(255,255,255,0.95);
    color: var(--heading);
    font-weight: 600;
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
    background: #fff;
}

/* =====================
   SERVICE CARDS
   ===================== */
.service-card {
    background: var(--surface);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    border: 1px solid var(--border);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.09);
    border-color: var(--accent-red);
}

.service-card h5 {
    color: var(--heading);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* =====================
   INDUSTRY CARDS
   ===================== */
.industry-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
}

.industry-card:hover {
    border-color: var(--accent-red);
    background: var(--surface-tinted);
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(200, 40, 30, 0.1);
}

.industry-badge {
    background: var(--surface-tinted);
    border: 1.5px solid var(--border);
    transition: all 0.25s ease;
}

.industry-badge:hover {
    border-color: var(--accent-red);
    background: var(--surface);
    box-shadow: 0 4px 12px rgba(200, 40, 30, 0.1);
}

/* =====================
   CATEGORY BADGES
   ===================== */
.category-badge {
    background: var(--surface);
    border: 1.5px solid var(--border);
    transition: all 0.25s ease;
}

.category-badge:hover {
    border-color: var(--accent-red);
    background: var(--surface-tinted);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(200, 40, 30, 0.1);
}

/* =====================
   SERVICE DETAIL CARDS
   ===================== */
.service-detail-card {
    background: var(--surface);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.service-detail-card:hover {
    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
    border-color: var(--border-strong);
}

/* =====================
   FORM STYLES
   ===================== */
.form-control,
.form-select {
    border: 1.5px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    color: var(--heading);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    font-family: 'Poppins', sans-serif;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(200, 40, 30, 0.1);
    background: var(--surface);
    color: var(--heading);
}

.form-control::placeholder {
    color: var(--muted-text);
    opacity: 0.8;
}

.form-label {
    color: var(--heading);
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    margin-bottom: 0.45rem;
    letter-spacing: 0.01em;
}

.invalid-feedback {
    display: block;
    color: var(--accent-red);
    margin-top: 0.25rem;
    font-size: 0.82rem;
}

/* =====================
   FOOTER STYLES
   ===================== */
footer {
    background: linear-gradient(135deg, #FEFAF2 0%, #F4E7D0 100%);     /* deep charcoal — elegant dark footer */
    color: #9E968E;
    border-top: 3px solid var(--accent-red);
}

footer p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #9E968E;
}

footer h5 {
    color: #7c756f;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
    font-size: 1.25rem;
}

footer a {
    color: #9E968E;
    transition: color 0.25s ease;
    text-decoration: none;
}

footer a:hover {
    color: var(--accent-red);
    text-decoration: none;
}

footer hr {
    border-color: rgba(255,255,255,0.1);
}

footer .text-center p {
    color: #6B635C;
    font-size: 0.85rem;
}

/* =====================
   BG SECTIONS
   ===================== */
.bg-light,
section.py-5.bg-light {
    background-color: var(--bg-cream) !important;
}

.bg-gradient {
    background: linear-gradient(
        135deg,
        var(--bg-cream-deep) 0%,
        var(--bg-cream) 100%
    ) !important;
}

/* =====================
   ANIMATIONS
   ===================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0);    }
}

.animate-fade-in {
    animation: fadeIn 0.9s ease forwards;
}

.animate-hover {
    transition: all 0.25s ease;
}

.animate-hover:hover {
    transform: translateY(-3px);
}

/* =====================
   ACCORDION STYLES
   ===================== */
.accordion-button {
    background-color: var(--surface);
    border: 1px solid var(--border);
    color: var(--heading);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.accordion-button:focus {
    background-color: var(--surface-tinted);
    border-color: var(--border-strong);
    box-shadow: 0 0 0 0.2rem rgba(200, 40, 30, 0.1);
    color: var(--heading);
}

.accordion-button:not(.collapsed) {
    background-color: var(--accent-red-soft);
    color: var(--accent-red);
    border-bottom-color: transparent;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23C8281E' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

.accordion-item {
    background: var(--surface);
    border: 1px solid var(--border);
}

.accordion-body {
    color: var(--body-text);
    font-family: 'Poppins', sans-serif;
}

/* =====================
   UTILITY OVERRIDES
   ===================== */
.text-danger {
    color: var(--accent-red) !important;
}

.text-muted {
    color: var(--muted-text) !important;
}

.list-lg li {
    margin-bottom: 1rem;
}

/* List group items inside about/services */
.list-group-item {
    background: var(--surface);
    border-color: var(--border);
    color: var(--body-text);
    font-family: 'Poppins', sans-serif;
}

/* Cards */
.card {
    border-color: var(--border);
}

.shadow-lg {
    box-shadow: 0 8px 32px rgba(0,0,0,0.1) !important;
}

/* =====================
   RESPONSIVE DESIGN
   ===================== */
@media (max-width: 768px) {
    .top-info-bar .contact-info {
        display: none;
    }

    .top-info-bar .container-fluid {
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 2.4rem;
    }

    .display-4 { font-size: 2rem; }
    .display-5 { font-size: 1.75rem; }

    .page-header {
        padding: 4rem 0;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .nav-link {
        margin: 0.4rem 0;
    }
}

@media (max-width: 576px) {
    .top-info-bar {
        padding: 0.55rem 0;
    }

    .top-info-bar .social-icons {
        gap: 2.5rem;
    }

    .hero-content h1 {
        font-size: 1.9rem;
    }

    .hero-section {
        min-height: 440px;
    }

    .page-header {
        padding: 3rem 0;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .btn-lg {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .display-5 {
        font-size: 1.5rem;
    }
}

/* =====================
   SMOOTH TRANSITIONS
   (Only non-layout props to avoid jank)
   ===================== */
*, *::before, *::after {
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

/* =====================
   SCROLLBAR
   ===================== */
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--bg-cream); }
::-webkit-scrollbar-thumb { background: #C4BCB3; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-red); }

/* =====================
   FLOATING CONTACT BUTTONS
   ===================== */
.floating-contact-buttons {
    position: fixed;
    bottom: 120px;
    right: 30px;
    display: flex !important;
    flex-direction: column;
    gap: 14px;
    z-index: 100000;
    align-items: center;
    padding: 16px 0;
}

.btn-floating {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    border: none;
    cursor: pointer;
}

.btn-whatsapp {
    background-color: #25d366 !important;
    color: white !important;
}

.btn-whatsapp:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4) !important;
}

.btn-call {
    background-color: var(--accent-red) !important;
    color: #ffffff !important;
}

.btn-call:hover {
    background-color: var(--accent-red-dark) !important;
    transform: scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(200, 40, 30, 0.38) !important;
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0);    }
}

.btn-floating {
    animation: slideInUp 0.45s ease-out;
}

@media (max-width: 576px) {
    .floating-contact-buttons {
        bottom: 110px;
        right: 18px;
        gap: 11px;
    }

    .btn-floating {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}

/* =====================
   SCROLL-TO-TOP override
   (keeps dynamic button consistent)
   ===================== */
#scrollToTop {
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-red-dark) 100%) !important;
}

/* =====================
   INLINE ICON COLOR OVERRIDE
   (fa icons with style="color:#f20b0d")
   ===================== */
[style*="color: #f20b0d"],
[style*="color:#f20b0d"] {
    color: var(--accent-red) !important;
}

/* =====================
   POLISHED MOTION SYSTEM
   ===================== */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

.navbar {
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.04) rotate(-1deg);
}

.nav-link {
    position: relative;
    transition: color 0.25s ease, transform 0.25s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.2rem;
    height: 2px;
    background: var(--accent-red, #f20b0d);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    transform: translateY(-1px);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.hero-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: -20%;
    z-index: -1;
    background:
        radial-gradient(circle at 18% 28%, rgba(242, 11, 13, 0.22), transparent 28%),
        radial-gradient(circle at 82% 68%, rgba(255, 255, 255, 0.16), transparent 24%);
    animation: heroGlow 10s ease-in-out infinite alternate;
}

.hero-content {
    animation: heroEntrance 0.9s ease-out both;
}

.hero-content h1 {
    animation: textFloat 4.8s ease-in-out infinite;
}

.btn,
.animate-hover {
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.btn:hover,
.animate-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 26px rgba(242, 11, 13, 0.18);
}

.service-card,
.industry-badge,
.industry-card,
.service-detail-card,
.accordion-item,
.card {
    transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}

.service-card:hover,
.industry-badge:hover,
.industry-card:hover,
.service-detail-card:hover,
.accordion-item:hover,
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 35px rgba(31, 35, 42, 0.14) !important;
}

.service-card i,
.industry-badge i,
.industry-card i,
.service-detail-card i,
.card i {
    transition: transform 0.32s ease;
}

.service-card:hover i,
.industry-badge:hover i,
.industry-card:hover i,
.service-detail-card:hover i,
.card:hover i {
    transform: translateY(-3px) scale(1.08);
}

.floating-contact-buttons {
    animation: floatButtons 4s ease-in-out infinite;
}

.btn-floating {
    position: relative;
}

.btn-floating::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: inherit;
    border: 1px solid currentColor;
    opacity: 0;
    transform: scale(0.85);
    animation: contactPulse 2.4s ease-out infinite;
}

.reveal-ready {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal-ready.reveal-in {
    opacity: 1;
    transform: translateY(0);
}

@keyframes heroEntrance {
    from {
        opacity: 0;
        transform: translateY(32px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes heroGlow {
    from {
        transform: translate3d(-2%, -1%, 0) scale(1);
    }
    to {
        transform: translate3d(2%, 1%, 0) scale(1.06);
    }
}

@keyframes textFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

@keyframes floatButtons {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes contactPulse {
    0% {
        opacity: 0.42;
        transform: scale(0.82);
    }
    70%, 100% {
        opacity: 0;
        transform: scale(1.2);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .reveal-ready {
        opacity: 1;
        transform: none;
    }
}

/* Mobile safety fix: keep Industries grid cards visible even if reveal animation
   does not trigger on small screens. */
@media (max-width: 768px) {
    .row.reveal-ready,
    .row.reveal-ready.reveal-in {
        display: flex !important;
        flex-wrap: wrap !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .industry-card,
    .industry-badge,
    .industry-card.reveal-ready,
    .industry-badge.reveal-ready {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Industries page: reduce extra mobile spacing in the Industry Expertise points. */
@media (max-width: 768px) {
    .industry-expertise-section .row,
    .expertise-section .row,
    .industry-expertise .row,
    .expertise-grid,
    .expertise-cards {
        row-gap: 0.85rem !important;
    }

    .industry-expertise-section [class*="col-"],
    .expertise-section [class*="col-"],
    .industry-expertise [class*="col-"],
    .expertise-card,
    .expertise-item,
    .industry-expertise-card {
        margin-bottom: 0.85rem !important;
    }

    .industry-expertise-section .card,
    .expertise-section .card,
    .industry-expertise .card,
    .expertise-card,
    .expertise-item,
    .industry-expertise-card {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    .industry-expertise-section h4,
    .industry-expertise-section h5,
    .expertise-section h4,
    .expertise-section h5,
    .industry-expertise h4,
    .industry-expertise h5 {
        margin-bottom: 0.45rem !important;
    }
}

/* Tighter mobile spacing for the Industry Expertise bullet list. */
@media (max-width: 768px) {
    .industry-expertise-section ul,
    .industry-expertise-section ol {
        margin-bottom: 0 !important;
        padding-left: 1.15rem !important;
    }

    .industry-expertise-section li {
        margin-bottom: 0.85rem !important;
        padding-bottom: 0 !important;
    }

    .industry-expertise-section li:last-child {
        margin-bottom: 0 !important;
    }

    .industry-expertise-section li > div,
    .industry-expertise-section li .d-flex,
    .industry-expertise-section .d-flex.align-items-start {
        gap: 0.5rem !important;
        margin-bottom: 0 !important;
    }

    .industry-expertise-section .mb-5,
    .industry-expertise-section .mb-4,
    .industry-expertise-section .mb-3 {
        margin-bottom: 0.85rem !important;
    }

    .industry-expertise-section .pb-5,
    .industry-expertise-section .pb-4,
    .industry-expertise-section .pb-3 {
        padding-bottom: 0.85rem !important;
    }

    .industry-expertise-section li p,
    .industry-expertise-section .d-flex p {
        margin-bottom: 0 !important;
        line-height: 1.45 !important;
    }

    .industry-expertise-section li h4,
    .industry-expertise-section li h5,
    .industry-expertise-section .d-flex h4,
    .industry-expertise-section .d-flex h5 {
        margin-bottom: 0.3rem !important;
    }
}
