:root {
    --bg-color: #0f0f13;
    --text-color: #ffffff;
    --accent-color: #7000ff;
    --accent-glow: #7000ff88;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    min-height: 100vh;
    animation: fadeIn 0.3s ease-in;
}

.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0;
    animation: float 20s infinite alternate, blobFadeIn 1s ease-in forwards;
    will-change: transform, opacity;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: #ff0055;
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 600px;
    height: 600px;
    background: #0055ff;
    bottom: -150px;
    right: -150px;
    animation-delay: -5s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: #00ffaa;
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(50px, 50px) rotate(20deg);
    }
}

@keyframes blobFadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 0.4;
    }
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vm-logo {
    background: linear-gradient(45deg, #ff0055, #0055ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 600;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 1;
}

main {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero {
    text-align: center;
    margin-bottom: 6rem;
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.highlight {
    background: linear-gradient(90deg, #ff0055, #0055ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.creator-interface {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.input-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.input-group {
    flex-grow: 1;
}

.input-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    color: white;
    font-family: var(--font-main);
    font-size: 1.1rem;
    resize: none;
    height: 120px;
    transition: border-color 0.3s;
}

.input-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.image-upload-section {
    flex-shrink: 0;
}

.upload-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px dashed var(--glass-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.upload-label:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-color);
}

.image-preview-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.5rem;
    max-width: 400px;
}

.image-preview-grid.hidden {
    display: none;
}

.thumbnail-wrapper {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #ff0055;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.thumbnail-remove:hover {
    opacity: 1;
}


.sponsor-selection label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
    opacity: 0.9;
}

.sponsor-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.sponsor-card {
    flex: 1;
    min-width: 150px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.sponsor-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.sponsor-card.selected {
    border-color: var(--accent-color);
    background: rgba(112, 0, 255, 0.1);
    box-shadow: 0 0 20px rgba(112, 0, 255, 0.2);
}

.sponsor-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsor-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.cta-button {
    width: 100%;
    padding: 1.2rem;
    border-radius: 16px;
    border: none;
    background: linear-gradient(45deg, #ff0055, #0055ff);
    color: white;
    font-family: var(--font-main);
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 85, 255, 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

.gallery-section h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s;
    animation: fadeIn 0.4s ease-in;
}

.gallery-item:hover {
    transform: scale(1.02);
    z-index: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.loader {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto;
}

.hidden {
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal.hidden {
    display: none;
}

.modal-content {
    max-width: 500px;
    width: 90%;
    padding: 2.5rem;
    text-align: center;
    animation: slideUp 0.4s ease;
}

.modal-header h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
}

.modal-body {
    margin-bottom: 2rem;
}

.progress-spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #ff0055;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.modal-status {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.modal-result {
    margin-top: 1.5rem;
}

.modal-result img {
    max-width: 100%;
    border-radius: 16px;
    margin-top: 1rem;
    border: 1px solid var(--glass-border);
}

.modal-close-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg, #ff0055, #0055ff);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.modal-close-btn:hover {
    transform: translateY(-2px);
}

.modal-close-btn.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

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

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .blob {
        opacity: 0.3;
    }

    .input-row {
        flex-direction: column;
    }

    .input-group,
    .image-upload-section {
        width: 100%;
    }
}