html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    height: 100%;
    transition: background-image 1s ease-in-out, background-position 1s ease;
}

body {
    background: radial-gradient(circle, rgba(230, 41, 239, 0.3) 0%, rgba(155, 61, 151, 0.3) 60%, rgba(60, 0, 97, 0.3) 100%);
    font-family: 'Playfair Display', serif;
    text-align: center;
    color: #fff;
    padding-bottom: 2rem;
    position: relative;
}

.content-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

h1, h2 {
    color: #fff;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.6);
    padding: 0 1rem;
    line-height: 1.4;
}

h1 {
    font-size: 2.5rem;
    margin: 2rem auto 0;
}

h2 {
    font-size: 1.8rem;
    margin: 0 auto 1rem;
}

p, h6 {
    color: #f1f1f1;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.6);
}

p {
    font-size: 1.25rem;
    font-family: 'Lato', sans-serif;
}

h6 {
    font-size: 1.5rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 2rem auto;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.cta-buttons a {
    display: block;
    padding: 1rem 1.5rem;
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
    width: 100%;
    max-width: 300px;
    text-align: center;
    text-decoration: none;
    border-radius: 50px;
    background: #8b5cf6;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-buttons a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0), rgba(109, 40, 217, 0.5));
    transition: all 0.3s ease;
}

.cta-buttons a span {
    position: relative;
    z-index: 1;
}

.cta-buttons a:hover {
    transform: translateY(-2px);
    background: #7c3aed;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.cta-buttons a:hover::before {
    opacity: 0.8;
}

#background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/RobinSarinaLandscape2.jpg');
    background-size: cover;
    background-position: center 10%;
    background-repeat: no-repeat;
    backdrop-filter: blur(10px); /* Optional: Apply blur to the background */
    z-index: -1; /* Keep the background behind content */
    opacity: 1; /* Set opacity to 1 initially */
    transition: background-image 1s ease-in-out, background-position 1s ease;
}


#background-overlay::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(230, 41, 239, 0.3); /* Slightly transparent purple overlay */
    opacity: 1; /* Keep the opacity constant */
    z-index: 1; /* Make sure overlay stays on top */
}

#background-overlay {
    transition: opacity 1s ease-in-out;
    opacity: 0;
}

#background-overlay.show {
    opacity: 1;
}

#overlay1, #overlay2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 1s ease-in-out;
}

#overlay2 {
    opacity: 0; /* Start with the second overlay invisible */
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

#overlay2 {
    opacity: 0;
}



@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    p,
    h6 {
        font-size: 1.1rem;
    }

    .cta-buttons a {
        font-size: 1rem;
        padding: 0.875rem 1.25rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.35rem;
    }

    p {
        font-size: 1rem;
    }

    .cta-buttons {
        gap: 0.75rem;
    }

    .cta-buttons a {
        padding: 0.75rem 1rem;
    }
}