html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

#header {
    background: rgba(5, 5, 5, 0.28);
    backdrop-filter: blur(12px);
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

#header.scrolled {
    background: rgba(5, 5, 5, 0.88);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* .hero-overlay {
    background:
        radial-gradient(circle at top left, rgba(0, 208, 255, 0.08), transparent 30%),
        radial-gradient(circle at bottom right, rgba(165, 159, 151, 0.10), transparent 24%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.88));
} */

.hero-overlay {
    background:
        linear-gradient(to right, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.70) 35%, rgba(0, 0, 0, 0.45) 100%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.78));
}

.glass {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.04);
}

.portfolio-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.7rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 220px;
    background: #111;
}

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

.portfolio-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.15));
}

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

.portfolio-content {
    position: absolute;
    z-index: 2;
    left: 1.5rem;
    right: 1.5rem;
    bottom: 1.5rem;
}

.portfolio-tag {
    font-size: 0.75rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #a59f97;
    margin-bottom: 0.5rem;
}

.portfolio-title {
    font-size: 1.25rem;
    line-height: 1.3;
    font-weight: 700;
    color: #f2f4f3;
}

.team-card {
    overflow: hidden;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.team-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

#portfolioModal.show {
    display: flex;
}

#portfolioModal .modal-enter {
    animation: modalFade 0.25s ease;
}

.portfolio-card {
    cursor: pointer;
}

.portfolio-card:hover .portfolio-title {
    transform: translateY(-2px);
    transition: 0.3s ease;
}

/* testemunho */
#testimonialsSlider {
    overflow: hidden;
}

.testimonial-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(80px);
    transition:
        transform 0.7s ease,
        opacity 0.7s ease,
        visibility 0.7s ease;
}

.testimonial-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    z-index: 2;
}

.testimonial-slide.exit-left {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-80px);
    z-index: 1;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.22);
    transition: all 0.3s ease;
}

.testimonial-dot.active {
    width: 34px;
    background: #f2f4f3;
}

.testimonial-dot:hover {
    background: rgba(255, 255, 255, 0.55);
}

@keyframes modalFade {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 767px) {
    .team-card img {
        height: 280px;
    }
}