/* home.css - Home Page Specific Styles */

.hero {
    position: relative;
    height: 100vh;                  /* Full viewport height on desktop */
    min-height: 600px;              /* Prevents collapsing on very small screens */
    overflow: hidden;
}

.hero video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;              /* Ensures video covers the entire area without distortion */
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
    z-index: 1;
    padding: 0 2rem;
}

.hero-overlay h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 4.5rem;
    color: #00C4B4;
    margin-bottom: 1rem;
}

.hero-overlay p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.btn {
    background: #ff69b4;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: background 0.3s;
    animation: bounce 2s infinite;
}

.btn:hover {
    background: #e0559e;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.showcase {
    padding: 8rem 5% 5rem;
    text-align: center;
    background: #f9f9f9;
}

.showcase h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: #00C4B4;
    margin-bottom: 3rem;
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.testimonial-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 196, 180, 0.9);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-style: italic;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.5s ease;
    white-space: nowrap;
}

.gallery-item:hover .testimonial-overlay {
    opacity: 1;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .hero {
        height: 80vh;               /* Slightly shorter on mobile to avoid UI chrome issues */
        min-height: 500px;
    }

    .hero-overlay {
        padding: 0 1rem;
    }

    .hero-overlay h1 {
        font-size: 3rem;
    }

    .hero-overlay p {
        font-size: 1.2rem;
    }

    .btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    /* Optional subtle dark overlay for better text contrast on bright videos */
    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3);
        z-index: 1;
    }

    .hero-overlay {
        z-index: 2;
    }

    .showcase {
        padding: 6rem 5% 4rem;
    }

    .showcase h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-overlay h1 {
        font-size: 2.5rem;
    }

    .testimonial-overlay {
        font-size: 0.9rem;
        padding: 8px 16px;
        white-space: normal;
        max-width: 90%;
    }
}