/* hero-section.css - Styling for the main hero area */

/* Hero section styles */
.hero {
    height: 100vh; /* Fallback for browsers */
    height: 100dvh; /* Dynamic viewport height (modern browsers) */
    /* Fallback for browsers that don't support dvh */
    height: calc(var(--vh, 1vh) * 100);
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    margin-bottom: 0;
}

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

/* Show mobile image by default, hide desktop image */
.mobile-hero-image {
    display: block;
}

.desktop-hero-image {
    display: none;
}

/* For desktop screens, show desktop image and hide mobile image */
@media (min-width: 769px) {
    .mobile-hero-image {
        display: none;
    }
    
    .desktop-hero-image {
        display: block;
    }
}

.hero-content {
    position: relative;
    text-align: center;
    color: white;
    padding: 2rem;
    z-index: 10;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    bottom: 15%;
}

/* Update font for "Pupay & Frej" to use BrittanySignature */
.hero-content h1 {
    font-family: 'BrittanySignature', 'Great Vibes', cursive !important;
    font-size: 5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: white;
}

.hero-content h1 span{
    font-family: 'BrittanySignature', 'Great Vibes', cursive !important;
    font-weight: bold;
    letter-spacing: 5px;
}

.hero-content p {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 2rem;
    margin-top: 10%;
    line-height: 1.2;
    color: white;
    font-weight: 300;
    letter-spacing: 1px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.2) 0%, 
        rgba(0, 0, 0, 0.2) 85%, 
        rgba(0, 0, 0, 0) 100%);
}

.hero-heading {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    width: 100%;
    z-index: 10;
    background-color: #C89FA5;
    backdrop-filter: blur(5px);
    box-shadow: none; /* Remove the box-shadow that creates the border effect */
    /* Ensure consistent display across devices */
    padding: 1rem 0;
}

.hero-heading h2 {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1.3rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
}

.hero-heading p {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.2rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Heart icon styling */
.heart-icon {
    width: 40px;
    height: 40px;
    margin: 1rem auto;
    fill: #ae6070;
}

/* Responsive adjustments */
@media (min-width: 1200px) {
    .hero {
        margin: 0 auto;
    }
    
    .hero img {
        border-radius: 8px 8px 0 0;
    }

    .hero-heading {
        /* border-bottom-left-radius: 8px; */
        /* border-bottom-right-radius: 8px; */
        padding: 1.5rem 0;
    }
    
    .hero-content h1 {
        font-size: 7rem; /* Larger font for desktop */
    }
    
    .hero-content p {
        font-size: 2.5rem; /* Larger font for desktop */
    }
    
    .heart-icon {
        width: 60px;
        height: 60px;
    }
    
    .hero-heading h2 {
        font-size: 1.8rem;
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .hero {
        margin: 0 auto;
        height: 85vh;
    }
    
    .hero img {
        border-radius: 8px 8px 0 0;
    }
    
    .hero-content h1 {
        font-size: 6rem;
    }
    
    .hero-content p {
        font-size: 2.2rem;
    }
    
    .hero-heading {
        padding: 1.25rem 0;
    }
    
    .hero-heading h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 100dvh; /* Dynamic viewport height for mobile */
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-content p {
        font-size: 1.5rem;
        margin-top: 5%; /* Reduced from 10% to save space */
    }

    .hero-heading p {
        font-size: 1rem;
    }
}

@media (max-width: 380px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: 1.3rem;
        margin-top: 3%;
    }
    
    .hero-heading h2 {
        font-size: 1.1rem;
    }
}