@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --primary: hsl(203, 89%, 53%);
    --primary-glow: hsla(203, 89%, 53%, 0.3);
    --secondary: hsl(158, 100%, 36%);
    --bg-light: hsl(210, 40%, 98%);
    --text-main: hsl(210, 40%, 10%);
    --text-muted: hsl(210, 20%, 45%);
    --card-bg: hsla(0, 0%, 100%, 0.7);
    --glass-border: hsla(0, 0%, 100%, 0.3);
    --radius-xl: 32px;
    --radius-lg: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Stunning Animated Background */
.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: #f8fafc;
    background-image:
        radial-gradient(at 0% 0%, hsla(203, 100%, 95%, 1) 0px, transparent 50%),
        radial-gradient(at 50% 0%, hsla(158, 100%, 95%, 1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, hsla(203, 100%, 95%, 1) 0px, transparent 50%);
    opacity: 0.8;
}

/* Glassmorphism Logic */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

/* Premium Typography */
.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: var(--text-main);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-15px) rotate(1deg);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Button Premium Styles */
.btn-premium {
    background: linear-gradient(135deg, var(--primary) 0%, #0c85d0 100%);
    color: white;
    padding: 1.25rem 2.5rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px -5px var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-premium:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 35px -5px var(--primary-glow);
}

.btn-premium:active {
    transform: translateY(0) scale(0.98);
}

/* Input Premium Styles */
.input-premium {
    width: 100%;
    height: 76px;
    padding: 0 2.5rem;
    border-radius: 24px;
    background: white;
    border: 2px solid transparent;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.input-premium:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow), 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

.input-premium::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

/* Mobile Responsiveness & Overflow Protection */
@media (max-width: 768px) {
    .premium-card {
        padding: 1.5rem !important;
        border-radius: 24px !important;
    }

    .input-premium {
        height: 64px;
        padding: 0 1.5rem;
        font-size: 1rem;
    }

    .btn-premium {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Result Card Styles */
.result-card {
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    margin-top: 2rem;
    display: none;
    /* Controlled by JS */
}

.media-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* No lazy loading helper */
img {
    content-visibility: visible;
}