@font-face {
  font-family: 'OPTISignum'; /* Nome que você vai usar depois */
  src: url('fonts/OPTISignum.otf'); /* Caminho do arquivo */
  font-weight: normal;
  font-style: normal;
}

:root {
    --bg-color: #141414;
    --primary-color: #e50914;
    --text-color: #ffffff;
    --text-muted: #e5e5e5;
    --navbar-bg: rgba(20, 20, 20, 0);
    --navbar-scrolled: rgba(20, 20, 20, 1);
    --font-family: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: var(--text-color);
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--navbar-bg);
    transition: background-color 0.4s ease;
    padding: 20px 4%;
}

#navbar.scrolled {
    background-color: var(--navbar-scrolled);
}

.nav-container {
    display: flex;
    align-items: center;
}

.logo {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    margin-right: 40px;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-color);
    font-weight: 600;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    margin-left: auto;
}

@media (max-width: 900px) {
    .nav-container {
        justify-content: space-between;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(20, 20, 20, 0.95);
        flex-direction: column;
        padding: 20px 4%;
        gap: 15px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        font-size: 1.1rem;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 4%;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: opacity(0.3);
}

.hero-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--bg-color) 0%, rgba(20, 20, 20, 0) 60%),
        linear-gradient(to right, rgba(20, 20, 20, 0.8) 0%, rgba(20, 20, 20, 0) 60%);
}

.hero-content {
    max-width: 600px;
    z-index: 1;
}

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

.hero-description {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.45);
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn svg {
    margin-right: 10px;
}

.btn-primary {
    background-color: white;
    color: black;
}

.btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.75);
}

.btn-secondary {
    background-color: rgba(109, 109, 110, 0.7);
    color: white;
}

.btn-secondary:hover {
    background-color: rgba(109, 109, 110, 0.4);
}

/* Main Content */
.content {
    padding: 0 0 50px 0;
    margin-top: -100px;
    position: relative;
    z-index: 2;
}

.carousel-section {
    margin-bottom: 3vw;
}

.section-title {
    font-family: 'OPTISignum';
    padding: 0 4%;
    font-size: 2.4vw;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

@media (max-width: 800px) {
    .section-title {
        font-size: 1.2rem;
    }
}

/* Carousels */
.carousel-container {
    position: relative;
    padding: 0 4%;
}

.carousel {
    display: flex;
    gap: 10px;
    overflow-x: scroll;
    scroll-behavior: smooth;
    padding: 20px 0;
}

/* Hide scrollbar */
.carousel::-webkit-scrollbar {
    display: none;
}

.carousel {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.carousel-item {
    flex: 0 0 calc(20% - 8px);
    /* 5 items per row ideally */
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (max-width: 1200px) {
    .carousel-item {
        flex: 0 0 calc(25% - 7.5px);
    }
}

@media (max-width: 800px) {
    .carousel-item {
        flex: 0 0 calc(33.333% - 6.66px);
    }
}

@media (max-width: 500px) {
    .carousel-item {
        flex: 0 0 calc(50% - 5px);
    }
}

.carousel-item img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.carousel-item:hover {
    transform: scale(1.15);
    z-index: 10;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.8);
}

/* Add a play icon on hover */
.carousel-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid white;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.carousel-item::before {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.carousel-item:hover::after,
.carousel-item:hover::before {
    opacity: 1;
}

.carousel-btn {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 2rem;
    border: none;
    cursor: pointer;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-container:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

@media (max-width: 800px) {
    .carousel-btn {
        opacity: 1 !important;
        width: 10%;
        font-size: 1.5rem;
    }
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    position: relative;
    width: 70%;
    background-color: #000;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    z-index: 1;
    overflow: hidden;
}

@media (max-width: 1000px) {
    .modal-content {
        width: 90%;
    }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(20, 20, 20, 0.7);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    width: 100%;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Quem Somos / Serviços */
.about-section {
    padding: 80px 4%;
    background-color: var(--bg-color);
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-intro {
    text-align: center;
    margin-bottom: 60px;
}

.about-intro h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 20px;
}

.about-intro p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

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

.service-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--primary-color);
}

.service-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    color: var(--primary-color);
    display: block;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Footer / Contato */
.footer-section {
    background-color: #0b0b0b;
    padding: 60px 4% 20px;
    color: var(--text-muted);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
}

.footer-info {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

.footer-info p {
    line-height: 1.6;
}

.footer-contact, .footer-social {
    flex: 1;
    min-width: 250px;
}

.footer-contact h3, .footer-social h3 {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-contact p, .footer-social p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.footer-contact a, .footer-social a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-contact a:hover, .footer-social a:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
    padding-top: 10px;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #1ebe57;
    color: white;
}

@media (max-width: 800px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}