/* ================================================
   RB INSTALAÇÕES INDUSTRIAIS
   Anti Gravity Design System
   ================================================ */

/* ---------- Tokens ---------- */
:root {
    --space-gray: #0A1428;
    --space-gray-mid: #122240;
    --tech-blue: #3E799E;
    --tech-blue-light: #5294BE;
    --tech-blue-glow: rgba(62, 121, 158, 0.15);
    --tech-orange: #E6902E;
    --tech-orange-light: #F2A44B;
    --tech-orange-glow: rgba(230, 144, 46, 0.15);
    --steel: #64748B;
    --steel-light: #94A3B8;
    --bg: #F8F9FC;
    --bg-white: #FFFFFF;
    --text: #0A1428;
    --text-light: #475569;
    --border: rgba(100, 116, 139, 0.12);
    --border-blue: rgba(62, 121, 158, 0.2);

    --font: 'Inter', system-ui, sans-serif;
    --font-display: 'Inter', system-ui, sans-serif;

    --r-sm: 8px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-xl: 32px;
    --r-pill: 999px;

    --shadow-float: 0 20px 60px rgba(0, 0, 0, 0.07), 0 4px 16px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 32px 80px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(37, 99, 235, 0.10);
    --shadow-card: 0 4px 6px rgba(0, 0, 0, 0.03), 0 20px 40px rgba(0, 0, 0, 0.05);

    --glass-bg: rgba(255, 255, 255, 0.82);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-blur: blur(20px);

    --nav-height: 72px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: var(--font);
}

/* ---------- Typography ---------- */
.display-1 {
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.display-2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.015em;
}

.heading-1 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--tech-blue);
}

/* ---------- Utilities ---------- */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px;
}

.section {
    padding: 100px 0;
}

.section--dark {
    background: var(--space-gray);
    color: #fff;
}

.section--alt {
    background: #F1F4F9;
}

.text-blue {
    color: var(--tech-blue);
}

.text-muted {
    color: var(--text-light);
}

.text-white {
    color: #fff;
}

/* ---------- Floating Nav (Anti Gravity) ---------- */
.nav-wrap {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 1140px;
    z-index: 200;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 28px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-pill);
    box-shadow: var(--shadow-float);
    transition: var(--transition);
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-hover);
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav__logo-img {
    height: 48px;
    width: auto;
}

.nav__logo-text {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.nav__logo-text small {
    display: block;
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--steel);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav__link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    padding: 8px 14px;
    border-radius: var(--r-pill);
    transition: var(--transition);
}

.nav__link:hover,
.nav__link.active {
    color: var(--text);
    background: rgba(62, 121, 158, 0.07);
}

.nav__link--cta {
    background: var(--tech-blue);
    color: #fff !important;
    padding: 8px 20px;
}

.nav__link--cta:hover {
    background: var(--tech-blue-light);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px var(--tech-blue-glow);
}

/* Mobile hamburger */
.nav__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 4px;
}

.nav__hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile menu drawer */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    z-index: 199;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    opacity: 0;
    transition: opacity var(--transition);
}

.mobile-menu.open {
    opacity: 1;
}

.mobile-menu__close {
    position: absolute;
    top: 28px;
    right: 28px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text);
}

.mobile-menu__link {
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--text);
    letter-spacing: -0.02em;
}

.mobile-menu__link:hover {
    color: var(--tech-blue);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--r-pill);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background: var(--tech-blue);
    color: #fff;
    box-shadow: 0 4px 20px var(--tech-blue-glow);
}

.btn--primary:hover {
    background: var(--tech-blue-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(62, 121, 158, 0.25);
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
}

.btn--ghost:hover {
    border-color: var(--tech-blue);
    color: var(--tech-blue);
    transform: translateY(-2px);
}

.btn--white {
    background: #fff;
    color: var(--tech-blue);
}

.btn--white:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.btn--large {
    padding: 18px 36px;
    font-size: 1rem;
}

.btn--wa {
    background: #25D366;
    color: #fff;
}

.btn--wa:hover {
    background: #20BA5A;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

/* ---------- Badges / Tags ---------- */
.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--r-pill);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tag--blue {
    background: var(--tech-blue-glow);
    color: var(--tech-blue);
}

.tag--dark {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.8);
}

/* ---------- Glassmorphism Card ---------- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-card);
    transition: transform var(--transition), box-shadow var(--transition);
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

/* ---------- Section Header ---------- */
.section-header {
    margin-bottom: 64px;
}

.section-header--center {
    text-align: center;
}

.section-header .eyebrow {
    margin-bottom: 16px;
}

.section-header .display-2 {
    margin-bottom: 16px;
}

.section-header .subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 560px;
    line-height: 1.7;
}

