﻿/* Index Page Styles - Mobile Optimized */

/* Base scaling for different screen sizes */
@media (max-width: 1440px) {
    :root {
        --scale-factor: 0.9;
    }

    html {
        font-size: 14px; /* Reduce from standard 16px */
    }
}

@media (max-width: 1200px) {
    :root {
        --scale-factor: 0.85;
    }

    html {
        font-size: 13px;
    }
}

/* Container adjustments for laptops */
@media (max-width: 1440px) and (min-width: 1200px) {
    .container {
        max-width: 1140px;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 1366px) and (min-width: 1200px) {
    .container {
        max-width: 1100px;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #f8fafc;
    margin-top: -90px;
    padding-top: 100px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: #b99cf4;
    padding: 8px 20px;
    border-radius: 25px;
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: #1e293b;
    line-height: 1.2; /* Konsistent line-height */
    margin-bottom: 1.5rem;
    overflow: visible; /* Säkerställer att inget klipps bort */
}

.text-gradient {
    background: linear-gradient(135deg, #b99cf4, #7bb5cf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 500px;
}

/* Hero Image Container */
.hero-image-container {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-device {
    position: relative;
    z-index: 3;
}

.hero-main-image {
    max-width: 300px;
    height: auto;
    border-radius: 25px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

/* Mascots in hero */
.mascot {
    position: absolute;
    z-index: 4;
    animation: mascotFloat 4s ease-in-out infinite;
    cursor: pointer;
}

.mascot-1 {
    top: 15%;
    left: -5%;
    animation-delay: 0s;
}

.mascot-2 {
    bottom: 20%;
    right: -8%;
    animation-delay: 2s;
}

.mascot-image {
    width: 80px;
    height: auto;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.1));
    transition: all 0.3s ease;
}

.mascot:hover .mascot-image {
    transform: scale(1.1);
    filter: drop-shadow(0 8px 25px rgba(0,0,0,0.15));
}

/* Speech bubbles */
.mascot-speech-bubble {
    position: absolute;
    background: white;
    padding: 8px 12px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 1;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    pointer-events: none;
}

.mascot-1 .mascot-speech-bubble {
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
}

.mascot-2 .mascot-speech-bubble {
    bottom: -45px;
    right: 0;
}

.mascot:hover .mascot-speech-bubble {
    opacity: 1;
}

.mascot-1:hover .mascot-speech-bubble {
    transform: translateX(-50%) translateY(-5px);
}

.mascot-2:hover .mascot-speech-bubble {
    transform: translateY(5px);
}

.mascot-speech-bubble p {
    margin: 0;
    color: #1e293b;
    font-weight: 500;
}

/* Floating Cards */
.floating-card {
    position: absolute;
    background: white;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    animation: float 3s ease-in-out infinite;
    border: 1px solid rgba(0,0,0,0.05);
}

.card-1 {
    top: 10%;
    right: -10%;
    animation-delay: 0s;
    z-index: 2;
}

.card-2 {
    bottom: 30%;
    left: -15%;
    animation-delay: 1s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
}

.card-3 {
    top: 60%;
    right: 10%;
    animation-delay: 2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
}

.card-content h6 {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    color: #1e293b;
}

.card-content p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

.meditation-icon {
    font-size: 1.5rem;
}

/* Hero Chat Mockup */
.hero-chat-mockup {
    background: white;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    width: 320px;
    max-width: 100%;
    position: relative;
    z-index: 3;
    margin: 0 auto;
    overflow: hidden;
}

.chat-header {
    background: linear-gradient(135deg, #b99cf4, #7bb5cf);
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-radius: 25px 25px 0 0;
}

.chat-avatar {
    position: relative;
}

.avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.heroavatar-img {
    width: 80px;
    height: 85px;
    object-fit: cover;
}


.heroavatarlg-img {
    width: 80px;
    height: 85px;
    object-fit: cover;
}

.online-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #4CAF50;
    border-radius: 50%;
    border: 2px solid white;
}

.chat-info h6 {
    margin: 0;
    font-weight: 600;
}

.chat-info .status {
    font-size: 0.8rem;
    opacity: 0.9;
}

.chat-messages {
    padding: 1rem;
    min-height: 150px;
    background: #f8f9fa;
}

.message {
    display: flex;
    margin-bottom: 1rem;
    align-items: flex-start;
    gap: 0.5rem;
}

.nova-message {
    justify-content: flex-start;
}

.user-message {
    justify-content: flex-end;
}

.small-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.message-content {
    background: white;
    padding: 0.8rem 1rem;
    border-radius: 15px;
    max-width: 80%;
    position: relative;
}

.nova-message .message-content {
    background: white;
    border-bottom-left-radius: 5px;
}

.user-message .message-content {
    background: #b99cf4;
    color: white;
    border-bottom-right-radius: 5px;
}

.message-content p {
    margin: 0;
    font-size: 0.9rem;
}

.message-time {
    font-size: 0.7rem;
    color: #999;
    display: block;
    margin-top: 0.3rem;
}

.user-message .message-time {
    color: rgba(255,255,255,0.7);
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 3px;
    align-items: center;
}

    .typing-indicator span {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: #999;
        animation: typing 1.4s infinite ease-in-out;
    }

        .typing-indicator span:nth-child(1) {
            animation-delay: -0.32s;
        }

        .typing-indicator span:nth-child(2) {
            animation-delay: -0.16s;
        }

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Method indicators */
.method-indicator {
    position: absolute;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    box-shadow: 0 4px 20px rgba(185, 156, 244, 0.2);
    animation: float 4s ease-in-out infinite;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #475569;
    border: 1px solid rgba(185, 156, 244, 0.2);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
}


/* Positioning around the mascot */
.indicator-1 {
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.indicator-2 {
    top: 30%;
    left: 1%;
    animation-delay: 1s;
}

.indicator-3 {
    bottom: 30%;
    right: 7%;
    animation-delay: 2s;
}

.indicator-4 {
    bottom: 15%;
    left: 10%;
    animation-delay: 3s;
}

.method-indicator.active {
    opacity: 1;
    border-color: #b99cf4;
    background: rgba(185, 156, 244, 0.1);
}

.method-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #b99cf4, #7bb5cf);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
}

.fade-in {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
}

    .fade-in.show {
        opacity: 1;
        transform: translateY(0);
    }

/* Hero CTA */
.hero-cta {
    margin-top: 2rem;
}

.hero-cta-button {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #b99cf4, #7bb5cf);
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
    margin-bottom: 1rem;
}

    .hero-cta-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 25px rgba(59, 130, 246, 0.4);
        color: white;
        text-decoration: none;
    }

/* Sections */
.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    line-height: 1.6;
}

/* How Nova Works Section */
.how-it-works-section {
    background: #fafbfc;
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

    .how-it-works-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23bfd9e0' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
        pointer-events: none;
    }

.step-card {
    position: relative;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    height: 100%;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    background: white;
}

    .step-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 0px;
        transition: all 0.3s ease;
    }

    /*  .step-card.step-1::before {
        background: linear-gradient(135deg, #10b981, #059669);
    }

    .step-card.step-2::before {
        background: linear-gradient(135deg, #b99cf4, #7bb5cf);
    }

    .step-card.step-3::before {
        background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    }

    */

    .step-card:hover::before {
        height: 100%;
        opacity: 0.05;
    }

    .step-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    }

