:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}


main {
    position: relative;
}

main section {
    min-height: 100vh;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

main section p {
    line-height: 32px;
}

/* Backgrounds específicos para cada seção */
#home {
    color: white;
}

#features .container {
    position: relative;
}

#features h1 {
    font-size: 5.5rem;
    width: 80%;
    margin: 0 auto;
}

#features img {
    max-width: 450px;
    margin-right: 100px;
}

@media (max-width: 768px) {
    #features h1 {
        font-size: 3rem;
        width: 100%;
        margin-bottom: 20px;
    }

    #features img {
        max-width: 90%;
        margin: 0;
    }
    
}

#about {
    background-image: url('../img/bg2.jpg');
    background-size: cover;
    background-position: center;
    color: white;
}

#monitoring {
    background-image: url('../img/bg3.jpg');
    background-size: cover;
    background-position: center;
    color: white;
}

#sms {
    background-image: url('../img/bg4.jpg');
    background-size: cover;
    background-position: center;
    color: white;
}

#contact {
    background: #f8f9fa;
}

/* Z-index crescente para criar efeito de empilhamento - cada seção sobe sobre a anterior */
#home {
    z-index: 1;
}

#features {
    z-index: 2;
}

#about {
    z-index: 3;
}

#monitoring {
    z-index: 4;
}

#sms {
    z-index: 5;
}

#contact {
    z-index: 6;
}


.hero-section {
    background-image: url('../img/bg.png');
    background-position: center;
    background-size: cover;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section .section-content {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a58ca 100%);
    color: white;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 1rem;
}

.card {
    border-radius: 12px;
    background: rgba(0,0,0,0.85);
    box-shadow: 3px 3px 23px 0 rgba(255, 255, 255, 0.30);
    display: none;
}

.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.btn-black {
    background-color: #000;
    color: #fff;
    border: none;
    text-transform: uppercase;
    padding: 15px 25px;
    filter: drop-shadow(3px 3px 23px rgba(255, 255, 255, 0.30));
}

.btn-black:hover {
    background-color: #222;
    color: #fff;
}

.btn-white {
    background-color: #fff;
    color: #000;
    border: none;
    text-transform: uppercase;
    font-weight: bold;
    padding: 15px 25px;
    filter: drop-shadow(3px 3px 23px rgba(255, 255, 255, 0.30));
}

.btn-white:hover {
    background-color: #ddd;
    color: #000;
}

footer {
    background-color: #000;
    color: white;
    padding: 2rem 0;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 5;
}

/* Ajustes para navbar fixa */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0px;
    background-color: rgba(33, 37, 41, 0);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #333;
    padding: 20px 0px;
}

/* Garantir que o conteúdo das sections seja scrollável internamente se necessário */
main section > * {
    width: 100%;
}

/* Espaçador entre sections para criar delay no scroll */
.section-spacer {
    height: 100px;
    background: transparent;
}
