/* Video Background for Header and Hero */
.video-background {
    position: relative;
    overflow: hidden;
    background-color: var(--livro-red);
}

.intro-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 1; /* Full opacity for the video */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(221, 28, 26, 0.2); /* Slight overlay for better text contrast */
    z-index: 1;
}

/* Hero Section */
.hero {
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh; /* Set a minimum height to ensure enough space */
    padding: 0; /* Remove top/bottom padding to rely on min-height instead */
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-tagline {
    font-weight: 800; /* Extra Bold */
    font-size: 80px; /* Increased from 72px */
    line-height: 110%;
    letter-spacing: -2%;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.6); /* Enhanced shadow for better readability */
}

.hero p {
    font-size: 24px;
    margin-bottom: 2.5rem;
    line-height: 150%;
    max-width: 800px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.6); /* Enhanced shadow for better readability */
}

/* Two-line description text */
.hero-description {
    max-width: 700px; /* Increased from 600px to fit new text */
    margin: 0 auto 2.5rem;
    display: inline-block;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background-color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    border-radius: 8px;
    background-color: var(--livro-pearl);
    color: var(--livro-dark);
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: var(--livro-yellow-dark);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.feature-icon .material-symbols-rounded {
    font-size: 36px;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--livro-pearl);
    padding: 5rem 0;
    text-align: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
    position: relative;
}

.testimonial-card::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 80px;
    color: var(--livro-pearl);
    font-family: Georgia, serif;
    line-height: 1;
    z-index: 0;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: 700;
    color: var(--livro-dark);
}

.testimonial-role {
    color: #777;
    font-size: 14px;
}

/* Slideshow */
.slideshow-container {
    width: 100%;
    height: 440px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide img {
    width: 70%;
    max-width: 1920px;
    height: auto;
    display: block;
}

/* Responsive adjustments for home page */
@media (max-width: 768px) {
    .hero-tagline {
        font-size: 48px; /* Adjusted for mobile */
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    /* Slideshow responsive */
    .slideshow-container {
        height: 220px;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .hero-tagline {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    /* Slideshow responsive */
    .slideshow-container {
        height: 150px;
    }
}