.step-icon-container {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    z-index: 2;
}

.step-card.step-1 .step-icon-container {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
}

.step-card.step-2 .step-icon-container {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(29, 78, 216, 0.1));
}

.step-card.step-3 .step-icon-container {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(124, 58, 237, 0.1));
}

.step-card:hover .step-icon-container {
    transform: scale(1.05);
}

.step-icon {
    font-size: 2rem;
}

.step-card.step-1 .step-icon {
    color: #10b981;
}

.step-card.step-2 .step-icon {
    color: #b99cf4;
}

.step-card.step-3 .step-icon {
    color: #8b5cf6;
}

.step-card h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: #1e293b;
    position: relative;
    z-index: 2;
    letter-spacing: -0.02em;
}

.step-card p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #64748b;
    position: relative;
    z-index: 2;
    font-size: 1rem;
}

/* Chat with Nova Section */
.chat-nova-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

    .chat-nova-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23b99cf4' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
        pointer-events: none;
    }

.chat-nova-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #333;
}

.chat-nova-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-chat-now {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #b99cf4, #7bb5cf);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    margin-bottom: 2rem;
}

    .btn-chat-now:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
        color: white;
        text-decoration: none;
    }

.chat-features {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 2rem;
}

.feature-point {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #666;
}

    .feature-point i {
        color: #b99cf4;
        font-size: 1.2rem;
    }

