﻿:root {
    /* Ultra-Modern Color System - Brand Updated */
    --primary: #127db5;
    --primary-dark: #0e608b;
    --secondary: #0b2c5b;
    --secondary-dark: #071f41;
    --accent: #f59e0b;
    --success: #0ea5e9;
    --danger: #ef4444;

    /* Dark Theme Colors (Default) */
    --bg-primary: #0a0a0f;
    --bg-secondary: #0f0f17;
    --bg-tertiary: #1a1a2e;
    --surface: #1e1e2e;
    --surface-hover: #2a2a3a;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b4b4c7;
    --text-muted: #6b7280;
    --text-inverse: #0a0a0f;
    --text-heading-dark-mode: #eff6ff;

    /* Gradients - Aligned with Brand */
    --gradient-primary: linear-gradient(135deg, #127db5 0%, #2bb8ff 100%);
    --gradient-secondary: linear-gradient(135deg, #0b2c5b 0%, #1a4a8c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-success: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);

    /* Effects */
    --blur: backdrop-filter: blur(20px);
    --glow-primary: 0 0 40px rgba(18, 125, 181, 0.4);
    --glow-secondary: 0 0 40px rgba(11, 44, 91, 0.4);
    --shadow-neo: 20px 20px 60px #0a0a0f, -20px -20px 60px #1a1a2e;
    --border-glow: 1px solid rgba(11, 44, 91, 0.3);
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --surface: #ffffff;
    --surface-hover: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-inverse: #ffffff;
    --glow-primary: 0 0 40px rgba(18, 125, 181, 0.15);
    --glow-secondary: 0 0 40px rgba(11, 44, 91, 0.15);
    --shadow-neo: 10px 10px 30px rgba(15, 23, 42, 0.1), -10px -10px 30px rgba(255, 255, 255, 0.8);
    --border-glow: 1px solid rgba(18, 125, 181, 0.1);
}

/* Global Reset for Variables */
* {
    box-sizing: border-box;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
}

[data-theme="light"] {
    /* Light Theme Backgrounds */
    --bg-primary: #ffffff;
    --secondary: #0b2c5b;
    --secondary-dark: #071f41;
    /* Extra variable for Dark Theme Text that needs to stay light */
    --text-heading-dark-mode: #eff6ff;
    --surface: #ffffff;
    --surface-hover: #f8fafc;

    /* Light Theme Text */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-inverse: #ffffff;

    /* Light Theme Effects - Brand Aligned */
    --glow-primary: 0 0 40px rgba(18, 125, 181, 0.15);
    --glow-secondary: 0 0 40px rgba(11, 44, 91, 0.15);
    --shadow-neo: 10px 10px 30px rgba(15, 23, 42, 0.1), -10px -10px 30px rgba(255, 255, 255, 0.8);
    --border-glow: 1px solid rgba(18, 125, 181, 0.1);
}

/* Light Theme Section Titles Fix */
[data-theme="light"] .section-title-ultra {
    color: var(--secondary) !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
}

/* Dark Theme Section Titles default (fix for visibility) */
.section-title-ultra {
    color: var(--text-heading-dark-mode);
}

/* Light Theme Hero Title Fix */
[data-theme="light"] .hero-title-ultra {
    color: var(--secondary) !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
}

/* Dark Theme Hero Title default (fix for visibility) */
.hero-title-ultra {
    color: var(--text-heading-dark-mode);
}

/* Light Theme Footer Logo Fix */
[data-theme="light"] .footer-ultra img {
    filter: brightness(1) invert(0) !important;
}

/* Light Theme Card Text Fixes */
[data-theme="light"] .floating-card h4,
[data-theme="light"] .bento-item h3,
[data-theme="light"] .bento-item h4,
[data-theme="light"] .interactive-feature h3 {
    color: var(--text-primary) !important;
}

[data-theme="light"] .floating-card div,
[data-theme="light"] .bento-item p {
    color: var(--text-secondary) !important;
}

/* Light Theme CTA Text Fix */
[data-theme="light"] .cta-ultra {
    color: white !important;
}

[data-theme="light"] .cta-title-ultra,
[data-theme="light"] .cta-subtitle-ultra {
    color: white !important;
}

/* Light Theme Interactive Feature Text Fix */
[data-theme="light"] .interactive-feature h3 {
    color: var(--text-primary) !important;
}

[data-theme="light"] .interactive-feature p {
    color: var(--text-secondary) !important;
}

/* Light Theme Tags/Badges Fix */
[data-theme="light"] .interactive-feature span {
    background: var(--surface-hover) !important;
    color: var(--text-primary) !important;
}

/* Light theme background animation adjustment */
[data-theme="light"] .bg-animated {
    background-image:
        radial-gradient(circle at 25% 25%, rgba(18, 125, 181, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(11, 44, 91, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.03) 0%, transparent 50%);
}

/* Essential Color Overrides for Buttons with Brand Backgrounds */
.auth-dropdown-ultra.primary .dropdown-toggle,
.auth-dropdown-ultra.secondary .dropdown-toggle,
.btn-primary-ultra,
.btn-secondary-ultra,
.action-btn.primary,
.action-btn.secondary {
    color: #ffffff !important;
}

.auth-dropdown-ultra.primary .dropdown-toggle *,
.auth-dropdown-ultra.secondary .dropdown-toggle *,
.btn-primary-ultra *,
.action-btn.secondary * {
    color: #ffffff !important;
}

/* Fix for Service Modal Buttons/Badges in Dark Mode */
.badge.bg-secondary,
.btn-outline-primary,
.badge-soft-primary {
    color: #ffffff !important;
}

/* Fix for specific named sections mentioned by user */
.hero-badge-pill,
.hero-badge-ultra {
    color: var(--text-primary);
}

[data-theme="dark"] .hero-badge-pill,
[data-theme="dark"] .hero-badge-ultra,
[data-theme="dark"] .bento-item h3,
[data-theme="dark"] .bento-item h4,
[data-theme="dark"] .interactive-feature h3,
[data-theme="dark"] .feature-text h4,
[data-theme="dark"] .feature-text p {
    color: white !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Animated Background */
.bg-animated {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--bg-primary);
    background-image:
        radial-gradient(circle at 25% 25%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
    animation: bgFloat 20s ease-in-out infinite;
}

@keyframes bgFloat {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    33% {
        transform: scale(1.1) rotate(1deg);
    }

    66% {
        transform: scale(0.9) rotate(-1deg);
    }
}

/* Ultra-Modern Header */
.ultra-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: var(--border-glow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] .ultra-header {
    background: rgba(255, 255, 255, 0.8);
}

.ultra-header.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: var(--glow-primary);
    padding: 0.75rem 0;
}

[data-theme="light"] .ultra-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
}

.navbar-brand-ultra img {
    height: 60px !important;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

[data-theme="light"] .navbar-brand-ultra img {
    filter: brightness(1) invert(0);
}

.navbar-brand-ultra:hover img {
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(14, 165, 233, 0.5));
}

[data-theme="light"] .navbar-brand-ultra:hover img {
    filter: brightness(1) invert(0) drop-shadow(0 0 10px rgba(14, 165, 233, 0.5));
}

/* Theme Toggle Button */
.theme-toggle-ultra {
    background: var(--surface);
    border: var(--border-glow);
    border-radius: 12px;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.theme-toggle-ultra:hover {
    background: var(--surface-hover);
    transform: translateY(-2px);
    box-shadow: var(--glow-primary);
}

.nav-ultra {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link-ultra {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    white-space: nowrap;
}

.nav-link-ultra::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.nav-link-ultra:hover,
.nav-link-ultra.active {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.nav-link-ultra:hover::before,
.nav-link-ultra.active::before {
    opacity: 0.1;
}

/* Ultra Buttons */
.btn-ultra {
    padding: 1rem 2rem;
    border: none;
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.btn-ultra::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.6s ease;
}

.btn-ultra:hover::before {
    left: 100%;
}

.btn-primary-ultra {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--glow-primary);
}

.btn-primary-ultra:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 60px rgba(18, 125, 181, 0.5);
    color: white;
}

.btn-secondary-ultra {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: var(--glow-secondary);
}

.btn-secondary-ultra:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 60px rgba(11, 44, 91, 0.5);
    color: white;
}

.btn-ghost-ultra {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: var(--border-glow);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.btn-ghost-ultra:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    color: var(--text-primary);
}

/* Auth Dropdowns */
.auth-dropdown-ultra .dropdown-toggle {
    background: var(--surface);
    color: #ffffff !important;
    border: var(--border-glow);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.auth-dropdown-ultra.primary .dropdown-toggle {
    background: var(--gradient-primary);
    border: none;
    box-shadow: var(--glow-primary);
}

.auth-dropdown-ultra.secondary .dropdown-toggle {
    background: var(--gradient-secondary);
    border: none;
    box-shadow: var(--glow-secondary);
}

.auth-dropdown-ultra .dropdown-toggle:hover {
    transform: translateY(-3px);
}

.auth-dropdown-ultra .dropdown-menu {
    background: var(--surface);
    border: var(--border-glow);
    border-radius: 20px;
    padding: 0.75rem;
    margin-top: 0.8rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-neo);
    min-width: 220px;
}

.dropdown-header-ultra {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 800;
    padding: 0.75rem 1.5rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 0.5rem;
    display: block;
}

[data-theme="light"] .dropdown-header-ultra {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

.auth-dropdown-ultra.primary .dropdown-header-ultra {
    color: var(--primary);
}

.auth-dropdown-ultra.secondary .dropdown-header-ultra {
    color: var(--secondary);
}

.auth-dropdown-ultra .dropdown-item {
    color: var(--text-primary);
    padding: 0.8rem 1.25rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.auth-dropdown-ultra.primary .dropdown-item:hover {
    background: rgba(18, 125, 181, 0.1);
    color: var(--primary);
    transform: translateX(5px);
}

.auth-dropdown-ultra.secondary .dropdown-item:hover {
    background: rgba(11, 44, 91, 0.1);
    color: var(--secondary);
    transform: translateX(5px);
}


/* Hero Section */
.hero-ultra {
    min-height: 70vh;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    position: relative;
    padding: 8rem 0 0;
    overflow: hidden;
}

.hero-row-modern {
    position: relative;
    min-height: calc(70vh - 8rem);
}

.hero-content-left {
    padding: 2rem 2rem 6rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 850px;
}

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1rem;
    width: fit-content;
}

.hero-subtext {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 600px;
    font-weight: 400;
}

.hero-headline {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 3.4rem;
    font-weight: 600;
    color: white;
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
    max-width: 100%;
    word-wrap: break-word;
    text-shadow: 0 10px 20px rgba(11, 44, 91, 0.3);
}

.hero-search-bar {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 10px;
    padding: 1rem 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.hero-search-bar:focus-within {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.1rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding-left: 1rem;
    color: #133B6F;
}

.hero-search-bar input::placeholder {
    color: #666;
}

.hero-search-icon {
    color: #133B6F;
    font-size: 1.25rem;
    margin-left: 1rem;
    cursor: pointer;
}

.hero-trust-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #182b4f;
    color: white;
    padding: 1.5rem 3rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    min-width: 220px;
}

.hero-badge-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.hero-visual-right {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 45%;
    height: auto;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    pointer-events: none;
}

.hero-visual-right img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin-bottom: -2px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-ultra {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        padding: 6rem 0 4rem;
    }

    .hero-content-left {
        max-width: 100%;
        padding: 2rem 1rem 0;
        order: 2;
    }

    .hero-trust-badges {
        justify-content: center;
    }

    .hero-visual-right {
        order: 1;
        padding: 2rem 1rem;
    }

    .hero-visual-right img {
        max-width: 80%;
    }
}

.hero-content-ultra {
    position: relative;
    z-index: 2;
}

.hero-badge-ultra {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--surface);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: var(--border-glow);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.hero-badge-ultra::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.1;
    transition: left 3s ease;
}

.hero-badge-ultra:hover::before {
    left: 100%;
}

.hero-title-ultra {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 850;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--text-heading-dark-mode);
    /* Default to Light for Dark Mode */
    letter-spacing: -0.02em;
}

