/* Modern Hero Section Styles */

:root {
    --primary-color: #5191ba;
    --primary-light: #7bb3d9;
    --primary-dark: #3a7ca8;
    --primary-darker: #2d5a7b;
    --accent-light: #a8d0f0;
    --accent-lighter: #deeef9;
}

.modern-hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Background Effects */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(81, 145, 186, 0.9) 0%, rgba(58, 124, 168, 0.9) 100%);
    z-index: 2;
}

/* Add some subtle pattern overlay */
.bg-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    z-index: 1;
}

/* Floating Shapes Animation */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 120px;
    height: 120px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 80px;
    height: 80px;
    top: 70%;
    left: 80%;
    animation-delay: 2s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 40%;
    left: 85%;
    animation-delay: 4s;
}

.shape-4 {
    width: 60px;
    height: 60px;
    top: 80%;
    left: 5%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.7;
    }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    padding: 2rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    animation-delay: 0.2s;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.hero-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.badge-text {
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 1.5rem;
    animation-delay: 0.4s;
}

.title-line {
    display: block;
}

.gradient-text {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 2s ease-in-out infinite alternate;
}

@keyframes shimmer {
    0% {
        background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
        -webkit-background-clip: text;
        background-clip: text;
    }
    100% {
        background: linear-gradient(45deg, var(--primary-light), var(--accent-light));
        -webkit-background-clip: text;
        background-clip: text;
    }
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 2rem auto;
    animation-delay: 0.6s;
}

/* Modern Buttons */
.hero-buttons {
    animation-delay: 0.8s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(81, 145, 186, 0.4);
    position: relative;
    overflow: hidden;
    color: #ffffff !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(81, 145, 186, 0.5);
    background: linear-gradient(45deg, var(--primary-dark), var(--primary-color));
    color: #ffffff !important;
    text-decoration: none;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-indicator:hover {
    transform: translateX(-50%) scale(1.1);
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    position: relative;
    margin: 0 auto 10px;
    transition: border-color 0.3s ease;
}

.scroll-indicator:hover .scroll-mouse {
    border-color: rgba(255, 255, 255, 0.8);
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

.scroll-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.scroll-indicator:hover .scroll-text {
    color: rgba(255, 255, 255, 0.9);
}

@keyframes scroll {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(16px);
        opacity: 0;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Animation Classes */
.fadeInUp {
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.fadeInRight {
    animation: fadeInRight 1s ease forwards;
    opacity: 0;
    transform: translateX(30px);
}

.fadeInUp.animate,
.fadeInRight.animate {
    animation-play-state: running;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 991px) {
    .modern-hero-section {
        min-height: 100vh;
        padding: 80px 0 50px;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .shape {
        display: none;
    }
}

@media (max-width: 767px) {
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .modern-hero-section {
        padding: 60px 0 30px;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    .btn-primary {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        min-width: 180px;
    }
    
    .hero-badge {
        padding: 0.4rem 1rem;
    }
    
    .badge-text {
        font-size: 0.8rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #4a8bb8;
        --primary-light: #6fa3d1;
        --primary-dark: #2d5a7b;
        --primary-darker: #1e3a52;
    }
    
    .modern-hero-section {
        background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary-dark) 100%);
    }
    
    .bg-overlay {
        background: linear-gradient(135deg, rgba(30, 58, 82, 0.9) 0%, rgba(45, 90, 123, 0.9) 100%);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero-badge {
        border: 2px solid #ffffff;
    }
    
    .btn-outline-light {
        border-width: 3px;
    }
    
    .floating-card {
        border: 2px solid rgba(255, 255, 255, 0.5);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .shape,
    .floating-card,
    .scroll-indicator,
    .scroll-wheel {
        animation: none;
    }
    
    .fadeInUp,
    .fadeInRight {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