.section-header--center .subtitle {
    margin: 0 auto;
}

/* ---------- Floating Line Decoration ---------- */
.float-line {
    display: inline-block;
    width: 40px;
    height: 2px;
    background: var(--tech-blue);
    border-radius: 2px;
    margin-bottom: 12px;
}

/* ================================================
   HERO (shared base, override per page)
   ================================================ */
.hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    will-change: transform;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(10, 20, 40, 0.85) 0%,
            rgba(10, 20, 40, 0.50) 60%,
            rgba(62, 121, 158, 0.15) 100%);
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.hero__eyebrow {
    margin-bottom: 24px;
}

.hero__title {
    color: #fff;
    margin-bottom: 24px;
}

.hero__title em {
    font-style: italic;
    color: var(--tech-blue-light);
}

.hero__subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 520px;
    line-height: 1.75;
    margin-bottom: 40px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Floating hero card (Anti Gravity element) */
.hero__float-card {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    padding: 32px 36px;
    max-width: 300px;
    border-radius: var(--r-xl);
    background: var(--tech-blue);
    border: 1px solid var(--tech-blue-light);
    box-shadow: 0 12px 32px var(--tech-blue-glow);
    animation: floatVertical 4s ease-in-out infinite;
}

@keyframes floatVertical {

    0%,
    100% {
        transform: translateY(-50%) translateY(0);
    }

    50% {
        transform: translateY(-50%) translateY(-12px);
    }
}

.hero__float-stat {
    border-bottom: 1px solid var(--glass-border);
    padding: 16px 0;
}

.hero__float-stat:first-child {
    padding-top: 0;
}

.hero__float-stat:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hero__float-stat .value {
    font-size: 2rem;
    font-weight: 300;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1;
}

.hero__float-stat .label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 4px;
}

/* Scroll indicator */
.hero__scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.hero__scroll-line {
    width: 1px;
    height: 56px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scaleY(0.8);
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* ================================================
   SERVICES CARDS GRID
   ================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.service-card {
    padding: 40px 36px;
    border-radius: var(--r-xl);
    position: relative;
    overflow: hidden;
}

.service-card__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--r-md);
    background: var(--tech-blue-glow);
    border: 1px solid var(--border-blue);
    display: grid;
    place-items: center;
    margin-bottom: 24px;
    color: var(--tech-blue);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.service-card p {
    font-size: 0.93rem;
    color: var(--text-light);
    line-height: 1.7;
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tech-blue);
    transition: gap var(--transition);
}

.service-card__link:hover {
    gap: 10px;
}

/* ================================================
   NUMBERS / STATS BAR
   ================================================ */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.stat-item {
    background: var(--bg-white);
    padding: 36px 28px;
    text-align: center;
    transition: background var(--transition);
}

.stat-item:hover {
    background: #F8FBFF;
}

.stat-item__value {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 300;
    letter-spacing: -0.03em;
    color: var(--tech-blue);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-item__label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--steel);
}

/* ================================================
   PAGE HERO (inner pages)
   ================================================ */
.page-hero {
    padding: 160px 0 80px;
    background: var(--space-gray);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 70% at 80% 50%, rgba(62, 121, 158, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 30% 50% at 10% 50%, rgba(62, 121, 158, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero h1 {
    color: #fff;
    margin-bottom: 16px;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.05rem;
}

.page-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 24px;
}

.page-hero__breadcrumb a {
    color: var(--tech-blue-light);
}

.page-hero__breadcrumb span {
    color: rgba(255, 255, 255, 0.3);
}

/* ================================================
   ABOUT GRID
   ================================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-img-wrap {
    position: relative;
    border-radius: var(--r-xl);
    overflow: hidden;
}

.about-img-wrap img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--r-xl);
}

.about-img-badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    padding: 20px 24px;
    border-radius: var(--r-lg);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
}

.about-img-badge .value {
    font-size: 2.4rem;
    font-weight: 300;
    color: var(--tech-blue);
    letter-spacing: -0.03em;
    line-height: 1;
}

.about-img-badge .label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--steel);
    font-weight: 700;
}

.feature-list {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--r-md);
    background: var(--tech-blue-glow);
    border: 1px solid var(--border-blue);
    display: grid;
    place-items: center;
    color: var(--tech-blue);
    font-size: 1rem;
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.feature-item p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ================================================
   PORTFOLIO GRID
   ================================================ */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.portfolio-item {
    border-radius: var(--r-lg);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-item:hover img {
    transform: scale(1.06);
}

.portfolio-item__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 20, 40, 0.8) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity var(--transition);
}

.portfolio-item:hover .portfolio-item__overlay {
    opacity: 1;
}

.portfolio-item__title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
}

