:root {
    --bg-top: #6ac1cd;
    --bg-bottom: #97d3ea;
    --text-color: rgba(255, 255, 255, 0.95);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'EB Garamond', 'Garamond', 'Times New Roman', serif;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-x: hidden;
    position: relative;
    background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
    background-attachment: fixed;
}

/* Subtle Live Cloud Background */
.live-clouds {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.blob-cloud {
    position: absolute;
    background: radial-gradient(circle, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.5;
}

.blob-1 {
    width: 70vw; height: 70vw;
    top: -20vw; left: -10vw;
    animation: float 35s ease-in-out infinite alternate;
}
.blob-2 {
    width: 90vw; height: 50vw;
    top: 40vh; right: -20vw;
    animation: float-rev 45s ease-in-out infinite alternate;
}
.blob-3 {
    width: 60vw; height: 60vw;
    top: 10vh; left: 40vw;
    animation: float 55s ease-in-out infinite alternate-reverse;
}
.blob-4 {
    width: 100vw; height: 40vw;
    bottom: -15vw; left: 5vw;
    animation: float-rev 40s ease-in-out infinite alternate;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(6vw, 6vh) scale(1.1); }
}
@keyframes float-rev {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-6vw, -6vh) scale(1.15); }
}

.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3; /* Behind clouds */
}

/* Header */
.hero {
    text-align: center;
    padding: 6vh 20px 2vh;
}

.main-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.subtitle {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 300;
    color: var(--text-color);
    letter-spacing: 0.5px;
}

/* Infinite Carousel Animation centered perfectly */
.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 2vh 0;
    /* This makes the carousel grow to take up leftover space, 
       centering it perfectly between header and footer like the old layout! */
    flex-grow: 1; 
    display: flex;
    align-items: center;
}

.carousel-track {
    display: flex;
    gap: 1.5vw;
    width: max-content;
    animation: scroll-left 50s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 0.75vw)); }
}

.carousel-item {
    flex: 0 0 auto;
    height: 35vh;
    width: 30vw;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.carousel-item:hover img {
    transform: scale(1.08);
}

/* Glassmorphism Upload Form */
.cta-section {
    text-align: center;
    padding: 2vh 20px 4vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-heading {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.upload-form {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    padding: 25px 35px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.form-group input:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.8);
}

.file-group {
    border: 1px dashed rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    padding: 10px;
}

.file-group input[type="file"] {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    color: white;
    padding: 0;
}

.custom-file-button {
    background: white;
    color: var(--bg-top);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    margin-right: 15px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.custom-file-button:hover {
    background: #f0f0f0;
}

.file-name-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.cta-btn {
    background: white;
    color: var(--bg-top);
    border: none;
    padding: 14px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 5px;
    box-shadow: 0 4px 15px rgba(255,255,255,0.2);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.4);
}

.cta-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.status-message {
    margin-top: 15px;
    font-weight: 500;
    font-size: 1rem;
    height: 20px;
    transition: all 0.3s ease;
}

.success { color: white; text-shadow: 0 2px 4px rgba(0,0,0,0.15); }
.error { color: #ffeb3b; text-shadow: 0 2px 4px rgba(0,0,0,0.15); }

@media (max-width: 768px) {
    .carousel-item {
        height: 25vh;
        width: 60vw;
    }
}
