/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Styles */
body {
    background: #F5E8D7; /* Beige background */
}

/* Slider Container */
.slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Slides */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out; /* Smooth fade transition */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for contrast */
    z-index: 1;
}

/* Slide Content */
.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 20px;
    max-width: 700px;
    opacity: 0;
    transition: opacity 1s ease-in-out; /* Match slide transition */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px; /* Fixed height to prevent displacement */
}

.slide.active .slide-content {
    opacity: 1;
    animation: fadeIn 1.5s ease forwards 0.5s; /* Fade in on active */
}

/* Text Container */
.text-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Title */
.slide-content h1 {
    font-family: "Josefin Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 2.5rem; /* Adjusted for prominence */
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #f4f5f7!important;
    line-height: 1.2; /* Optimal line spacing */
    margin-bottom: 12px;
}

/* Subtitle */
.slide-content p {
    font-family: "Tenor Sans", -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 1.3rem; /* Slightly smaller than title for hierarchy */
    font-weight: 600;
    text-transform: uppercase;
    color: #d3ad7f!important;
    line-height: 1.4; /* Optimal line spacing */
    margin-bottom: 10px;
}

/* Description */
.slide-content .subtitle {
    font-family: "Tenor Sans", -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 1rem; /* Smaller for secondary text */
    font-weight: 400;
    font-style: normal;
    color: #f4f5f7;
    line-height: 1.6; /* Increased for readability */
    max-width: 500px;
    margin: 0 auto 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Call to Action */
.cta {
    padding: 10px 20px;
    background: #000;
    color: #F5E8D7;
    font-family: "Tenor Sans", -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
}

.cta:hover {
    background: #333;
    transform: translateY(-2px);
}

/* Navigation Dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    width: 100%;
    text-align: center;
    z-index: 2;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    margin: 0 8px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px); /* Subtle upward motion */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .slide-content {
        height: 250px; /* Slightly smaller for mobile */
        padding: 15px;
    }

    .slide-content h1 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1.1rem;
    }

    .slide-content .subtitle {
        font-size: 0.9rem;
    }

    .cta {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

.slide.slide-transition { transition: transform 1s ease-in-out; }
.slide.zoom-transition { transition: transform 1s ease, opacity 1s ease; }