/* ============================================
   MODERN OVERLAY - Clean & Correct Version
   Transforms existing Responder Video site
   ============================================ */

/* Modern Color Palette */
:root {
    --modern-primary: #0A1628 !important;
    --modern-secondary: #10B981 !important;
    --modern-accent: #0EA5E9 !important;
}

/* ============================================
   NAVIGATION - Sticky & Transparent
   ============================================ */

.navbar-container {
    position: fixed !important;
    background: linear-gradient(135deg, #0A1628 0%, #1E293B 100%) !important;
    backdrop-filter: none !important;
    transition: all 0.3s ease !important;
    z-index: 1000 !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15) !important;
}

.navbar-container.scrolled {
    background: linear-gradient(135deg, #0A1628 0%, #1E293B 100%) !important;
    backdrop-filter: blur(15px) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2) !important;
}

.navbar-container.scrolled .logo-img {
    height: 45px !important;
}

/* Navbar text - white color */
.navbar-container nav ul li a,
.navbar-container .nav-links a,
.navbar-container .dropdown-toggle {
    color: #FFFFFF !important;
}

/* Navbar links hover */
.navbar-container nav ul li a:hover,
.navbar-container .nav-links a:hover {
    color: #10B981 !important;
}

/* CTA button styling */
.navbar-container .cta-btn {
    background: linear-gradient(135deg, #10B981, #0EA5E9) !important;
    color: white !important;
}

.navbar-container .cta-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
}

/* Login button */
.navbar-container .btn-login {
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.navbar-container .btn-login:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #10B981 !important;
    color: #10B981 !important;
}

/* Dropdown menu */
.dropdown-menu {
    background: #1E293B !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.dropdown-menu a {
    color: #FFFFFF !important;
}

.dropdown-menu a:hover {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #10B981 !important;
}

/* ============================================
   HERO - Full Screen with Background Image
   ============================================ */

.hero {
    min-height: 100vh !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: none !important;
    padding: 0 !important;
}

/* Background image */
.hero::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-image: url('hero-bg.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    z-index: 0 !important;
    filter: brightness(0.6) !important;
}

.hero-content {
    position: relative !important;
    z-index: 2 !important;
    max-width: 1400px !important;
    padding: 0 2rem !important;
}

.hero-text {
    max-width: 800px !important;
    margin: 0 auto !important;
    text-align: center !important;
}

.hero-text h1 {
    color: #FFFFFF !important;
    font-size: clamp(3rem, 7vw, 5.5rem) !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    margin-bottom: 2rem !important;
    letter-spacing: -0.02em !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
}

.hero-text p {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: clamp(1.15rem, 2.5vw, 1.5rem) !important;
    line-height: 1.7 !important;
    margin-bottom: 3rem !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

/* Hide the SVG illustration */
.hero-visual {
    display: none !important;
}

/* Update buttons */
.hero-buttons {
    display: flex !important;
    gap: 1.5rem !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
}

.hero-buttons .btn-primary {
    background: #10B981 !important;
    padding: 1.2rem 3.5rem !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4) !important;
    transition: all 0.3s ease !important;
    border: none !important;
}

.hero-buttons .btn-primary:hover {
    background: #0D9668 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.5) !important;
}

/* ============================================
   SECTIONS - Modern Spacing & Backgrounds
   ============================================ */

.features-grid,
.use-cases-grid,
.pricing-tiers {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 6rem 2rem !important;
}

.feature-card,
.use-case-card,
.pricing-card {
    background: #FFFFFF !important;
    border-radius: 20px !important;
    padding: 2.5rem !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.feature-card:hover,
.use-case-card:hover {
    transform: translateY(-12px) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12) !important;
    border-color: #10B981 !important;
}