/* Chat Mockup */
.chat-demo-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chat-mockup {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    width: 300px;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.chat-input-demo {
    display: flex;
    padding: 1rem;
    background: white;
    align-items: center;
    gap: 0.5rem;
}

    .chat-input-demo input {
        flex: 1;
        border: 1px solid #ddd;
        border-radius: 25px;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
        background: #f8f9fa;
    }

/* Floating Testimonials */
.floating-testimonial {
    position: absolute;
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    animation: float 6s ease-in-out infinite;
    z-index: 1;
}

.testimonial-1 {
    top: 20%;
    left: -10%;
    animation-delay: 0s;
}

.testimonial-2 {
    bottom: 20%;
    right: -10%;
    animation-delay: 3s;
}

.testimonial-content {
    text-align: center;
}

.stars {
    color: #ffc107;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.testimonial-content p {
    font-size: 0.8rem;
    margin: 0.5rem 0;
    color: #333;
}

.testimonial-content small {
    color: #666;
    font-style: italic;
}

.feature-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Expert Section */
.expert-features-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.expert-feature-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(185, 156, 244, 0.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .expert-feature-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        /*background: linear-gradient(135deg, #b99cf4, #7bb5cf);
        transition: height 0.3s ease;*/
    }

    .expert-feature-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 30px rgba(185, 156, 244, 0.15);
    }

        .expert-feature-card:hover::before {
            height: 100%;
            opacity: 0.05;
        }

    .expert-feature-card i {
        font-size: 2.5rem;
        color: #b99cf4;
        margin-bottom: 1rem;
        display: block;
    }

    .expert-feature-card h6 {
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: #1e293b;
        font-size: 1.1rem;
    }

    .expert-feature-card p {
        color: #64748b;
        margin: 0;
        font-size: 0.95rem;
        line-height: 1.4;
    }

.expert-bottom-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

    .expert-bottom-features .expert-feature {
        display: flex;
        align-items: center;
        gap: 0.8rem;
        background: rgba(185, 156, 244, 0.1);
        padding: 1rem 1.5rem;
        border-radius: 25px;
        border: 1px solid rgba(185, 156, 244, 0.2);
    }

        .expert-bottom-features .expert-feature i {
            color: #10b981;
            font-size: 1.2rem;
        }

        .expert-bottom-features .expert-feature span {
            color: #1e293b;
            font-weight: 500;
        }

/* Mobile responsive */
@media (max-width: 768px) {
    .expert-features-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .expert-feature-card {
        padding: 1.5rem 1rem;
    }

        .expert-feature-card i {
            font-size: 2rem;
        }

    .expert-bottom-features {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .expert-features-row {
        grid-template-columns: 1fr;
    }
}

/* Enhanced Features Section */
#funktioner {
    padding: 80px 0;
}

