/**
 * Enterprise Theme System - HIPAA Auditors
 * Modern, premium design system with light/dark mode support
 * Version: 2.0
 */

/* ===========================================
   THEME VARIABLES
   =========================================== */

:root {
    /* Light Theme Colors */
    --theme-bg-primary: #ffffff;
    --theme-bg-secondary: #f8fafc;
    --theme-bg-tertiary: #f1f5f9;
    --theme-bg-accent: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --theme-bg-hero: linear-gradient(135deg, #667eea15 0%, #764ba215 50%, #f09433 15 100%);
    
    --theme-text-primary: #0f172a;
    --theme-text-secondary: #475569;
    --theme-text-tertiary: #64748b;
    --theme-text-inverse: #ffffff;
    --theme-text-accent: #667eea;
    
    --theme-border-primary: #e2e8f0;
    --theme-border-secondary: #cbd5e1;
    --theme-border-accent: #667eea;
    
    --theme-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --theme-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --theme-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --theme-shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
    
    --theme-gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --theme-gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --theme-gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --theme-gradient-success: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    
    /* Premium Colors */
    --premium-purple: #667eea;
    --premium-pink: #f093fb;
    --premium-blue: #4facfe;
    --premium-green: #43e97b;
    --premium-orange: #fa709a;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    
    /* Animation */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Dark Theme */
[data-theme="dark"] {
    --theme-bg-primary: #0f172a;
    --theme-bg-secondary: #1e293b;
    --theme-bg-tertiary: #334155;
    --theme-bg-hero: linear-gradient(135deg, #667eea25 0%, #764ba225 50%, #f0943325 100%);
    
    --theme-text-primary: #f8fafc;
    --theme-text-secondary: #cbd5e1;
    --theme-text-tertiary: #94a3b8;
    --theme-text-inverse: #0f172a;
    --theme-text-accent: #818cf8;
    
    --theme-border-primary: #334155;
    --theme-border-secondary: #475569;
    --theme-border-accent: #818cf8;
    
    --theme-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --theme-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --theme-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --theme-shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
    
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

/* ===========================================
   BASE STYLES
   =========================================== */

body {
    background-color: var(--theme-bg-primary);
    color: var(--theme-text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===========================================
   THEME SWITCHER
   =========================================== */

.theme-switcher {
    position: fixed;
    top: 100px;
    right: 24px;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 8px;
    box-shadow: var(--theme-shadow-lg);
    display: flex;
    gap: 4px;
    transition: var(--transition-smooth);
}

.theme-switcher:hover {
    transform: translateY(-2px);
    box-shadow: var(--theme-shadow-xl);
}

.theme-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    color: var(--theme-text-secondary);
    font-size: 18px;
}

.theme-btn:hover {
    background: var(--theme-bg-tertiary);
    transform: scale(1.1);
}

.theme-btn.active {
    background: var(--theme-gradient-primary);
    color: white;
    box-shadow: var(--theme-shadow-md);
}

/* ===========================================
   ENHANCED HERO SECTION
   =========================================== */

.hero-enterprise {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: var(--theme-bg-hero);
    overflow: hidden;
    padding: 120px 0 80px;
}

/* Animated Background Elements */
.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--premium-purple);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--premium-pink);
    top: 50%;
    right: -50px;
    animation-delay: 5s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: var(--premium-blue);
    bottom: -50px;
    left: 30%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-content-enterprise {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--theme-text-accent);
    margin-bottom: 24px;
    box-shadow: var(--theme-shadow-sm);
    animation: fadeInDown 0.6s ease-out;
}

.hero-title-enterprise {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--theme-text-primary) 0%, var(--premium-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

[data-theme="dark"] .hero-title-enterprise {
    background: linear-gradient(135deg, var(--theme-text-primary) 0%, var(--premium-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle-enterprise {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--theme-text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

/* ===========================================
   PREMIUM BUTTONS
   =========================================== */

.btn-enterprise {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-enterprise::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.btn-enterprise:hover::before {
    transform: translateX(100%);
}

.btn-primary-enterprise {
    background: var(--theme-gradient-primary);
    color: white;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.btn-primary-enterprise:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.5);
}

.btn-secondary-enterprise {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: var(--theme-text-primary);
    border: 2px solid var(--theme-border-accent);
    box-shadow: var(--theme-shadow-sm);
}

.btn-secondary-enterprise:hover {
    background: var(--theme-bg-tertiary);
    transform: translateY(-2px);
    box-shadow: var(--theme-shadow-md);
}

/* ===========================================
   TRUST BADGES
   =========================================== */

.trust-indicators-enterprise {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.8s both;
}

.trust-badge-enterprise {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--theme-shadow-sm);
    transition: var(--transition-smooth);
}

.trust-badge-enterprise:hover {
    transform: translateY(-4px);
    box-shadow: var(--theme-shadow-md);
}

.trust-icon {
    width: 24px;
    height: 24px;
    color: var(--premium-green);
}

.trust-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--theme-text-secondary);
}

/* ===========================================
   STATS SECTION
   =========================================== */

.stats-enterprise {
    padding: 80px 0;
    background: var(--theme-bg-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.stat-card-enterprise {
    text-align: center;
    padding: 40px 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--theme-shadow-md);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.stat-card-enterprise::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--theme-gradient-primary);
}

.stat-card-enterprise:hover {
    transform: translateY(-8px);
    box-shadow: var(--theme-shadow-lg);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--theme-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: var(--theme-text-secondary);
    font-weight: 500;
}

/* ===========================================
   SERVICE CARDS
   =========================================== */

.services-enterprise {
    padding: 100px 0;
    background: var(--theme-bg-primary);
}

.section-header-enterprise {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 64px;
    padding: 0 24px;
}

.section-title-enterprise {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--theme-text-primary);
}

.section-subtitle-enterprise {
    font-size: 1.25rem;
    color: var(--theme-text-secondary);
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.service-card-enterprise {
    padding: 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--theme-shadow-md);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card-enterprise::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--theme-gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card-enterprise:hover::before {
    opacity: 0.05;
}

.service-card-enterprise:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--theme-shadow-xl);
    border-color: var(--theme-border-accent);
}

.service-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--theme-gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: var(--theme-shadow-md);
}

.service-icon-wrapper svg {
    width: 32px;
    height: 32px;
    color: white;
}

.service-title-enterprise {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--theme-text-primary);
}

.service-description-enterprise {
    font-size: 1rem;
    color: var(--theme-text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.feature-tag-enterprise {
    padding: 6px 12px;
    background: var(--theme-bg-tertiary);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--theme-text-accent);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--theme-text-accent);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.service-link:hover {
    gap: 12px;
}

/* ===========================================
   ANIMATIONS
   =========================================== */

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Scroll reveal animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */

@media (max-width: 768px) {
    .hero-enterprise {
        min-height: 70vh;
        padding: 80px 0 60px;
    }
    
    .hero-title-enterprise {
        font-size: 2rem;
    }
    
    .hero-subtitle-enterprise {
        font-size: 1rem;
    }
    
    .hero-cta-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-enterprise {
        width: 100%;
        justify-content: center;
    }
    
    .trust-indicators-enterprise {
        flex-direction: column;
        align-items: stretch;
    }
    
    .stats-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .theme-switcher {
        top: auto;
        bottom: 24px;
        right: 24px;
    }
}

@media (max-width: 480px) {
    .service-card-enterprise {
        padding: 24px;
    }
    
    .stat-card-enterprise {
        padding: 24px 16px;
    }
}