.hero-subtitle-ultra {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 650px;
    line-height: 1.7;
}

.hero-cta-ultra {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.hero-stats-ultra {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 500px;
    margin-top: 2rem;
}

.hero-stat-ultra {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--surface);
    border: var(--border-glow);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-stat-ultra:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-primary);
}

.hero-stat-number-ultra {
    font-size: 2rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.hero-stat-label-ultra {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
}

/* Mobile responsive for hero stats */
@media (max-width: 768px) {
    .hero-stats-ultra {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        max-width: 100%;
    }

    .hero-stat-ultra {
        padding: 1rem 0.75rem;
        min-height: 100px;
    }

    .hero-stat-number-ultra {
        font-size: 1.5rem;
    }

    .hero-stat-label-ultra {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-stats-ultra {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .hero-stat-ultra {
        padding: 0.75rem 0.5rem;
        min-height: 85px;
    }

    .hero-stat-number-ultra {
        font-size: 1.25rem;
    }

    .hero-stat-label-ultra {
        font-size: 0.75rem;
    }
}

/* Floating Visual Elements */
.hero-visual-ultra {
    position: relative;
    height: 600px;
}

.floating-card {
    position: absolute;
    background: var(--surface);
    border: var(--border-glow);
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-neo);
    animation: float 8s ease-in-out infinite;
}

.floating-card:nth-child(1) {
    top: 10%;
    left: 10%;
    width: 250px;
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    top: 40%;
    right: 10%;
    width: 200px;
    animation-delay: 2s;
}

.floating-card:nth-child(3) {
    bottom: 20%;
    left: 30%;
    width: 280px;
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-20px) rotate(1deg);
    }

    50% {
        transform: translateY(-10px) rotate(-1deg);
    }

    75% {
        transform: translateY(-30px) rotate(0.5deg);
    }
}

