/* Beckham Enterprises - Modern Professional Styling with Performance Optimizations */

/* CRITICAL CSS - Above the fold styles loaded first */
:root {
    --primary-blue: #2563eb;
    --primary-blue-dark: #1e40af;
    --primary-blue-light: #3b82f6;
    --accent-blue: #60a5fa;
    --light-blue: #93c5fd;
    --gradient-start: #2563eb;
    --gradient-end: #3b82f6;
    --text-dark: #1e293b;
    --text-medium: #475569;
    --text-light: #64748b;
    --background-light: #f8fafc;
    --background-white: #ffffff;
    --border-light: #e2e8f0;
    --shadow-light: rgba(15, 23, 42, 0.08);
    --shadow-medium: rgba(15, 23, 42, 0.12);
    --shadow-strong: rgba(15, 23, 42, 0.25);
}

/* Performance: Font loading optimization with fallback */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/inter/v12/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuLyfAZ9hiJ-Ek-_EeA.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/inter/v12/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuGKYAZ9hiJ-Ek-_EeA.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/inter/v12/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuFuYAZ9hiJ-Ek-_EeA.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Ensure consistent font-family with fallbacks */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    padding-top: 80px;
}

/* Solution Cards - Proper Product Logos */
.solution-visual {
    background: linear-gradient(135deg, var(--background-light), white);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 8px 32px var(--shadow-light);
    border: 1px solid var(--border-light);
    text-align: center;
}

.solution-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 2rem;
    color: white;
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.3);
}

/* RESPONSIVE IMAGES - Modern WebP with fallbacks */
.responsive-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* ScamEscape Logo for Solution Cards - Responsive WebP */
.scamescape-solution-logo {
    width: 120px;
    height: 120px;
    position: relative;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scamescape-solution-logo picture {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scamescape-solution-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 120px;
    max-height: 120px;
}

/* Maintenance Machine Logo for Solution Cards - Responsive WebP */
.maintenance-solution-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.maintenance-solution-logo picture {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.maintenance-solution-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    max-width: 120px;
    max-height: 120px;
}

.maintenance-solution-logo:hover img {
    transform: scale(1.05);
}

/* Card logos - smaller responsive versions */
.scamescape-card-logo {
    width: 64px;
    height: 64px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scamescape-card-logo picture {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scamescape-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 64px;
    max-height: 64px;
}

.maintenance-card-logo {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.maintenance-card-logo picture {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.maintenance-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    max-width: 64px;
    max-height: 64px;
}

.maintenance-card-logo:hover img {
    transform: scale(1.1);
}

/* Modern image loading optimization */
.responsive-image {
    will-change: transform;
    transition: opacity 0.3s ease;
}

.responsive-image[loading="lazy"] {
    opacity: 0;
    animation: fadeInImage 0.3s ease-out forwards;
}

@keyframes fadeInImage {
    to {
        opacity: 1;
    }
}



.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: all 0.3s ease;
    height: 80px;
    transform: translateZ(0);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    height: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.company-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-medium);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-blue);
    border-radius: 1px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    width: 25px;
    height: 21px;
    z-index: 1001;
    position: relative;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s ease;
    border-radius: 2px;
    display: block;
    transform-origin: center;
}

/* FIXED: Unified Logo Component */
.logo-unified {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border-radius: 20px 8px 20px 8px;
    position: relative;
    flex-shrink: 0;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.logo-unified::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top, rgba(255,255,255,0.15) 30%, transparent 60%),
                radial-gradient(ellipse at bottom, rgba(255,255,255,0.08) 30%, transparent 60%);
    border-radius: 20px 8px 20px 8px;
}

.logo-unified::after {
    content: 'BE';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 1px;
    z-index: 2;
}

/* Company Values Section */
.values {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--background-light) 0%, #ffffff 100%);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.value-item {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--shadow-light);
    border: 1px solid var(--border-light);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.value-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
}

.value-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px var(--shadow-medium);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 2rem;
    color: white;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.value-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.value-item p {
    color: var(--text-medium);
    line-height: 1.7;
}

/* Company Philosophy Section */
.philosophy {
    padding: 8rem 0;
    background: var(--text-dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.philosophy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.3) 0%, transparent 50%);
}

