 :root {
    --primary-navy: #0A0E27;
    --deep-space: #1a1d3a;
    --electric-cyan: #00D4FF;
    --warm-orange: #FF6B35;
    --muted-purple: #6C5CE7;
    --success-green: #27AE60;
    --pure-white: #FFFFFF;
    --soft-gray: #F8F9FA;
    --text-gray: #6B7280;
}

/* Critical CSS for above-the-fold content */
.critical-css {
    /* Stilar för omedelbart synligt innehåll */
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--primary-navy);
    color: var(--pure-white);
    overflow-x: hidden;
}

.hero-title {
    font-family: 'Playfair Display', serif;
}

/* SEO-friendly text styles */
.seo-heading {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.seo-text {
    line-height: 1.6;
    color: var(--text-gray);
}

/* Holographic Effects */
.holographic-bg {
    background: linear-gradient(45deg, #1e3a8a, #3730a3, #581c87, #1e3a8a);
    background-size: 400% 400%;
    animation: holographic-shift 8s ease-in-out infinite;
}

@keyframes holographic-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.holographic-text {
    background: linear-gradient(45deg, #60a5fa, #a78bfa, #f472b6, #60a5fa);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: text-shimmer 3s ease-in-out infinite;
}

@keyframes text-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.neural-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    z-index: 1;
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(96, 165, 250, 0.8);
    border-radius: 50%;
    animation: float-particle 15s linear infinite;
}

@keyframes float-particle {
    0% { transform: translateY(100vh) translateX(0px); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) translateX(100px); opacity: 0; }
}

/* Navigation */
.nav-glass {
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cards and Hover Effects */
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card-hover:hover {
    transform: translateY(-8px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 25px 50px -12px rgba(0, 212, 255, 0.25);
    border-color: rgba(0, 212, 255, 0.3);
}

.service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.card-hover:hover .service-icon {
    transform: translateZ(20px);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

/* Neural Network Service Cards */
.neural-service-card {
    position: relative;
    overflow: hidden;
}

.neural-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.neural-service-card:hover::before {
    left: 100%;
}

.neural-network-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    pointer-events: none;
}

.neural-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(0, 212, 255, 0.6);
    border-radius: 50%;
    animation: neural-pulse 3s ease-in-out infinite;
}

@keyframes neural-pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* Language Toggle */
.language-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.lang-btn.active {
    background: var(--electric-cyan);
    color: var(--primary-navy);
}

.lang-btn:hover:not(.active) {
    color: var(--pure-white);
}

/* Language Content */
.lang-content {
    display: none;
}

.lang-content.active {
    display: block;
}

/* Scroll Reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Menu */
.mobile-menu {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(20px);
}

.mobile-menu.open {
    transform: translateX(0);
}

/* Animations */
.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    from { box-shadow: 0 0 20px rgba(0, 212, 255, 0.3); }
    to { box-shadow: 0 0 40px rgba(0, 212, 255, 0.6); }
}

.floating-element {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Responsive */
@media (max-width: 768px) {
    .language-toggle {
        top: 1rem;
        right: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

/* Project Configurator */
.step-indicator-animated {
    transition: all 0.3s ease;
}

.step-indicator-animated.active {
    transform: scale(1.1);
}

.project-type-btn {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.project-type-btn:hover {
    border-color: var(--electric-cyan);
    background: rgba(0, 212, 255, 0.1);
}

.feature-option {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.feature-option:hover {
    border-color: var(--electric-cyan);
    background: rgba(0, 212, 255, 0.1);
}

/* Service Network */
.service-node {
    transition: all 0.3s ease;
}

.service-node:hover {
    transform: scale(1.1);
}

/* Timeline */
.timeline-item {
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 8px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.timeline-line {
    position: absolute;
    left: 0;
    top: 32px;
    bottom: -32px;
    width: 3px;
    background: linear-gradient(to bottom, #2563eb, #7c3aed);
}

/* Enhanced Service Map */
.tech-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.service-detail-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

/* Custom Alert Styles */
.custom-alert {
    z-index: 10000;
}

/* FIX FÖR SUDDIGA/MASKERADE ALTERNATIV I PROJEKTCONFIGURATORN */
.feature-option,
.project-type-btn {
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    mask: none !important;
    -webkit-mask: none !important;
    opacity: 1 !important;
}

/* Ta bort alla blur-effekter vid klick/hover */
.feature-option:active,
.feature-option:focus,
.project-type-btn:active,
.project-type-btn:focus {
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: scale(1.05) !important; /* Behåll scale-effekten men ta bort blur */
}

/* Se till att checkboxarna är helt synliga */
.feature-checkbox:checked ~ div,
.feature-checkbox:not(:checked) ~ div {
    filter: none !important;
    opacity: 1 !important;
}

/* Ta bort eventuella transition-effekter som orsakar blur */
.feature-option *,
.project-type-btn * {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease !important;
}

/* Ytterligare säkerhetsåtgärd för Webkit-baserade browsers */
@media (-webkit-min-device-pixel-ratio:0) {
    .feature-option,
    .project-type-btn {
        -webkit-font-smoothing: antialiased !important;
        -moz-osx-font-smoothing: grayscale !important;
    }
}

/* Glass Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(45deg, #00D4FF, #6C5CE7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Form Styles */
.form-input {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--electric-cyan);
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--electric-cyan), var(--muted-purple));
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 12px 24px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--electric-cyan);
    background: rgba(0, 212, 255, 0.1);
}

/* Utility Classes */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(45deg, var(--primary-navy), var(--primary-navy)) padding-box,
                linear-gradient(45deg, var(--electric-cyan), var(--muted-purple)) border-box;
}

/* Loading Animation */
.loading-spinner {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 2px solid var(--electric-cyan);
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success States */
.success-state {
    background: linear-gradient(135deg, var(--success-green), #2ecc71);
    color: white;
}

.warning-state {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.error-state {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

/* Grid Layout Improvements */
.grid-auto-fit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.grid-auto-fill {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-navy);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--electric-cyan), var(--muted-purple));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--muted-purple), var(--electric-cyan));
}

/* Focus States for Accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--electric-cyan);
    outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .floating-element,
    .particle,
    .neural-dot,
    .pulse-glow {
        animation: none !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .card-hover {
        border: 2px solid var(--pure-white);
    }
    
    .service-icon {
        border: 2px solid var(--pure-white);
    }
    
    .lang-btn.active {
        border: 2px solid var(--pure-white);
    }
    
    .holographic-text {
        background: var(--pure-white);
        -webkit-text-fill-color: var(--pure-white);
        background-clip: initial;
        -webkit-background-clip: initial;
    }
}

/* Print Styles */
@media print {
    .language-toggle,
    .mobile-menu-btn,
    .floating-particles,
    .neural-network {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .card-hover {
        background: white !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
    
    .seo-print {
        color: black !important;
        background: white !important;
    }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
    .glass-effect {
        background: rgba(0, 0, 0, 0.3);
    }
}

/* Mobile-first responsive design */
.container-responsive {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container-responsive {
        max-width: 640px;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 768px) {
    .container-responsive {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container-responsive {
        max-width: 1024px;
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 1280px) {
    .container-responsive {
        max-width: 1280px;
    }
}

/* Text balance for better readability */
.text-balance {
    text-wrap: balance;
}

/* Aspect ratio containers */
.aspect-video {
    aspect-ratio: 16 / 9;
}

.aspect-square {
    aspect-ratio: 1 / 1;
}

/* Backdrop blur support fallback */
@supports not (backdrop-filter: blur(10px)) {
    .glass-effect,
    .nav-glass,
    .language-toggle {
        background: rgba(10, 14, 39, 0.98);
    }
}

/* Selection styles */
::selection {
    background: rgba(0, 212, 255, 0.3);
    color: white;
}

::-moz-selection {
    background: rgba(0, 212, 255, 0.3);
    color: white;
}

/* Schema.org markup styling */
[itemscope] {
    /* Base styling for structured data elements */
}

/* Image optimization */
.seo-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Performance optimizations */
.reduce-motion {
    animation: none;
}

/* Print optimizations för SEO */
@media print {
    .no-print {
        display: none !important;
    }
    
    .seo-print {
        color: black !important;
        background: white !important;
    }
}

/* Performance optimizations for mobile */
@media (max-width: 768px) {
    .neural-network-dots {
        display: none;
    }
    
    .floating-particles {
        display: none;
    }
}

/* SEO-friendly link styling */
a[href^="tel:"]:hover,
a[href^="mailto:"]:hover {
    text-decoration: underline;
}

/* Structured data visibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Content visibility optimizations */
.content-visibility-auto {
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}

/* Font loading optimizations */
.font-loading-optimized {
    font-display: swap;
}

/* Cumulative Layout Shift prevention */
.stable-element {
    will-change: transform;
}

/* SEO-friendly semantic styling */
.semantic-heading {
    font-weight: bold;
    line-height: 1.3;
}

.semantic-paragraph {
    line-height: 1.6;
    margin-bottom: 1em;
}

/* Microdata styling improvements */
[itemtype] {
    display: block;
}

/* Open Graph image fallback */
.og-image-fallback {
    display: none;
}

@media (max-width: 1200px) {
    .og-image-fallback {
        display: block;
    }
}

/* Twitter Card specific styles */
.twitter-card-container {
    max-width: 1200px;
}

/* Schema.org specific styles */
.schema-organization {
    display: none; /* Hidden but accessible to crawlers */
}

/* Performance monitoring elements */
.perf-marker {
    display: none;
}

/* Core Web Vitals optimizations */
.cls-fix {
    transform: translateZ(0);
}

.lcp-optimized {
    will-change: transform;
}

.inp-optimized {
    touch-action: manipulation;
}

/* SEO-friendly navigation structure */
.nav-semantic {
    display: block;
}

.nav-semantic ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-semantic li {
    display: inline-block;
}

/* Breadcrumb styling for SEO */
.breadcrumb {
    font-size: 0.875rem;
    color: var(--text-gray);
}

.breadcrumb a {
    color: var(--electric-cyan);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* FAQ schema styling */
.faq-item {
    margin-bottom: 1.5rem;
}

.faq-question {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.faq-answer {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Local business schema */
.local-business-info {
    display: none; /* Hidden but structured for SEO */
}

/* Article schema for blog content */
.article-meta {
    color: var(--text-gray);
    font-size: 0.875rem;
}

.article-body {
    line-height: 1.7;
}

.article-body h2, 
.article-body h3, 
.article-body h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Product schema styling */
.product-info {
    display: none; /* Hidden but structured */
}

/* Review schema */
.review-stars {
    color: #fbbf24;
}

.review-author {
    font-style: italic;
}

/* Event schema */
.event-details {
    display: none;
}

/* Recipe schema */
.recipe-meta {
    display: none;
}

/* Video schema */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* How-to schema */
.how-to-steps {
    counter-reset: step-counter;
}

.how-to-step {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.5rem;
}

.how-to-step::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: var(--electric-cyan);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* QAPage schema */
.qa-question {
    font-weight: 600;
    margin-bottom: 1rem;
}

.qa-answer {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

/* Speakable schema */
.speakable-content {
    border-left: 4px solid var(--electric-cyan);
    padding-left: 1rem;
    margin: 1.5rem 0;
}

/* SiteNavigationElement schema */
.nav-schema {
    display: none;
}

/* WebPage schema */
.webpage-schema {
    display: none;
}

/* ImageObject schema */
.image-schema {
    display: none;
}

/* Organization schema enhancements */
.org-schema {
    display: none;
}

/* Person schema */
.person-schema {
    display: none;
}

/* ContactPoint schema */
.contact-schema {
    display: none;
}

/* GeoCoordinates schema */
.geo-schema {
    display: none;
}

/* OpeningHours schema */
.hours-schema {
    display: none;
}

/* AggregateRating schema */
.rating-schema {
    display: none;
}

/* Offer schema */
.offer-schema {
    display: none;
}

/* Brand schema */
.brand-schema {
    display: none;
}

/* Service schema */
.service-schema {
    display: none;
}

/* Action schema */
.action-schema {
    display: none;
}

/* CreativeWork schema */
.creative-work-schema {
    display: none;
}

/* MediaObject schema */
.media-schema {
    display: none;
}

/* Book schema */
.book-schema {
    display: none;
}

/* Course schema */
.course-schema {
    display: none;
}

/* Event schema detailed */
.event-schema-detailed {
    display: none;
}

/* JobPosting schema */
.job-schema {
    display: none;
}

/* Movie schema */
.movie-schema {
    display: none;
}

/* Music schema */
.music-schema {
    display: none;
}

/* Product schema detailed */
.product-schema-detailed {
    display: none;
}

/* Recipe schema detailed */
.recipe-schema-detailed {
    display: none;
}

/* Review schema detailed */
.review-schema-detailed {
    display: none;
}

/* Video schema detailed */
.video-schema-detailed {
    display: none;
}

/* Article schema detailed */
.article-schema-detailed {
    display: none;
}

/* Blog schema */
.blog-schema {
    display: none;
}

/* FAQ schema detailed */
.faq-schema-detailed {
    display: none;
}

/* HowTo schema detailed */
.howto-schema-detailed {
    display: none;
}

/* QAPage schema detailed */
.qapage-schema-detailed {
    display: none;
}

/* Speakable schema detailed */
.speakable-schema-detailed {
    display: none;
}

/* =========================================
   3D CAROUSEL STYLES
   ========================================= */

/* 3D Carousel Styles */
.carousel-3d-container {
    perspective: 1200px;
    overflow: hidden;
}

.carousel-3d-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-card {
    position: absolute;
    width: 280px;
    height: 320px;
    left: 50%;
    top: 50%;
    transform-origin: center;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-card.active {
    transform: translate(-50%, -50%) translateZ(0px) scale(1);
    z-index: 10;
    box-shadow: 0 25px 50px -12px rgba(0, 212, 255, 0.4);
}

.carousel-card.prev-1 {
    transform: translate(-50%, -50%) translateX(-240px) translateZ(-100px) rotateY(15deg) scale(0.9);
    opacity: 0.8;
    z-index: 5;
}

.carousel-card.prev-2 {
    transform: translate(-50%, -50%) translateX(-400px) translateZ(-200px) rotateY(25deg) scale(0.8);
    opacity: 0.6;
    z-index: 4;
}

.carousel-card.next-1 {
    transform: translate(-50%, -50%) translateX(240px) translateZ(-100px) rotateY(-15deg) scale(0.9);
    opacity: 0.8;
    z-index: 5;
}

.carousel-card.next-2 {
    transform: translate(-50%, -50%) translateX(400px) translateZ(-200px) rotateY(-25deg) scale(0.8);
    opacity: 0.6;
    z-index: 4;
}

.carousel-card.hidden {
    opacity: 0.3;
    transform: translate(-50%, -50%) translateX(-600px) translateZ(-300px) rotateY(35deg) scale(0.7);
    z-index: 3;
}

.carousel-card-content {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.carousel-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.carousel-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.carousel-card-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .carousel-3d-container {
        height: 280px;
    }
    
    .carousel-card {
        width: 220px;
        height: 260px;
    }
    
    .carousel-card.prev-1 {
        transform: translate(-50%, -50%) translateX(-180px) translateZ(-80px) rotateY(15deg) scale(0.85);
    }
    
    .carousel-card.prev-2 {
        transform: translate(-50%, -50%) translateX(-280px) translateZ(-160px) rotateY(25deg) scale(0.7);
    }
    
    .carousel-card.next-1 {
        transform: translate(-50%, -50%) translateX(180px) translateZ(-80px) rotateY(-15deg) scale(0.85);
    }
    
    .carousel-card.next-2 {
        transform: translate(-50%, -50%) translateX(280px) translateZ(-160px) rotateY(-25deg) scale(0.7);
    }
    
    .carousel-card-content {
        padding: 1.5rem;
    }
    
    .carousel-card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .carousel-card-title {
        font-size: 1.25rem;
    }
}

/* =========================================
   COOKIE BANNER OCH INTEGRITETSPOLICY
   ========================================= */

/* --- 1. Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem;
    z-index: 1000;
    background: rgba(17, 24, 39, 0.8); /* mörkgrå/blå, halvtransparent */
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
    color: #d1d5db; /* Ljusgrå text */
    font-family: 'Inter', sans-serif;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 112rem; /* Samma som max-w-7xl */
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-content p {
    font-size: 0.875rem; /* text-sm */
    line-height: 1.25rem;
}

.cookie-link {
    color: #22d3ee; /* cyan-400 */
    text-decoration: underline;
    font-weight: 500;
}
.cookie-link:hover {
    color: #67e8f9; /* cyan-300 */
}

.cookie-button {
    padding: 0.5rem 1rem;
    background: #0ea5e9; /* sky-500 (passar cyan/blå) */
    color: white;
    border: none;
    border-radius: 0.5rem; /* rounded-lg */
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    align-self: flex-start;
}
.cookie-button:hover {
    background: #0284c7; /* sky-600 */
}

/* --- 2. Privacy Policy Modal --- */
.privacy-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s linear;
}

.privacy-modal-overlay.show {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

.privacy-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 90%;
    max-width: 800px;
    height: 80vh;
    background: #111827; /* gray-900 */
    border-radius: 1rem; /* rounded-2xl */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.privacy-modal-overlay.show .privacy-modal {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
}

.privacy-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: none;
    font-size: 2.5rem;
    line-height: 1;
    color: #9ca3af; /* gray-400 */
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}
.privacy-modal-close:hover {
    color: white;
}

.privacy-content {
    padding: 2.5rem;
    padding-top: 3.5rem;
    overflow-y: auto;
    color: #d1d5db; /* gray-300 */
    font-family: 'Inter', sans-serif;
}

.privacy-content h2 {
    font-size: 1.875rem; /* text-3xl */
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}
.privacy-content h3 {
    font-size: 1.25rem; /* text-xl */
    font-weight: 600;
    color: white;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #374151; /* gray-700 */
    padding-bottom: 0.5rem;
}
.privacy-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}
.privacy-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}
.privacy-content li {
    margin-bottom: 0.5rem;
}

/* Media query för mindre skärmar */
@media (min-width: 640px) {
    .cookie-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .cookie-button {
        align-self: center;
        flex-shrink: 0;
    }
}

/* Back to Top Button Styles */
#back-to-top {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

#back-to-top:hover {
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

/* =========================================
   FIX FÖR SKILL BARS - KORREKT FÄRGNING
   ========================================= */

/* TA BORT ALLA COMPLICERADE ANIMATIONER */
.skill-item .bg-gradient-to-r {
    transition: width 1s ease-out !important;
}

/* FÖRHINDRA LAYOUT SHIFT */
#integrated-detail {
    min-height: 450px;
}

.key-feature-item {
    min-height: 90px;
    padding: 0.75rem !important;
}

.key-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

/* FIX FÖR KEY-FEATURE ITEMS SPACING */
.key-feature-item .flex {
    margin-bottom: 0.5rem !important;
}

.key-feature-item h6 {
    margin-bottom: 0.25rem !important;
    font-size: 0.875rem !important;
    line-height: 1.3 !important;
}

.key-feature-item p {
    margin-bottom: 0 !important;
    font-size: 0.75rem !important;
    line-height: 1.2 !important;
}

/* RESPONSIVE FIXES */
@media (max-width: 768px) {
    #integrated-detail {
        min-height: 500px;
        padding: 1rem !important;
    }
    
    .key-feature-item {
        min-height: 85px;
        padding: 0.5rem !important;
    }
}

/* =========================================
   STABILA SKILL BARS UTAN HOPP
   ========================================= */

#detail-skills .skill-item {
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    min-height: 65px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#detail-skills .skill-item .flex {
    margin-bottom: 0.5rem;
}

#detail-skills .skill-bar-container {
    margin-top: 0.5rem;
    height: 6px;
}

/* SE TILL ATT SKILL BARS FÅR RÄTT FÄRG OCH PROCENT */
.skill-bar-progress {
    height: 100%;
    border-radius: 3px;
    transition: width 1s ease-out;
    background: linear-gradient(90deg, #2563eb, #7c3aed) !important;
}

/* FIX FÖR ATT FÖRHINDRA LAYOUT SHIFT */
.statistics-grid > div {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.carousel-card {
    min-height: 320px;
}

.carousel-card-content {
    min-height: 280px;
}























/* =========================================
   STYLING FÖR PROJEKTKONFIGURATOR-KARUSELL
   ========================================= */

/* Gör korten i projektväljaren lite högre */
.config-card {
    height: 360px; 
}

/* Styla knappen inuti kortet */
.carousel-card-button {
    display: block;
    width: 100%;
    height: 100%;
    text-align: left;
    padding: 2rem;
    border-radius: 16px;
    transition: all 0.3s ease;
    cursor: default; /* Avaktivera "hand"-pekaren på sidokorten */
}

/* Ge BARA det aktiva kortet en "klickbar" pekare */
.carousel-card.active .carousel-card-button {
    cursor: pointer;
}

/* Styla innehållet i det nya kortet */
.config-card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.config-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    color: white;
}

.config-card-title {
    font-size: 1.5rem; /* 24px */
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.config-card-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem; /* 16px */
    line-height: 1.5;
    flex-grow: 1; /* Gör att beskrivningen fyller utrymmet */
}

/* "Välj"-knappen längst ner på kortet */
.config-card-select-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    transition: all 0.3s ease;
    opacity: 0; /* Dold som standard */
}

/* Visa bara "Välj"-knappen på det aktiva kortet */
.carousel-card.active .config-card-select-btn {
    opacity: 1;
}

/* Hover-effekt för "Välj"-knappen */
.carousel-card.active .carousel-card-button:hover .config-card-select-btn {
    background: var(--electric-cyan);
    color: var(--primary-navy);
    border-color: var(--electric-cyan);
    transform: scale(1.05);
}

/* Anpassa för mobil */
@media (max-width: 768px) {
    .config-card {
        height: 320px;
    }
    .carousel-card-button {
        padding: 1.5rem;
    }
    .config-card-title {
        font-size: 1.25rem;
    }
    .config-card-description {
        font-size: 0.9rem;
    }
}















/* =========================================
   MOBILE OPTIMIZATION FOR CONFIGURATOR
   ========================================= */

/* Compact mobile layout for configurator */
@media (max-width: 768px) {
    #configurator {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    #configurator .max-w-4xl {
        max-width: 100% !important;
    }
    
    /* Compact step indicators */
    #configurator .flex.space-x-3 {
        gap: 0.5rem;
    }
    
    /* Reduce padding in form container */
    #configurator .bg-gray-800\/50 {
        padding: 1.5rem !important;
    }
    
    /* Compact form elements */
    #configurator .space-y-6 {
        gap: 1rem !important;
    }
    
    #configurator .p-4 {
        padding: 0.75rem !important;
    }
    
    /* Better feature grid for mobile */
    #step2Content .grid.grid-cols-1 {
        gap: 0.75rem !important;
    }
    
    #step2Content .feature-option {
        padding: 0.75rem !important;
        margin-bottom: 0 !important;
    }
    
    /* Compact navigation buttons */
    #configurator .flex.justify-between {
        gap: 1rem;
    }
    
    #configurator .px-8 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    #configurator .py-3 {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }
}

