/**
 * AGS Hero Section - Organic Wave Design
 */

/* === Hero Section === */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: -80px;
    padding-top: 80px;
    background: linear-gradient(160deg, #0d9488 0%, #0891b2 35%, #22d3ee 65%, #22c55e 100%);
}

/* Decorative arc shapes */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

/* Gradient overlay for better text readability - Sky Blue Theme */
.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(56, 189, 248, 0.88) 0%,
            rgba(59, 130, 246, 0.85) 25%,
            rgba(96, 165, 250, 0.82) 50%,
            rgba(125, 211, 252, 0.85) 75%,
            rgba(34, 211, 238, 0.88) 100%);
    z-index: 1;
}

/* Hero badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    color: var(--color-white);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-badge svg {
    color: #ff6b9d;
}

/* Hero statistics */
.hero-stats {
    display: flex;
    gap: var(--space-8);
    margin-top: var(--space-10);
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
    padding: var(--space-4) var(--space-6);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 120px;
}

.hero-stat-number {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-white);
    line-height: 1;
    margin-bottom: var(--space-2);
}

.hero-stat-label {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.9);
    font-weight: var(--font-weight-medium);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: var(--space-8);
}

.hero-text {
    color: var(--color-white);
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-white);
    line-height: 1.1;
    margin-bottom: var(--space-6);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--space-8);
    line-height: var(--line-height-relaxed);
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* Enhanced hero buttons for better visibility */
.hero-actions .btn {
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: none;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

/* Green button (Faire un don) */
.hero-actions .btn-green {
    background: linear-gradient(135deg, var(--color-green) 0%, var(--color-green-dark) 100%);
    box-shadow: 0 8px 24px rgba(108, 172, 56, 0.5), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-actions .btn-green:hover {
    background: linear-gradient(135deg, var(--color-green-dark) 0%, var(--color-green) 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(108, 172, 56, 0.6), 0 6px 16px rgba(0, 0, 0, 0.2);
}

.hero-actions .btn-green:active {
    transform: translateY(-1px) scale(1.01);
}

/* Orange button (Devenir bénévole) */
.hero-actions .btn-orange {
    background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-orange-dark) 100%);
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.5), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-actions .btn-orange:hover {
    background: linear-gradient(135deg, var(--color-orange-dark) 0%, var(--color-orange) 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(249, 115, 22, 0.6), 0 6px 16px rgba(0, 0, 0, 0.2);
}

.hero-actions .btn-orange:active {
    transform: translateY(-1px) scale(1.01);
}

/* Ripple effect on click */
.hero-actions .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hero-actions .btn:active::before {
    width: 300px;
    height: 300px;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Organic blob/circle shape for hero image - matching mockup */
.hero-image img {
    width: 100%;
    max-width: 480px;
    border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25), 0 10px 20px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    aspect-ratio: 1 / 1;
    border: 5px solid rgba(255, 255, 255, 0.3);
}

/* === Organic Wave at Bottom === */
.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 140px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 140' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,60 C200,120 400,30 600,70 C800,110 1000,20 1200,60 C1300,85 1380,50 1440,70 L1440,140 L0,140 Z'/%3E%3C/svg%3E") no-repeat bottom center;
    background-size: 100% 100%;
    z-index: 3;
}

/* === Decorative Wave Line Below Hero === */
.hero-decorative-line {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    max-width: 800px;
    height: 6px;
    background: linear-gradient(90deg,
            var(--color-teal) 0%,
            var(--color-orange) 35%,
            var(--color-green) 70%,
            var(--color-teal) 100%);
    border-radius: var(--radius-full);
    z-index: 4;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
    animation: wave-pulse 3s ease-in-out infinite;
}

@keyframes wave-pulse {

    0%,
    100% {
        opacity: 0.9;
        transform: translateX(-50%) scaleX(1);
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) scaleX(1.05);
    }
}

/* === Decorative Shapes Below Hero === */
.hero-decorative-shapes {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    width: 100%;
    height: 100px;
    pointer-events: none;
    z-index: 2;
}

.decorative-shape {
    position: absolute;
    opacity: 0.7;
    animation: float-shape 6s ease-in-out infinite;
}

.shape-circle {
    border-radius: 50%;
}

.shape-square {
    border-radius: 8px;
    transform: rotate(45deg);
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 26px solid currentColor;
}

/* Shape Colors */
.shape-teal {
    background: var(--color-teal);
    width: 30px;
    height: 30px;
    left: 15%;
    top: 30px;
    animation-delay: 0s;
}

.shape-orange {
    background: var(--color-orange);
    width: 25px;
    height: 25px;
    left: 35%;
    top: 50px;
    animation-delay: 1s;
}

.shape-green {
    color: var(--color-green);
    left: 55%;
    top: 20px;
    animation-delay: 2s;
}

.shape-orange-light {
    background: rgba(255, 153, 0, 0.6);
    width: 20px;
    height: 20px;
    left: 75%;
    top: 40px;
    animation-delay: 3s;
}

.shape-teal-light {
    background: rgba(0, 136, 204, 0.6);
    width: 28px;
    height: 28px;
    left: 88%;
    top: 25px;
    animation-delay: 1.5s;
}

@keyframes float-shape {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(180deg);
    }
}

/* === Responsive Hero === */
@media (max-width: 968px) {
    .hero {
        min-height: auto;
        padding: var(--space-20) 0 var(--space-32);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: var(--font-size-4xl);
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .hero-image img {
        max-width: 350px;
    }
}

/* === Section Wave Dividers === */
.wave-top {
    position: relative;
}

.wave-top::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 0;
    right: 0;
    height: 80px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23f8fafc' d='M0,80 C360,20 720,60 1080,30 C1260,15 1380,40 1440,50 L1440,0 L0,0 Z'/%3E%3C/svg%3E") no-repeat top center;
    background-size: 100% 100%;
}

.wave-bottom {
    position: relative;
}

.wave-bottom::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: 0;
    right: 0;
    height: 80px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23f8fafc' d='M0,0 C360,60 720,20 1080,50 C1260,65 1380,40 1440,30 L1440,80 L0,80 Z'/%3E%3C/svg%3E") no-repeat bottom center;
    background-size: 100% 100%;
}

/* === Teal Section Wave === */
.section-teal {
    background: linear-gradient(135deg, #0d9488 0%, #0ea5e9 100%);
    position: relative;
    color: white;
    padding: var(--space-20) 0;
    margin: var(--space-16) 0;
}

.section-teal::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath fill='%230d9488' d='M0,60 C480,0 960,40 1440,20 L1440,60 L0,60 Z'/%3E%3C/svg%3E") no-repeat bottom center;
    background-size: 100% 100%;
}

.section-teal::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath fill='%230ea5e9' d='M0,0 C480,60 960,20 1440,40 L1440,0 L0,0 Z'/%3E%3C/svg%3E") no-repeat top center;
    background-size: 100% 100%;
}