.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, .14), transparent 30%),
        linear-gradient(135deg, #111111, #000000);
}

.hero-image,
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .88), rgba(0, 0, 0, .38), rgba(0, 0, 0, .72)),
        linear-gradient(0deg, rgba(0, 0, 0, .95), transparent 45%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 140px;
    padding-bottom: clamp(4rem, 8vw, 8rem);
}

.hero-kicker {
    display: inline-flex;
    margin-bottom: 1.3rem;
    color: var(--color-primary);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.hero-content h1 {
    max-width: 1120px;
    font-size: clamp(3rem, 7vw, 7.4rem);
    line-height: .92;
    letter-spacing: -0.075em;
    font-weight: 900;
}

.hero-content p {
    max-width: 760px;
    margin-top: 1.8rem;
    color: rgba(255, 255, 255, .74);
    font-size: clamp(1.05rem, 1.45vw, 1.35rem);
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.3rem;
}

.about-section {
    background: #050505;
}

.services-section {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, .09), transparent 32%),
        #080808;
}

.service-card {
    height: 100%;
    min-height: 310px;
    padding: clamp(1.5rem, 3vw, 2.4rem);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    transition: 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    background: rgba(var(--color-primary-rgb), 0.08);
    border-color: var(--color-primary-border);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 2rem;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 22px;
    background: var(--color-primary);
    color: #ffffff;
    font-size: 1.7rem;
    box-shadow: 0 18px 42px rgba(var(--color-primary-rgb), 0.25);
}

.service-card h3 {
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    letter-spacing: -0.04em;
    font-weight: 800;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

.portfolio-section {
    background: #050505;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(1rem, 2vw, 1.6rem);
}

.portfolio-card {
    position: relative;
    grid-column: span 4;
    min-height: 480px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-soft);
    background: #161616;
}

.portfolio-card:nth-child(1) {
    grid-column: span 8;
}

.portfolio-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.78;
    transition: 0.5s ease;
}

.portfolio-card:hover img {
    transform: scale(1.06);
    opacity: 0.95;
}

.portfolio-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, .9), transparent 62%);
}

.portfolio-card-content {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    padding: clamp(1.5rem, 3vw, 2.3rem);
}

.portfolio-card-content span {
    display: inline-flex;
    margin-bottom: .8rem;
    color: var(--color-primary);
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .18em;
}

.portfolio-card-content h3 {
    font-size: clamp(1.5rem, 3vw, 3rem);
    line-height: 1;
    letter-spacing: -0.06em;
    font-weight: 900;
}

.portfolio-card-content p {
    max-width: 520px;
    color: rgba(255, 255, 255, .74);
    margin-bottom: 0;
}

.portfolio-placeholder {
    min-height: 360px;
}

.clients-section {
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, .08), transparent 32%),
        #080808;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.client-logo {
    min-height: 132px;
    padding: 1.5rem;
    border-radius: 26px;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, .05);

    display: flex;
    align-items: center;
    justify-content: center;

    color: rgba(255, 255, 255, .7);
    font-weight: 700;
    text-align: center;
}

.client-logo img {
    max-width: 150px;
    max-height: 70px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .78;
    transition: .3s ease;
}

.client-logo:hover img {
    filter: grayscale(0);
    opacity: 1;
}

.contact-section {
    background: #050505;
}

.contact-section p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.1rem;
    color: rgba(255, 255, 255, .8);
}

