/**
 * Serverless Nexus - Modern Enhancements
 * Custom styling for ultra-modern serverless theme
 */

/* ===== Color Scheme - Serverless Theme ===== */
:root {
    /* Primary Serverless Colors */
    --sn-primary: #6366f1;
    /* Indigo - Main brand */
    --sn-primary-dark: #4f46e5;
    /* Darker indigo */
    --sn-primary-light: #818cf8;
    /* Light indigo */

    /* Accent Colors */
    --sn-accent: #8b5cf6;
    /* Purple accent */
    --sn-accent-bright: #a78bfa;
    /* Bright purple */
    --sn-cyan: #06b6d4;
    /* Cyan for tech feel */
    --sn-emerald: #10b981;
    /* Success/active */

    /* Gradients */
    --sn-gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --sn-gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --sn-gradient-card: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);

    /* Dark theme */
    --sn-dark-bg: #0f172a;
    /* Slate 900 */
    --sn-dark-surface: #1e293b;
    /* Slate 800 */
    --sn-dark-border: #334155;
    /* Slate 700 */
}

/* ===== Modern Hero Section ===== */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    background: var(--sn-gradient-hero);
}

/* Animated Gradient Background */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
            rgba(102, 126, 234, 0.8) 0%,
            rgba(118, 75, 162, 0.8) 25%,
            rgba(240, 147, 251, 0.8) 50%,
            rgba(118, 75, 162, 0.8) 75%,
            rgba(102, 126, 234, 0.8) 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: 0;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Floating particles effect */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 100px 100px, 150px 150px, 200px 200px;
    animation: particleFloat 20s linear infinite;
    z-index: 1;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-100px);
    }
}

/* Hero content positioning */
.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
}

/* Modern CTA Buttons */
.btn-get-started {
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-get-started::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-get-started:hover::before {
    left: 100%;
}

.btn-get-started:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ===== Service Cards - Modern Design ===== */
.service-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--sn-gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-item:hover::before {
    transform: scaleX(1);
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--sn-primary);
}

.service-item .icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-item:hover .icon {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.service-item .icon i {
    font-size: 2rem;
    color: #ffffff;
}

.service-item h3 {
    color: #1f2937;
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.service-item p {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ===== Section Styling ===== */
.section-title h2 {
    color: var(--sn-primary-dark);
    font-weight: 800;
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--sn-gradient-primary);
    border-radius: 2px;
}

/* ===== Smooth Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .btn-get-started {
        padding: 12px 30px;
        font-size: 1rem;
    }
}