/* Ultra Cards */
.card-ultra {
    background: var(--surface);
    border: var(--border-glow);
    border-radius: 24px;
    padding: 3rem 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.card-ultra::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.card-ultra:hover {
    transform: translateY(-10px);
    box-shadow: var(--glow-primary);
}

.card-ultra:hover::before {
    transform: scaleX(1);
}

.card-icon-ultra {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    background: var(--gradient-primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.card-ultra:nth-child(2) .card-icon-ultra {
    background: var(--gradient-secondary);
}

.card-ultra:nth-child(3) .card-icon-ultra {
    background: var(--gradient-accent);
}

.card-ultra:nth-child(4) .card-icon-ultra {
    background: var(--gradient-success);
}

.card-title-ultra {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.card-description-ultra {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Sections */
.section-ultra {
    padding: 1rem 0;
    position: relative;
}

.section-title-ultra {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-heading-dark-mode);
    /* Default to Light for Dark Mode */
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.section-subtitle-ultra {
    font-size: 1.25rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Feature Grid */
.feature-grid-ultra {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 4rem 0;
}

.bento-item {
    background: var(--surface);
    border: var(--border-glow);
    border-radius: 24px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.bento-item:hover {
    transform: scale(1.02);
    box-shadow: var(--glow-primary);
}

.bento-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-item:nth-child(2) {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-item:nth-child(3) {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-item:nth-child(4) {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-item:nth-child(5) {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-item:nth-child(6) {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-item:nth-child(7) {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-item:nth-child(8) {
    grid-column: span 2;
    grid-row: span 1;
}

/* Interactive Features */
.interactive-feature {
    background: var(--surface);
    border-radius: 32px;
    padding: 4rem;
    margin: 4rem 0;
    border: var(--border-glow);
    position: relative;
    overflow: hidden;
}

.interactive-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0.05;
    transition: opacity 0.3s ease;
}

.interactive-feature:hover::before {
    opacity: 0.1;
}

/* CTA Section */
.cta-ultra {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: white;
    text-align: center;
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.cta-ultra::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>') repeat;
}

.cta-content-ultra {
    position: relative;
    z-index: 2;
}

.cta-title-ultra {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.cta-subtitle-ultra {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons-ultra {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer-ultra {
    background: var(--bg-secondary);
    border-top: var(--border-glow);
    padding: 6rem 0 3rem;
}

.footer-title-ultra {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.footer-link-ultra {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.footer-link-ultra:hover {
    color: var(--primary);
    transform: translateX(10px);
}

.footer-bottom-ultra {
    border-top: var(--border-glow);
    margin-top: 4rem;
    padding-top: 3rem;
    text-align: center;
    color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-cta-ultra {
        flex-direction: column;
    }

    .btn-ultra {
        width: 100%;
        justify-content: center;
    }

    .feature-grid-ultra {
        grid-template-columns: 1fr;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 200px);
    }

    .bento-item {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }

    .cta-buttons-ultra {
        flex-direction: column;
        align-items: center;
    }

    .navbar-collapse {
        background: var(--surface);
        margin-top: 1rem;
        padding: 2rem;
        border-radius: 20px;
        border: var(--border-glow);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-slide-left {
    animation: slideInLeft 1s ease-out;
}

.animate-slide-right {
    animation: slideInRight 1s ease-out;
}

/* Scroll Animations */
.scroll-animate-ultra {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate-ultra.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Hero Visual Elements */
.hero-central-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.central-icon-wrapper {
    position: relative;
    animation: pulse 4s ease-in-out infinite;
}

.icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    animation: glow 3s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes glow {

    0%,
    100% {
        opacity: 0.1;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.2;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Enhanced Floating Cards */
.enhanced-card {
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.enhanced-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), var(--glow-primary);
}

.card-header-with-icon {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.large-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-hover);
    transition: all 0.3s ease;
}

.enhanced-card:hover .large-card-icon {
    background: var(--gradient-primary);
    transform: scale(1.1) rotate(5deg);
}

.enhanced-card:hover .large-card-icon i {
    color: white !important;
}

/* Pulse Indicator */
.pulse-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.pulse-indicator span {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

.pulse-indicator span:nth-child(2) {
    animation-delay: 0.3s;
}

.pulse-indicator span:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Progress Container */
.progress-container {
    width: 100%;
    height: 12px;
    background: var(--surface-hover);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-bar-animated {
    width: 100%;
    height: 100%;
    background: var(--gradient-success);
    border-radius: 6px;
    animation: fill-progress 3s ease-in-out infinite;
    position: relative;
}

.progress-bar-animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 2s ease-in-out infinite;
}

@keyframes fill-progress {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

@keyframes shine {
    0% {
        left: -50%;
    }

    100% {
        left: 100%;
    }
}

/* Automation Stats */
.automation-stats {
    margin-top: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Background Icons */
.background-icon {
    position: absolute;
    z-index: 1;
    animation: float-bg 10s ease-in-out infinite;
}

.bg-icon-1 {
    top: 15%;
    right: 15%;
    animation-delay: 0s;
}

.bg-icon-2 {
    bottom: 30%;
    right: 5%;
    animation-delay: 3s;
}

.bg-icon-3 {
    top: 60%;
    left: 5%;
    animation-delay: 6s;
}

@keyframes float-bg {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.05;
    }

    25% {
        transform: translateY(-15px) rotate(2deg);
        opacity: 0.08;
    }

    50% {
        transform: translateY(-25px) rotate(-1deg);
        opacity: 0.06;
    }

    75% {
        transform: translateY(-10px) rotate(1deg);
        opacity: 0.07;
    }
}

/* Light Theme Enhancements for New Elements */
[data-theme="light"] .enhanced-card {
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .enhanced-card:hover {
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15), var(--glow-primary);
}

[data-theme="light"] .large-card-icon {
    background: var(--bg-tertiary);
}

[data-theme="light"] .progress-container {
    background: var(--bg-tertiary);
}

[data-theme="light"] .icon-glow {
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.05;
}

/* Modern Hero Visual Cards */
.hero-visual-modern {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2rem;
    width: 500px;
    height: 400px;
    position: relative;
    z-index: 3;
}

.modern-card {
    background: var(--surface);
    border: var(--border-glow);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    cursor: pointer;
}

.modern-card:hover {
    transform: translateY(-10px) scale(1.05);
    z-index: 10;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}

.modern-card:hover .card-glow {
    opacity: 0.1;
}

.card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    background: var(--gradient-primary);
    color: white;
    transition: all 0.3s ease;
}

.icon-wrapper.secondary {
    background: var(--gradient-secondary);
}

.icon-wrapper.success {
    background: var(--gradient-success);
}

.icon-wrapper.accent {
    background: var(--gradient-accent);
}

.modern-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.card-info h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.metric {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.metric .value {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.metric .label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Card-specific styles */
.card-2 .metric .value {
    color: var(--secondary);
}

.card-3 .metric .value {
    color: var(--success);
}

.card-4 .metric .value {
    color: var(--accent);
}

/* Progress Ring for Card 1 */
.progress-ring {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.progress-circle {
    animation: progress-animation 3s ease-in-out infinite;
}

@keyframes progress-animation {
    0% {
        stroke-dashoffset: 157;
    }

    100% {
        stroke-dashoffset: 39;
    }
}

/* Pulse Dots for Card 2 */
.pulse-dots {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.pulse-dots span {
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

.pulse-dots span:nth-child(2) {
    animation-delay: 0.3s;
}

.pulse-dots span:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

/* Success Indicator for Card 3 */
.success-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--success);
    font-size: 1.5rem;
    animation: success-pulse 2s ease-in-out infinite;
}

@keyframes success-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Trend Line for Card 4 */
.trend-line {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
}

.trend {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: draw-trend 3s ease-in-out infinite;
}

@keyframes draw-trend {
    0% {
        stroke-dashoffset: 100;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

/* Floating Geometric Elements */
.floating-geometry {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.geo-element {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.1;
    animation: float-geo 15s ease-in-out infinite;
}

.geo-1 {
    width: 100px;
    height: 100px;
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.geo-2 {
    width: 60px;
    height: 60px;
    top: 70%;
    right: -5%;
    background: var(--gradient-secondary);
    animation-delay: 3s;
}

.geo-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: -15%;
    background: var(--gradient-accent);
    animation-delay: 6s;
}

.geo-4 {
    width: 40px;
    height: 40px;
    top: 30%;
    right: -20%;
    background: var(--gradient-success);
    animation-delay: 9s;
}

@keyframes float-geo {

    0%,
    100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.1;
    }

    25% {
        transform: translateY(-30px) translateX(20px) rotate(90deg);
        opacity: 0.2;
    }

    50% {
        transform: translateY(-10px) translateX(-20px) rotate(180deg);
        opacity: 0.15;
    }

    75% {
        transform: translateY(-40px) translateX(10px) rotate(270deg);
        opacity: 0.25;
    }
}

/* Central Hologram Effect */
.hologram-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.hologram-ring {
    position: absolute;
    border: 2px solid var(--primary);
    border-radius: 50%;
    animation: hologram-rotate 10s linear infinite;
}

.ring-1 {
    width: 150px;
    height: 150px;
    top: -75px;
    left: -75px;
    opacity: 0.3;
    animation-delay: 0s;
}

.ring-2 {
    width: 200px;
    height: 200px;
    top: -100px;
    left: -100px;
    opacity: 0.2;
    border-color: var(--secondary);
    animation-delay: 2s;
    animation-direction: reverse;
}

.ring-3 {
    width: 250px;
    height: 250px;
    top: -125px;
    left: -125px;
    opacity: 0.1;
    border-color: var(--accent);
    animation-delay: 4s;
}

@keyframes hologram-rotate {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.1);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

.hologram-core {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    top: -40px;
    left: -40px;
    font-size: 2rem;
    color: white;
    animation: core-pulse 4s ease-in-out infinite;
    box-shadow: 0 0 40px var(--primary);
}

@keyframes core-pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 40px var(--primary);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 60px var(--primary);
    }
}

/* Light Theme Adjustments */
[data-theme="light"] .modern-card {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .modern-card:hover {
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
}

[data-theme="light"] .hologram-core {
    box-shadow: 0 0 40px rgba(14, 165, 233, 0.3);
}

[data-theme="light"] .geo-element {
    opacity: 0.05;
}

/* Responsive Design for Modern Cards */
@media (max-width: 768px) {
    .modern-cards-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 150px);
        width: 100%;
        height: auto;
        gap: 1.5rem;
    }

    .hero-visual-modern {
        height: auto;
        padding: 2rem 0;
    }

    .hologram-center {
        display: none;
    }

    .floating-geometry {
        display: none;
    }
}

/* Stats Section */
.stats-section-ultra {
    padding: 6rem 0;
    background: var(--bg-secondary);
    position: relative;
}

.stats-title-ultra {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

[data-theme="light"] .stats-title-ultra {
    background: linear-gradient(135deg, #0f172a 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stats-subtitle-ultra {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.stats-grid-ultra {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card-ultra {
    background: var(--surface);
    border: var(--border-glow);
    border-radius: 24px;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.stat-card-ultra::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.stat-card-ultra:hover {
    transform: translateY(-10px);
    box-shadow: var(--glow-primary);
}

.stat-card-ultra:hover::before {
    transform: scaleX(1);
}

.stat-icon-ultra {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: var(--gradient-primary);
    color: white;
    position: relative;
    flex-shrink: 0;
}

.stat-icon-ultra.secondary {
    background: var(--gradient-secondary);
}

.stat-icon-ultra.success {
    background: var(--gradient-success);
}

.stat-icon-ultra.accent {
    background: var(--gradient-accent);
}

.stat-content-ultra {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-number-ultra {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1;
}

.rating-wrapper-ultra {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.star-badge-ultra {
    font-size: 1.4rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.3));
    animation: starPulse 2s ease-in-out infinite;
}

@keyframes starPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}


.stat-label-ultra {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
}

.star-icon-ultra {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 0.8em;
    vertical-align: middle;
    margin-left: 0.2rem;
}

.stat-progress-ultra {
    width: 100%;
    height: 6px;
    background: var(--surface-hover);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 1rem;
    position: relative;
}

.stat-progress-bar-ultra {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 2s ease-in-out;
    position: relative;
}

.stat-progress-bar-ultra.secondary {
    background: var(--gradient-secondary);
}

.stat-progress-bar-ultra.success {
    background: var(--gradient-success);
}

.stat-progress-bar-ultra.accent {
    background: var(--gradient-accent);
}

.stat-progress-bar-ultra::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progress-shine 3s ease-in-out infinite;
}

@keyframes progress-shine {
    0% {
        left: -50%;
    }

    100% {
        left: 100%;
    }
}

/* Light theme adjustments */
[data-theme="light"] .stats-section-ultra {
    background: var(--bg-tertiary);
}

[data-theme="light"] .stat-card-ultra {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .stat-card-ultra:hover {
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
}

[data-theme="light"] .stat-progress-ultra {
    background: var(--bg-secondary);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .stats-grid-ultra {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-card-ultra {
        padding: 2rem;
        gap: 1rem;
    }

    .stat-icon-ultra {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .stat-number-ultra {
        font-size: 2rem;
    }


    white-space: nowrap;
}
}

/* Modern Process Timeline Styles */
.process-timeline-ultra {
    margin-top: 4rem;
    position: relative;
}

.timeline-step {
    margin-bottom: 6rem;
    position: relative;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.timeline-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
}

.timeline-step.reverse .timeline-content {
    grid-template-columns: 1fr 1fr;
}

.timeline-step.reverse .step-visual {
    order: 2;
}

.timeline-step.reverse .step-info {
    order: 1;
}

/* Step Visual Elements */
.step-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.step-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.step-number {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-secondary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: 2px;
}

.step-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    position: relative;
    transition: all 0.4s ease;
}

.step-icon.primary {
    background: var(--gradient-primary);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3);
}

.step-icon.secondary {
    background: var(--gradient-secondary);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
}

.step-icon.success {
    background: var(--gradient-success);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3);
}

.timeline-step:hover .step-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Step Illustration */
.step-illustration {
    width: 300px;
    height: 200px;
    position: relative;
}

.illustration-bg {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.illustration-bg.primary {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(14, 165, 233, 0.05) 100%);
    border: 2px solid rgba(14, 165, 233, 0.2);
}

.illustration-bg.secondary {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%);
    border: 2px solid rgba(6, 182, 212, 0.2);
}

.illustration-bg.success {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(14, 165, 233, 0.05) 100%);
    border: 2px solid rgba(14, 165, 233, 0.2);
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.float-element {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    animation: float-timeline 4s ease-in-out infinite;
}

@keyframes float-timeline {

    0%,
    100% {
        transform: translateY(0px);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-10px);
        opacity: 0.6;
    }
}

.main-icon {
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.2;
    z-index: 1;
    position: relative;
}

.illustration-bg.secondary .main-icon {
    color: var(--secondary);
}

.illustration-bg.success .main-icon {
    color: var(--success);
}

/* Step Info */
.step-info {
    padding: 2rem 0;
}

.step-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.step-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.step-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--surface-hover);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: var(--surface);
    transform: translateX(5px);
}

.feature-item i {
    font-size: 1.25rem;
    color: var(--primary);
    width: 20px;
    flex-shrink: 0;
}

.timeline-step.reverse .feature-item i {
    color: var(--secondary);
}

.timeline-step:last-child .feature-item i {
    color: var(--success);
}

.feature-item span {
    color: var(--text-primary);
    font-weight: 500;
}

/* Step Action */
.step-action {
    display: flex;
    align-items: center;
}

.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.btn-modern.primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3);
}

.btn-modern.secondary {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
}

.btn-modern:hover {
    transform: translateY(-5px);
    color: white;
}

.btn-modern.primary:hover {
    box-shadow: 0 15px 40px rgba(14, 165, 233, 0.4);
}

.btn-modern.secondary:hover {
    box-shadow: 0 15px 40px rgba(6, 182, 212, 0.4);
}

.btn-text {
    font-size: 1rem;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.btn-modern:hover .btn-icon {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.3);
}

/* Security Badge */
.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--surface);
    border: 2px solid var(--success);
    border-radius: 50px;
    color: var(--success);
    font-weight: 600;
    transition: all 0.3s ease;
}

.security-badge:hover {
    background: var(--success);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3);
}

.security-badge i {
    font-size: 1.25rem;
}

/* Timeline Connector */
.timeline-connector {
    position: absolute;
    left: 50%;
    bottom: -3rem;
    width: 4px;
    height: 3rem;
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-connector.primary {
    background: var(--gradient-primary);
}

.timeline-connector.secondary {
    background: var(--gradient-secondary);
}

.timeline-step:last-child .timeline-connector {
    display: none;
}

/* Light Theme Adjustments */
[data-theme="light"] .illustration-bg.primary {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05) 0%, rgba(14, 165, 233, 0.02) 100%);
    border: 2px solid rgba(14, 165, 233, 0.1);
}

[data-theme="light"] .illustration-bg.secondary {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.05) 0%, rgba(6, 182, 212, 0.02) 100%);
    border: 2px solid rgba(6, 182, 212, 0.1);
}

[data-theme="light"] .illustration-bg.success {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05) 0%, rgba(14, 165, 233, 0.02) 100%);
    border: 2px solid rgba(14, 165, 233, 0.1);
}

[data-theme="light"] .feature-item {
    background: var(--bg-tertiary);
}

[data-theme="light"] .feature-item:hover {
    background: var(--surface);
}

[data-theme="light"] .security-badge {
    background: var(--bg-tertiary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .timeline-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .timeline-step.reverse .step-visual {
        order: 1;
    }

    .timeline-step.reverse .step-info {
        order: 2;
    }

    .step-illustration {
        width: 100%;
        height: 150px;
    }

    .step-title {
        font-size: 1.5rem;
    }

    .step-description {
        font-size: 1rem;
    }

    .btn-modern {
        width: 100%;
        justify-content: center;
    }

    .timeline-connector {
        display: none;
    }

    .timeline-step {
        margin-bottom: 4rem;
    }
}

/* Modern Features Grid */
.features-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.feature-modern-card {
    background: var(--surface);
    border: var(--border-glow);
    border-radius: 28px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    min-height: 380px;
}

.feature-modern-card.featured {
    background: linear-gradient(135deg, var(--surface) 0%, rgba(14, 165, 233, 0.05) 100%);
    border: 2px solid rgba(14, 165, 233, 0.2);
    grid-column: span 2;
}

.feature-modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.feature-modern-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), var(--glow-primary);
}

.feature-modern-card:hover::before {
    transform: scaleX(1);
}

.feature-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.feature-icon-modern {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    position: relative;
    transition: all 0.4s ease;
}

.feature-icon-modern.primary {
    background: var(--gradient-primary);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
}

.feature-icon-modern.secondary {
    background: var(--gradient-secondary);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.3);
}

.feature-icon-modern.success {
    background: var(--gradient-success);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
}

.feature-icon-modern.accent {
    background: var(--gradient-accent);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

.feature-modern-card:hover .feature-icon-modern {
    transform: scale(1.1) rotate(5deg);
}

.icon-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.icon-glow.primary {
    background: radial-gradient(circle, rgba(14, 165, 233, 0.3) 0%, transparent 70%);
}

.icon-glow.secondary {
    background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, transparent 70%);
}

.icon-glow.success {
    background: radial-gradient(circle, rgba(14, 165, 233, 0.3) 0%, transparent 70%);
}

.icon-glow.accent {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.3) 0%, transparent 70%);
}

.feature-modern-card:hover .icon-glow {
    opacity: 1;
}

.feature-badge {
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.feature-title-modern {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.feature-description-modern {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.feature-highlights {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--surface-hover);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.highlight-item:hover {
    background: var(--surface);
    transform: translateX(5px);
}

.highlight-item i {
    font-size: 1rem;
    color: var(--primary);
    width: 16px;
    flex-shrink: 0;
}

.highlight-item span {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.feature-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.stat-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: var(--surface-hover);
    border-radius: 12px;
    min-width: 80px;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 0.25rem;
}

.feature-visual {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 60px;
    height: 60px;
    opacity: 0.6;
    z-index: 0;
}

.visual-element {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dashboard Visual */
.chart-mockup {
    display: flex;
    align-items: end;
    gap: 3px;
    height: 40px;
}

.chart-bar {
    width: 8px;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: chart-grow 2s ease-in-out infinite;
}

@keyframes chart-grow {

    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(1.2);
    }
}

/* Payment Visual */
.payment-mockup {
    position: relative;
    width: 40px;
    height: 25px;
    background: var(--gradient-secondary);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4px;
}

.card-line {
    height: 2px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 1px;
    margin-bottom: 2px;
}

.card-line.short {
    width: 60%;
}

.payment-check {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 16px;
    height: 16px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: white;
    font-weight: bold;
}

/* KYC Visual */
.kyc-mockup {
    position: relative;
    width: 35px;
    height: 25px;
    background: var(--gradient-success);
    border-radius: 4px;
}

.doc-scan {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    border-radius: 4px;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    animation: scan-move 2s ease-in-out infinite;
}

@keyframes scan-move {
    0% {
        top: 0;
    }

    100% {
        top: calc(100% - 2px);
    }
}

.verification-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 12px;
    height: 12px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6px;
    color: white;
    font-weight: bold;
}

/* Analytics Visual */
.analytics-mockup {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.analytics-dots {
    display: flex;
    gap: 3px;
}

.analytics-dots span {
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

.analytics-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.analytics-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

/* Roles Visual */
.roles-mockup {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

.role-icon {
    font-size: 14px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-hover);
    border-radius: 4px;
}

/* Mobile Visual */
.mobile-mockup {
    width: 25px;
    height: 40px;
    background: var(--gradient-secondary);
    border-radius: 6px;
    padding: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mobile-screen {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.app-icon {
    font-size: 8px;
}

.app-dots {
    display: flex;
    gap: 1px;
}

.app-dots span {
    width: 2px;
    height: 2px;
    background: var(--text-muted);
    border-radius: 50%;
}

/* Light Theme Adjustments */
[data-theme="light"] .feature-modern-card {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .feature-modern-card.featured {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(14, 165, 233, 0.03) 100%);
    border: 2px solid rgba(14, 165, 233, 0.1);
}

[data-theme="light"] .feature-modern-card:hover {
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.15), var(--glow-primary);
}

[data-theme="light"] .highlight-item {
    background: var(--bg-tertiary);
}

[data-theme="light"] .highlight-item:hover {
    background: var(--surface);
}

[data-theme="light"] .stat-mini {
    background: var(--bg-tertiary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .features-modern-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-modern-card {
        min-height: 350px;
        padding: 2rem;
    }

    .feature-modern-card.featured {
        grid-column: span 1;
    }

    .feature-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .feature-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-mini {
        flex-direction: row;
        min-width: auto;
        gap: 1rem;
    }

    .feature-visual {
        position: static;
        margin-top: 1rem;
        width: 80px;
        height: 50px;
        opacity: 0.3;
    }
}

/* Clean Features Grid Styles */
/* Clean Features Grid Styles */
.features-clean-grid {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}


.feature-card-clean {
    background: var(--surface);
    border: var(--border-glow);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.feature-card-clean.feature-large {
    min-height: 350px;
}

.feature-card-clean::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card-clean:hover {
    transform: translateY(-10px);
    box-shadow: var(--glow-primary);
}

.feature-card-clean:hover::before {
    transform: scaleX(1);
}

.feature-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.feature-icon-clean {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 2rem;
    transition: all 0.4s ease;
    background: var(--gradient-primary);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
}

.feature-icon-clean.secondary {
    background: var(--gradient-secondary);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.3);
}

.feature-icon-clean.success {
    background: var(--gradient-primary);
    box-shadow: 0 8px 25px rgba(18, 125, 181, 0.3);
}

.feature-icon-clean.accent {
    background: var(--gradient-primary);
    box-shadow: 0 8px 25px rgba(18, 125, 181, 0.3);
}

.feature-card-clean:hover .feature-icon-clean {
    transform: scale(1.1) rotate(5deg);
}

.feature-content-clean {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.feature-content-clean h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.feature-content-clean p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.feature-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: auto;
}


.tag {
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(14, 165, 233, 0.2);
    transition: all 0.3s ease;
    display: inline-block;
}

.tag.secondary {
    background: rgba(6, 182, 212, 0.1);
    color: var(--secondary);
    border-color: rgba(6, 182, 212, 0.2);
}

.tag.success {
    background: rgba(14, 165, 233, 0.1);
    color: var(--success);
    border-color: rgba(14, 165, 233, 0.2);
}


.tag.accent {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent);
    border-color: rgba(245, 158, 11, 0.2);
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tag:hover {
    background: var(--primary);
    color: white;
}

.tag.secondary:hover {
    background: var(--secondary);
    color: white;
}

.tag.success:hover {
    background: var(--success);
    color: white;
}

.tag.accent:hover {
    background: var(--accent);
    color: white;
}

/* Dark Mode Tag & Icon Fixes */
[data-theme="dark"] .tag,
[data-theme="dark"] .tag.secondary,
[data-theme="dark"] .tag.success,
[data-theme="dark"] .tag.accent {
    color: #ffffff !important;
}

[data-theme="dark"] .fa-solid,
[data-theme="dark"] .fa-brands,
[data-theme="dark"] .fa-regular {
    color: #ffffff !important;
}

/* Specific fix for colored icons that should keep their color if needed, 
           but generally icons in dark mode on this page need to be visible. 
           If some icons need to be colored, we can use specific classes. 
           For now, forcing white ensures visibility. */

/* Light Theme Adjustments */
[data-theme="light"] .feature-card-clean {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .feature-card-clean:hover {
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
}

[data-theme="light"] display: inline-block;
}

[data-theme="light"] .tag.secondary {
    background: rgba(6, 182, 212, 0.05);
    border-color: rgba(6, 182, 212, 0.15);
}

[data-theme="light"] .tag.success {
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.2);
    color: #0284c7;
    /* Darker blue for better readability on light mode */
    font-weight: 600;
}

[data-theme="light"] .tag.accent {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
    color: #d97706;
    /* Darker orange for better readability on light mode */
    font-weight: 600;
}

/* Tablet Responsive */
@media (max-width: 992px) {
    .features-clean-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .features-clean-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }


    .feature-card-clean {
        min-height: 250px;
        padding: 2rem;
    }

    .feature-card-clean.feature-large {
        min-height: 280px;
    }

    .feature-number {
        top: 1rem;
        right: 1rem;
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .feature-icon-clean {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .feature-content-clean h3 {
        font-size: 1.3rem;
    }

    .feature-content-clean p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .feature-tags {
        gap: 0.5rem;
    }


    display: inline-block;
}
}

/* New How RentLoop Works Styles */
.works-steps-modern {
    position: relative;
    max-width: 800px;
    margin: 4rem auto 0;
}

.step-connector-line {
    position: absolute;
    top: 80px;
    left: 50%;
    width: 2px;
    height: calc(100% - 160px);
    background: var(--gradient-primary);
    transform: translateX(-50%);
    z-index: 1;
}

.work-step {
    display: flex;
    align-items: center;
    margin-bottom: 6rem;
    position: relative;
    z-index: 2;
}

.work-step:nth-child(even) {
    flex-direction: row-reverse;
}

.work-step:nth-child(even) .step-content {
    text-align: right;
    padding-right: 3rem;
    padding-left: 0;
}

.work-step:last-child {
    margin-bottom: 0;
}

.step-circle {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.step-inner-circle {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 20px;
    z-index: 3;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3);
}

.step-inner-circle.secondary {
    background: var(--gradient-secondary);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
}

.step-inner-circle.success {
    background: var(--gradient-success);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3);
}

.step-inner-circle i {
    font-size: 2rem;
    color: white;
}

.step-pulse-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 120px;
    height: 120px;
    border: 3px solid var(--primary);
    border-radius: 50%;
    animation: pulse-ring 2s ease-in-out infinite;
}

.step-pulse-ring.secondary {
    border-color: var(--secondary);
}

.step-pulse-ring.success {
    border-color: var(--success);
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }

    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.work-step:hover .step-inner-circle {
    transform: scale(1.1);
}

.step-content {
    flex: 1;
    padding-left: 3rem;
    max-width: 400px;
}

.step-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.step-benefits {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.benefit-tag {
    background: var(--surface-hover);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-glow);
    transition: all 0.3s ease;
}

.benefit-tag:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.step-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.step-cta.primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.3);
}

.step-cta.secondary {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: 0 5px 15px rgba(6, 182, 212, 0.3);
}

.step-cta.success.completed {
    background: var(--surface);
    color: var(--success);
    border: 2px solid var(--success);
    cursor: default;
}

.step-cta:hover {
    transform: translateY(-3px);
}

.step-cta.success.completed:hover {
    transform: none;
}

/* Success Metrics */
.success-metrics {
    margin-top: 6rem;
    padding: 4rem 0;
    background: var(--surface);
    border-radius: 24px;
    border: var(--border-glow);
}

.metric-item {
    padding: 2rem 1rem;
    transition: all 0.3s ease;
}

.metric-item:hover {
    transform: translateY(-5px);
}

.metric-number {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.metric-label {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .works-steps-modern {
        padding: 0 1rem;
    }

    .step-connector-line {
        display: none;
    }

    .work-step {
        flex-direction: column !important;
        text-align: center;
        margin-bottom: 4rem;
    }

    .work-step:nth-child(even) .step-content {
        text-align: center;
        padding-right: 0;
        padding-left: 0;
    }

    .step-content {
        padding-left: 0;
        margin-top: 2rem;
        max-width: 100%;
    }

    .step-benefits {
        justify-content: center;
    }

    .metric-number {
        font-size: 2.5rem;
    }
}

/* Light Theme Adjustments */
[data-theme="light"] .success-metrics {
    background: var(--bg-tertiary);
}

[data-theme="light"] .benefit-tag {
    background: var(--bg-secondary);
}

/* Built For Everyone - User Type Cards */
.user-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin: 4rem 0;
}

.user-type-card {
    background: var(--surface);
    border: var(--border-glow);
    border-radius: 28px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

.user-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.user-type-card.owner-card::before {
    background: var(--gradient-secondary);
}

.user-type-card.manager-card::before {
    background: var(--gradient-success);
}

.user-type-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--glow-primary);
}

.user-type-card.owner-card:hover {
    box-shadow: var(--glow-secondary);
}

.user-type-card.manager-card:hover {
    box-shadow: 0 0 40px rgba(14, 165, 233, 0.3);
}

.user-type-card:hover::before {
    transform: scaleX(1);
}

/* Card Header Section */
.card-header-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.user-avatar {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    background: var(--gradient-primary);
    box-shadow: 0 8px 25px rgba(18, 125, 181, 0.3);
    transition: all 0.3s ease;
}

.user-avatar.secondary {
    background: var(--gradient-secondary);
    box-shadow: 0 8px 25px rgba(11, 44, 91, 0.3);
}

.user-avatar.success {
    background: var(--gradient-success);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
}

.user-type-card:hover .user-avatar {
    transform: scale(1.1) rotate(5deg);
}

.user-info {
    flex: 1;
    margin: 0 1rem;
}

.user-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.tenant-card .user-info h3 {
    color: var(--primary);
}

.owner-card .user-info h3 {
    color: var(--secondary);
}

.manager-card .user-info h3 {
    color: var(--success);
}

/* Dark Mode Visibility Fixes for User Cards */
[data-theme="dark"] .user-info h3,
[data-theme="dark"] .tenant-card .user-info h3,
[data-theme="dark"] .owner-card .user-info h3,
[data-theme="dark"] .manager-card .user-info h3 {
    color: #ffffff !important;
}

.user-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.user-count {
    font-size: 1.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 0.75rem 1.25rem;
    background-color: var(--surface-hover);
    border-radius: 20px;
    border: 1px solid var(--border-glow);
}

/* Features List */
.features-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--surface-hover);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.feature-row:hover {
    background: var(--surface);
    transform: translateX(8px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.feature-icon.primary {
    background: var(--gradient-primary);
    box-shadow: 0 5px 15px rgba(18, 125, 181, 0.3);
}

.feature-icon.secondary {
    background: var(--gradient-secondary);
    box-shadow: 0 5px 15px rgba(11, 44, 91, 0.3);
}

.feature-icon.success {
    background: var(--gradient-primary);
    box-shadow: 0 5px 15px rgba(18, 125, 181, 0.3);
}

.feature-row:hover .feature-icon {
    transform: scale(1.1);
}

.feature-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.feature-text strong {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.feature-text span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Card Action */
.card-action {
    margin-top: auto;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 2rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.action-btn.primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 8px 25px rgba(18, 125, 181, 0.3);
}

.action-btn.secondary {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: 0 8px 25px rgba(11, 44, 91, 0.3);
}

.action-btn.success {
    background: var(--gradient-success);
    color: white;
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
}

.action-btn:hover {
    transform: translateY(-3px);
    color: white;
}

.action-btn.primary:hover {
    box-shadow: 0 12px 35px rgba(18, 125, 181, 0.4);
}

.action-btn.secondary:hover {
    box-shadow: 0 12px 35px rgba(11, 44, 91, 0.4);
}

.action-btn.success:hover {
    box-shadow: 0 12px 35px rgba(14, 165, 233, 0.4);
}

.action-btn::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.6s ease;
}

.action-btn:hover::before {
    left: 100%;
}

/* Success Stories Section */
.success-stories {
    margin-top: 4rem;
    text-align: center;
}

.stories-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.story-item {
    padding: 2rem 1.5rem;
    background: var(--surface);
    border: var(--border-glow);
    border-radius: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
}

.story-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--glow-primary);
}

.story-metric {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-bottom: 0.75rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1;
}

.story-text {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
}

/* Light Theme Adjustments */
[data-theme="light"] .user-type-card {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .user-type-card:hover {
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
}

[data-theme="light"] .user-type-card.owner-card:hover {
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
}

[data-theme="light"] .user-type-card.manager-card:hover {
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
}

[data-theme="light"] .feature-row {
    background: var(--bg-tertiary);
}

[data-theme="light"] .feature-row:hover {
    background: var(--surface);
}

[data-theme="light"] .user-count {
    background-color: var(--bg-tertiary);
}

[data-theme="light"] .story-item {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .story-item:hover {
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.15);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .user-types-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .user-type-card {
        min-height: 450px;
        padding: 2rem;
    }

    .card-header-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .user-info {
        margin: 0;
        text-align: center;
        width: 100%;
    }

    .user-count {
        align-self: flex-end;
    }

    .feature-row {
        padding: 0.75rem;
    }

    .feature-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .action-btn {
        padding: 1rem 1.5rem;
    }

    .stories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stories-title {
        font-size: 1.75rem;
    }

    .story-metric {
        font-size: 2rem;
    }
}

/* Horizontal Process Cards Styles */
.process-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 4rem 0;
    position: relative;
}

.process-card {
    background: var(--surface);
    border: var(--border-glow);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

.process-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.process-card[data-step="2"]::before {
    background: var(--gradient-secondary);
}

.process-card[data-step="3"]::before {
    background: var(--gradient-success);
}

.process-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--glow-primary);
}

.process-card[data-step="2"]:hover {
    box-shadow: var(--glow-secondary);
}

.process-card[data-step="3"]:hover {
    box-shadow: 0 0 40px rgba(14, 165, 233, 0.3);
}

.process-card:hover::before {
    transform: scaleX(1);
}

/* Process Header */
.process-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.step-badge {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.3);
}

.process-card[data-step="2"] .step-badge {
    background: var(--gradient-secondary);
    box-shadow: 0 5px 15px rgba(6, 182, 212, 0.3);
}

.process-card[data-step="3"] .step-badge {
    background: var(--gradient-success);
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.3);
}