.contact-info i {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: var(--color-primary-soft);
    color: var(--color-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.contact-form {
    padding: clamp(1.5rem, 3vw, 2.4rem);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, .06);
}

.contact-form .form-label {
    color: rgba(255, 255, 255, .74);
    font-weight: 600;
}

.contact-form .form-control {
    min-height: 54px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(0, 0, 0, .26);
    color: #ffffff;
}

.contact-form textarea.form-control {
    min-height: 160px;
}

.contact-form .form-control:focus {
    border-color: rgba(255, 255, 255, .5);
    box-shadow: none;
    background: rgba(0, 0, 0, .38);
    color: #ffffff;
}

/* Telas muito grandes: desktops grandes e TVs */
@media (min-width: 1800px) {
    .hero-content h1 {
        max-width: 1320px;
        font-size: clamp(6.5rem, 6.2vw, 8.6rem);
    }

    .hero-content p {
        max-width: 850px;
        font-size: 1.45rem;
    }

    .portfolio-card {
        min-height: 560px;
    }
}

/* XL intermediário: notebooks grandes e desktops em torno de 1366px até 1599px */
@media (min-width: 1200px) and (max-width: 1599px) {
    .hero-content {
        padding-top: 130px;
        padding-bottom: 6.5rem;
    }

    .hero-content h1 {
        max-width: 980px;
        font-size: clamp(4.2rem, 5.2vw, 5.9rem);
        line-height: .94;
        letter-spacing: -0.065em;
    }

    .hero-content p {
        max-width: 680px;
        font-size: 1.18rem;
        margin-top: 1.5rem;
    }
}

/* LG: notebooks comuns e telas médias */
@media (min-width: 992px) and (max-width: 1199px) {
    .hero-content {
        padding-top: 130px;
        padding-bottom: 6rem;
    }

    .hero-content h1 {
        max-width: 900px;
        font-size: clamp(3.6rem, 6.1vw, 5.7rem);
        line-height: .94;
        letter-spacing: -0.065em;
    }

    .hero-content p {
        max-width: 640px;
        font-size: 1.16rem;
        margin-top: 1.5rem;
    }

    .hero-actions {
        margin-top: 2rem;
    }

    .portfolio-card,
    .portfolio-card:nth-child(1) {
        grid-column: span 6;
    }

    .clients-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* MD: tablets e telas intermediárias */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-section {
        min-height: 94vh;
    }

    .hero-content {
        padding-top: 125px;
        padding-bottom: 5rem;
    }

    .hero-kicker {
        font-size: .76rem;
        letter-spacing: .18em;
        margin-bottom: 1.1rem;
    }

    .hero-content h1 {
        max-width: 760px;
        font-size: clamp(3.1rem, 6.8vw, 4.7rem);
        line-height: .96;
        letter-spacing: -0.06em;
    }

    .hero-content p {
        max-width: 620px;
        font-size: 1.06rem;
        margin-top: 1.35rem;
    }

    .hero-actions {
        gap: .8rem;
        margin-top: 1.8rem;
    }

    .hero-actions .btn {
        padding-inline: 1.25rem !important;
        font-size: .98rem;
    }

    .portfolio-card,
    .portfolio-card:nth-child(1) {
        grid-column: span 6;
        min-height: 420px;
    }

    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .client-logo {
        min-height: 118px;
    }
}

/* SM e XS: celulares */
@media (max-width: 767px) {
    .hero-section {
        min-height: 92vh;
    }

    .hero-content {
        padding-top: 120px;
        padding-bottom: 4.5rem;
    }

    .hero-kicker {
        font-size: .72rem;
        letter-spacing: .16em;
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    .hero-content h1 {
        max-width: 100%;
        font-size: clamp(2.6rem, 12.5vw, 4.15rem);
        line-height: .97;
        letter-spacing: -0.055em;
    }

    .hero-content p {
        max-width: 100%;
        font-size: 1rem;
        margin-top: 1.25rem;
    }

    .hero-actions {
        width: 100%;
        margin-top: 1.8rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .portfolio-card,
    .portfolio-card:nth-child(1) {
        grid-column: span 12;
        min-height: 390px;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .client-logo {
        min-height: 108px;
        padding: 1rem;
    }

    .client-logo img {
        max-width: 120px;
        max-height: 58px;
    }

    .contact-form {
        border-radius: 24px;
    }
}

/* Celulares pequenos */
@media (max-width: 420px) {
    .hero-content h1 {
        font-size: clamp(2.35rem, 12vw, 3.5rem);
        letter-spacing: -0.05em;
    }

    .hero-content p {
        font-size: .96rem;
    }

    .portfolio-card,
    .portfolio-card:nth-child(1) {
        min-height: 350px;
    }

    .portfolio-card-content h3 {
        font-size: 1.55rem;
    }

    .clients-grid {
        grid-template-columns: 1fr 1fr;
        gap: .75rem;
    }
}