/* Variáveis de cores */
:root {
    --primary-color: #2E77B5;    /* Azul */
    --secondary-color: #F7941D;  /* Laranja */
    --tertiary-color: #1A2B48;   /* Azul Marinho */
    --light-color: #FFFFFF;
    --light-gray: #F5F5F5;
    --medium-gray: #CCCCCC;
    --dark-gray: #757575;
    --text-color: #333333;
}

/* Reset e estilos gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--tertiary-color);
    font-size: 2.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.btn-primary:hover {
    background-color: #2568a0;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(46, 119, 181, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--light-color);
}

.btn-secondary:hover {
    background-color: #e58617;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(247, 148, 29, 0.3);
}

.hidden {
    display: none;
}

/* Header */
header {
    background-color: var(--light-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 50px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--tertiary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--tertiary-color));
    color: var(--light-color);
    padding: 150px 0 100px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 400;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Sobre Section */
.sobre-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.sobre-text {
    flex: 1;
}

.sobre-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.sobre-image {
    flex: 1;
    text-align: center;
}

.sobre-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* HandyBr Section */
#handybr {
    padding: 50px 0;
    background-color: #f9f9f9; /* Cor de fundo opcional */
}

#handybr .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px; /* Espaçamento entre as colunas */
    max-width: 1200px; /* Largura máxima do container */
    margin: 0 auto; /* Centraliza o container */
}

.handybr-content {
    flex: 1; /* Ocupa metade do espaço disponível */
}

.handybr-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

.handybr-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 30px;
}

.platforms {
    display: flex;
    gap: 20px; /* Espaçamento entre os botões de download */
}

.platform img {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease; /* Efeito suave ao passar o mouse */
}

.platform img:hover {
    transform: scale(1.1); /* Amplia a imagem ao passar o mouse */
}

.handybr-image {
    flex: 1; /* Ocupa metade do espaço disponível */
    text-align: center;
}

.handybr-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
/* App Features Section */
.app {
    background-color: var(--light-gray);
}

.app-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.feature h3 {
    margin-bottom: 15px;
    color: var(--tertiary-color);
}

/* Servicos Section */
.servicos-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.wireframe-item {
    background-color: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.wireframe-item:hover {
    transform: translateY(-10px);
}

.wireframe-image {
    height: 400px;
    overflow: hidden;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wireframe-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.wireframe-item h3 {
    padding: 15px 20px 5px;
    color: var(--tertiary-color);
}

.wireframe-item p {
    padding: 0 20px 20px;
    color: var(--dark-gray);
}

.servicos-more {
    text-align: center;
    margin-top: 30px;
}

/* Carousel Section */
.carousel {
    background-color: var(--light-gray);
    overflow: hidden;
}

.carousel-container {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.3s ease-in-out;        
}

.carousel-slide {   
    flex: 0 0 100%;
    box-sizing: border-box;
    position: relative; /* Add position relative to contain the caption */
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide img {
    width: 100%; /* Use 100% width instead of fixed width */
    height: 400px; /* Keep height but will be overridden in media queries */
    object-fit: cover; /* Garante que a imagem preencha o espaço sem distorção */
    display: block; /* Better than margin auto for images */
}
.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: var(--light-color);
    text-align: center;
    z-index: 5; /* Ensure caption appears above the image */
}

.carousel-caption h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
    font-size: 1.1rem;
    margin-bottom: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    z-index: 2;
}

.carousel-control {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-control:hover {
    background-color: var(--secondary-color);
    color: var(--light-color);
}

.carousel-control i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .carousel-container {
        max-width: 100%; /* Make container full width on mobile */
    }
    
    .carousel-wrapper {
        height: auto; /* Let height be determined by content */
    }
    
    .carousel-slide img {
        height: 350px; /* Slightly smaller height on tablets */
    }
    
    .carousel-caption h3 {
        font-size: 1.5rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .carousel-slide img {
        height: 300px; /* Even smaller height on phones */
    }
    
    .carousel-caption {
        padding: 20px;
    }
    
    .carousel-caption h3 {
        font-size: 1.2rem;
    }
    
    .carousel-control {
        width: 40px;
        height: 40px;
    }
}



/* Diferenciais Section */
.diferenciais {
    background: linear-gradient(135deg, var(--tertiary-color), var(--primary-color));
    color: var(--light-color);
}

.diferenciais .section-title {
    color: var(--light-color);
}

.diferenciais-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.diferencial-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.diferencial-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.diferencial-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.diferencial-text h3 {
    margin-bottom: 10px;
}

/* Video Section */
.video-container {
    max-width: 800px;
    margin: 0 auto;
}

.video-placeholder {
    background-color: var(--light-gray);
    border-radius: 10px;
    overflow: hidden;
    padding: 30px;
}

.video-script h3 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--tertiary-color);
}

.video-script-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.script-scene {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.script-scene h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 5px;
}

.script-scene p {
    margin-bottom: 10px;
}

.script-scene p:last-child {
    font-style: italic;
    color: var(--dark-gray);
}

/* Contato Section */
.contato-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.contato-info {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 40px;
    border-radius: 10px;
}

.contato-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.contato-item i {
    font-size: 1.5rem;
    margin-right: 15px;
}

.contato-social {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.contato-form {
    background-color: var(--light-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--tertiary-color);
    color: var(--light-color);
    padding: 70px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 15px;
}

.footer-links h3,
.footer-newsletter h3 {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-newsletter h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--light-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
}

.footer-newsletter p {
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 30px 0 0 30px;
}

.newsletter-form button {
    border-radius: 0 30px 30px 0;
    padding: 10px 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsividade */
@media (max-width: 992px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .sobre-content {
        flex-direction: column;
    }

    .handybr-content {
        flex-direction: column;
    }
    
    .contato-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 20px;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    .hero {
        padding: 180px 0 80px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .video-script-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        border-radius: 30px;
    }
    
    .newsletter-form button {
        margin-top: 10px;
    }
}