.step-icon-large {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    background: var(--gradient-primary);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
    transition: all 0.3s ease;
}

.step-icon-large.secondary {
    background: var(--gradient-secondary);
    box-shadow: 0 8px 25px rgba(11, 44, 91, 0.3);
}

.step-icon-large.success {
    background: var(--gradient-primary);
    box-shadow: 0 8px 25px rgba(18, 125, 181, 0.3);
}

.process-card:hover .step-icon-large {
    transform: scale(1.1) rotate(5deg);
}

/* Process Body */
.process-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.process-body h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.process-body p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

/* Process Features */
.process-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-point {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--surface-hover);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-point:hover {
    background: var(--surface);
    transform: translateX(5px);
}

.feature-point i {
    font-size: 1.25rem;
    color: var(--primary);
    width: 20px;
    flex-shrink: 0;
}

.process-card[data-step="2"] .feature-point i {
    color: var(--secondary);
}

.process-card[data-step="3"] .feature-point i {
    color: var(--success);
}

.feature-point span {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

/* Process Footer */
.process-footer {
    margin-top: auto;
}

.process-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 2rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.process-btn.primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
}

.process-btn.secondary {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.3);
}

.process-btn.success.completed {
    background: var(--surface);
    color: var(--success);
    border: 2px solid var(--success);
    cursor: default;
}

