@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ========================================
   MODERN FLUID DESIGN SYSTEM
   ======================================== */

/* Kinetic/Momentum Scrolling - Enhanced */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    /* iOS momentum scrolling */
}

body {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: no-preference) {

    html,
    body {
        scroll-behavior: smooth;
    }
}

/* Custom Smooth Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #667eea #f1f5f9;
}

*::-webkit-scrollbar {
    width: 8px;
}

*::-webkit-scrollbar-track {
    background: #f1f5f9;
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #ffffff;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
    margin: 0;
    padding: 0;
    padding-top: 72px;
    /* Account for fixed header */
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* ========================================
   MODERN CARD COMPONENTS
   ======================================== */

.modern-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.05),
        0 8px 16px rgba(0, 0, 0, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.8) 50%,
            transparent 100%);
}

.modern-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.85);
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Icon Container */
.modern-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-card:hover .modern-icon {
    transform: scale(1.05);
}

/* Fluid Typography */
.modern-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.modern-gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Modern Button */
.modern-button {
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.01em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.modern-button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.modern-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.modern-button-secondary {
    background: white;
    color: #334155;
    border: 1.5px solid #e5e7eb;
}

.modern-button-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

/* Badge */
.modern-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    border-radius: 10px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #667eea;
}

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

@keyframes modernFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@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);
    }
}

@keyframes floatDelayed {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-40px, 30px) scale(0.9);
    }

    66% {
        transform: translate(20px, -20px) scale(1.1);
    }
}

@keyframes floatSlow {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(25px, 25px) scale(1.05);
    }
}

.animate-float {
    animation: float 20s ease-in-out infinite;
}

.animate-float-delayed {
    animation: floatDelayed 25s ease-in-out infinite;
}

.animate-float-slow {
    animation: floatSlow 30s ease-in-out infinite;
}

.modern-animate {
    animation: modernFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.modern-delay-1 {
    animation-delay: 0.1s;
}

.modern-delay-2 {
    animation-delay: 0.2s;
}

.modern-delay-3 {
    animation-delay: 0.3s;
}

/* ========================================
   DROPZONE CUSTOMIZATION
   ======================================== */

.dropzone {
    border: 2px dashed #d1d5db !important;
    border-radius: 16px !important;
    background: #f9fafb !important;
    transition: all 0.3s ease;
    min-height: 400px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column;
}

.dropzone.dz-drag-hover {
    border-color: #667eea !important;
    background: #f0f4ff !important;
}

.dropzone .dz-message {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: #64748b;
}

/* ========================================
   UTILITIES
   ======================================== */

.modern-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
}