/* ===================
   Modern Hero Section
   with Parallax Scroll-Behind Effect
=================== */

/* ========================================
   PARALLAX WRAPPER - Hero stannar bakom
======================================== */
.hero-parallax-wrapper {
    position: sticky;
    top: 0;
    z-index: 1;
    /* Hero stannar kvar medan innehållet scrollar över */
}

/* Innehållet som scrollar ÖVER hero */
.main-content {
    position: relative;
    z-index: 10;
    background: #f5f5f5; /* Solid bakgrund så hero syns bakom */
    /* Mjuk skugga för att skapa djupeffekt */
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.15);
    border-radius: 30px 30px 0 0;
    margin-top: -30px; /* Liten överlappning för snygg effekt */
}

/* ========================================
   HERO SECTION
======================================== */
.hero {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: #ffffff;
    padding: 120px 20px 80px;
    overflow: hidden;
    min-height: 600px;
}

/* Animated Background Shapes */
.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0.15;
}

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

.shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -50px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: 10%;
    animation-delay: 5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: -50px;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Hero Inner Container */
.hero-inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    z-index: 1;
}

/* Hero Content */
.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

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

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-badge i {
    font-size: 0.9rem;
}

/* Title */
.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 25px;
    font-weight: 800;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-title .highlight {
    background: linear-gradient(120deg, #FFD700, #FFA500, #FF6B6B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

/* Description */
.hero-description {
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    max-width: 540px;
    margin-bottom: 35px;
}

.hero-description strong {
    color: #FFD700;
    font-weight: 700;
}

/* Action Buttons */
.hero-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-btn i {
    font-size: 1.1rem;
}

.hero-btn-primary {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a2e;
    box-shadow: 0 10px 30px rgba(255, 165, 0, 0.4);
}

.hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 165, 0, 0.5);
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Features */
.hero-features {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 500;
}

.feature-item i {
    font-size: 1.2rem;
    color: #FFD700;
}

/* Hero Visual - Price Cards */
.hero-visual {
    position: relative;
    height: 450px;
    animation: fadeIn 1s ease-out 0.3s backwards;
}

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

.hero-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    animation: cardFloat 3s infinite ease-in-out;
}

.hero-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.hero-card-1 {
    top: 30px;
    left: 20px;
    animation-delay: 0s;
}

.hero-card-2 {
    top: 150px;
    left: 50px;
    animation-delay: 1s;
}

.hero-card-3 {
    top: 270px;
    left: 10px;
    animation-delay: 2s;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
}

/* Main Best Price Card */
.hero-card-main {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a2e;
    padding: 30px;
    min-width: 220px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 20px 60px rgba(255, 165, 0, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.05); }
}

.savings-badge {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #FF6B6B;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.best-price .label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    opacity: 0.9;
}

.best-price .price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.best-price .store {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.8;
}

/* Stats */
.hero-stats {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px 40px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #FFD700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-visual {
        height: 350px;
        margin: 0 auto;
        max-width: 400px;
    }

    .hero-stats {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 20px 60px;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-btn {
        justify-content: center;
        width: 100%;
    }

    .hero-features {
        justify-content: center;
    }

    .hero-visual {
        height: 300px;
    }

    .hero-card {
        padding: 15px;
    }

    .card-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .card-price {
        font-size: 1.2rem;
    }

    .best-price .price {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}

        font-size: 1.8rem !important;
        margin-bottom: 15px;
        line-height: 1.3;
    }
    
    .hero-content p {
        font-size: 0.95rem !important;
        margin-bottom: 20px;
    }
    
    .hero-actions {
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .hero-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    
    .hero-trust {
        font-size: 0.8rem;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .hero-social {
        gap: 12px;
    }
    
    .hero-social a {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .hero-mockup {
        min-height: 180px;
        padding: 20px;
        font-size: 0.95rem;
    }
}