/* Feature icons - modern gradient backgrounds */
.feature-icon {
    font-size: 3.5rem !important;
    margin-bottom: 1.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 85px !important;
    height: 85px !important;
    background: linear-gradient(135deg, #10B981 0%, #0EA5E9 100%) !important;
    border-radius: 20px !important;
}

/* ============================================
   PRICING - Premium Cards
   ============================================ */

.pricing-card {
    position: relative !important;
    overflow: hidden !important;
}

.pricing-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 5px !important;
    background: linear-gradient(90deg, #10B981, #0EA5E9) !important;
    transform: scaleX(0) !important;
    transition: transform 0.4s ease !important;
}

.pricing-card:hover::before {
    transform: scaleX(1) !important;
}

.pricing-card.recommended {
    transform: scale(1.05) !important;
    box-shadow: 0 25px 60px rgba(16, 185, 129, 0.25) !important;
    border: 2px solid #10B981 !important;
}

/* ============================================
   TYPOGRAPHY - Modern & Bold
   ============================================ */

h1, h2, h3 {
    font-weight: 800 !important;
    letter-spacing: -0.01em !important;
}

h2 {
    font-size: clamp(2.2rem, 4vw, 3.5rem) !important;
    color: #0A1628 !important;
    margin-bottom: 1rem !important;
}

h3 {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem) !important;
    color: #0A1628 !important;
}

/* ============================================
   BUTTONS - Consistent Modern Style
   ============================================ */

.btn-primary,
.btn-submit {
    background: #10B981 !important;
    color: #FFFFFF !important;
    border: none !important;
    padding: 1rem 2.5rem !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 1.05rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3) !important;
    cursor: pointer !important;
}

.btn-primary:hover,
.btn-submit:hover {
    background: #0D9668 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4) !important;
}

/* ============================================
   FOOTER - Dark Modern
   ============================================ */

#main-footer {
    background: #0A1628 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 4rem 0 2rem !important;
}

#main-footer h4 {
    color: #FFFFFF !important;
    font-weight: 700 !important;
}

#main-footer a {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: color 0.3s ease !important;
}

#main-footer a:hover {
    color: #10B981 !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-top: 3rem !important;
    padding-top: 2rem !important;
}

/* ============================================
   ANIMATIONS - Smooth Entrances
   ============================================ */

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

.feature-card,
.use-case-card,
.pricing-card {
    animation: fadeInUp 0.6s ease both !important;
}

.feature-card:nth-child(1) { animation-delay: 0.1s !important; }
.feature-card:nth-child(2) { animation-delay: 0.2s !important; }
.feature-card:nth-child(3) { animation-delay: 0.3s !important; }
.feature-card:nth-child(4) { animation-delay: 0.4s !important; }
.feature-card:nth-child(5) { animation-delay: 0.5s !important; }
.feature-card:nth-child(6) { animation-delay: 0.6s !important; }

/* ============================================
   RESPONSIVE - Mobile Optimizations
   ============================================ */

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.5rem !important;
    }
    
    .hero-text p {
        font-size: 1.1rem !important;
    }
    
    .hero-buttons {
        flex-direction: column !important;
        width: 100% !important;
    }
    
    .hero-buttons .btn-primary {
        width: 100% !important;
        text-align: center !important;
    }
    
    .feature-icon {
        width: 70px !important;
        height: 70px !important;
        font-size: 3rem !important;
    }
}

/* ============================================
   FIX: Remove any conflicting styles
   ============================================ */

body {
    padding-top: 0 !important;
}

/* Fix: Prevent content overlap with fixed navbar */
.hero {
    padding-top: 120px !important;
}

@media (max-width: 768px) {
    .hero {
        padding-top: 100px !important;
    }
}

/* ============================================
   CUSTOMER LOGOS - Scrolling Marquee
   ============================================ */

.customer-logos-section {
    padding: 4rem 0 !important;
    background: #F8FAFC !important;
    overflow: hidden !important;
}

