/* ============================================
   CUSTOM-STYLES.CSS - Modern UI Enhancements
   ============================================ */

/* CSS Variables - Vibrant Color Palette */
:root {
    /* Primary Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-warm: linear-gradient(135deg, #fa709a 0%, #fee140 100%);

    /* Solid Colors */
    --color-primary: #667eea;
    --color-primary-dark: #764ba2;
    --color-secondary: #00d2ff;
    --color-accent-orange: #ff6b6b;
    --color-accent-teal: #4ecdc4;
    --color-accent-yellow: #ffe66d;
    --color-dark: #1a1a2e;
    --color-light: #f8f9fa;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);

    /* 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.2);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-secondary {
    background: var(--gradient-secondary);
}

.bg-gradient-accent {
    background: var(--gradient-accent);
}

.bg-gradient-warm {
    background: var(--gradient-warm);
}

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

/* Glassmorphism Effects */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.glass-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
    padding: 2rem;
}

.glass-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Gradient Text */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.text-gradient-secondary {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.text-gradient-warm {
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* Modern Cards */
.modern-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

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

.gradient-border-card {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
}

.gradient-border-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: var(--gradient-primary);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* Enhanced Buttons */
.btn-gradient {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.6);
    color: white;
}

.btn-gradient-secondary {
    background: var(--gradient-secondary);
    box-shadow: 0 8px 20px rgba(0, 210, 255, 0.4);
}

.btn-gradient-secondary:hover {
    box-shadow: 0 12px 30px rgba(0, 210, 255, 0.6);
}

.btn-glow {
    position: relative;
}

.btn-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-primary);
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: blur(10px);
    z-index: -1;
}

.btn-glow:hover::before {
    opacity: 0.7;
}

/* Icon Containers */
.icon-box {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.icon-box-secondary {
    background: var(--gradient-secondary);
    box-shadow: 0 8px 20px rgba(0, 210, 255, 0.3);
}

/* Decorative Elements */
.decorative-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    z-index: -1;
}

.blob-purple {
    background: #667eea;
}

.blob-pink {
    background: #f093fb;
}

.blob-blue {
    background: #00d2ff;
}

/* Background Patterns */
.pattern-dots {
    background-image: radial-gradient(circle, rgba(102, 126, 234, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.pattern-grid {
    background-image:
        linear-gradient(rgba(102, 126, 234, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(102, 126, 234, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Feature Boxes */
.feature-box {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    position: relative;
}

.feature-box:hover {
    border: 2px solid var(--color-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    padding: calc(2rem - 2px);
}

.feature-box .emoji {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.feature-box:hover .emoji {
    transform: scale(1.2) rotate(5deg);
}

/* Enhanced Typography */
.heading-xl {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.heading-lg {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

/* Utility Classes */
.rounded-xl {
    border-radius: 20px;
}

.rounded-2xl {
    border-radius: 30px;
}

.shadow-glow {
    box-shadow: 0 0 40px rgba(102, 126, 234, 0.3);
}

.overflow-hidden {
    overflow: hidden;
}

/* Section Spacing */
.section-padding {
    padding: 5rem 0;
}

.section-padding-lg {
    padding: 8rem 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 3rem 0;
    }

    .section-padding-lg {
        padding: 4rem 0;
    }

    .glass-card {
        padding: 1.5rem;
    }

    .modern-card {
        padding: 1.5rem;
    }
}

/* Improved Form Styling */
.form-control-modern {
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control-modern:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    outline: none;
}

/* Loading States */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}