/* ========================================
   CYBERCORE WEBSITE IMPROVEMENTS
   Modern, Professional, Mobile-First CSS
   ======================================== */

/* ===== MODERN VARIABLES ===== */
:root {
    /* Enhanced Color Palette */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --cto-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --cio-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --ciso-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);

    /* Modern Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.20);

    /* Smooth Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== MODERN CXO HERO SECTIONS ===== */
.cxo-hero {
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.cto-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.cio-hero {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.ciso-hero {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Modern Badge */
.badge-modern {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Stats Row */
.hero-stats-row {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 20px;
    color: white;
}

.stat-content h4 {
    margin: 0;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

/* Modern Buttons */
.btn-cto, .btn-cio, .btn-ciso {
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all var(--transition-base);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-md);
}

.btn-cto {
    background: white;
    color: #764ba2;
}

.btn-cio {
    background: white;
    color: #00f2fe;
}

.btn-ciso {
    background: white;
    color: #38f9d7;
}

.btn-cto:hover, .btn-cio:hover, .btn-ciso:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Floating Cards Animation */
.hero-image-modern {
    position: relative;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    animation: float 3s ease-in-out infinite;
}

.floating-card i {
    font-size: 20px;
    color: #667eea;
}

.floating-card.card-1 {
    top: 10%;
    right: -10%;
    animation-delay: 0s;
}

.floating-card.card-2 {
    top: 50%;
    right: -5%;
    animation-delay: 1s;
}

.floating-card.card-3 {
    bottom: 10%;
    right: -10%;
    animation-delay: 2s;
}

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

/* ===== MODERN SERVICE CARDS ===== */
.service-card-modern {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    transition: all var(--transition-base);
    border: 1px solid #e5e7eb;
    height: 100%;
}

.service-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.service-icon-modern {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 28px;
    background: var(--primary-gradient);
    color: white;
}

/* Fix for typo in existing code */
.sservice-card {
    /* This was a typo - should be service-card */
}

/* ===== MOBILE RESPONSIVE IMPROVEMENTS ===== */
@media (max-width: 991px) {
    .cxo-hero {
        padding: 80px 0 60px;
        min-height: auto;
    }

    .hero-stats-row {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-item {
        width: 100%;
    }

    .floating-card {
        display: none; /* Hide on mobile for cleaner look */
    }

    .display-2 {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 767px) {
    .cxo-hero {
        padding: 60px 0 40px;
    }

    .display-2 {
        font-size: 2rem !important;
    }

    .lead {
        font-size: 1rem !important;
    }

    .btn-cto, .btn-cio, .btn-ciso {
        width: 100%;
        justify-content: center;
    }

    .hero-cta-group {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .hero-cta-group .btn {
        margin: 0 !important;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
.btn:focus, .btn-cto:focus, .btn-cio:focus, .btn-ciso:focus {
    outline: 3px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-main:focus {
    top: 0;
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
/* Reduce animation on low-end devices */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== MODERN CARD GRID ===== */
.modern-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

/* ===== IMPROVED TYPOGRAPHY ===== */
.display-2 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* ===== LOADING STATES ===== */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== UTILITY CLASSES ===== */
.min-vh-70 {
    min-height: 70vh;
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ===== FIX INLINE STYLES ===== */
[style*="max-width:none"] {
    max-width: 100% !important;
}

/* ===== IMPROVED CONTRAST FOR ACCESSIBILITY ===== */
.bg-gradient-3 h4 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ===== SMOOTH SCROLL ===== */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
