/* Autoankauf Tübingen - Premium Design System */

:root {
    /* Premium Color Palette */
    --primary: #0f172a;
    /* Midnight Blue - Deep & Trustworthy */
    --primary-light: #1e293b;
    --primary-dark: #020617;

    --accent: #dc2626;
    /* Automotive Red - Sporty & Urgent */
    --accent-hover: #b91c1c;
    --accent-glow: rgba(220, 38, 38, 0.4);

    --gold: #f59e0b;
    /* Gold for ratings/premium accents */

    --text-dark: #0f172a;
    --text-body: #334155;
    /* Softer for long text */
    --text-light: #64748b;

    --bg-body: #ffffff;
    --bg-light: #f1f5f9;
    /* Cool gray for distinct sections */
    --bg-surface: #ffffff;

    --border: #e2e8f0;
    --border-hover: #cbd5e1;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
    --shadow-xl: 0 20px 40px -4px rgba(15, 23, 42, 0.12);

    --radius-sm: 0.5rem;
    --radius: 0.75rem;
    --radius-lg: 1.5rem;

    --container: 1240px;
    /* Slightly wider for modern screens */

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-body);
    line-height: 1.7;
    background-color: var(--bg-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Typography Overhaul */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.1;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.5rem;
}

@media (min-width: 992px) {
    h1 {
        font-size: 4rem;
    }

    h2 {
        font-size: 3rem;
    }

    h3 {
        font-size: 1.75rem;
    }
}

p {
    margin-bottom: 1.5rem;
}

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

.text-right {
    text-align: right;
}

.text-primary {
    color: var(--primary);
}

.text-accent {
    color: var(--accent);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

/* Components: Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1.0625rem;
    text-align: center;
    border: 2px solid transparent;
    cursor: pointer;
    gap: 0.75rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 15px -3px var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -3px var(--accent-glow);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border-color: var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: var(--bg-light);
    transform: translateY(-2px);
}

/* Header & Navigation - Modernized */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    transition: padding 0.3s ease;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.logo span {
    color: var(--accent);
}

/* Desktop Navigation */
.nav-list {
    display: none;
}

@media (min-width: 1200px) {
    .nav-list {
        display: flex;
        gap: 2rem;
        align-items: center;
    }

    .nav-link {
        font-weight: 500;
        color: var(--text-dark);
        font-size: 0.95rem;
        padding: 0.5rem 0;
        position: relative;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--accent);
        transition: width 0.3s ease;
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        width: 100%;
    }

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

/* Mobile Toggle */
.mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
}

.mobile-toggle:hover {
    background: var(--bg-light);
    color: var(--accent);
    border-color: var(--accent);
}

@media (min-width: 1200px) {
    .mobile-toggle {
        display: none;
    }
}

/* Mobile Menu - Side Drawer Style */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: white;
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Overlay for Mobile Menu */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.mobile-menu .nav-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-menu .nav-link {
    display: block;
    padding: 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    border-bottom: 1px solid var(--border);
}

.mobile-menu .nav-link:hover {
    color: var(--accent);
    padding-left: 0.5rem;
}

/* Hero Section - Premium Refresh */
.hero {
    position: relative;
    padding: 5rem 0 8rem;
    overflow: hidden;
    /* Subtle premium background pattern */
    background-color: #f8fafc;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(15, 23, 42, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(220, 38, 38, 0.03) 0%, transparent 50%);
}

.hero-grid {
    display: grid;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 992px) {
    .hero-grid {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 6rem;
    }
}

.hero-content h1 {
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-body);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* Hero Trust Badges */
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.badge svg {
    color: var(--accent);
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    flex-shrink: 0;
}

/* Hero Image Clean-up */
.hero-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s;
    display: block;
}

.hero-img:hover {
    transform: perspective(1000px) rotateY(-2deg);
}

/* Lightweight Testimonial Slider (Scroll Snap instead of Swiper) */
.swiper[data-swiper="testimonials"] {
    overflow: hidden;
}

.swiper[data-swiper="testimonials"] .swiper-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 1.5rem;
    padding: 1rem 0 2rem;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
}

