/* ==========================================================================
   Hero Section Styles with Animations
   ========================================================================== */

/* Keyframes for animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }
    70% {
        transform: scale(1.03);
        box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Hero Layout - Full Viewport Height */
.hero {
    position: relative;
    min-height: 100vh;
    height: 100vh;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 0;
    margin: 0;
    z-index: 1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin: 0 0 1.5rem 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    width: 100%;
    color: #fff;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.hero .lead {
    font-size: 1.25rem;
    margin: 0 0 2.5rem 0;
    line-height: 1.6;
    max-width: 700px;
    width: 100%;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 600px;
    margin: 2rem auto 0;
    padding: 0 15px;
    z-index: 10;
    position: relative;
}

.hero .btn {
    width: 100%;
    min-width: 200px;
    max-width: 250px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1 !important;
    transform: none !important;
    animation: fadeInUp 0.8s ease-out 0.5s both !important;
    text-decoration: none;
    line-height: 1.5;
    box-sizing: border-box;
}

.hero .btn-primary {
    background-color: var(--accent);
    color: #2c2c2c;
    border: 2px solid var(--accent);
    animation-delay: 0.8s !important;
}

.hero .btn-outline {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
    animation-delay: 1s !important;
}

.hero .btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.hero .btn-primary:hover {
    background-color: #e6b800;
    border-color: #e6b800;
    color: #2c2c2c;
}

.hero .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    color: #fff;
}

.hero .btn {
    display: block;
    width: 100%;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

/* Animation Classes */
.hero h1 {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.3s;
    will-change: transform, opacity;
}

.hero .lead {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.5s;
    will-change: transform, opacity;
}

.hero-buttons {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.7s;
    will-change: transform, opacity;
}

.hero .btn-primary:hover {
    animation: pulse 1.5s infinite;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../images/hero-bg.jpg') no-repeat center center/cover;
    z-index: -1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
}

/* Hero Slideshow */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    transform: scale(1.05);
    will-change: transform, opacity;
}

.slide.active {
    opacity: 1;
    z-index: 1;
    animation: fadeIn 1.5s ease-out forwards, float 12s ease-in-out infinite;
}

/* Slideshow Navigation Dots */
.slideshow-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: var(--accent);
    transform: scale(1.2);
}

/* Add overlay for better text readability */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 80px; /* Space for navbar */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-text {
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.8s forwards;
}

.hero-text h1 {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out 1s forwards;
}

.hero-text .lead {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out 1.2s forwards;
}

.hero-buttons {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out 1.4s forwards;
}

/* Remove the separate image container since we're using it as background */
.hero-image {
    display: none;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero .lead {
        font-size: 1.35rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        max-width: 600px;
        gap: 20px;
    }
    
    .hero .btn {
        padding: 14px 24px;
        font-size: 1rem;
        width: auto;
        min-width: 200px;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        white-space: nowrap;
    }
    
    @media (min-width: 992px) {
        .hero .btn {
            padding: 16px 32px;
            font-size: 1.1rem;
        }
    }
}

@media (min-width: 992px) {
    .hero h1 {
        font-size: 4rem;
    }
    
    .hero .lead {
        font-size: 1.5rem;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(1.05);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Add subtle pulse animation to CTA buttons */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4);
    }
    70% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}

/* Add hover effect to buttons */
.hero .btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero .btn-primary {
    animation: pulse 2s infinite 2s;
}

.hero .btn-primary:hover {
    animation: none;
}

/* Add subtle floating animation to the hero content */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.hero-content {
    animation: float 6s ease-in-out infinite;
}

/* Adjust hero text for better contrast */
.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 767px) {
    .hero {
        padding: 0;
        min-height: 100vh;
        height: 100vh;
        max-height: 100vh;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1.25rem;
    }
    
    .hero .lead {
        font-size: 1.15rem;
        margin-bottom: 2rem;
        padding: 0 10px;
    }
    
    .hero-buttons {
        width: 100%;
        max-width: 300px;
        gap: 12px;
    }
    
    .hero .btn {
        width: 100%;
        max-width: 100%;
        padding: 12px 20px;
        font-size: 1rem;
    }
}
