:root {
    --primary: #DC2626;
    --primary-dark: #991b1b;
    --primary-light: #ef4444;
    --secondary: #111827;
    --gray: #6b7280;
    --gray-light: #f9fafb;
    --white: #ffffff;
    --black: #111827;
}

* {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Sora', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--white);
    overflow-x: hidden;
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-slide-in {
    animation: slideIn 0.8s ease-out forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse-subtle {
    animation: pulse 3s ease-in-out infinite;
}

.animation-delay-200 {
    animation-delay: 0.2s;
    opacity: 0;
}

.animation-delay-400 {
    animation-delay: 0.4s;
    opacity: 0;
}

.animation-delay-600 {
    animation-delay: 0.6s;
    opacity: 0;
}

/* Buttons */
.btn-primary {
    background: var(--primary-blue);
    color: white;
    padding: 14px 28px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    font-size: 0.938rem;
}

.btn-primary:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover:before {
    left: 100%;
}

.btn-primary:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--black);
    padding: 14px 28px;
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid var(--black);
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.938rem;
}

.btn-secondary:hover {
    background: var(--black);
    color: white;
}

/* Navigation */
#navbar {
    background: transparent;
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
}

#announcement-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
}

.has-announcement #navbar {
    top: 40px;
}

.has-announcement #navbar.navbar-scrolled {
    top: 0;
}

body.has-announcement {
    padding-top: 40px;
}

.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.nav-link {
    color: white;
    transition: color 0.3s ease;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--accent-yellow);
}

.nav-logo {
    color: white;
    transition: color 0.3s ease;
    text-decoration: none;
}

.nav-logo-accent {
    color: var(--accent-yellow);
    transition: color 0.3s ease;
}

.navbar-scrolled .nav-link {
    color: #374151;
}

.navbar-scrolled .nav-link:hover {
    color: var(--primary-blue);
}

.navbar-scrolled .nav-logo {
    color: #1f2937;
}

.navbar-scrolled .nav-logo-accent {
    color: var(--primary-blue);
}

.nav-mobile-btn {
    color: white;
    transition: color 0.3s ease;
}

.navbar-scrolled .nav-mobile-btn {
    color: #374151;
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: white;
    z-index: 60;
    transition: right 0.3s ease;
    box-shadow: -2px 0 20px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 55;
    display: none;
}

.mobile-menu-overlay.active {
    display: block;
}

/* Hero section */
.hero-gradient {
    background: linear-gradient(180deg, 
        rgba(0,0,0,0.4) 0%, 
        rgba(0,0,0,0.5) 50%, 
        rgba(0,0,0,0.7) 100%);
}

/* Cards */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Stat cards */
.stat-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

/* Service cards */
.service-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-card-image {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-card-image img {
    transform: scale(1.1);
}

.service-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.service-card:hover .service-card-overlay {
    transform: translateY(0);
}

/* Testimonial cards */
.testimonial-card {
    background: white;
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 10px 30px rgba(30, 64, 175, 0.1);
}

/* CTA section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    position: relative;
    overflow: hidden;
}

.cta-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.1) 35px, rgba(255,255,255,.1) 70px);
}

/* Trust badges */
.trust-badge {
    background: white;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.trust-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* Footer */
.footer-newsletter {
    background: rgba(30, 64, 175, 0.1);
    border: 1px solid rgba(30, 64, 175, 0.2);
}

/* Shimmer effect */
.shimmer {
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    background-size: 1000px 100%;
    animation: shimmer 3s infinite;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    aspect-ratio: 16/9;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Process timeline */
.process-timeline {
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-blue), transparent);
    transform: translateX(-50%);
}

.process-step {
    position: relative;
    padding: 40px;
    margin-bottom: 60px;
}

.process-number {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 4px 20px rgba(30, 64, 175, 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .btn-primary, .btn-secondary {
        padding: 14px 24px;
        font-size: 0.938rem;
        width: 100%;
        text-align: center;
    }
    
    .process-timeline::before {
        display: none;
    }
    
    .process-number {
        position: static;
        transform: none;
        margin: 0 auto 20px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .hero-gradient {
        background: linear-gradient(180deg, 
            rgba(0,0,0,0.5) 0%, 
            rgba(0,0,0,0.6) 50%, 
            rgba(0,0,0,0.8) 100%);
    }
}

@media (max-width: 640px) {
    #hem h1 {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
    }
    
    #hem p {
        font-size: 1.125rem !important;
        line-height: 1.5 !important;
    }
    
    .btn-primary, .btn-secondary {
        font-size: 0.875rem;
        padding: 12px 20px;
    }
}

/* Mediase signature touch */
.mediase-badge {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    font-size: 12px;
    color: var(--gray);
    z-index: 30;
    transition: all 0.3s ease;
}

.mediase-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}

/* Tälje Transport specific styles */
#navbar {
    background-color: white;
    border-bottom: 1px solid #e5e7eb;
}

.nav-scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.hero-overlay {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
}

/* Override service-card from existing styles */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Ensure fade-up elements are visible */
.fade-up {
    opacity: 1 !important;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Update primary color references */
.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.hover\:bg-red-700:hover {
    background-color: var(--primary-dark) !important;
}

.bg-red-50 {
    background-color: #fef2f2 !important;
}

/* Fix button styles */
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 14px 28px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    font-size: 0.938rem;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
}

/* Fix form select dropdown options */
select option {
    background-color: #1f2937;
    color: white;
}

select {
    color: white;
}

select:invalid {
    color: #9ca3af;
}

/* Ensure form inputs have proper text color */
input, textarea, select {
    color: white;
}

input::placeholder, textarea::placeholder {
    color: #9ca3af;
}