/* Hero Section Styles - Consolidated from multiple files */

/* Core Hero Structure */
.hero-section {
    position: relative;
    overflow: hidden;
    background-color: #2d3436; /* Default dark background */
    color: white;
    margin-bottom: 0;
    padding-bottom: 0;
    z-index: 1;
    padding: 100px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

/* Background variations */
.hero-section.bg-dark {
    background-color: #2d3436;
    color: white;
}

.hero-section.bg-light {
    background-color: #f8f9fa;
    color: #2d3436;
}

/* Gradient background for hero */
.hero-section.gradient-bg {
    background: var(--gradient-primary);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(135deg, rgba(255,255,255,0.05) 25%, transparent 25%, 
                      transparent 50%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.05) 75%, 
                      transparent 75%, transparent);
    background-size: 20px 20px;
    opacity: 0.1;
    z-index: 1;
}

/* Hero Inner Content */
.hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 600px; /* Changed from fixed height to min-height */
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Compact hero for secondary pages */
.hero-inner-compact {
    height: 400px; /* Shorter height for secondary pages */
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Hero Title & Subtitle */
.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Hero Background & Particles Effects */
/* Particles container */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

/* Individual particle styling */
.particle {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    pointer-events: none;
    animation: float linear infinite;
}

/* Float animation for particles */
@keyframes float {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) translateX(20vw) rotate(360deg);
        opacity: 0;
    }
}

/* Decoration Circles for Hero Sections */
.hero-decoration-circle {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
}

/* Particle size classes */
.particle-size-0 {
    width: 5px;
    height: 5px;
}

.particle-size-1 {
    width: 10px;
    height: 10px;
}

.particle-size-2 {
    width: 15px;
    height: 15px;
}

/* Particle position X classes */
.particle-pos-x-0 { left: 0%; }
.particle-pos-x-1 { left: 10%; }
.particle-pos-x-2 { left: 20%; }
.particle-pos-x-3 { left: 30%; }
.particle-pos-x-4 { left: 40%; }
.particle-pos-x-5 { left: 50%; }
.particle-pos-x-6 { left: 60%; }
.particle-pos-x-7 { left: 70%; }
.particle-pos-x-8 { left: 80%; }
.particle-pos-x-9 { left: 90%; }

/* Particle position Y classes */
.particle-pos-y-0 { top: 0%; }
.particle-pos-y-1 { top: 10%; }
.particle-pos-y-2 { top: 20%; }
.particle-pos-y-3 { top: 30%; }
.particle-pos-y-4 { top: 40%; }
.particle-pos-y-5 { top: 50%; }
.particle-pos-y-6 { top: 60%; }
.particle-pos-y-7 { top: 70%; }
.particle-pos-y-8 { top: 80%; }
.particle-pos-y-9 { top: 90%; }

/* Particle delay classes */
.particle-delay-0 { animation-delay: 0s; }
.particle-delay-1 { animation-delay: 1s; }
.particle-delay-2 { animation-delay: 2s; }
.particle-delay-3 { animation-delay: 3s; }
.particle-delay-4 { animation-delay: 4s; }

/* Particle duration classes */
.particle-duration-1 { animation-duration: 10s; }
.particle-duration-2 { animation-duration: 15s; }
.particle-duration-3 { animation-duration: 20s; }

/* Badge Styling */
.badge-gold {
    background-color: rgba(193, 123, 0, 0.1);
    color: #c17b00;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .hero-inner {
        min-height: 500px; /* Changed from height to min-height */
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 767.98px) {
    .hero-inner {
        min-height: 450px; /* Changed from height to min-height */
        padding: 3rem 1rem; /* Added horizontal padding */
    }
    
    .hero-title {
        font-size: 2rem;
        padding-left: 0;
        margin-left: 0;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        padding-left: 0;
        margin-left: 0;
    }
    
    /* Fix spacing for mobile text alignment - ensure consistent spacing */
    .hero-section .text-center.text-lg-start {
        padding-left: 0;
        padding-right: 0;
    }
    
    /* Ensure buttons have proper spacing - match title and subtitle */
    .hero-section .d-flex.justify-content-center.justify-content-lg-start {
        width: 100%;
        margin-left: 0;
        padding-left: 0;
    }
}

/* Large screen adjustments */
@media (min-width: 1400px) {
    .hero-section {
        padding: calc(8rem + 80px) 0 10rem; /* Adjusted padding for large screens with navbar */
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-section::before {
        bottom: -4vw;
        height: 8vw;
    }
}

@media (min-width: 1800px) {
    .hero-section::before {
        bottom: -3vw;
    }
}

@media (min-width: 992px) {
    /* Ensure text alignment on larger screens shows the left padding */
    .hero-section .text-lg-start {
        text-align: left !important;
        padding-left: 1.5rem;
    }
    
    .hero-section .justify-content-lg-start {
        justify-content: flex-start !important;
    }
}