/* Mobile-optimized carousel */
@media (max-width: 640px) {
    #configurator-carousel.carousel-3d-container {
        height: 280px !important;
    }
    
    #configurator-carousel .carousel-card {
        width: 180px !important;
        height: 220px !important;
    }
    
    #configurator-carousel .carousel-card.prev-1 {
        transform: translate(-50%, -50%) translateX(-120px) translateZ(-60px) rotateY(15deg) scale(0.8) !important;
    }
    
    #configurator-carousel .carousel-card.prev-2 {
        transform: translate(-50%, -50%) translateX(-180px) translateZ(-120px) rotateY(25deg) scale(0.65) !important;
    }
    
    #configurator-carousel .carousel-card.next-1 {
        transform: translate(-50%, -50%) translateX(120px) translateZ(-60px) rotateY(-15deg) scale(0.8) !important;
    }
    
    #configurator-carousel .carousel-card.next-2 {
        transform: translate(-50%, -50%) translateX(180px) translateZ(-120px) rotateY(-25deg) scale(0.65) !important;
    }
    
    #configurator-carousel .carousel-card-content {
        padding: 1rem !important;
    }
    
    #configurator-carousel .config-card-icon {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.25rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    #configurator-carousel .config-card-title {
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    #configurator-carousel .config-card-description {
        font-size: 0.8rem !important;
        line-height: 1.3 !important;
    }
}