.enhanced-feature-card {
    padding: 2.5rem 2rem;
    border-radius: 20px;
    background: white;
    height: 100%;
    transition: all 0.4s ease;
    text-align: center;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

    .enhanced-feature-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 0px;
        transition: all 0.3s ease;
    }

    .enhanced-feature-card:hover::before {
        height: 100%;
        opacity: 0.05;
    }
    /*
    .enhanced-feature-card.security::before {
        background: linear-gradient(135deg, #10b981, #059669);
    }

    .enhanced-feature-card.availability::before {
        background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    }

    .enhanced-feature-card.expertise::before {
        background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    }

    .enhanced-feature-card.affordability::before {
        background: linear-gradient(135deg, #f59e0b, #d97706);
    }

    .enhanced-feature-card.personalization::before {
        background: linear-gradient(135deg, #ef4444, #dc2626);
    }

    .enhanced-feature-card.safety::before {
        background: linear-gradient(135deg, #06b6d4, #0891b2);
    }
        */
    .enhanced-feature-card:hover {
        box-shadow: 0 20px 40px rgba(16, 239, 245, 0.2);
    }

    .enhanced-feature-card.security:hover {
        box-shadow: 0 20px 40px rgba(16, 185, 129, 0.2);
    }

    .enhanced-feature-card.availability:hover {
        box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
    }

    .enhanced-feature-card.expertise:hover {
        box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
    }

    .enhanced-feature-card.affordability:hover {
        box-shadow: 0 20px 40px rgba(245, 158, 11, 0.2);
    }

    .enhanced-feature-card.personalization:hover {
        box-shadow: 0 20px 40px rgba(239, 68, 68, 0.2);
    }

.feature-icon-container {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.enhanced-feature-card:hover .feature-icon-container {
    transform: scale(1.05);
}

.enhanced-feature-card.security .feature-icon-container {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
}

.enhanced-feature-card.availability .feature-icon-container {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(29, 78, 216, 0.1));
}

.enhanced-feature-card.expertise .feature-icon-container {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(124, 58, 237, 0.1));
}

.enhanced-feature-card.affordability .feature-icon-container {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.1));
}

.enhanced-feature-card.personalization .feature-icon-container {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
}

.enhanced-feature-card.safety .feature-icon-container {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(8, 145, 178, 0.1));
}

.enhanced-feature-card .feature-icon {
    font-size: 2rem;
}

.enhanced-feature-card.security .feature-icon {
    color: #10b981;
}

.enhanced-feature-card.availability .feature-icon {
    color: #b99cf4;
}

.enhanced-feature-card.expertise .feature-icon {
    color: #8b5cf6;
}

.enhanced-feature-card.affordability .feature-icon {
    color: #f59e0b;
}

.enhanced-feature-card.personalization .feature-icon {
    color: #ef4444;
}

.enhanced-feature-card.safety .feature-icon {
    color: #06b6d4;
}