.philosophy .container {
    position: relative;
    z-index: 1;
}

.philosophy-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.philosophy h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #60a5fa, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.philosophy-quote {
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #cbd5e1;
}

.philosophy-author {
    font-size: 1rem;
    color: var(--accent-blue);
    font-weight: 600;
}

/* Solutions Overview Section */
.solutions-overview {
    padding: 8rem 0;
    background: var(--background-white);
}

.solutions-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.solutions-intro h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.solutions-intro p {
    font-size: 1.2rem;
    color: var(--text-medium);
    line-height: 1.7;
}

.solution-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.solution-preview:nth-child(even) {
    direction: rtl;
}

.solution-preview:nth-child(even) > * {
    direction: ltr;
}

.solution-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.solution-tagline {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.solution-content p {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.solution-visual {
    background: linear-gradient(135deg, var(--background-light), white);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 8px 32px var(--shadow-light);
    border: 1px solid var(--border-light);
    text-align: center;
}

.solution-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 2rem;
    color: white;
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.3);
}

/* Trust Indicators */
.trust-indicators {
    padding: 6rem 0;
    background: var(--background-light);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

@media (max-width: 1024px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* EMERGENCY FIX: Force proper text layout on mobile */
    .hero-title {
        font-size: 2.2rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
        width: 100% !important;
        max-width: 100% !important;
        /* Force remove any width constraints */
        min-width: auto !important;
        /* Ensure the text can flow normally */
        display: block !important;
        /* Remove any flex constraints that might cause issues */
        flex: none !important;
        /* Remove any grid constraints */
        grid-column: unset !important;
        /* Force text direction */
        direction: ltr !important;
        text-align: center !important;
        /* Remove any transforms */
        transform: none !important;
        /* Clear any positioning issues */
        position: static !important;
        /* Force container behavior */
        box-sizing: border-box !important;
        padding: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .hero-content {
        width: 100% !important;
        max-width: 100% !important;
        min-width: auto !important;
        padding: 2rem 1rem !important;
        box-sizing: border-box !important;
        /* Remove any flex constraints */
        flex: none !important;
        /* Ensure proper text flow */
        display: block !important;
        text-align: center !important;
        /* Remove transforms */
        transform: none !important;
        /* Clear positioning */
        position: static !important;
        /* Remove containment */
        contain: none !important;
        /* Center properly */
        margin: 0 auto !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    .hero .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 1rem !important;
        box-sizing: border-box !important;
        /* Ensure proper container behavior */
        display: block !important;
        /* Remove flex constraints */
        justify-content: unset !important;
        align-items: unset !important;
        /* Center properly */
        margin: 0 auto !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
    }
    /* Mobile Navigation Styles */
    .nav-menu {
        position: fixed !important;
        top: 80px !important;
        left: -100% !important;
        width: 100% !important;
        height: calc(100vh - 80px) !important;
        background: white !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        padding: 2rem 0 !important;
        transition: left 0.3s ease !important;
        box-shadow: 0 4px 20px rgba(15, 23, 42, 0.1) !important;
        z-index: 1000 !important;
        list-style: none !important;
        margin: 0 !important;
        display: flex !important;
    }
    
    .nav-menu.active {
        left: 0 !important;
    }
    
    .nav-menu li {
        margin: 0.5rem 0 !important;
        width: 100% !important;
        text-align: center !important;
    }
    
    .nav-link {
        font-size: 1.1rem !important;
        padding: 0.75rem 1.5rem !important;
        display: block !important;
        width: 100% !important;
        text-align: center !important;
    }
    
    .hamburger {
        display: flex !important;
        flex-direction: column !important;
        cursor: pointer !important;
        gap: 4px !important;
        width: 25px !important;
        height: 21px !important;
        z-index: 1001 !important;
        position: relative !important;
    }
    
    .hamburger span {
        width: 25px !important;
        height: 3px !important;
        background: var(--text-dark) !important;
        transition: all 0.3s ease !important;
        border-radius: 2px !important;
        display: block !important;
        transform-origin: center !important;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px) !important;
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0 !important;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px) !important;
    }
    
    body.menu-open {
        overflow: hidden !important;
    }
    
    /* Core mobile layout optimizations */
    .hero {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 2rem 0;
    }
    
    .hero-content {
        padding: 2rem 1rem;
        max-width: 100%;
        width: 100%;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
        text-align: center;
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }
    
    .hero-buttons {
        min-height: 120px;
        margin-bottom: 2rem;
        gap: 0.75rem;
    }
    
    .hero-trust {
        min-height: 100px;
        gap: clamp(1rem, 6vw, 2rem);
        flex-wrap: wrap;
        justify-content: space-around;
        padding: 0 1rem;
    }
    
    .trust-stat {
        min-width: 70px;
        flex: 0 0 auto;
        margin: 0.5rem 0;
    }
    
    .container {
        padding: 0 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .trust-grid {
        grid-template-columns: 1fr;
    }
}

.trust-item {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 16px var(--shadow-light);
    text-align: center;
    border: 1px solid var(--border-light);
}

.trust-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.trust-label {
    color: var(--text-medium);
    font-weight: 500;
    margin-bottom: 1rem;
}

.trust-description {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Hero Section */
.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--background-light) 0%, #ffffff 100%);
    overflow: hidden;
    padding: 2rem 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    will-change: transform;
    transform: translateZ(0);
}