/* Touch-friendly improvements */
@media (max-width: 768px) {
    .feature-option,
    .project-type-btn,
    .carousel-nav,
    .step-indicator {
        min-height: 44px; /* Apple's recommended touch target size */
    }
    
    .feature-checkbox-visual {
        min-width: 20px;
        min-height: 20px;
    }
    
    /* Better spacing for feature checkboxes */
    .feature-option .flex.items-start {
        gap: 0.75rem;
    }
}

/* Compact form layout for mobile */
@media (max-width: 768px) {
    #step3Content .grid.grid-cols-1 {
        gap: 1rem !important;
    }
    
    #step3Content .space-y-4 {
        gap: 1rem !important;
    }
    
    #step3Content .mb-6 {
        margin-bottom: 1rem !important;
    }
    
    /* Stack buttons vertically on very small screens */
    @media (max-width: 480px) {
        #configurator .flex.justify-between {
            flex-direction: column;
            gap: 0.75rem;
        }
        
        #configurator .flex.justify-between button {
            width: 100%;
        }
    }
}

/* Improved scrolling experience */
@media (max-width: 768px) {
    #configurator {
        scroll-margin-top: 80px;
    }
}

/* Better feature selection visibility */
@media (max-width: 768px) {
    .feature-option.selected {
        border-color: #00D4FF !important;
        background: rgba(0, 212, 255, 0.1) !important;
    }
    
    .feature-checkbox:checked + div {
        border-color: #00D4FF !important;
        background: rgba(0, 212, 255, 0.1) !important;
    }
}
















/* Lägg till detta i style.css */

/* Trust Badges Styling */
.trust-badges {
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-badges div {
    display: flex;
    align-items: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.trust-badges div:hover {
    transform: translateY(-2px);
}

.trust-badges i {
    font-size: 1.1em;
}

/* Responsive trust badges */
@media (max-width: 768px) {
    .trust-badges .flex {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .trust-badges div {
        justify-content: center;
        text-align: center;
    }
}

/* Ytterligare SEO optimeringar för trust signals */
.trust-badges [itemprop="description"] {
    display: none; /* Dold för användare men tillgänglig för crawlers */
}