.process-btn:hover {
    transform: translateY(-3px);
    color: white;
}

.process-btn.primary:hover {
    box-shadow: 0 12px 35px rgba(14, 165, 233, 0.4);
}

.process-btn.secondary:hover {
    box-shadow: 0 12px 35px rgba(6, 182, 212, 0.4);
}

.process-btn.success.completed:hover {
    transform: none;
    color: var(--success);
}

.process-btn::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.6s ease;
}

.process-btn:hover::before {
    left: 100%;
}

.process-btn.success.completed::before {
    display: none;
}

/* Card Connectors */
.card-connector {
    position: absolute;
    top: 50%;
    right: -1rem;
    width: 2rem;
    height: 2px;
    background: var(--gradient-primary);
    transform: translateY(-50%);
    z-index: 2;
}

.process-card[data-step="2"] .card-connector {
    background: var(--gradient-secondary);
}

.process-card[data-step="3"] .card-connector {
    display: none;
}

/* Process Stats */
.process-stats {
    margin-top: 4rem;
    padding: 3rem 0;
    background: var(--surface);
    border-radius: 24px;
    border: var(--border-glow);
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 1rem;
    transition: all 0.3s ease;
    border-radius: 16px;
}

.stat-box:hover {
    transform: translateY(-5px);
    background: var(--surface-hover);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--gradient-primary);
    color: white;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Light Theme Adjustments */
