/* Ultra Modern Design System - Sophisticated & Elegant */

:root {
    /* Sophisticated Color System */
    --aurora-blue: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --aurora-green: linear-gradient(135deg, #00d2ff 0%, #3a47d5 100%);
    --aurora-cyan: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);

    --depth-primary: rgba(102, 126, 234, 0.6);
    --depth-secondary: rgba(118, 75, 162, 0.6);
    --depth-accent: rgba(0, 210, 255, 0.6);

    --surface-dark: rgba(13, 17, 23, 0.95);
    --surface-light: rgba(255, 255, 255, 0.02);
    --surface-glow: rgba(255, 255, 255, 0.03);

    --text-primary: rgba(255, 255, 255, 0.92);
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);

    /* Sophisticated Shadows */
    --shadow-ambient: 0 0 40px rgba(102, 126, 234, 0.1);
    --shadow-depth:
        0 0.5px 1px rgba(0, 0, 0, 0.12),
        0 2px 4px rgba(0, 0, 0, 0.08),
        0 8px 16px rgba(0, 0, 0, 0.06),
        0 16px 32px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 60px rgba(102, 126, 234, 0.2);

    /* Smooth Animations */
    --ease-smooth: cubic-bezier(0.4, 0.0, 0.2, 1);
    --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
    --ease-in: cubic-bezier(0.4, 0.0, 1, 1);

    /* Refined Radii */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-round: 50%;
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Sophisticated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at top left, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(118, 75, 162, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at center, rgba(0, 210, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: -2;
}

/* Animated Gradient Orbs */
.gradient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float-orb 20s infinite ease-in-out;
    pointer-events: none;
}

.gradient-orb-1 {
    width: 600px;
    height: 600px;
    background: var(--aurora-blue);
    top: -200px;
    left: -200px;
    animation-duration: 25s;
}

.gradient-orb-2 {
    width: 800px;
    height: 800px;
    background: var(--aurora-green);
    bottom: -300px;
    right: -300px;
    animation-duration: 30s;
    animation-delay: -10s;
}

.gradient-orb-3 {
    width: 500px;
    height: 500px;
    background: var(--aurora-cyan);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 35s;
    animation-delay: -20s;
}

@keyframes float-orb {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) scale(1.05) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.95) rotate(240deg);
    }
}

/* Sophisticated Cards */
.modern-card {
    position: relative;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.04) 0%,
        rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    overflow: hidden;
    transition: all 0.4s var(--ease-smooth);
    box-shadow: var(--shadow-depth);
}

/* Gradient Border Effect */
.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.3),
        rgba(118, 75, 162, 0.3),
        rgba(0, 210, 255, 0.3));
    mask: linear-gradient(#fff 0 0) content-box,
          linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    opacity: 0.5;
    transition: opacity 0.4s var(--ease-smooth);
}

.modern-card:hover::before {
    opacity: 0.8;
}

/* Inner Glow */
.modern-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(102, 126, 234, 0.1) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.4s var(--ease-smooth);
    pointer-events: none;
}

.modern-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--shadow-glow), var(--shadow-depth);
}

.modern-card:hover::after {
    opacity: 1;
}

/* Elegant Buttons */
.btn-modern {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    color: var(--text-primary);
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s var(--ease-smooth);
    text-decoration: none;
}

/* Shimmer Effect */
.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.6s var(--ease-smooth);
}

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

.btn-modern:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.04) 100%);
    box-shadow:
        0 4px 12px rgba(102, 126, 234, 0.2),
        0 0 20px rgba(102, 126, 234, 0.1);
}

/* Primary Button Variant */
.btn-modern-primary {
    background: var(--aurora-blue);
    border: none;
    color: white;
}

.btn-modern-primary:hover {
    box-shadow:
        0 6px 20px rgba(102, 126, 234, 0.4),
        0 0 40px rgba(102, 126, 234, 0.2);
}

/* Floating Navigation Pills */
.nav-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    transition: all 0.3s var(--ease-smooth);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.nav-pill::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--aurora-blue);
    transform: translateX(-50%);
    transition: width 0.3s var(--ease-smooth);
}

.nav-pill:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.nav-pill:hover::after {
    width: 80%;
}

/* Elegant Headings */
.heading-elegant {
    font-weight: 200;
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--text-primary);
    position: relative;
}

.heading-gradient {
    background: linear-gradient(135deg,
        #667eea 0%,
        #764ba2 25%,
        #00d2ff 50%,
        #667eea 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Feature Grid */
.feature-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
}

.feature-item {
    position: relative;
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.03) 0%,
        rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(10px);
    transition: all 0.4s var(--ease-smooth);
    cursor: pointer;
}

.feature-item:hover {
    transform: translateY(-8px) rotateX(5deg);
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.06) 0%,
        rgba(255, 255, 255, 0.02) 100%);
}

/* Icon Containers */
.icon-aurora {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    background: var(--aurora-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.icon-aurora::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.3) 0%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.3s var(--ease-smooth);
}

.feature-item:hover .icon-aurora::after {
    opacity: 1;
}

/* Smooth Reveal Animation */
.reveal-smooth {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-smooth);
}

.reveal-smooth.active {
    opacity: 1;
    transform: translateY(0);
}

/* Elegant Tags */
.tag-modern {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 1rem;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: var(--radius-xl);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    transition: all 0.3s var(--ease-smooth);
}

.tag-modern:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .feature-grid-modern {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .modern-card {
        padding: 1.25rem;
    }

    .heading-elegant {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}