/* Global Refinements */
:root {
    --primary: #E50914;
    --primary-hover: #ff1f2a;
    --dark-bg: #0a0a0a;
    --glass: rgba(20, 20, 20, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #b3b3b3;
    --font-main: 'Outfit', sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
}

/* Background Slider Effect (Simple CSS Animation) */
.bg-slider {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideShow 20s infinite;
}

.bg-slide:nth-child(1) {
    background-image: url('../../fotos do app/fundo 1 blessed.avif');
    animation-delay: 0s;
}

.bg-slide:nth-child(2) {
    background-image: url('../../fotos do app/fundo 2 blessed.avif');
    animation-delay: 5s;
}

.bg-slide:nth-child(3) {
    background-image: url('../../fotos do app/fundo 3 blessed.avif');
    animation-delay: 10s;
}

.bg-slide:nth-child(4) {
    background-image: url('../../fotos do app/fundo 4 blessed.avif');
    animation-delay: 15s;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.3) 0%, rgba(5, 5, 5, 0.95) 85%);
    z-index: 0;
}

@keyframes slideShow {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    5% {
        opacity: 1;
        transform: scale(1.02);
    }

    25% {
        opacity: 1;
        transform: scale(1.05);
    }

    30% {
        opacity: 0;
        transform: scale(1.08);
    }

    100% {
        opacity: 0;
    }
}

/* Header */
header {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent);
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    z-index: 100;
    transition: 0.3s;
}

.logo img {
    height: 50px;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: -2px;
    line-height: 1.1;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.4rem;
    max-width: 700px;
    margin-bottom: 40px;
    color: var(--text-muted);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.cta-btn {
    padding: 18px 50px;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    background: var(--primary);
    border: none;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 0 30px rgba(229, 9, 20, 0.4);
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(229, 9, 20, 0.6);
}

/* Glass Cards (Features & Devices) */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
}

.features,
.devices-section,
.gallery-section,
.tutorial-section {
    position: relative;
    z-index: 2;
    background: var(--dark-bg);
    padding: 80px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.glass-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 12px;
    transition: 0.4s;
    text-align: center;
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.glass-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 25px;
}

.glass-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.glass-card p {
    color: var(--text-muted);
}

/* Devices */
.devices-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.device-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1a1a1a;
    padding: 15px 30px;
    border-radius: 8px;
    border: 1px solid #333;
    font-weight: 600;
    transition: 0.3s;
}

.device-badge:hover {
    border-color: var(--primary);
    background: #222;
}

.device-badge i {
    font-size: 1.5rem;
    color: white;
}

/* Gallery Carousel */
.carousel {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 0;
    scroll-behavior: smooth;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carousel img {
    height: 350px;
    border-radius: 8px;
    transition: 0.3s;
    opacity: 0.8;
}

.carousel img:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Tutorial */
.tutorial-container {
    display: flex;
    align-items: center;
    gap: 60px;
    background: #111;
    padding: 50px;
    border-radius: 20px;
    border: 1px solid #222;
}

.step-list {
    list-style: none;
    counter-reset: my-counter;
}

.step-list li {
    counter-increment: my-counter;
    margin-bottom: 25px;
    position: relative;
    padding-left: 50px;
    font-size: 1.1rem;
}

.step-list li::before {
    content: counter(my-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 35px;
    height: 35px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    font-weight: bold;
}

.important-box {
    background: rgba(229, 9, 20, 0.1);
    border-left: 4px solid var(--primary);
    padding: 15px;
    margin: 10px 0;
    font-size: 0.95rem;
    color: #ffd1d1;
}

/* Modal High End */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.3s;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #141414;
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    padding: 40px;
    position: relative;
    border: 1px solid #333;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #777;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-content input {
    width: 100%;
    padding: 15px;
    background: #222;
    border: 1px solid #333;
    border-radius: 4px;
    color: white;
    margin-bottom: 15px;
    font-size: 1rem;
}

.modal-content input:focus {
    border-color: var(--primary);
    outline: none;
}

.spinner {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-left-color: var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .bg-slide {
        background-position: center top;
    }

    /* Focus on faces/top likely */
    .hero h1 {
        font-size: 2.5rem;
    }

    .tutorial-container {
        flex-direction: column-reverse;
        padding: 20px;
    }

    .carousel img {
        height: 200px;
    }

    .cta-btn {
        width: 100%;
        font-size: 1.2rem;
    }
}