.logos-title {
    text-align: center !important;
    font-size: 1.2rem !important;
    color: #64748B !important;
    font-weight: 600 !important;
    margin-bottom: 3rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.logos-marquee {
    overflow: hidden !important;
    position: relative !important;
}

.logos-track {
    display: flex !important;
    gap: 4rem !important;
    animation: scroll 40s linear infinite !important;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.logo-item {
    flex-shrink: 0 !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #94A3B8 !important;
    padding: 1.5rem 3rem !important;
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease !important;
}

.logo-item:hover {
    color: #10B981 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
}

/* ============================================
   STATS SECTION - Animated Counters
   ============================================ */

.stats-section-new {
    padding: 6rem 0 !important;
    background: linear-gradient(135deg, #0A1628 0%, #1E293B 100%) !important;
}

.section-title-center {
    text-align: center !important;
    font-size: clamp(2rem, 4vw, 3rem) !important;
    color: #FFFFFF !important;
    margin-bottom: 4rem !important;
    font-weight: 800 !important;
}

.stats-grid-new {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 3rem !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

.stat-card-new {
    text-align: center !important;
    padding: 1.5rem 1rem !important;
}

.stat-inline {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
}

.stat-label-inline {
    font-size: 1.15rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500 !important;
    order: 1 !important;
}

.stat-number-inline {
    font-size: clamp(3rem, 5vw, 4.5rem) !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    background: linear-gradient(135deg, #10B981, #0EA5E9) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    display: inline-block !important;
    order: 2 !important;
}

/* Keep old classes for compatibility */
.stat-label-top {
    font-size: 1.1rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500 !important;
    margin-bottom: 1rem !important;
    line-height: 1.4 !important;
}

.stat-number-large {
    font-size: clamp(2.5rem, 4vw, 3.5rem) !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    background: linear-gradient(135deg, #10B981, #0EA5E9) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    display: inline-block !important;
}

.stat-unit {
    font-size: 0.6em !important;
    margin-left: 0.2rem !important;
}

/* Old stat-label (not used anymore but keep for compatibility) */
.stat-label {
    font-size: 1.1rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500 !important;
    margin-top: 0.5rem !important;
    line-height: 1.4 !important;
}

/* ============================================
   TESTIMONIALS - Customer Quotes
   ============================================ */

.testimonials-section {
    padding: 6rem 0 !important;
    background: #FFFFFF !important;
}

.section-header-center {
    text-align: center !important;
    margin-bottom: 4rem !important;
}

.section-header-center h2 {
    font-size: clamp(2rem, 4vw, 3rem) !important;
    color: #0A1628 !important;
    margin-bottom: 1rem !important;
    font-weight: 800 !important;
}

.section-header-center p {
    font-size: 1.2rem !important;
    color: #64748B !important;
}

.testimonials-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
    gap: 2.5rem !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
}

.testimonial-card {
    background: #F8FAFC !important;
    padding: 3rem 2.5rem !important;
    border-radius: 20px !important;
    position: relative !important;
    transition: all 0.4s ease !important;
    border: 2px solid transparent !important;
}

.testimonial-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15) !important;
    border-color: #10B981 !important;
}

.quote-mark {
    font-size: 5rem !important;
    line-height: 1 !important;
    color: #10B981 !important;
    opacity: 0.2 !important;
    position: absolute !important;
    top: 1rem !important;
    left: 2rem !important;
    font-family: Georgia, serif !important;
}

.testimonial-text {
    font-size: 1.15rem !important;
    line-height: 1.8 !important;
    color: #334155 !important;
    margin-bottom: 2rem !important;
    position: relative !important;
    z-index: 1 !important;
}

.testimonial-author {
    display: flex !important;
    align-items: center !important;
    gap: 1.2rem !important;
}

.author-avatar {
    width: 60px !important;
    height: 60px !important;
    background: linear-gradient(135deg, #10B981, #0EA5E9) !important;
    color: white !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    flex-shrink: 0 !important;
}

.author-info {
    flex: 1 !important;
}

.author-name {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #0A1628 !important;
    margin-bottom: 0.3rem !important;
}

.author-title {
    font-size: 0.95rem !important;
    color: #64748B !important;
}

/* ============================================
   RESPONSIVE - Mobile Testimonials & Stats
   ============================================ */

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr !important;
    }
    
    .stats-grid-new {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important;
    }
    
    .stat-number-large {
        font-size: 3rem !important;
    }
    
    .logos-track {
        gap: 2rem !important;
    }
    
    .logo-item {
        font-size: 1.2rem !important;
        padding: 1rem 2rem !important;
    }
}


/* ============================================
   FIX: Reseller CTA - White text
   ============================================ */

.reseller-cta {
    background: linear-gradient(135deg, #0A1628, #1E293B) !important;
    padding: 5rem 0 !important;
}

.reseller-cta h2,
.reseller-cta p {
    color: #FFFFFF !important;
}

.reseller-cta h2 {
    font-size: clamp(2rem, 4vw, 3rem) !important;
    margin-bottom: 1.5rem !important;
    font-weight: 800 !important;
}

.reseller-cta p {
    font-size: 1.2rem !important;
    margin-bottom: 2.5rem !important;
    opacity: 0.95 !important;
}

.reseller-cta .cta-buttons {
    display: flex !important;
    gap: 1.5rem !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
}

.reseller-cta .btn-secondary {
    background: transparent !important;
    color: #FFFFFF !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    padding: 1rem 2.5rem !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
}

.reseller-cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #FFFFFF !important;
}

.reseller-cta-content {
    text-align: center !important;
}

/* Stats - Text först, siffra efter */
.stat-label-top {
    font-size: 1.15rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500 !important;
    margin-bottom: 1rem !important;
    line-height: 1.4 !important;
    display: block !important;
}

/* Stats - Text först, siffra efter (vertikal layout) */
.stat-label-top {
    font-size: 1.15rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500 !important;
    margin-bottom: 1rem !important;
    line-height: 1.4 !important;
    display: block !important;
}

/* Kompaktare stats för att få plats 4 på rad */
.stat-label-top {
    font-size: 1rem !important;
    margin-bottom: 0.75rem !important;
}

.stats-grid-new {
    gap: 1.5rem !important;
}

/* Typing animation in stats section */
.typing-tagline-stats {
    margin-top: 3rem !important;
    text-align: center !important;
    font-size: clamp(2rem, 4vw, 3rem) !important;
}

.typing-word {
    position: relative !important;
    display: inline-block !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #10B981, #0EA5E9) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.typing-word::after {
    content: '|' !important;
    background: linear-gradient(135deg, #10B981, #0EA5E9) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    animation: blink 0.7s infinite !important;
    margin-left: 2px !important;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Old hero typing styles - remove these */
.typing-tagline {
    display: none !important;
}

/* Extra säkerhet för att hero-text inte överlappar navbar */
.hero-content {
    padding-top: 2rem !important;
}

@media (max-width: 768px) {
    .hero-content {
        padding-top: 1rem !important;
    }
}

/* Fix: More space for Boka demo button on all languages */
.hero-buttons {
    margin-bottom: 3rem !important;
}

/* Fix: Smaller text in use-case cards to prevent overflow */
.use-case-card h3 {
    font-size: 1.1rem !important;
    line-height: 1.3 !important;
    min-height: 2.6rem !important;
}

.use-case-card p {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
}

@media (max-width: 768px) {
    .use-case-card h3 {
        min-height: auto !important;
        font-size: 1rem !important;
    }
    
    .use-case-card p {
        font-size: 0.85rem !important;
    }
}

/* ============================================
   ABOUT RESPONDER VIDEO SECTION
   ============================================ */

.about-rv-section {
    padding: 6rem 0 !important;
    background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%) !important;
}

.about-rv-content {
    max-width: 1200px !important;
    margin: 0 auto !important;
}

.about-rv-intro {
    text-align: center !important;
    max-width: 800px !important;
    margin: 0 auto 4rem !important;
}

.about-rv-intro p {
    font-size: 1.2rem !important;
    line-height: 1.8 !important;
    color: #334155 !important;
    margin-bottom: 1.5rem !important;
}

.vision-text {
    font-size: 1.3rem !important;
    font-weight: 600 !important;
    color: #0A1628 !important;
    font-style: italic !important;
}

.about-rv-values {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 2.5rem !important;
    margin-top: 3rem !important;
}

.value-card {
    text-align: center !important;
    padding: 2.5rem 2rem !important;
    background: white !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.value-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.15) !important;
}

.value-icon {
    width: 100px !important;
    height: 100px !important;
    margin: 0 auto 1.5rem !important;
    color: #10B981 !important;
}

.value-icon svg {
    width: 100% !important;
    height: 100% !important;
}

.value-card h3 {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: #0A1628 !important;
    margin-bottom: 1rem !important;
}

.value-card p {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    color: #64748B !important;
}

/* Animated icon effects */
.animated-icon {
    animation: fadeInScale 0.6s ease both !important;
}

.value-card:hover .checkmark {
    animation: drawCheckmark 0.6s ease !important;
}

.value-card:hover .lightning {
    animation: flash 0.8s ease !important;
}

.value-card:hover .pulse {
    animation: pulse 1s ease infinite !important;
}

.value-card:hover .connection {
    animation: drawLine 0.8s ease !important;
}

.value-card:hover .circle-1,
.value-card:hover .circle-2 {
    animation: bounce 0.6s ease !important;
}

.value-card:hover .dot-1,
.value-card:hover .dot-2,
.value-card:hover .dot-3,
.value-card:hover .dot-4 {
    animation: orbit 2s ease infinite !important;
}

/* Animations */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes drawCheckmark {
    0% {
        stroke-dasharray: 0 100;
    }
    100% {
        stroke-dasharray: 100 0;
    }
}

@keyframes flash {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

@keyframes pulse {
    0%, 100% {
        r: 8;
        opacity: 1;
    }
    50% {
        r: 12;
        opacity: 0.5;
    }
}

@keyframes drawLine {
    0% {
        stroke-dasharray: 0 100;
    }
    100% {
        stroke-dasharray: 100 0;
    }
}

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

@keyframes orbit {
    0%, 100% {
        opacity: 1;
        r: 5;
    }
    50% {
        opacity: 0.5;
        r: 7;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .about-rv-values {
        grid-template-columns: 1fr !important;
    }
    
    .about-rv-intro p {
        font-size: 1.1rem !important;
    }
    
    .vision-text {
        font-size: 1.2rem !important;
    }
}

/* ============================================
   COMPREHENSIVE MOBILE FIXES
   ============================================ */

@media (max-width: 768px) {
    /* Prevent all text overflow */
    body {
        overflow-x: hidden !important;
    }
    
    /* All headings - prevent overflow */
    h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        max-width: 100% !important;
    }
    
    /* Hero section - more padding top */
    .hero {
        padding-top: 120px !important;
        padding-bottom: 3rem !important;
    }
    
    .hero-text h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-text p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }
    
    /* Section titles - smaller on mobile */
    .section-title-center,
    .section-header h2,
    .section-header-center h2 {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
        padding: 0 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Section subtitles */
    .section-header p,
    .section-header-center p {
        font-size: 1rem !important;
        padding: 0 1rem !important;
    }
    
    /* Container padding */
    .container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
    
    /* Stats section */
    .stats-section-new {
        padding: 3rem 0 !important;
    }
    
    .stats-grid-new {
        gap: 1.5rem !important;
        padding: 0 1rem !important;
    }
    
    .stat-card-new {
        padding: 1.5rem 1rem !important;
    }
    
    .stat-number-large {
        font-size: 2.5rem !important;
    }
    
    .stat-label-top {
        font-size: 0.95rem !important;
    }
    
    /* Typing tagline */
    .typing-tagline-stats {
        margin-top: 2rem !important;
        font-size: 1.5rem !important;
        padding: 0 1rem !important;
    }
    
    /* Customer logos */
    .logos-title {
        font-size: 1rem !important;
        padding: 0 1rem !important;
    }
    
    .logo-item {
        font-size: 1rem !important;
        padding: 0.8rem 1.5rem !important;
    }
    
    /* Testimonials */
    .testimonials-section {
        padding: 3rem 0 !important;
    }
    
    .testimonial-card {
        padding: 2rem 1.5rem !important;
    }
    
    .testimonial-text {
        font-size: 1rem !important;
    }
    
    /* Why choose section */
    .why-choose {
        padding: 3rem 0 !important;
    }
    
    /* About RV section */
    .about-rv-section {
        padding: 3rem 0 !important;
    }
    
    .about-rv-intro p {
        font-size: 1rem !important;
        padding: 0 1rem !important;
    }
    
    .vision-text {
        font-size: 1.1rem !important;
    }
    
    .value-card h3 {
        font-size: 1.2rem !important;
    }
    
    .value-card p {
        font-size: 0.9rem !important;
    }
    
    /* Use cases */
    .use-cases {
        padding: 3rem 0 !important;
    }
    
    .use-cases-grid {
        gap: 1.5rem !important;
        padding: 0 1rem !important;
    }
    
    /* Features section */
    .features-grid {
        gap: 1.5rem !important;
        padding: 0 1rem !important;
    }
    
    .feature-card h3 {
        font-size: 1.1rem !important;
    }
    
    .feature-card p {
        font-size: 0.9rem !important;
    }
    
    /* Pricing section */
    .pricing-card {
        margin-bottom: 2rem !important;
    }
    
    .pricing-card h3 {
        font-size: 1.3rem !important;
    }
    
    /* FAQ section */
    .faq-question h3 {
        font-size: 1rem !important;
        padding-right: 2rem !important;
    }
    
    /* Reseller CTA */
    .reseller-cta h2 {
        font-size: 1.6rem !important;
        padding: 0 1rem !important;
    }
    
    .reseller-cta p {
        font-size: 1rem !important;
        padding: 0 1rem !important;
    }
    
    /* Buttons */
    .btn-primary,
    .btn-submit {
        font-size: 1rem !important;
        padding: 0.9rem 2rem !important;
        width: 100% !important;
        max-width: 300px !important;
    }
    
    /* Forms */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .hero {
        padding-top: 100px !important;
    }
    
    .hero-text h1 {
        font-size: 1.75rem !important;
    }
    
    .section-title-center,
    .section-header h2,
    .section-header-center h2 {
        font-size: 1.5rem !important;
    }
    
    .stat-number-large {
        font-size: 2rem !important;
    }
    
    .typing-tagline-stats {
        font-size: 1.2rem !important;
    }
}

/* Mobile Navbar Fixes */
@media (max-width: 768px) {
    /* Fixed navbar should not overlap content */
    .navbar-container {
        height: 70px !important;
    }
    
    .navbar-container .logo-img {
        height: 40px !important;
    }
    
    /* Ensure mobile menu doesn't cause overflow */
    .mobile-menu {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    
    /* Language selector in mobile */
    .lang-dropdown {
        max-width: 200px !important;
    }
}

/* Prevent horizontal scroll globally */
html, body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

/* All sections should respect viewport */
section {
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

/* Container should never exceed viewport */
.container,
.container-full {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* ============================================
   TABLET AND MEDIUM SCREEN FIXES (769px - 1200px)
   ============================================ */

@media (min-width: 769px) and (max-width: 1200px) {
    /* Hero - scale down properly */
    .hero-text h1 {
        font-size: clamp(2.5rem, 5vw, 3.5rem) !important;
        line-height: 1.2 !important;
    }
    
    .hero-text p {
        font-size: clamp(1rem, 2vw, 1.3rem) !important;
    }
    
    /* Section titles - responsive scaling */
    .section-title-center,
    .section-header h2,
    .section-header-center h2 {
        font-size: clamp(1.8rem, 3.5vw, 2.8rem) !important;
    }
    
    /* Stats - ensure 4 columns fit */
    .stats-grid-new {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 1rem !important;
    }
    
    .stat-number-large {
        font-size: clamp(2rem, 3.5vw, 3rem) !important;
    }
    
    .stat-label-top {
        font-size: 0.9rem !important;
    }
    
    /* Navbar - prevent wrapping */
    .navbar-container {
        padding: 0 2rem !important;
    }
    
    .navbar-container nav ul {
        gap: 1rem !important;
    }
    
    .navbar-container nav ul li a {
        font-size: 0.9rem !important;
        padding: 0.5rem 0.8rem !important;
    }
    
    /* Logo smaller */
    .logo-img {
        height: 45px !important;
    }
    
    /* Container max-width */
    .container {
        max-width: 95% !important;
        padding: 0 2rem !important;
    }
    
    /* Testimonials - 2 columns */
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Use cases - 3 columns */
    .use-cases-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.5rem !important;
    }
    
    .use-case-card h3 {
        font-size: 1rem !important;
    }
    
    .use-case-card p {
        font-size: 0.85rem !important;
    }
    
    /* About RV values - 2 columns */
    .about-rv-values {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Features grid - 2 columns */
    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Typing animation */
    .typing-tagline-stats {
        font-size: clamp(1.8rem, 3vw, 2.5rem) !important;
    }
}

/* Small desktop / large tablet (1024px - 1200px) */
@media (min-width: 1024px) and (max-width: 1200px) {
    /* More compact navbar */
    .navbar-container nav ul li a {
        font-size: 0.85rem !important;
        padding: 0.5rem 0.6rem !important;
    }
    
    /* Language selector more compact */
    .lang-dropdown {
        min-width: 140px !important;
    }
}

/* Tablet portrait (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Hero even more compact */
    .hero-text h1 {
        font-size: 2.8rem !important;
    }
    
    /* Stats - might need to go 2x2 */
    .stats-grid-new {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important;
    }
    
    .stat-number-large {
        font-size: 3rem !important;
    }
    
    /* Use cases - 2 columns */
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Navbar - show less items or make smaller */
    .navbar-container nav ul li a {
        font-size: 0.8rem !important;
        padding: 0.5rem 0.5rem !important;
    }
}

/* Prevent navbar text wrapping */
@media (max-width: 1300px) {
    .navbar-container nav ul {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .navbar-container nav ul li {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }
}

/* Better scaling for all viewport sizes */
.section-header h2,
.section-header-center h2,
.section-title-center {
    font-size: clamp(1.5rem, 4vw, 3rem) !important;
}

.hero-text h1 {
    font-size: clamp(1.75rem, 7vw, 5.5rem) !important;
}

.stat-number-large {
    font-size: clamp(2rem, 4vw, 3.5rem) !important;
}

/* Ensure buttons never break layout */
.hero-buttons,
.cta-buttons {
    flex-wrap: wrap !important;
    justify-content: center !important;
}

.btn-primary,
.btn-secondary {
    min-width: 150px !important;
    max-width: 100% !important;
}

/* Larger hero description text */
.hero-text p[data-lang="hero-description"] {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem) !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
    margin-bottom: 2.5rem !important;
}

@media (max-width: 768px) {
    .hero-text p[data-lang="hero-description"] {
        font-size: 1.2rem !important;
    }
}

/* ============================================
   MOBIL FIXES - Extra padding och större hero
   ============================================ */

@media (max-width: 768px) {
    /* Extra padding på alla sektioner för att undvika navbar overlap */
    section {
        padding-top: 100px !important;

/* ============================================
   MOBIL FIXES - HÖGSTA PRIORITET
   ============================================ */

/* Force padding för alla sektioner på mobil */
@media (max-width: 768px) {
    /* KRITISKT: Alla sektioner måste ha padding */
    body section,
    section.hero,
    section.stats-section-new,
    section.use-cases,
    section.about-rv-section,
    section.testimonials-section,
    section.why-choose,
    section.customer-logos-section {
        padding-top: 110px !important;
    }
    
    /* Hero får EXTRA padding */
    section.hero,
    .hero {
        padding-top: 150px !important;
        padding-bottom: 4rem !important;
    }
    
    /* Hero text - KRAFTIGT STÖRRE */
    .hero .hero-text h1,
    .hero-text h1,
    section.hero h1 {
        font-size: 2.6rem !important;
        line-height: 1.15 !important;
        margin-bottom: 2rem !important;
        font-weight: 700 !important;
    }
    
    /* Hero beskrivning - MYCKET STÖRRE */
    .hero .hero-text p[data-lang="hero-description"],
    .hero-text p[data-lang="hero-description"],
    section.hero p[data-lang="hero-description"] {
        font-size: 1.5rem !important;
        line-height: 1.5 !important;
        margin-bottom: 2.5rem !important;
        font-weight: 500 !important;
    }
}

/* Extra små mobiler */
@media (max-width: 480px) {
    .hero .hero-text h1,
    .hero-text h1 {
        font-size: 2.3rem !important;
    }
    
    .hero .hero-text p[data-lang="hero-description"],
    .hero-text p[data-lang="hero-description"] {
        font-size: 1.35rem !important;
    }
}

/* Mellan mobiler - STÖRST */
@media (min-width: 481px) and (max-width: 768px) {
    .hero .hero-text h1,
    .hero-text h1 {
        font-size: 3rem !important;
    }
    
    .hero .hero-text p[data-lang="hero-description"],
    .hero-text p[data-lang="hero-description"] {
        font-size: 1.6rem !important;
    }
}

/* Scroll margin för smooth navigation */
@media (max-width: 768px) {
    section,
    .section {
        scroll-margin-top: 110px !important;
    }
}

/* Extra fix specifikt för Användningsområden på mobil */
@media (max-width: 768px) {
    section.use-cases,
    .use-cases {
        padding-top: 140px !important;
        margin-top: 0 !important;

/* ============================================
   FINAL FIX - Användningsområden mobil
   HÖGSTA PRIORITET - OVERRIDE ALLT
   ============================================ */

@media (max-width: 768px) {
    /* Override use-cases section padding med högsta specificitet */
    html body section.use-cases,
    html body div#use-cases-page section.use-cases {
        padding-top: 150px !important;
        padding-bottom: 60px !important;
    }
    
    /* Ensure no extra margins */
    html body div#use-cases-page {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    html body section.use-cases .container,
    html body section.use-cases .section-header,
    html body section.use-cases h1 {
        margin-top: 0 !important;
    }
}

/* Mobile menu styling to match */
@media (max-width: 768px) {
    .mobile-menu {
        background: linear-gradient(135deg, #0A1628 0%, #1E293B 100%) !important;
    }
    
    .mobile-nav-link {
        color: #FFFFFF !important;
    }
    
    .mobile-nav-link:hover {
        color: #10B981 !important;
        background: rgba(16, 185, 129, 0.1) !important;
    }
    
    .mobile-cta {
        background: linear-gradient(135deg, #10B981, #0EA5E9) !important;
        color: white !important;
    }
    
    .mobile-menu-toggle span {
        background: #FFFFFF !important;
    }
}

/* ============================================
   FIX: Dropdown-menyer överlappar inte
   ============================================ */

/* Language dropdown får högre z-index */
.lang-dropdown {
    z-index: 2000 !important;
    position: absolute !important;
}

/* Kontakt dropdown får lägre z-index */
.dropdown-menu {
    z-index: 1500 !important;
}

/* När man hovrar på språk, stäng Kontakt-menyn */
.lang-selector:hover ~ .dropdown .dropdown-menu,
.lang-selector:hover + * .dropdown-menu {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Språkväljare layout */
.lang-selector {
    position: relative !important;
    z-index: 2000 !important;
}

/* Förbättra språk-dropdown styling */
html body .lang-dropdown {
    background: #1E293B !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
    min-width: 180px !important;
}

html body .lang-option {
    color: #FFFFFF !important;
    padding: 0.8rem 1rem !important;
}

html body .lang-option:hover {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #10B981 !important;
}

/* Språkknapp */
html body .lang-btn {
    color: #FFFFFF !important;
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    padding: 0.5rem 0.8rem !important;
    border-radius: 6px !important;
    cursor: pointer !important;
}

html body .lang-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #10B981 !important;
}