.swiper[data-swiper="testimonials"] .swiper-wrapper::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.swiper[data-swiper="testimonials"] .swiper-slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
}

@media (min-width: 768px) {
    .swiper[data-swiper="testimonials"] .swiper-slide {
        flex: 0 0 calc(50% - 0.75rem);
    }
}

@media (min-width: 1024px) {
    .swiper[data-swiper="testimonials"] .swiper-slide {
        flex: 0 0 calc(33.333% - 1rem);
    }
}

.swiper-pagination {
    display: none;
    /* Remove pagination dots to save DOM/JS */
}

/* WhatsApp Widget Initialization */
.whatsapp-chat-widget {
    display: none;
    /* Hidden by default, shown via JS timeout */
}

/* Hero Image - 3D Floating Effect */
.hero-image {
    perspective: 1000px;
}

.hero-3d-composition {
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.hero-3d-composition:hover {
    transform: rotateY(-2deg) rotateX(1deg);
}

.glass-3d {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 3rem;
    text-align: center;
    transform: translateZ(50px);
}

/* Trust Stats Section - Redesigned */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 4rem 0;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

.stat-card {
    background: var(--bg-surface);
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 64px;
    height: 64px;
    background: #eff6ff;
    /* Light blue tint */
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.stat-card:hover .stat-icon {
    background: var(--accent);
    color: white;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.feature-icon-wrapper {
    display: inline-flex;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 1rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.feature-card:hover .feature-icon-wrapper {
    background: var(--accent);
    color: white;
}

.feature-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 1rem;
    margin: 0;
}

/* Contact Form - Clean & Inviting */
.contact-form {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
}

.form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-input,
.form-select,
textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: #f8fafc;
}

.form-input:focus,
.form-select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}

/* Footer - Premium Grid Layout */
.footer {
    background: var(--primary);
    color: white;
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .footer-grid {
        grid-template-columns: 3fr 2fr 2fr 3fr;
        gap: 2rem;
    }
}

.footer h5 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer p {
    color: #e2e8f0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links a {
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-icon {
    width: 18px;
    height: 18px;
    color: var(--accent);
    flex-shrink: 0;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #e2e8f0;
}

.footer-contact-item a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact-item a:hover {
    color: var(--accent);
}


/* Premium Illustration/Trust Section */
.illustration-section {
    display: grid;
    gap: 0;
    background: var(--white);
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 30px 60px -12px rgba(15, 23, 42, 0.12), 0 18px 36px -18px rgba(15, 23, 42, 0.12);
    margin: 4rem 0;
    border: 1px solid rgba(15, 23, 42, 0.05);
}

@media (min-width: 992px) {
    .illustration-section {
        grid-template-columns: 1fr 1.2fr;
        align-items: stretch;
    }
}

.illustration-gfx {
    position: relative;
    min-height: 400px;
    background: #f1f5f9;
    overflow: hidden;
}

.illustration-gfx img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.illustration-section:hover .illustration-gfx img {
    transform: scale(1.05);
}

.illustration-gfx::after {
    content: "✓ 100% Sicher & Seriös";
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    padding: 0.75rem 1.5rem;
    border-radius: 1rem;
    font-weight: 700;
    color: var(--primary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 2;
}

.illustration-content {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.illustration-content h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    color: var(--primary);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.illustration-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

@media (max-width: 991px) {
    .illustration-section {
        grid-template-columns: 1fr;
    }
}

/* Premium WhatsApp Chat Widget */
.whatsapp-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 20px 8px 8px;
    background: #ffffff;
    border-radius: 100px;
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.15), 0 10px 15px -10px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.whatsapp-chat-widget:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.2);
    border-color: rgba(37, 211, 102, 0.3);
}

.whatsapp-widget-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.whatsapp-widget-text {
    display: flex;
    flex-direction: column;
}

.whatsapp-widget-text .status {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #25d366;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 2px;
}

.whatsapp-widget-text .status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #25d366;
    border-radius: 50%;
    box-shadow: 0 0 8px #25d366;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.2);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.whatsapp-widget-text .label {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

/* Swiper Testimonials */
.swiper {
    width: 100%;
    padding-bottom: 3rem !important;
}

.testimonial-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    text-align: center;
    height: 100%;
    border: 1px solid var(--border);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary);
}