.enhanced-feature-card h3 {
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.enhanced-feature-card p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.feature-badges {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.mini-badge {
    background: #f1f5f9;
    color: #475569;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
}

.enhanced-feature-card.security .mini-badge {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
    border-color: rgba(16, 185, 129, 0.2);
}

.enhanced-feature-card.availability .mini-badge {
    background: rgba(59, 130, 246, 0.1);
    color: #1e3a8a;
    border-color: rgba(59, 130, 246, 0.2);
}

.enhanced-feature-card.expertise .mini-badge {
    background: rgba(139, 92, 246, 0.1);
    color: #581c87;
    border-color: rgba(139, 92, 246, 0.2);
}

.enhanced-feature-card.affordability .mini-badge {
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
    border-color: rgba(245, 158, 11, 0.2);
}

.enhanced-feature-card.personalization .mini-badge {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
    border-color: rgba(239, 68, 68, 0.2);
}

.enhanced-feature-card.safety .mini-badge {
    background: rgba(6, 182, 212, 0.1);
    color: #155e75;
    border-color: rgba(6, 182, 212, 0.2);
}

/* Usage Guide Section */
.usage-guide-section {

}

.usage-guide-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 8px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
}

.guide-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.guide-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .guide-icon.green {
        background: rgba(34, 197, 94, 0.1);
        color: #16a34a;
    }

    .guide-icon.orange {
        background: rgba(249, 115, 22, 0.1);
        color: #ea580c;
    }

    .guide-icon i {
        font-size: 1.5rem;
    }

.guide-content h5 {
    color: #333;
    font-weight: 700;
    margin-bottom: 1rem;
}

.guide-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guide-content li {
    color: #666;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
    padding-left: 1.5rem;
}

    .guide-content li:before {
        content: "•";
        color: var(--primary-color, #5b8c85);
        font-weight: bold;
        position: absolute;
        left: 0;
    }

    .guide-content li:last-child {
        border-bottom: none;
    }

.crisis-info {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #f1f5f9;
}

.crisis-alert {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

    .crisis-alert i {
        color: #dc2626;
        font-size: 1.5rem;
        flex-shrink: 0;
        margin-top: 0.2rem;
    }

    .crisis-alert strong {
        color: #991b1b;
        display: block;
        margin-bottom: 0.5rem;
    }

    .crisis-alert p {
        color: #7f1d1d;
        margin: 0;
        line-height: 1.5;
    }

    /* FAQ Section */
    .faq-item {
    border: none !important;
    margin-bottom: 1rem;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

    .faq-item .accordion-button {
        background-color: white;
        border: none;
        padding: 1.5rem;
        font-weight: 600;
        color: #333;
        box-shadow: none;
        border-radius: 12px !important;
    }

        .faq-item .accordion-button:not(.collapsed) {
            background-color: #f8f9fa;
            color: #b99cf4;
        }

        .faq-item .accordion-button:focus {
            box-shadow: none;
            border: none;
        }

        .faq-item .accordion-button::after {
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
            transition: transform 0.3s ease;
        }

        .faq-item .accordion-button:not(.collapsed)::after {
            transform: rotate(180deg);
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23b99cf4'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
        }

    .faq-item .accordion-body {
        padding: 0 1.5rem 1.5rem 1.5rem;
        background-color: white;
    }

.faq-contact-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.faq-item:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

.faq-item .accordion-button:hover {
    background-color: #f8f9fa;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #bfd9e0 0%, #dad9f8 100%);
    color: #1e293b;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

    .cta-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
        pointer-events: none;
    }

.cta-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.cta-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: #475569;
}

.cta-main-button {
    background: white;
    color: #1e293b;
    padding: 18px 36px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

    .cta-main-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
        color: #1e293b;
        text-decoration: none;
        background: rgba(255, 255, 255, 0.95);
    }

/* Rotating words */
.rotating-words {
    position: relative !important;
    height: 1.2em !important;
    overflow: visible !important;
    vertical-align: baseline !important;
    line-height: 1 !important;
    text-align: center !important;
}

.word {
    position: absolute !important;
    width: auto !important;
    height: 100% !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #b99cf4, #7bb5cf) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    opacity: 0 !important;
    transform: rotateX(90deg) !important;
    transition: all 0.8s ease !important;
    white-space: nowrap !important;
    top: 6px !important;
    left: 10px !important;
    text-align: left !important;
    display: inline-block !important;
    color: transparent !important; /* Backup för webkit */
    -moz-background-clip: text !important; /* Firefox support */
}


    .word.active {
        opacity: 1 !important;
        transform: rotateX(0deg) !important;
    }

    .word.leaving {
        opacity: 0 !important;
        transform: rotateX(-90deg) !important;
    }

.mobile-break {
    display: none;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes mascotFloat {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: 100px;
}

.nav-scroll-link.active {
    font-weight: 600;
}

.dropdown-item.nav-scroll-link.active {
    background: linear-gradient(135deg, #b99cf4, #7bb5cf);
    color: #ffff !important;
}

/* MOBILE RESPONSIVE STYLES */

/* Prevent horizontal overflow */
@media (max-width: 767px) {
    .mobile-break {
        display: block;
    }

    body {
        overflow-x: hidden;
    }

    .hero-section,
    .chat-nova-section,
    .how-it-works-section {
        overflow-x: hidden;
    }

    .hero-section {
        margin-top: -70px;
        padding-top: 20px;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }


    /* Mobile Mascot Styling */
    .mobile-mascot {
        margin-bottom: 1.5rem;
    }

    .mobile-mascot-img {
        width: 100px;
    }

    /* Hide desktop version completely on mobile */
    .hero-image-container {
        display: none !important;
    }

    /* Hide elements that cause overflow on mobile */
    .method-indicator,
    .mascot,
    .floating-card {
        display: none !important;
    }

    /* Center everything on mobile */
    .hero-section .col-lg-6 {
        text-align: center;
    }

    .hero-badge,
    .hero-title,
    .hero-subtitle {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    /* Typography adjustments */
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        max-width: 100%;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 6px 14px;
        margin-bottom: 1rem;
    }

    /* CTA Button mobile optimization */
    .hero-cta-button,
    .btn-chat-now {
        width: 100%;
        justify-content: center;
        padding: 1rem 2rem;
        font-size: 1rem;
        margin-bottom: 1rem;
    }


    /* CTA Button mobile optimization */
    .hero-cta-button,
    .btn-chat-now {
        width: 100%;
        justify-content: center;
        padding: 1rem 2rem;
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .rotating-words {
        position: relative !important;
        display: inline !important; /* Behåll inline */
        width: 200px !important;
        text-align: center !important;
        margin: 0 auto; /* Centrera containern */
    }

    .word {
        text-align: center !important;
        left: 50% !important;
        transform: translateX(-50%) rotateX(90deg) !important;
    }

        .word.active {
            transform: translateX(-50%) rotateX(0deg) !important;
        }

        .word.leaving {
            transform: translateX(-50%) rotateX(-90deg) !important;
        }
}
/* Small mobile devices */
@media (max-width: 480px) {
    .hero-section .col-lg-6 {
        text-align: left; /* Ändra från center */
    }

    .hero-badge,
    .hero-title,
    .hero-subtitle {
        text-align: left; /* Ändra från center */
        margin-left: 0;
        margin-right: 0;
    }

    .hero-cta-button {
        width: 100%;
        justify-content: center; /* Behåll knappen centrerad */
    }
    .min-vh-100 {
        min-height: 30vh !important;
    }
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.4;
    }

    .rotating-words {
        min-width: 160px;
        height: 1.6em !important;
    }

    .word {
        font-size: 0.85em !important; /* Ännu mindre för mycket små skärmar */
        top: 0px !important;
        left: 10px !important;
    }
}

/* Section spacing mobile fixes */
@media (max-width: 767px) {
    .hero-section .col-lg-6 {
        text-align: left; /* Ändra från center */
    }

    .hero-badge,
    .hero-title,
    .hero-subtitle {
        text-align: left; /* Ändra från center */
        margin-left: 0;
        margin-right: 0;
    }

    .hero-cta-button {
        width: 100%;
        justify-content: center; /* Behåll knappen centrerad */
    }
    .min-vh-100 {
        min-height: 30vh !important;
    }
    .word {
        top: 4px !important;
        left: 5px !important;
    }
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.3; /* Lite mer plats på mobil */
        margin-bottom: 1rem;
        text-align: center;
    }

    .rotating-words {
        height: 1.5em !important; /* Extra höjd på mobil */
        min-width: 180px; /* Anpassad bredd för mobil */
        vertical-align: baseline !important
    }
    
    .how-it-works-section,
    .chat-nova-section,
    .expert-section,
    #funktioner {
        padding: 60px 0 40px;
    }

    .usage-guide-section {
        padding: 40px 0;
    }

    /* Cards mobile optimization */
    .step-card,
    .enhanced-feature-card,
    .usage-guide-card {
        margin-bottom: 1.5rem;
        padding: 1.5rem;
    }

    /* Section titles mobile */
    .section-title {
        font-size: 2rem;
        text-align: center;
    }

    .section-subtitle {
        font-size: 1rem;
        text-align: center;
    }

    .chat-nova-title {
        font-size: 2rem;
        text-align: center;
    }

    .chat-nova-subtitle {
        font-size: 1rem;
        text-align: center;
    }
}

/* FAQ mobile improvements */
@media (max-width: 767px) {
    .faq-item .accordion-button {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .faq-item .accordion-body {
        padding: 0 1rem 1rem;
    }
}

/* Chat demo mobile optimization */
@media (max-width: 767px) {
    .chat-demo-container {
        margin: 2rem 0;
    }

    .floating-testimonial {
        position: static !important;
        margin: 1rem auto;
        animation: none;
        max-width: 250px;
    }

    .testimonial-1,
    .testimonial-2 {
        display: block;
        position: static;
        margin: 1rem auto;
    }
}

/* Expert section mobile */
@media (max-width: 767px) {
    .expert-badges {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .expert-content {
        padding-left: 0;
        margin-top: 2rem;
        text-align: center;
    }

    .expert-features {
        align-items: center;
        text-align: center;
    }
}

/* Guide section mobile */
@media (max-width: 767px) {
    .guide-item {
        flex-direction: column;
        text-align: left;
        gap: 1rem;
    }

    .crisis-alert {
        flex-direction: column;
        text-align: center;
    }

    .usage-guide-card {
        padding: 2rem 1.5rem;
    }
}

/* Navigation mobile improvements */
@media (max-width: 767px) {
    .chat-features {
        margin-top: 1.5rem;
    }

    .feature-point {
        justify-content: center;
        text-align: center;
    }
}

/* Feature cards mobile */
@media (max-width: 767px) {
    .enhanced-feature-card {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }

    .feature-badges {
        justify-content: center;
    }
}

/* Touch-friendly buttons */
@media (max-width: 767px) {
    .btn,
    .cta-button,
    .hero-cta-button,
    .cta-main-button {
        min-height: 44px;
        padding: 12px 24px;
    }

    .cta-main-button {
        width: 100%;
        justify-content: center;
    }
}

/* Improved text readability */
@media (max-width: 767px) {
    .section-subtitle,
    .chat-nova-subtitle,
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    .feature-card p,
    .step-card p,
    .enhanced-feature-card p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}
/* Hide entire chat mockup on mobile */
@media (max-width: 767px) {
    .hero-chat-mockup,
    .chat-mockup,
    .chat-demo-container {
        display: none !important;
    }

    /* Adjust hero layout when chat is hidden */
    .hero-image-container {
        display: none;
    }

    /* Make hero section single column on mobile */
    .hero-section .row {
        text-align: center;
    }

    .hero-section .col-lg-6 {
        order: 1 !important;
        text-align: center;
    }

    /* Center hero content when image is hidden */
    .hero-title,
    .hero-subtitle,
    .hero-badge {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-subtitle {
        max-width: 100%;
    }
}

/* Also hide on small tablets in portrait mode */
@media (max-width: 1024px) and (orientation: portrait) {
    .hero-chat-mockup {
        width: 280px; /* Make smaller but still visible */
    }
}

/* Optional: Show a simple illustration or icon instead */
@media (max-width: 767px) {
    .mobile-hero-icon {
        display: block;
        text-align: center;
        margin: 2rem 0;
        font-size: 4rem;
        color: #b99cf4;
    }
}

/* Dark mode support */
.dark-mode .hero-section,
.dark-mode .how-it-works-section,
.dark-mode .expert-section,
.dark-mode .chat-nova-section,
.dark-mode .usage-guide-section,
.dark-mode .py-5,
.dark-mode profile-card {
    background: #222831 !important;
}

.dark-mode .crisis-alert strong,
.dark-mode .crisis-alert p {
    color: #e78383 !important;
}

.dark-mode .step-card,
.dark-mode .expert-badge,
.dark-mode .usage-guide-card,
.dark-mode .enhanced-feature-card,
.dark-mode .hero-chat-mockup,
.dark-mode .chat-mockup {
    background: #393e46 !important;
    border-color: #555 !important;
}

    .dark-mode .btn-primary {
        background: #b99cf4 !important;
        border-color: #a67ff5 !important;
        color: #222831 !important;
    }
        .dark-mode .btn-primary:hover {
            background: #a67ff5 !important;
            border-color: #8e63e6 !important;
            color: #222831 !important;
        }

    .dark-mode .step-card h4,
    .dark-mode .expert-badge h6,
    .dark-mode .guide-content h5,
    .dark-mode .enhanced-feature-card h3,
    .dark-mode .section-title,
    .dark-mode .chat-nova-title,
    .dark-mode .hero-title,
    .dark-mode .expert-feature,
    .dark-mode .expert-bottom-features,
    .dark-mode .expert-bottom-features .expert-feature span {
        color: #f8f9fa !important;
    }

    .dark-mode .step-card p,
    .dark-mode .expert-badge p,
    .dark-mode .guide-content li,
    .dark-mode .enhanced-feature-card p,
    .dark-mode .section-subtitle,
    .dark-mode .chat-nova-subtitle,
    .dark-mode .hero-subtitle,
    .dark-mode .expert-description {
        color: #ccc !important;
    }

.dark-mode .faq-item .accordion-button {
    background-color: #393e46 !important;
    color: #f8f9fa !important;
}

    .dark-mode .faq-item .accordion-button:not(.collapsed) {
        background-color: #222831 !important;
        color: #b99cf4 !important;
    }

.dark-mode .faq-item .accordion-body {
    background-color: #393e46 !important;
    color: #f8f9fa !important;
}

.dark-mode .faq-contact-card {
    background: linear-gradient(135deg, #393e46 0%, #222831 100%) !important;
    color: #f8f9fa !important;
}

.dark-mode .faq-item {
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

    .dark-mode .faq-item .accordion-button:hover {
        background-color: #222831 !important;
    }

.dark-mode .crisis-alert {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}
.dark-mode .expert-feature-card:hover {
    box-shadow: 0 20px 40px rgba(185, 156, 244, 0.2);
}
.dark-mode .expert-feature-card,
.dark-mode .expert-feature-card h6{
    border-color: #555 !important;
    background: #393e46 !important;
    color: #f8f9fa !important;
}

.dark-mode .enhanced-feature-card.security .mini-badge {
    color: #a2e8d4;
}
.dark-mode .enhanced-feature-card.availability .mini-badge {
    color: #b0c4f6;
}
.dark-mode .enhanced-feature-card.expertise .mini-badge {
    color: #d3b4f9;
}
.dark-mode .enhanced-feature-card.affordability .mini-badge {
    color: #f3d8a8;
}
.dark-mode .enhanced-feature-card.personalization .mini-badge {
    color: #f7a8a8;
}
.dark-mode .enhanced-feature-card.safety .mini-badge {
    color: #9be6f7;
}

.dark-mode .floating-testimonial {
    background: #393e46 !important;
}

.dark-mode .testimonial-content p {
    color: #f8f9fa !important;
}

.dark-mode .chat-messages {
    background: #222831 !important;
}
.dark-mode .chat-input-demo {
    background: #393e46 !important;
    border-color: #555 !important;
    color: #f8f9fa !important;
}


.dark-mode .nova-message .message-content {
    background: #393e46 !important;
    color: #f8f9fa !important;
}

.desktop-mascot {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
    z-index: 3;
}

.desktop-mascot-img {
    width: 300px;
    height: auto;
    max-width: 100%;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1));
    animation: mascotFloat 4s ease-in-out infinite;
    transition: all 0.3s ease;
}

    .desktop-mascot-img:hover {
        transform: scale(1.05);
        filter: drop-shadow(0 25px 50px rgba(0,0,0,0.15));
    }

/* Mobile Mascot Styling */
.mobile-mascot {
    text-align: center;
    margin-bottom: 2rem;
}

.mobile-mascot-img {
    width: 120px;
    height: auto;
    max-width: 100%;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}