[data-theme="light"] .process-card {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .process-card:hover {
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
}

[data-theme="light"] .process-card[data-step="2"]:hover {
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
}

[data-theme="light"] .process-card[data-step="3"]:hover {
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
}

[data-theme="light"] .feature-point {
    background: var(--bg-tertiary);
}

[data-theme="light"] .feature-point:hover {
    background: var(--surface);
}

[data-theme="light"] .process-stats {
    background: var(--bg-tertiary);
}

[data-theme="light"] .stat-box:hover {
    background: var(--surface);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .process-cards-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .process-card {
        min-height: 450px;
        padding: 2rem;
    }

    .process-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .step-badge {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .step-icon-large {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .process-body h3 {
        font-size: 1.5rem;
    }

    .process-body p {
        font-size: 0.95rem;
    }

    .process-btn {
        padding: 1rem 1.5rem;
    }

    .card-connector {
        display: none;
    }

    .stat-box {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }

    .stat-number {
        font-size: 1.25rem;
    }
}

/* Loading Animation */
.loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid var(--surface);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Intro Video Section - Ultra Modern */
.intro-video-section-ultra {
    position: relative;
    background: var(--bg-secondary);
    overflow: hidden;
    padding: 1rem 0;
}

.intro-video-container {
    position: relative;
    width: 100%;
    min-height: 500px;
    /* height: 100%; removed to let min-height dictate size if content is absolute */
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-neo);
    background: #000;
    /* Ensure black bg if video loads slowly */
}

.intro-video-element {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Video Overlay */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(14, 165, 233, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.5s ease;
}

.video-content {
    text-align: center;
    color: white;
    max-width: 600px;
    padding: 2rem;
}

.video-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #b4b4c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.video-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    line-height: 1.6;
}

/* Play Button - Ultra Modern */
.play-video-btn-ultra {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 1.5rem 3rem;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.play-video-btn-ultra::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.6s ease;
}

.play-video-btn-ultra:hover::before {
    left: 100%;
}

.play-video-btn-ultra:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.play-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-icon {
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.play-video-btn-ultra:hover .play-icon {
    transform: scale(1.2);
}

.play-pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: playPulse 2s ease-in-out infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.play-video-btn-ultra:hover .play-pulse-ring {
    opacity: 1;
}

@keyframes playPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.6;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.3;
    }

    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.6;
    }
}

.play-text {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Video Decorations */
.video-decorations {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, transparent 70%);
    animation: decorationFloat 8s ease-in-out infinite;
}

.circle-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.circle-2 {
    width: 150px;
    height: 150px;
    top: 70%;
    right: 15%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
    animation-delay: 3s;
}

.circle-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 70%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, transparent 70%);
    animation-delay: 6s;
}

@keyframes decorationFloat {

    0%,
    100% {
        transform: translateY(0px) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-20px) scale(1.1);
        opacity: 0.6;
    }
}

/* Video Playing State */
.video-playing .video-overlay {
    opacity: 0;
    pointer-events: none;
}

.video-playing .intro-video-element {
    border-radius: 0;
}

/* Responsive Design for Video Section */
@media (max-width: 768px) {
    .intro-video-section-ultra {
        padding: 4rem 0;
    }

    .intro-video-container {
        border-radius: 20px;
        margin: 0 1rem;
    }

    .intro-video-element {
        border-radius: 20px;
    }

    .video-content {
        padding: 1rem;
    }

    .video-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .video-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .play-video-btn-ultra {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .play-icon {
        font-size: 1.5rem;
    }

    .play-pulse-ring {
        width: 50px;
        height: 50px;
    }

    .decoration-circle {
        display: none;
    }
}

@media (max-width: 480px) {
    .intro-video-section-ultra {
        padding: 3rem 0;
    }

    .video-content {
        padding: 0.5rem;
    }

    .video-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .play-video-btn-ultra {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }

    .play-text {
        font-size: 1rem;
    }
}

/* Benefits Grid Section */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--surface);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