.testimonial-stars {
    color: var(--gold);
    margin-bottom: 0.5rem;
}

/* Modern FAQ Accordion Styles */
.faq-section {
    padding-bottom: 8rem;
}

.faq-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
}

.faq-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
    text-align: left;
    cursor: pointer;
    gap: 1.5rem;
}

.question-icon {
    width: 24px;
    height: 24px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
    flex-shrink: 0;
}

.faq-item.active .question-icon {
    background: var(--accent);
    color: white;
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    opacity: 1;
}

.faq-answer-inner {
    padding: 0 2rem 2rem;
    color: var(--text-body);
    line-height: 1.8;
}

@media (max-width: 768px) {
    .faq-question {
        padding: 1.25rem 1.5rem;
        font-size: 1.05rem;
    }

    .faq-answer-inner {
        padding: 0 1.5rem 1.5rem;
    }
}

/* NEW DESIGN FOR STAT CARDS (USER REQUEST) */
.stats-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem !important;
}

@media (max-width: 992px) {
    .stats-grid {
         grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 576px) {
    .stats-grid {
         grid-template-columns: 1fr !important;
    }
}

.stat-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 2.5rem 1.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    box-shadow: none !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
}

.stat-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
    border-color: #cbd5e1 !important;
}

.stat-icon {
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    background-color: #f0f4f8 !important; /* pale blue-gray */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 1.25rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
    color: #1e293b !important;
}

/* Ensure any internal SVG uses the exact correct sizing */
.stat-icon svg {
    width: 24px !important;
    height: 24px !important;
    stroke-width: 2 !important;
    color: #1e293b !important;
}

.stat-number {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 0.35rem !important;
    font-family: inherit !important;
}

.stat-label {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-top: 0 !important;
}


/* PREMIUM REDESIGN FOR STAT CARDS (WOW FACTOR) */
.stats-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem !important;
    padding: 2rem 0 !important;
}

@media (max-width: 992px) {
    .stats-grid {
         grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 576px) {
    .stats-grid {
         grid-template-columns: 1fr !important;
    }
}

.stat-card {
    background: linear-gradient(145deg, #0f172a, #1e293b) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 20px !important;
    padding: 2.5rem 1.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.4) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    position: relative !important;
    overflow: hidden !important;
    z-index: 1 !important;
}

.stat-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 50% !important;
    height: 100% !important;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.03) 50%, rgba(255,255,255,0) 100%) !important;
    transform: skewX(-25deg) !important;
    transition: all 0.7s ease !important;
    z-index: -1 !important;
}

.stat-card:hover::before {
    left: 200% !important;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 20px 40px -10px rgba(56, 189, 248, 0.3) !important;
    border-color: rgba(56, 189, 248, 0.3) !important;
}

.stat-icon {
    width: 64px !important;
    height: 64px !important;
    border-radius: 16px !important;
    background: rgba(56, 189, 248, 0.1) !important; 
    border: 1px solid rgba(56, 189, 248, 0.2) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 1.5rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
    color: #38bdf8 !important;
    transform: rotate(10deg) !important;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.stat-card:hover .stat-icon {
    transform: rotate(0deg) scale(1.1) !important;
    background: rgba(56, 189, 248, 0.2) !important;
}

.stat-icon svg {
    width: 28px !important;
    height: 28px !important;
    stroke-width: 2 !important;
    color: #38bdf8 !important;
    transform: rotate(-10deg) !important;
    transition: transform 0.4s ease !important;
}

.stat-card:hover .stat-icon svg {
    transform: rotate(0deg) !important;
}

.stat-number {
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    margin-bottom: 0.5rem !important;
    font-family: inherit !important;
    background: linear-gradient(135deg, #e0f2fe 0%, #38bdf8 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-fill-color: transparent !important;
}

.stat-label {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: #e2e8f0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    margin-top: 0 !important;
}
