/* ==========================================================================
   GLOBAL & LAYOUT STYLES
   ========================================================================== */

body {
    font-family: 'Montserrat', sans-serif;
    background-image: url("foto.jpg");
    margin: 0;
}

.video-background {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -100;
    object-fit: cover;
}

/* ==========================================================================
   SLIDER COMPONENT STYLES
   ========================================================================== */

.slider-container {
    position: relative;
    width: 100%; 
    max-width: 800px;
    height: 450px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

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

/* Safeguard image rendering inside Tailwind containers */
.slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.overlay-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Slightly darker overlay for maximum readability */
    color: #ffffff !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    text-align: center;
    padding: 40px;
    box-sizing: border-box;
}

.slide:hover .overlay-text {
    opacity: 1;
}

/* Typography Components Inside Overlay */
.quote {
    font-size: 15px; 
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 90%;
}

.name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.job {
    font-size: 14px;
    color: #d1d1d1;
}

/* Navigation UI Buttons */
.slider-container .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8) !important;
    color: #000000 !important;
    border: none !important;
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.2s;
    z-index: 10;
}

.slider-container .arrow:hover {
    background-color: rgba(255, 255, 255, 1) !important;
}

.prev { left: 15px; }
.next { right: 15px; }

/* ==========================================================================
   ANIMATIONS & RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.animate-fade-in-up {
    animation: fadeIn 1.2s ease-out forwards;
}

/* Responsive Mobile Rules */
@media (max-width: 600px) {
    .slider-container {
        height: 520px; /* Enhanced vertical headroom for narrow portrait smartphone displays */
    }

    .overlay-text {
        padding: 20px;
    }

    .quote {
        font-size: 13px;
        margin-bottom: 15px;
        max-width: 95%;
    }

    .name {
        font-size: 14px;
    }

    .job {
        font-size: 12px;
    }

    .slider-container .arrow {
        padding: 8px 12px;
        font-size: 18px;
    }
}