/* ================================================
   CONTACT
   ================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--r-md);
    background: var(--tech-blue-glow);
    border: 1px solid var(--border-blue);
    display: grid;
    place-items: center;
    color: var(--tech-blue);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-info-item h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--steel);
    margin-bottom: 4px;
}

.contact-info-item p {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
}

.contact-info-item a {
    color: var(--tech-blue);
}

.contact-form-wrap {
    padding: 44px 40px;
    border-radius: var(--r-xl);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--steel);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    font-family: var(--font);
    font-size: 0.97rem;
    color: var(--text);
    background: var(--bg);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--tech-blue);
    box-shadow: 0 0 0 4px var(--tech-blue-glow);
    background: #fff;
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
    background: var(--space-gray);
    padding: 64px 0 32px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer__logo-img {
    height: 50px;
    width: auto;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer__about {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.75;
    max-width: 280px;
}

.footer__col h4 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 20px;
}

.footer__col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__col ul li a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition);
}

.footer__col ul li a:hover {
    color: #fff;
}

.footer__contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
}

.footer__contact-item svg {
    color: var(--tech-blue-light);
    flex-shrink: 0;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer__copy {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.25);
}

.footer__social {
    display: flex;
    gap: 12px;
}

.footer__social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.footer__social a:hover {
    background: var(--tech-blue);
    border-color: var(--tech-blue);
    color: #fff;
}

/* ================================================
   REVEAL ANIMATIONS
   ================================================ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .section {
        padding: 72px 0;
    }

    .nav__links {
        display: none;
    }

    .nav__hamburger {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero__float-card {
        display: none;
    }

    .stats-bar {
        grid-template-columns: 1fr 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .hero__actions {
        flex-direction: column;
    }

    .btn--large {
        text-align: center;
        justify-content: center;
    }

    .display-1 {
        font-size: 2.4rem;
    }
}

/* ---------- Logo Carousel ---------- */
.logo-carousel-section {
    padding: 60px 0 20px;
    background: var(--bg);
    overflow: hidden;
}

.logo-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.logo-carousel::before,
.logo-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.logo-carousel::before {
    left: 0;
    background: linear-gradient(to right, var(--bg) 0%, transparent 100%);
}

.logo-carousel::after {
    right: 0;
    background: linear-gradient(to left, var(--bg) 0%, transparent 100%);
}

.logo-carousel__track {
    display: flex;
    align-items: center;
    width: calc(180px * 20);
    animation: marquee-scroll 35s linear infinite;
}

.logo-carousel__track:hover {
    animation-play-state: paused;
}

.logo-carousel__item {
    width: 180px;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: var(--transition);
    filter: grayscale(100%);
}

.logo-carousel__item:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.logo-carousel__item img {
    max-width: 100%;
    height: auto;
    max-height: 60px;
    object-fit: contain;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-180px * 10));
    }
}

@media (max-width: 768px) {
    .logo-carousel::before,
    .logo-carousel::after {
        width: 60px;
    }
    .logo-carousel__item {
        width: 140px;
        padding: 0 20px;
    }
    .logo-carousel__track {
        width: calc(140px * 20);
    }
    @keyframes marquee-scroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-140px * 10)); }
    }
}

/* CTA Section */
.cta-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.cta-section__bg {
    position: absolute;
    inset: 0;
    background: var(--space-gray);
}

.cta-section__glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(62, 121, 158, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.cta-section__inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta-section__title {
    color: #fff;
    margin-bottom: 16px;
}

.cta-section__sub {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 36px;
    font-size: 1.05rem;
}

.cta-section__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Grid helper */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 640px) {
    .two-col {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ================================================
   FAQ SECTION (PREMIUM ANTI GRAVITY)
   ================================================ */
.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 840px;
    margin: 0 auto;
}

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.faq-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--r-xl);
    padding: 1px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.4) 0%, transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.faq-item:hover,
.faq-item.active {
    background: rgba(15, 17, 23, 0.85);
    box-shadow: var(--shadow-float);
    transform: translateY(-3px);
    border-color: transparent;
}

.faq-item:hover::before,
.faq-item.active::before {
    opacity: 1;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 28px 36px;
    background: none;
    border: none;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    letter-spacing: -0.01em;
}

.faq-question:hover {
    color: var(--tech-blue-light);
}

.faq-question::after {
    content: '+';
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--tech-blue-light);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s ease, color 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.1);
    flex-shrink: 0;
    margin-left: 20px;
}

.faq-item.active .faq-question::after {
    content: '−';
    transform: rotate(180deg);
    color: var(--bg-white);
    background: var(--tech-blue);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-inner {
    padding: 0 36px 36px;
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin: 0 36px;
    padding-left: 0;
    padding-right: 0;
    padding-top: 24px;
}