/* style.css - Home Automation Technology */

:root {
    --primary-color: #007BFF;
    --dark-color: #1a1a1a;
    --secondary-dark-color: #2c2c2c;
    --text-color: #f0f0f0;
    --gray-text-color: #a0a0a0;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--dark-color);
    color: var(--text-color);
}

/* Animação de boas-vindas (não bloqueia o carregamento da página) */
#intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--dark-color);
    background-image: radial-gradient(circle at center, rgba(0, 123, 255, 0.22), transparent 60%);
    background-size: 140% 140%;
    background-position: center;
    opacity: 1;
    transition: opacity 0.6s ease;
    animation: introBgPulse 3.2s ease-in-out infinite;
}
#intro-overlay img {
    width: 220px;
    max-width: 60vw;
    height: auto;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#intro-overlay.intro-in img {
    opacity: 1;
    transform: scale(1);
    animation: introGlow 1.8s ease-in-out 0.8s infinite;
}
#intro-overlay .intro-progress {
    width: 160px;
    max-width: 40vw;
    height: 3px;
    margin-top: 28px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.15);
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.5s ease 0.4s;
}
#intro-overlay .intro-progress span {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--primary-color);
    border-radius: 2px;
}
#intro-overlay.intro-in .intro-progress {
    opacity: 1;
}
#intro-overlay.intro-in .intro-progress span {
    animation: introProgress 4.6s ease-out forwards;
}
#intro-overlay.intro-out {
    opacity: 0;
    pointer-events: none;
}
#intro-overlay.intro-skip {
    display: none;
}
@keyframes introBgPulse {
    0%, 100% { background-size: 140% 140%; }
    50% { background-size: 180% 180%; }
}
@keyframes introGlow {
    0%, 100% { filter: drop-shadow(0 0 0 rgba(0, 123, 255, 0)); }
    50% { filter: drop-shadow(0 0 20px rgba(0, 123, 255, 0.55)); }
}
@keyframes introProgress {
    from { width: 0%; }
    to { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    #intro-overlay { display: none; }
}

h1, h2, h3 { font-family: 'Poppins', sans-serif; }

h2 {
    font-size: 2.5rem;
    position: relative;
    margin-bottom: 60px;
}

h2::after {
    content: ''; display: block; width: 60px; height: 4px;
    background-color: var(--primary-color);
    margin: 15px auto 0; border-radius: 2px;
}

section { padding: 80px 0; }

.header {
    background-color: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
}
.navbar-brand { font-family: 'Poppins', sans-serif; font-weight: 700; }
.navbar-brand span { color: var(--primary-color); }
.navbar-dark .navbar-nav .nav-link:hover { color: var(--primary-color); }
.logo-img {
    height: 60px;
    width: auto;
}

.hero {
    height: 100vh;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/12.jpg');
    background-size: cover; background-position: center;
}
.hero h1 { font-size: 4rem; }
.hero p { font-size: 1.5rem; font-weight: 300; }
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.2rem; }
    .logo-img { height: 48px; }
}

#servicos, #depoimentos { background-color: var(--secondary-dark-color); }

.servico-card, .product-card {
    background-color: var(--dark-color);
    padding: 40px 30px; border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}
.product-card { padding: 25px; }

.servico-card:hover, .product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.1);
}
.servico-card .icon { font-size: 3rem; color: var(--primary-color); }
.product-card img {
    width: 100%; border-radius: 8px;
    aspect-ratio: 4 / 3; object-fit: cover;
}

/* Setas do Swiper ocultas por padrão, visíveis apenas dentro dos carrosséis */
.swiper-button-next,
.swiper-button-prev {
    display: none !important;
}

.swiper.product-swiper .swiper-button-next,
.swiper.product-swiper .swiper-button-prev,
.swiper.portfolio-swiper .swiper-button-next,
.swiper.portfolio-swiper .swiper-button-prev {
    display: flex !important;
    color: var(--primary-color);
    z-index: 10;
}

.swiper {
    width: 100%;
    padding: 20px 0 60px 0;
    position: relative;
}

.swiper-pagination-bullet-active { background-color: var(--primary-color); }

.projeto-card {
    position: relative; overflow: hidden; border-radius: 10px;
    cursor: pointer; height: 100%;
}
.projeto-card video {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease;
}
.projeto-card:hover video { transform: scale(1.1); }
.projeto-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 40px 20px 20px;
    transform: translateY(100%); transition: transform 0.4s ease;
}
.projeto-card:hover .projeto-overlay { transform: translateY(0); }

.testimonial-card {
    background-color: var(--dark-color);
    padding: 40px;
    border-radius: 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.testimonial-card p {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--gray-text-color);
    margin-bottom: 20px;
}
.testimonial-card .author {
    font-weight: 700;
    color: #fff;
}
.testimonial-swiper .swiper-pagination-bullet-active {
    background-color: var(--primary-color);
}

.form-control {
    background-color: var(--secondary-dark-color);
    color: var(--text-color);
    border: 1px solid #444;
    padding: 15px;
}
.form-control:focus {
    background-color: var(--secondary-dark-color);
    color: var(--text-color);
    border-color: var(--primary-color);
    box-shadow: none;
}
.form-control::placeholder {
    color: var(--gray-text-color);
}

.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1000;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    font-size: 1.8rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    animation: whatsappPulse 2.4s ease-in-out infinite;
    transition: transform 0.2s ease;
}
.whatsapp-float:hover {
    color: #fff;
    transform: scale(1.08);
}
@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.5); }
    50% { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), 0 0 0 10px rgba(37, 211, 102, 0); }
}
@media (max-width: 576px) {
    .whatsapp-float {
        right: 16px;
        bottom: 16px;
        width: 52px;
        height: 52px;
        font-size: 1.6rem;
    }
}

.footer {
    background-color: #111;
    color: var(--gray-text-color);
    text-align: center;
    padding: 40px 0;
}
.footer .logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    display: inline-block;
}
.footer .logo span { color: var(--primary-color); }
.footer p { font-size: 0.9rem; }