[data-theme="light"] .benefit-item {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.benefit-item:hover {
    transform: translateY(-3px);
    border-color: rgba(14, 165, 233, 0.3);
}

.benefit-icon {
    color: var(--success);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.benefit-text {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}


/* Force Inter font on all headings and common text elements */
h1,
h2,
h3,
h4,
h5,
h6,
.hero-title-ultra,
.section-title-ultra,
.cta-title-ultra,
.stats-title-ultra,
p,
span,
div,
a,
button,
input,
select,
textarea,
* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* CRITICAL: RESTORE ICON FONTS */
/* These must come AFTER the global font force to override it */
.fa,
.fas,
.far,
.fab,
.fa-solid,
.fa-regular,
.fa-brands {
    font-family: 'Font Awesome 6 Free' !important;
}

.ti,
.ti-icon,
[class^='ti-'],
[class*=' ti-'] {
    font-family: 'tabler-icons' !important;
}

/* Fix for specific text elements mentioned by user */
.stat-number-ultra,
.stat-number {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 700 !important;
}

/* Purple/Maintenance Theme */
.tag.purple {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
    border-color: rgba(168, 85, 247, 0.2);
}

.tag.purple:hover {
    background: rgba(168, 85, 247, 0.2);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

[data-theme='light'] .tag.purple {
    background: rgba(168, 85, 247, 0.1);
    color: #7e22ce;
    /* Darker purple for light mode */
    border-color: rgba(168, 85, 247, 0.2);
    font-weight: 600;
}

.feature-icon-clean.purple {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}

.feature-card-clean:hover .feature-icon-clean.purple {
    background: #a855f7;
    color: white;
    box-shadow: 0 10px 20px rgba(168, 85, 247, 0.3);
}


/* Green/Trusted Theme */
.tag.green {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.2);
}

.tag.green:hover {
    background: rgba(16, 185, 129, 0.2);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

[data-theme='light'] .tag.green {
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
    /* Darker green for light mode */
    border-color: rgba(16, 185, 129, 0.2);
    font-weight: 600;
}

.feature-icon-clean.green {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.feature-card-clean:hover .feature-icon-clean.green {
    background: #10b981;
    color: white;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}



/* =========================================
   PROPERTY LISTING PAGE STYLES
   ========================================= */

/* Main Layout */
.properties-page-container {
    padding: 8rem 0 4rem;
    min-height: 100vh;
}

.properties-layout-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Sidebar Styles */
.filters-sidebar-ultra {
    background: var(--surface);
    border: var(--border-glow);
    border-radius: 20px;
    padding: 1.5rem;
    position: sticky;
    top: 100px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

[data-theme='light'] .filters-sidebar-ultra {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.filter-group {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1.5rem;
}

[data-theme='light'] .filter-group {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-input-ultra {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    width: 100%;
    transition: all 0.3s ease;
}

[data-theme='light'] .filter-input-ultra {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #1e293b;
}

.filter-input-ultra:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(18, 125, 181, 0.1);
}

/* Range Slider Styling */
.range-slider-ultra {
    width: 100%;
    -webkit-appearance: none;
    background: transparent;
}

.range-slider-ultra::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: var(--primary);
    margin-top: -6px;
    cursor: pointer;
}

.range-slider-ultra::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: var(--bg-secondary);
    border-radius: 2px;
}

[data-theme='light'] .range-slider-ultra::-webkit-slider-runnable-track {
    background: #e2e8f0;
}

/* Property Grid */
.properties-grid-ultra {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Property Card */
.property-card-ultra {
    background: var(--surface);
    border: var(--border-glow);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

[data-theme='light'] .property-card-ultra {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.property-card-ultra:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-primary);
}

.property-image-wrapper {
    position: relative;
    padding-top: 60%;
    /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.property-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card-ultra:hover .property-image {
    transform: scale(1.05);
}

.property-badges-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.badge-ultra {
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.badge-ultra.status {
    background: rgba(16, 185, 129, 0.9);
    color: white;
}

.badge-ultra.price {
    background: rgba(18, 125, 181, 0.9);
    color: white;
}

.property-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.property-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.property-location {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.property-specs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme='light'] .property-specs {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.spec-item i {
    color: var(--primary);
}

.property-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-actions {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.btn-card-ultra {
    padding: 0.6rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-card-primary {
    background: var(--primary);
    color: white;
}

.btn-card-primary:hover {
    background: var(--primary-dark);
}

.btn-card-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme='light'] .btn-card-secondary {
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid #e2e8f0;
}

.btn-card-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme='light'] .btn-card-secondary:hover {
    background: #e2e8f0;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .properties-layout-grid {
        grid-template-columns: 1fr;
    }

    .filters-sidebar-ultra {
        position: static;
        margin-bottom: 2rem;
    }
}


/* =========================================
   SEARCH HERO SECTION
   ========================================= */



.search-card-ultra {
    /* Make it slightly more transparent/glassy on top of image */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

[data-theme='dark'] .search-card-ultra {
    background: rgba(30, 30, 46, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.05);
}


.search-card-ultra {
    background: var(--surface);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-neo);
    border: var(--border-glow);
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

[data-theme='light'] .search-card-ultra {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.search-header-ultra {
    text-align: center;
    margin-bottom: 2rem;
}

.search-title-ultra {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

[data-theme='dark'] .search-title-ultra {
    color: white;
}

.search-subtitle-ultra {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Property For Toggle */
.property-for-toggle {
    display: inline-flex;
    background: var(--bg-secondary);
    padding: 0.3rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

[data-theme='light'] .property-for-toggle {
    background: #f1f5f9;
}

.toggle-option {
    padding: 0.6rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
}

.toggle-option.active {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.toggle-option input {
    display: none;
}

/* Main Search Input Group */
.main-search-group {
    display: flex;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 0.5rem;
    margin-bottom: 2rem;
}

[data-theme='light'] .main-search-group {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.city-select-wrapper {
    flex: 0 0 180px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    display: flex;
    align-items: center;
}

[data-theme='light'] .city-select-wrapper {
    border-right: 1px solid #cbd5e1;
}

.city-select {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    padding: 0 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.city-select:focus {
    outline: none;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-hero {
    width: 100%;
    border: none;
    background: transparent;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    color: var(--text-primary);
}

.search-input-hero:focus {
    outline: none;
}

.search-input-hero::placeholder {
    color: var(--text-muted);
}

.search-btn-hero {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin: 0.2rem;
}

.search-btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* Secondary Filters Row */
.filters-row-ultra {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.filter-col-ultra label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select-ultra {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    appearance: none;
    /* Removed SVG to avoid parsing errors, relying on simple icon if needed */
    cursor: pointer;
}

[data-theme='light'] .filter-select-ultra {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    color: #334155;
}

/* Pagination Customization for Laravel/Bootstrap */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
    list-style: none;
    /* remove bullets */
    padding: 0;
}

.page-item .page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    /* Rounded squares */
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
    background: var(--surface);
    font-weight: 600;
    text-decoration: none;
}

[data-theme='dark'] .page-item .page-link {
    background: #1e1e2e;
    border-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.page-item.active .page-link {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
    background: transparent;
}

/* Previous/Next buttons usually have larger width */
.page-item:first-child .page-link,
.page-item:last-child .page-link {
    width: auto;
    padding: 0 1rem;
}

/* Hide the giant nav text if Tailwind pagination is used */
nav[role="navigation"] div.hidden {
    display: none !important;
}

@media (max-width: 991px) {
    .filters-row-ultra {
        grid-template-columns: 1fr 1fr;
    }

    .main-search-group {
        flex-direction: column;
    }

    .city-select-wrapper {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .search-btn-hero {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }
}

/* Improved Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: 16px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    border: var(--border-glow);
    box-shadow: var(--shadow-neo);
}

[data-theme='light'] .pagination {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.page-item .page-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: none;
    color: var(--text-secondary);
    background: transparent;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0;
}

.page-item:hover .page-link {
    background: var(--surface-hover);
    color: var(--primary);
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 10px rgba(18, 125, 181, 0.3);
}

.page-item.disabled .page-link {
    opacity: 0.3;
    pointer-events: none;
}

/* Pagination Info Text (Showing 1-10 of X) */
.pagination-info {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 1rem;
    font-weight: 500;
}


/* Hide redundant 'Showing X results' text from standard Laravel pagination */
.properties-page-container nav .d-md-block .small.text-muted {
    display: none !important;
}

/* Also hide on mobile if it appears different */
.properties-page-container nav .text-muted {
    display: none !important;
}

/* Ensure the pagination UL is centered */
.properties-page-container nav .d-flex.justify-content-between {
    justify-content: center !important;
}


.search-hero-ultra {
    background: url('/storage/upload/images/property-banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 6rem;
    padding-bottom: 6rem;
    position: relative;
    z-index: 10;
    margin-top: -80px;
}

/* Ensure the navbar (if transparent) sits nicely on top */
/* Clean up the card to be cleaner white */
.search-card-ultra {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Softer shadow */
    border: none;
    /* Removed border glow for cleanliness */
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

[data-theme='dark'] .search-card-ultra {
    background: #1e1e2e;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Remove gradient text, make it clean solid color */
.search-title-ultra {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    /* Clean slate dark */
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

[data-theme='dark'] .search-title-ultra {
    color: white;
}

/* Buttons - Unified Primary Color (No Gradient) */
.search-btn-hero {
    background: #0f172a;
    /* Dark Navy/Blackish for modern clean look OR var(--primary) */
    background: var(--primary);
    /* Stick to brand primary */
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    /* Slightly squarer for 'clean' look */
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: none;
    /* Remove fancy shadow */
}

.search-btn-hero:hover {
    transform: translateY(-1px);
    opacity: 0.95;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.toggle-option.active {
    background: var(--primary);
    color: white;
    box-shadow: none;
}

/* Clean Inputs */
.search-input-hero,
.city-select {
    color: var(--text-primary);
}

.main-search-group {
    border: 1px solid #e2e8f0;
    box-shadow: none;
}

[data-theme='dark'] .main-search-group {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Pagination - Cleaner */
.pagination {
    background: transparent;
    border: none;
    box-shadow: none;
    gap: 0.5rem;
    padding: 0;
}

.page-item .page-link {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: var(--text-secondary);
    font-weight: 500;
}

[data-theme='dark'] .page-item .page-link {
    background: #1e1e2e;
    border-color: rgba(255, 255, 255, 0.1);
}

.page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


/* =========================================
   FIXES FOR PROPERTY PAGE
   ========================================= */

/* 1. Fix Search Hero Spacing (Prevent cutting under header) */
.search-hero-ultra {
    background: url('/storage/upload/images/property-banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Removed negative margin to prevent overlapping header */
    margin-top: 0 !important;
    /* Adjust padding to center content */
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
    position: relative;
    z-index: 1;
}

/* 2. Fix Search Card Width & Spacing (Full width, less margins) */
.search-card-ultra {
    background: #ffffff;
    border-radius: 12px;
    /* Remove side padding/margins as requested */
    padding: 2rem 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
    /* Allow filling container */
    margin: 0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: none;
}

[data-theme='dark'] .search-card-ultra {
    background: #1e1e2e;
}

/* 3. Empty State Card Style (Matching user request) */
.empty-state-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

[data-theme='dark'] .empty-state-card {
    background: #1e1e2e;
    border-color: rgba(255, 255, 255, 0.05);
}

.empty-state-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

[data-theme='dark'] .empty-state-title {
    color: white;
}

.empty-state-text {
    color: #64748b;
    margin-bottom: 2rem;
    font-size: 1rem;
    max-width: 500px;
}

.btn-empty-action {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: white;
    padding: 0.8rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-empty-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
    color: white;
}


/* =========================================
   FINAL FIXES FOR PROPERTY PAGE
   ========================================= */

/* 1. Header Overlap Fix - INCREASED PADDING */
.search-hero-ultra {
    /* Push content down significantly to avoid header overlap */
    padding-top: 140px !important;
    padding-bottom: 4rem !important;
    background-position: center top !important;
    /* Ensure image starts from top */
    min-height: 60vh;
    /* Ensure it takes enough space */
}

/* 2. Full Width Search Card (User specific request) */
.search-card-ultra {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    /* User said 'dont want left and right padding' - assume they mean external spacing */
    /* Internal padding is needed for content breathing room, but we can reduce it if that's what they meant */
    padding: 2rem !important;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* 3. Refined Empty State (Brand Colors) */
.empty-state-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 3rem 1rem;
    text-align: center;
    border: 1px solid rgba(18, 125, 181, 0.1);
    /* Subtle primary border */
    box-shadow: 0 10px 30px rgba(18, 125, 181, 0.05);
    margin-top: 2rem;
}

[data-theme='dark'] .empty-state-card {
    background: #1e1e2e;
    border-color: rgba(18, 125, 181, 0.2);
}

.empty-state-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
    /* Dark Blue */
    margin-bottom: 1rem;
}

[data-theme='dark'] .empty-state-title {
    color: white;
}

.empty-state-text {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* New clean button style for empty state */
.btn-empty-action {
    background: var(--primary);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(18, 125, 181, 0.2);
}

.btn-empty-action:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    color: white;
}

/* Force container width on large screens to align perfectly with header/footer */
@media (min-width: 1200px) {
    .container {
        max-width: 1240px;
    }
}


/* =========================================
   FIXES FOR PRICE SLIDER AND SPACING
   ========================================= */

/* 1. Price Slider Styling (Matching Screenshot Color) */
.range-slider-ultra {
    -webkit-appearance: none;
    /* Override default CSS styles */
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    /* Light gray track */
    border-radius: 5px;
    outline: none;
    transition: opacity .2s;
    cursor: pointer;
}

[data-theme='dark'] .range-slider-ultra {
    background: #334155;
}

/* Slider Thumb */
.range-slider-ultra::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    /* Blue Thumb */
    border: 3px solid white;
    /* White border inside thumb for visibility */
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(18, 125, 181, 0.4);
    margin-top: -7px;
    /* Center thumb on track (6px height track / 2 - 20px height thumb / 2) */
    position: relative;
    top: 50%;
}

[data-theme='dark'] .range-slider-ultra::-webkit-slider-thumb {
    border-color: #1e1e2e;
}

.range-slider-ultra::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid white;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(18, 125, 181, 0.4);
}

/* 2. Fix Empty Space Issue */
/* Reduce the minimum height of the page container so footer can rise up if content is short */
.properties-page-container {
    min-height: 50vh;
    /* Reduced from 100vh or 80vh */
    padding-bottom: 2rem;
    /* Reduce bottom padding */
    margin-bottom: 0px;
    /* Ensure no extra margin */
}

/* Ensure body doesn't force unnecessary height */
html,
body {
    height: auto;
    min-height: 100%;
}

/* Specific fix for Empty State Spacing */
.empty-state-card {
    /* Ensure only reasonable margin */
    margin: 2rem auto 3rem auto;
    max-width: 600px;
    background: white;
}


/* =========================================
   DUAL RANGE SLIDER STYLES
   ========================================= */
.range-slider-wrapper {
    position: relative;
    width: 100%;
    margin-top: 15px;
    height: 40px;
}

.slider-track-bg {
    width: 100%;
    height: 6px;
    background-color: #e2e8f0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 3px;
    z-index: 0;
}

[data-theme='dark'] .slider-track-bg {
    background-color: #334155;
}

.slider-track-fill {
    height: 6px;
    background-color: var(--primary);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    border-radius: 3px;
}

.dual-range-input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    pointer-events: none;
    /* Allow clicking through to track/other slider */
    z-index: 2;
    margin: 0;
    height: 0;
    /* Important so inputs don't block each other vertically */
}

/* Thumbs */
.dual-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    pointer-events: auto;
    /* Re-enable pointer events for thumb */
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.1s;
}

.dual-range-input::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.dual-range-input::-moz-range-thumb {
    pointer-events: auto;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid #ffffff;
    cursor: pointer;
}

/* =========================================
   PAGINATION STYLES (Ultra Modern)
   ========================================= */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 3rem;
}

.page-item {
    list-style: none;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px !important;
    /* Rounded corners */
    border: 1px solid #e2e8f0;
    color: var(--text-secondary);
    font-weight: 600;
    background: #ffffff;
    transition: all 0.3s ease;
    text-decoration: none;
}

[data-theme='dark'] .page-link {
    background: #1e1e2e;
    border-color: rgba(255, 255, 255, 0.1);
}

/* Active State */
.page-item.active .page-link {
    background: var(--primary);
    /* Use Site Primary Color */
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(18, 125, 181, 0.3);
    /* Soft Glow */
}

/* Hover State */
.page-item:not(.active) .page-link:hover {
    background: #f1f5f9;
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

[data-theme='dark'] .page-item:not(.active) .page-link:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Previous/Next Buttons */
.page-item:first-child .page-link,
.page-item:last-child .page-link {
    width: auto;
    padding: 0 1rem;
    font-size: 0.9rem;
}

/* Hide default disabled opacity if needed, or style it */
.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8fafc;
}


/* =========================================
   PAGINATION MODERN OVERRIDE
   ========================================= */

/* 1. Reset Bootstrap's Pagination Container Layout */
.properties-page-container nav {
    /* Ensure the nav flex container allows centering */
    display: flex !important;
    justify-content: center !important;
    width: 100%;
}

/* 2. Hide the 'Showing X to Y results' text */
.properties-page-container nav .d-none.flex-sm-fill>div:first-child {
    display: none !important;
}

/* 3. Center the pagination list container */
.properties-page-container nav .d-none.flex-sm-fill {
    justify-content: center !important;
    /* Force center alignment */
    width: 100%;
}

/* 4. Style the Pagination List */
.pagination {
    display: flex;
    gap: 10px;
    /* Space between items */
    margin: 0;
    padding: 0;
    align-items: center;
}

/* 5. Modern Button Styling (Rounded Squares) */
.page-item .page-link {
    width: 45px;
    height: 45px;
    border-radius: 12px !important;
    /* Soft corners */
    border: none !important;
    /* No border lines */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    /* Very subtle shadow */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0;
    text-decoration: none;
}

/* Dark Mode Button Base */
[data-theme='dark'] .page-item .page-link {
    background: #1e1e2e;
    /* Dark surface */
    color: #a0a0b0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Active State - Brand Primary */
.page-item.active .page-link {
    background: var(--primary) !important;
    /* Brand Blue */
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(18, 125, 181, 0.3) !important;
    /* Glowing effect */
    transform: scale(1.05);
    /* Slight pop */
}

/* Hover State */
.page-item:not(.active) .page-link:hover {
    background: #f8fafc;
    color: var(--primary);
    transform: translateY(-3px);
    /* Lift up effect */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
}

[data-theme='dark'] .page-item:not(.active) .page-link:hover {
    background: #2a2a35;
    color: white;
}

/* Previous/Next Arrows Styling */
.page-item:first-child .page-link,
.page-item:last-child .page-link {
    font-size: 1.2rem;
    /* Larger arrows */
    padding-bottom: 4px;
    /* Optical adjustment for arrow alignment */
}

/* Disable default blue focus ring */
.page-link:focus {
    box-shadow: none;
}


/* =========================================
   PAGINATION BAR DESIGN (Custom Footer)
   ========================================= */

/* The Main Bar Container */
.pagination-bar-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    margin-top: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

[data-theme='dark'] .pagination-bar-container {
    background: #1e1e2e;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* 1. Left: Info Text */
.pagination-info {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* 2. Right: Per Page Select */
.pagination-per-page {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.per-page-select {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 4px 8px;
    color: var(--primary);
    background: white;
    font-weight: 600;
    cursor: pointer;
    outline: none;
}

[data-theme='dark'] .per-page-select {
    background: #1e1e2e;
    border-color: rgba(255, 255, 255, 0.1);
}

/* 3. Center: Pagination Controls - OVERRIDING PREVIOUS STYLES */

/* We need to target the Bootstrap generated structure deeply */
.pagination-controls .pagination {
    margin: 0;
    gap: 5px;
    /* Smaller gap for numbers */
    display: flex;
    align-items: center;
}

/* Reset Base Styles for ALL links first */
.pagination-controls .page-item .page-link {
    width: 32px;
    /* Smaller, simpler size */
    height: 32px;
    border-radius: 6px !important;
    /* Slightly rounded squares */
    border: none !important;
    background: transparent !important;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0;
    box-shadow: none !important;
    transform: none !important;
    /* Remove lift effect */
}

/* STYLE 1: ARROWS and ACTIVE PAGE -> Outlined Box Style */
/* Targetting First, Last, Previous, Next arrows + Active Item */
.pagination-controls .page-item:first-child .page-link,
.pagination-controls .page-item:last-child .page-link,
.pagination-controls .page-item[rel='prev'] .page-link,
.pagination-controls .page-item[rel='next'] .page-link,
.pagination-controls .page-item.active .page-link {
    border: 1px solid var(--primary) !important;
    color: var(--primary) !important;
    background: transparent !important;
}

/* BUT Active needs to stand out or just be outlined? 
   In the user image, '1' is blue outlined. 'items' are black.
   So Active = Blue Border. Passive = No Border. */

.pagination-controls .page-item.active .page-link {
    background: rgba(18, 125, 181, 0.05) !important;
    /* Very faint blue fill */
    font-weight: 700;
}

/* Hover Effects */
.pagination-controls .page-item .page-link:hover {
    color: var(--primary);
    background: rgba(18, 125, 181, 0.05) !important;
}

/* Hide the 'Showing X results' text that Bootstrap 5 includes in some views */
.d-none.flex-sm-fill {
    display: none !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .pagination-bar-container {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    .pagination-per-page {
        order: 3;
    }

    .pagination-controls {
        order: 2;
    }

    .pagination-info {
        order: 1;
    }
}


/* =========================================
   CUSTOM PAGINATION BUTTONS DESIGN
   ========================================= */

/* Button Base Class (Bordered) */
.page-link-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary);
    background: white;
    border: 1px solid var(--primary);
    /* Blue Border */
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
    min-width: 40px;
}

/* Hover State */
.page-link-custom:hover:not(.disabled):not(.active) {
    background: rgba(18, 125, 181, 0.05);
    /* Light blue tint */
    color: var(--primary-dark);
}

/* Active State (The numbers that are active) */
.page-link-custom.active {
    background: rgba(18, 125, 181, 0.05);
    border-width: 2px;
    /* Slightly thicker */
    font-weight: 700;
    cursor: default;
}

/* Disabled State */
.page-link-custom.disabled {
    color: #cbd5e1;
    /* Gray text */
    border-color: #cbd5e1;
    /* Gray border */
    cursor: not-allowed;
    background: transparent;
}

/* Plain Text Numbers (Inactive Pages) */
.page-text-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    /* Dark Gray/Black */
    text-decoration: none;
    transition: color 0.2s ease;
    cursor: pointer;
}

.page-text-custom.link:hover {
    color: var(--primary);
    background: #f8fafc;
    border-radius: 6px;
}

/* Container Adjustments */
.pagination-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Match the exact bar layout from updated CSS */
.pagination-bar-container {
    justify-content: space-between !important;
    gap: 1rem;
}

[data-theme='dark'] .page-link-custom {
    background: #1e1e2e;
    border-color: rgba(18, 125, 181, 0.5);
    color: var(--primary);
}

[data-theme='dark'] .page-link-custom.disabled {
    color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme='dark'] .page-text-custom {
    color: #a0a0b0;
}

/* =========================================
   ABOUT PAGE THEME FIXES
   ========================================= */

/* Section Backgrounds */
.bg-about-alt {
    background-color: var(--bg-tertiary);
}

[data-theme='light'] .bg-about-alt {
    background-color: #f8fafc;
}

/* Cards */
.about-card {
    background: var(--surface);
    border: var(--border-glow);
    border-radius: 24px;
    padding: 2.5rem;
    height: 100%;
    transition: all 0.3s ease;
}

[data-theme='light'] .about-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-primary);
}

[data-theme='light'] .about-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Icon Containers */
.about-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    background: rgba(18, 125, 181, 0.1);
    /* Primary tint */
    color: var(--primary);
}

/* Typography */
.text-about-title {
    color: var(--text-primary);
    font-weight: 700;
}

.text-about-muted {
    color: var(--text-secondary);
}

/* CTA Section Redesign */
.about-cta-wrapper {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
    background: var(--surface);
}

[data-theme='light'] .about-cta-wrapper {
    background: #ffffff;
}

.about-cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-cta-btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.about-cta-btn-primary {
    background: var(--primary);
    color: white;
    border: 2px solid var(--primary);
}

.about-cta-btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(18, 125, 181, 0.3);
}

.about-cta-btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.about-cta-btn-outline:hover {
    background: var(--surface-hover);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Hero Text Fix */
.about-hero-text {
    color: white;
    /* Always white on hero gradient */
}

@media (prefers-color-scheme: dark) {
    .text-primary-ultra {
        color: var(--text-primary) !important;
    }

    .about-card-ultra i {
        color: var(--primary-light) !important;
    }
}