:root {
    --primary-color: #ffffff;
    --accent-color: #ffd700;
    /* Gold/Yellow */
    --glow-color: rgba(255, 215, 0, 0.5);
    --glass-bg: rgba(255, 255, 255, 0.03);
    /* Very transparent for true glass feel */
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-color: #ffffff;
    --text-muted: #a1a1aa;
    --font-family: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background: #000000;
    /* Deep Black */
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    overflow: hidden;
    position: relative;
}

/* Blue Liquid Background Animation */
.background-blobs {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    /* Reduced blur slightly for more "liquid" form */
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.blob-1 {
    width: 700px;
    height: 700px;
    background: #0044ff;
    /* Strong Blue */
    top: -300px;
    left: -200px;
    opacity: 0.3;
}

.blob-2 {
    width: 600px;
    height: 600px;
    background: #0066ff;
    /* Lighter Blue */
    bottom: -300px;
    right: -200px;
    animation-delay: -5s;
    opacity: 0.2;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    25% {
        transform: translate(50px, 50px) scale(1.1);
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }

    50% {
        transform: translate(0, 100px) scale(1);
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    75% {
        transform: translate(-50px, 50px) scale(0.9);
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }
}

.container {
    width: 100%;
    max-width: 550px;
    padding: 20px;
    text-align: center;
    z-index: 10;
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

header p {
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Ultra-Transparent Glass Panel */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    /* Stronger blur for glass effect */
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Specific White/Yellow Neon Border Glow */
.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 30px;
    padding: 2px;
    /* Border width */
    background: linear-gradient(45deg, #ffd700, #ffffff, #ffd700, #ffffff);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.8;
    animation: borderRotate 4s linear infinite;
    pointer-events: none;
}

@keyframes borderRotate {
    0% {
        filter: hue-rotate(0deg) brightness(1);
    }

    50% {
        filter: hue-rotate(15deg) brightness(1.2);
    }

    100% {
        filter: hue-rotate(0deg) brightness(1);
    }
}

.glass-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Upload Area - Pure Glass */
.upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 50px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    /* No background color, just glass from parent */
}

/* Glow on Hover for Box */
.upload-area:hover,
.upload-area.dragover {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
    /* Subtle yellow glow inside */
    transform: scale(1.01);
}

.icon-container {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.upload-area:hover .icon-container {
    transform: translateY(-10px);
    color: #ffffff;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.6));
    /* Yellow glow on icon */
}

.upload-area h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.upload-area p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.browse-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.browse-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    transform: scale(1.05);
}

/* Utils */
.hidden {
    display: none !important;
}

/* Server Upload Animation */
.server-upload-animation {
    position: relative;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.server-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.8);
    z-index: 1;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.file-icon {
    position: absolute;
    font-size: 2rem;
    color: #ffd700;
    opacity: 0;
    animation: uploadMove 2s infinite ease-in-out;
}

@keyframes uploadMove {
    0% {
        transform: translateY(40px);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        transform: translateY(-40px);
        opacity: 1;
    }

    100% {
        transform: translateY(-60px);
        opacity: 0;
    }
}

/* Success Animation (Checkmark) */
.checkmark-circle {
    width: 80px;
    height: 80px;
    position: relative;
    display: inline-block;
    vertical-align: top;
    margin-bottom: 20px;
}

.checkmark-circle .checkmark {
    border-radius: 5px;
}

.checkmark-circle .checkmark.draw:after {
    animation-delay: 100ms;
    animation-duration: 1s;
    animation-timing-function: ease;
    animation-name: checkmark;
    transform: scaleX(-1) rotate(135deg);
    animation-fill-mode: forwards;
}

.checkmark-circle .checkmark:after {
    opacity: 1;
    height: 0;
    width: 0;
    transform-origin: left top;
    border-right: 5px solid #ffd700;
    border-top: 5px solid #ffd700;
    content: '';
    left: 15px;
    top: 40px;
    position: absolute;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

@keyframes checkmark {
    0% {
        height: 0;
        width: 0;
        opacity: 1;
    }

    20% {
        height: 0;
        width: 25px;
        opacity: 1;
    }

    40% {
        height: 50px;
        width: 25px;
        opacity: 1;
    }

    100% {
        height: 50px;
        width: 25px;
        opacity: 1;
    }
}

/* Result Area */
.preview-container {
    margin: 2rem 0;
    border-radius: 15px;
    overflow: hidden;
    max-height: 250px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.preview-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.input-group input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding: 12px 20px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
}

#copy-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #ffd700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.2s;
}

#copy-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 215, 0, 0.2);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.reset-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 30px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.reset-btn:hover {
    border-color: #ffd700;
    color: #ffd700;
    background: rgba(255, 215, 0, 0.05);
}

/* ... existing footer ... */
footer {
    margin-top: 3rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* -------------------------------------------------- */
/* NEW ANIMATION STYLES */
/* -------------------------------------------------- */

/* Blur effect for the main container content when result is shown */
.content-blur {
    filter: blur(8px);
    transition: filter 0.5s ease;
    pointer-events: none;
    /* Prevent clicking while blurred */
}

/* Thumbs Up Overlay */
.overlay-center {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 200;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    height: auto;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* Top Right Logo */
.top-logo {
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 50;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.top-logo:hover {
    opacity: 1;
}

.top-logo img {
    height: 50px;
    /* Adjust size as needed */
    width: auto;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.thumbs-icon {
    font-size: 8rem;
    color: #ffd700;
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.8));
    animation: thumbsUpPop 1.5s ease-in-out forwards;
    opacity: 0;
}

@keyframes thumbsUpPop {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    20% {
        opacity: 1;
        transform: scale(1.2);
    }

    40% {
        transform: scale(1);
    }

    80% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

/* Result Area Popup Animation */
#result-area {
    animation: popupScale 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popupScale {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}