.hero .container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    min-height: inherit;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.gradient-text {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    justify-content: center;
}

/* Hero Trust Indicators */
.hero-trust {
    display: flex;
    gap: 3rem;
    justify-content: flex-start;
    align-items: center;
    margin-top: 2rem;
}

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

.trust-stat .trust-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.25rem;
}

.trust-stat .trust-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-medium);
    font-weight: 500;
}

/* Solution Stats */
.solution-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.solution-stat {
    text-align: center;
    padding: 1rem;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 12px;
}

.solution-stat .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.25rem;
    display: block;
}

.solution-stat .stat-label {
    font-size: 0.85rem;
    color: var(--text-medium);
    font-weight: 500;
}

/* FIXED: Unified Button System */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    line-height: 1.2;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

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

.btn-secondary:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn-white {
    background: white;
    color: var(--primary-blue);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.btn-white:hover {
    background: var(--background-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.4);
}

/* Alternative button styles for specific uses */
.btn-product {
    background: var(--primary-blue);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-product:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
}

.btn-download {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 16px 32px;
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-download:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

.btn-download.secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    box-shadow: none;
}

.btn-download.secondary:hover {
    background: var(--primary-blue);
    color: white;
}

.hero-visual {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Floating Cards - Fixed transform conflicts */
.floating-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--shadow-light);
    border: 1px solid var(--border-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    text-align: left;
    will-change: transform;
    position: relative;
    transform: translateZ(0);
}

.floating-card:nth-child(2) {
    margin-left: 2rem;
}

.floating-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px var(--shadow-medium);
}

/* Simplified float animation - no conflicts */
@keyframes float {
    0%, 100% { 
        transform: translateY(0); 
    }
    50% { 
        transform: translateY(-6px); 
    }
}

/* Apply float animation only when not scrolling */
.floating-card.enable-float {
    animation: float 8s ease-in-out infinite;
}

.floating-card.enable-float:nth-child(2) {
    animation-delay: -3s;
}

.card-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.card-content {
    flex: 1;
}

.card-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.card-content .card-description {
    color: var(--text-medium);
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.card-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-features li {
    color: var(--text-medium);
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    padding-left: 1rem;
    position: relative;
}

.card-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 0.8rem;
}

/* Card logo styles moved to responsive images section above */

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
}

/* FIXED: Feature Grid System - Critical Missing Classes */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-item {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 16px var(--shadow-light);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-medium);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-item p {
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Enterprise and Family Sections */
.enterprise-section {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--text-dark) 0%, #374151 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.enterprise-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(37, 99, 235, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(59, 130, 246, 0.2) 0%, transparent 50%);
}

.enterprise-section .container {
    position: relative;
    z-index: 1;
}

.enterprise-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.enterprise-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #60a5fa, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.enterprise-benefits {
    list-style: none;
    margin: 2rem 0;
}

.enterprise-benefits li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #cbd5e1;
}

