@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: #f472b6;
    --color-1: #6366f1;
    --color-2: #8b5cf6;
    --color-3: #f472b6;
    --color-4: #10b981;
--dark: #1e293b;
    --light: #f8fafc;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --radius: 12px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
body {
    font-family: 'Inter', sans-serif;
    background-color: #f9fafb;
    color: var(--dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}
.hero {
    padding: 8rem 0 6rem;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(255, 255, 255, 1) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, rgba(99, 102, 241, 0) 70%);
    pointer-events: none;
    z-index: -1;
}
.text-gradient {
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #f472b6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-text 8s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradient-text {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.bg-gradient {
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    position: relative;
    overflow: hidden;
}

.bg-gradient:hover {
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.bg-gradient::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #8b5cf6, #6366f1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bg-gradient:hover::after {
    opacity: 1;
}
.rgb-effect-btn {
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    position: relative;
    border: none;
}

.rgb-effect {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        #ff0000, #ff7300, #fffb00, 
        #48ff00, #00ffd5, #002bff, 
        #7a00ff, #ff00c8, #ff0000);
    background-size: 400%;
    border-radius: inherit;
    z-index: 1;
    opacity: 0;
    filter: blur(5px);
    transition: opacity 0.3s ease;
    animation: rgb-anim 20s linear infinite;
}

.rgb-effect-btn:hover .rgb-effect {
    opacity: 0.7;
}

@keyframes rgb-anim {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}
.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.input-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    transform-style: preserve-3d;
}

.input-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        rgba(99, 102, 241, 0.8), 
        rgba(139, 92, 246, 0.8), 
        rgba(244, 114, 182, 0.8));
    z-index: 1;
}

.input-card:hover {
    transform: translateY(-5px) scale(1.005);
}

.detect-btn {
    box-shadow: 0 2px 15px rgba(99, 102, 241, 0.2);
}

.detect-btn:hover {
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.icon-container {
    filter: drop-shadow(0 4px 6px rgba(99, 102, 241, 0.2));
}

.upload-area {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.upload-area:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.2);
}

.textarea-style {
    min-height: 200px;
    resize: none;
}

.textarea-style:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3);
}

.remove-btn {
    transform: translateY(5px);
    opacity: 0;
    transition: all 0.3s ease;
}

#imagePreview:hover .remove-btn {
    transform: translateY(0);
    opacity: 1;
}

.rgb-effect {
    background-size: 200% 100%;
    animation: rgbFlow 3s linear infinite;
}

@keyframes rgbFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.upload-area {
    border: 2px dashed #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: #f9fafb;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.upload-area:hover::before {
    opacity: 1;
}
.upload-area:hover {
    border-color: #6366f1;
    background-color: #f8fafc;
}

.textarea-style {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.textarea-style:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}
/* Modern Animations */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

.animate-fadein {
  animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Custom tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.875rem;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}