/**
 * Hero Section Styles
 * Functionality: Hero section with animated background and CTAs
 * Features: Gradient backgrounds, animations, responsive design
 */

/* ==========================================================================
   Hero Wrapper
   ========================================================================== */

.hero-wrapper {
    margin: var(--spacing-2xl) 0;
    padding-top: var(--nav-height);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 30px;
    padding: var(--spacing-3xl);
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

/* Animated background elements */
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
    opacity: 0.2;
    animation: pulse 8s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
    opacity: 0.15;
    animation: pulse 8s ease-in-out infinite;
    animation-delay: 4s;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.2;
    }
    50% { 
        transform: scale(1.1);
        opacity: 0.3;
    }
}

/* Floating particles */
.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float-up 15s linear infinite;
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* ==========================================================================
   Hero Content
   ========================================================================== */

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: clamp(18px, 2vw, 22px);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
    line-height: var(--leading-relaxed);
    opacity: 0.9;
}

/* ==========================================================================
   Hero CTA Group
   ========================================================================== */

.hero-cta-group {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    animation: fadeIn 1.2s ease;
    animation-delay: 0.3s;
    animation-fill-mode: backwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

/* Primary CTA */
.hero-cta-primary {
    background: var(--accent-blue);
    color: white;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}

.hero-cta-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.hero-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.6);
}

.hero-cta-primary:hover::before {
    width: 300px;
    height: 300px;
}

.hero-cta-primary svg {
    transition: transform var(--transition-base);
}

.hero-cta-primary:hover svg {
    transform: translateX(5px);
}

/* Secondary CTA */
.hero-cta-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.hero-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* ==========================================================================
   Portal Selector
   ========================================================================== */

.portal-selector {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin: var(--spacing-2xl) 0;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease;
    animation-delay: 0.5s;
    animation-fill-mode: backwards;
}

.portal-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 30px 40px;
    text-align: center;
    text-decoration: none;
    transition: all var(--transition-base);
    flex: 1;
    min-width: 250px;
    position: relative;
    overflow: hidden;
}

/* Portal hover effect */
.portal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--portal-color);
    transform: scaleX(0);
    transition: transform var(--transition-base);
    transform-origin: left;
}

.portal-card:hover::before {
    transform: scaleX(1);
}

/* Portal glow effect */
.portal-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--portal-color), transparent);
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity var(--transition-base);
}

.portal-card:hover::after {
    opacity: 0.1;
}

.portal-card:hover {
    transform: translateY(-5px);
    border-color: var(--portal-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Portal-specific colors */
.portal-card.kassel {
    --portal-color: var(--accent-blue);
}

.portal-card.hessen {
    --portal-color: var(--accent-green);
}

.portal-card.nordhessen {
    --portal-color: var(--accent-purple);
}

.portal-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--portal-color);
    margin-bottom: 10px;
}

.portal-description {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 15px;
}

.portal-stats {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-secondary);
    opacity: 0.8;
}

.portal-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-section {
        padding: var(--spacing-2xl);
        min-height: 400px;
    }
    
    .hero-section::before {
        width: 400px;
        height: 400px;
    }
    
    .hero-section::after {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .hero-wrapper {
        margin: var(--spacing-xl) 0;
    }
    
    .hero-section {
        padding: var(--spacing-xl) var(--spacing-lg);
        border-radius: 20px;
        min-height: auto;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 18px;
        margin-bottom: var(--spacing-xl);
    }
    
    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta {
        width: 100%;
        justify-content: center;
    }
    
    .portal-selector {
        flex-direction: column;
    }
    
    .portal-card {
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .hero-cta {
        padding: 14px 24px;
        font-size: 16px;
    }
    
    .portal-card {
        padding: var(--spacing-lg);
    }
    
    .portal-name {
        font-size: 20px;
    }
}

/* ==========================================================================
   Dark Mode Support
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    .hero-section {
        background: linear-gradient(135deg, #0f0f1e, #1a1a2e);
    }
}