.enterprise-benefits li::before {
    content: '✓';
    color: var(--accent-blue);
    font-weight: bold;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.enterprise-visual {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.enterprise-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

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

.enterprise-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
}

.enterprise-stat-label {
    color: #cbd5e1;
    font-size: 0.9rem;
}

/* Team Section */
.team-section {
    padding: 8rem 0;
    background: var(--background-white);
}

.team-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.team-intro h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.team-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

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

.team-value-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    color: white;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.team-value h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.team-value p {
    color: var(--text-medium);
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 8rem 0;
    background: var(--background-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.about-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.about-content p {
    color: var(--text-medium);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-medium);
    font-weight: 500;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.tech-item {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

/* Products Section */
.products {
    padding: 8rem 0;
    background: var(--background-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
}

.product-card {
    background: white;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 8px 32px var(--shadow-light);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px var(--shadow-medium);
}

.product-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.product-card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.product-subtitle {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.product-description {
    color: var(--text-medium);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.product-features {
    list-style: none;
    margin-bottom: 2rem;
}

.product-features li {
    color: var(--text-medium);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
}

.product-status {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.product-status.available {
    background: #dcfce7;
    color: #166534;
}

.product-status.coming-soon {
    background: #fef3c7;
    color: #92400e;
}

/* CTA Section - Modern Call to Action */
.cta-section {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--background-light) 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.cta-subtitle {
    font-size: 1.2rem;
    color: var(--text-medium);
    margin-bottom: 4rem;
}

.cta-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.cta-option {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--shadow-light);
    border: 1px solid var(--border-light);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
}

.cta-option:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px var(--shadow-medium);
}

.cta-primary {
    border: 2px solid var(--primary-blue);
    position: relative;
}

.cta-primary::before {
    height: 6px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
}

.cta-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 2rem;
    color: white;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.cta-option h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.cta-option p {
    color: var(--text-medium);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-note {
    display: block;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

.cta-contact {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-light);
}

.cta-contact p {
    color: var(--text-medium);
    font-size: 1.1rem;
}

.cta-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.cta-link:hover {
    color: var(--primary-blue-dark);
    text-decoration: underline;
}

/* Contact Options - Cleaner Layout */
.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.contact-option {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--shadow-light);
    border: 1px solid var(--border-light);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
}

.contact-option:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px var(--shadow-medium);
}

.contact-option-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 2rem;
    color: white;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.contact-option h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.contact-option p {
    color: var(--text-medium);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Simple Contact Form */
.simple-contact {
    max-width: 700px;
    margin: 6rem auto 0;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--shadow-light);
    border: 1px solid var(--border-light);
    text-align: center;
}

.simple-contact h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.simple-contact p {
    color: var(--text-medium);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-form-simple {
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-options {
        grid-template-columns: 1fr;
    }
    
    .simple-contact {
        padding: 2rem;
    }
    
    .global-error-message {
        top: 90px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .field-help {
        font-size: 0.8rem;
    }
    
    .character-count {
        font-size: 0.75rem;
    }
}

/* Contact Section - Updated for dedicated contact page */
.contact {
    padding: 8rem 0;
    background: var(--background-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-medium);
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

/* FIXED: Responsive Table */
.responsive-table {
    overflow-x: auto;
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--shadow-light);
    margin: 2rem 0;
}

.responsive-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.responsive-table th,
.responsive-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.responsive-table th {
    background: var(--background-light);
    font-weight: 600;
    color: var(--text-dark);
}

.responsive-table tr:hover {
    background: var(--background-light);
}

@media (max-width: 768px) {
    .responsive-table table {
        min-width: 600px;
    }
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 4rem 0 2rem;
}

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

.footer-brand .logo {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: #cbd5e1;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--accent-blue);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-grid,
    .contact-grid,
    .enterprise-grid,
    .solution-preview {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    /* Fix solution preview order on mobile */
    .solution-preview {
        display: flex;
        flex-direction: column;
    }
    
    .solution-preview:nth-child(even) {
        direction: ltr;
    }
    
    .solution-preview:nth-child(even) > * {
        direction: ltr;
    }
    
    /* Ensure visual comes after content on mobile */
    .solution-visual {
        order: 2;
    }
    
    .solution-content {
        order: 1;
    }
    
    .hero-title {
        font-size: 2.8rem;
        line-height: 1.3;
    }
    
    .hero {
        min-height: 80vh;
        padding: 3rem 0;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-grid,
    .values-grid,
    .team-values {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 2rem 0;
        transition: left 0.3s ease;
        box-shadow: 0 4px 20px rgba(15, 23, 42, 0.1);
        z-index: 1000;
        list-style: none;
        margin: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 0.5rem 0;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 0.75rem 1.5rem;
    }
    
    .hamburger {
        display: flex !important;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }
    
    .hero {
        min-height: 70vh;
        padding: 2rem 0;
    }
    
    .hero-content {
        padding: 1rem;
        max-width: 100%;
        width: 100%;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-trust {
        gap: 1.5rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .cta-options {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-option {
        padding: 2rem 1.5rem;
    }
    
    .solution-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .product-card {
        padding: 2rem;
    }
    
    .floating-card:nth-child(2) {
        margin-left: 0;
    }
    
    .feature-item {
        padding: 1.5rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Optimized animations - reduced motion conflicts */
@media (prefers-reduced-motion: no-preference) {
    .hero-content,
    .hero-visual {
        opacity: 0;
        animation: fadeInUp 0.8s ease-out forwards;
    }
    
    .hero-visual {
        animation-delay: 0.2s;
    }
}

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

/* Intersection Observer fade-in */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

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

/* Performance optimizations */
.hero-background,
.floating-card {
    will-change: transform;
}

/* Navigation scroll effects */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(15, 23, 42, 0.1);
}

/* Form Validation - Enhanced Styling */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
    background: #fef2f2;
}

.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    display: none;
    font-weight: 500;
}

.error-message[style*="display: block"] {
    display: block !important;
    animation: slideDown 0.3s ease-out;
}

.form-group input:focus.error,
.form-group select:focus.error,
.form-group textarea:focus.error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

.form-success-message {
    animation: slideDown 0.3s ease-out;
}

.form-error-message {
    animation: slideDown 0.3s ease-out;
}

.required-indicator {
    color: #dc2626;
    font-weight: 600;
}

.optional-indicator {
    color: #9ca3af;
    font-weight: 400;
    font-size: 0.875rem;
}

.field-help {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
    line-height: 1.4;
}

.character-count {
    font-size: 0.8rem;
    color: #9ca3af;
    text-align: right;
    margin-top: 0.25rem;
}

.privacy-notice {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #0369a1;
    line-height: 1.5;
}

.privacy-notice strong {
    color: #0c4a6e;
}

/* Form Input Focus States */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: #fafbfe;
}

/* Email Input Specific Styling */
input[type="email"] {
    position: relative;
}

input[type="email"]:valid:not([value=""]) {
    border-color: #10b981;
    background: #f0fdf4;
}

input[type="email"]:invalid:not(:focus):not([value=""]) {
    border-color: #f59e0b;
    background: #fffbeb;
}

/* Success Validation State */
.form-group input.valid,
.form-group select.valid,
.form-group textarea.valid {
    border-color: #10b981;
    background: #f0fdf4;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.success-message {
    color: #059669;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    display: none;
    font-weight: 500;
}

/* Loading Button States */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-primary:disabled {
    background: #9ca3af;
}

.btn-secondary:disabled {
    border-color: #9ca3af;
    color: #9ca3af;
}

/* Global Form Message Positioning */
.global-error-message {
    position: fixed;
    top: 100px;
    right: 20px;
    max-width: 400px;
    background: #fef2f2;
    color: #b91c1c;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #fecaca;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Form message animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-message {
    animation: slideDown 0.3s ease-out;
}


[aria-invalid="true"] {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}



/* Loading Animation - Dots Style (Primary Loading) */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--background-light) 0%, #ffffff 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loading-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    max-width: 300px;
}

/* Animated Logo */
.loading-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border-radius: 40px 16px 40px 16px;
    position: relative;
    margin: 0 auto 2rem;
    animation: logoFloat 2s ease-in-out infinite;
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.3);
}

.loading-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top, rgba(255,255,255,0.25) 30%, transparent 60%),
                radial-gradient(ellipse at bottom, rgba(255,255,255,0.15) 30%, transparent 60%);
    border-radius: 40px 16px 40px 16px;
}

.loading-logo::after {
    content: 'BE';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 900;
    font-size: 28px;
    letter-spacing: 2px;
    z-index: 2;
    font-family: 'Inter', sans-serif;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Dots Loading Animation (Primary) */
.loading-dots {
    display: flex;
    gap: 12px;
    margin: 2rem auto 1.5rem;
    justify-content: center;
}

.loading-dot {
    width: 12px;
    height: 12px;
    background: var(--primary-blue);
    border-radius: 50%;
    animation: dotBounce 1.4s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.loading-dot:nth-child(1) { animation-delay: -0.32s; }
.loading-dot:nth-child(2) { animation-delay: -0.16s; }
.loading-dot:nth-child(3) { animation-delay: 0s; }

@keyframes dotBounce {
    0%, 80%, 100% {
        transform: scale(0.8) translateY(0);
        opacity: 0.6;
        box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
    }
    40% {
        transform: scale(1.3) translateY(-8px);
        opacity: 1;
        box-shadow: 0 4px 16px rgba(37, 99, 235, 0.5);
    }
}

/* Loading Text */
.loading-text {
    color: var(--text-medium);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    animation: textPulse 2s ease-in-out infinite;
}

.loading-subtitle {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 400;
}

/* Animations */
@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        box-shadow: 0 8px 32px rgba(37, 99, 235, 0.3);
    }
    50% {
        transform: translateY(-8px) rotate(2deg);
        box-shadow: 0 16px 48px rgba(37, 99, 235, 0.4);
    }
}

@keyframes textPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Alternative Small Dots Loader for In-Page Use */
.dots-loader {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.dots-loader .dot {
    width: 8px;
    height: 8px;
    background: var(--primary-blue);
    border-radius: 50%;
    animation: smallDotBounce 1.2s ease-in-out infinite;
}

.dots-loader .dot:nth-child(1) { animation-delay: -0.24s; }
.dots-loader .dot:nth-child(2) { animation-delay: -0.12s; }
.dots-loader .dot:nth-child(3) { animation-delay: 0s; }

@keyframes smallDotBounce {
    0%, 80%, 100% {
        transform: scale(0.7) translateY(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.1) translateY(-4px);
        opacity: 1;
    }
}

/* Compact Dots for Buttons */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: 
        radial-gradient(circle 2px, currentColor 100%, transparent 100%) 0 0,
        radial-gradient(circle 2px, currentColor 100%, transparent 100%) 8px 0,
        radial-gradient(circle 2px, currentColor 100%, transparent 100%) 16px 0;
    background-size: 6px 6px;
    animation: btnDotSlide 1s ease-in-out infinite;
}

@keyframes btnDotSlide {
    0%, 100% {
        background-position: 0 0, 8px 0, 16px 0;
        opacity: 0.4;
    }
    33% {
        background-position: 0 -4px, 8px 0, 16px 0;
        opacity: 0.8;
    }
    66% {
        background-position: 0 0, 8px -4px, 16px 0;
        opacity: 1;
    }
    100% {
        background-position: 0 0, 8px 0, 16px -4px;
        opacity: 0.6;
    }
}

/* CRITICAL: Emergency mobile text fix - must be at the end to override everything */
@media (max-width: 768px) {
    h1, .hero-title {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        font-size: 2.2rem !important;
        line-height: 1.3 !important;
        display: block !important;
        text-align: center !important;
        margin: 0 auto 1rem auto !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    
    .hero-content {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 2rem 1rem !important;
        box-sizing: border-box !important;
        display: block !important;
        text-align: center !important;
        margin: 0 auto !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
    }
    
    .hero .container {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 0 1rem !important;
        box-sizing: border-box !important;
        display: block !important;
        text-align: center !important;
        margin: 0 auto !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
    }
    
    .hero {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Force override any inline styles */
@media (max-width: 768px) {
    [style*="min-height"] h1,
    [style*="min-height"] .hero-title {
        min-height: auto !important;
        height: auto !important;
    }
    
    [style*="display: flex"] .hero-title,
    [style*="display: flex"] h1 {
        display: block !important;
    }
}