/* GLOBAL RESET & FONTS */
body {
    margin: 0;
    padding: 0;
    background-color: #050505; 
    font-family: 'Varela Round', sans-serif;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden; 
    overflow-y: auto;
    display: block; 
    position: relative;
}

/* BLOB BACKGROUND ANIMATION */
.blob {
    position: fixed;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
    animation: float 20s infinite ease-in-out;
}
.blob-1 { width: 600px; height: 600px; top: -200px; left: -100px; }
.blob-2 { width: 500px; height: 500px; bottom: -150px; right: -100px; animation-delay: -10s; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 50px) scale(1.1); }
    100% { transform: translate(0, 0) scale(1); }
}

/* MAIN SECTIONS */
.hero-section {
    min-height: 100vh; /* Full screen start */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    padding-bottom: 50px;
}

/* GLASS PANEL STYLES (Main Box) */
.glass-panel {
    position: relative;
    z-index: 10;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    padding: 3rem;
    border-radius: 24px;
    width: 90%;
    max-width: 550px;
    text-align: center;
    transition: transform 0.3s ease;
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

/* LOGO & TEXT */
.floating-logo {
    display: block;
    margin: -318px auto 0 auto; 
    max-width: 280px;
    height: auto;
    mix-blend-mode: screen; 
    opacity: 0.95;
    clip-path: inset(5% 0 1% 0); 
    animation: liquidFloat 6s ease-in-out infinite;
}

@keyframes liquidFloat {
    0% { transform: translateY(0px); filter: drop-shadow(0 5px 15px rgba(255,255,255,0.1)); }
    50% { transform: translateY(-12px); filter: drop-shadow(0 20px 20px rgba(255,255,255,0.2)); }
    100% { transform: translateY(0px); filter: drop-shadow(0 5px 15px rgba(255,255,255,0.1)); }
}

p.intro-text {
    color: #aaa;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* FORM ELEMENTS */
.input-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

input[type="text"] {
    width: 100%;
    padding: 18px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    box-sizing: border-box; 
    transition: all 0.3s ease;
}

input[type="text"]:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5); 
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.convert-btn {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    color: #000;
    font-size: 1.1rem;
    font-weight: 800; 
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.convert-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.convert-btn:active {
    transform: scale(0.98);
}

/* --- NEW STATES: LOADING & RESULTS --- */

/* Loading State */
#state-loading {
    display: none; /* Hidden by default */
    padding: 20px 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #fff; /* White spinner */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px auto;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

.progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-top: 15px;
    overflow: hidden;
}

#progress-bar {
    width: 0%;
    height: 100%;
    background: #fff; 
    transition: width 0.3s ease;
}

/* Results State */
#state-results {
    display: none; /* Hidden by default */
    text-align: left;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.results-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
}

.close-icon {
    cursor: pointer;
    font-size: 1.5rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.close-icon:hover { opacity: 1; }

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.video-name {
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    max-width: 60%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* MILKY BUTTONS (Your new requirement) */
.milky-btn {
    background: rgba(255, 255, 255, 0.9); /* Milky White */
    color: #000; /* Black Text */
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s;
    display: inline-block;
}

.milky-btn:hover {
    background: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* FEATURES GRID & FOOTER (Your existing styles) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: -100px auto 100px auto; 
    padding: 20px;
    position: relative;
    z-index: 10;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    transition: transform 0.3s ease, background 0.3s ease;
    backdrop-filter: blur(5px);
}
.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.15);
}
.feature-card h3 { font-size: 1.5rem; margin: 15px 0 10px 0; color: #fff; font-weight: 600; }
.feature-card p { color: rgba(255, 255, 255, 0.6); font-size: 1rem; line-height: 1.6; margin: 0; }
.icon-glow { width: 50px; height: 50px; color: #fff; filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.6)); }

.seo-content {
    max-width: 900px;
    margin: 0 auto 150px auto;
    padding: 20px;
    position: relative;
    z-index: 5;
}
.text-panel {
    background: rgba(255, 255, 255, 0.02);
    padding: 38px;
    border-radius: 20px;
    text-align: left;
}
.text-panel h2 { color: #fff; margin-top: 0; }
.text-panel h3 { color: #ddd; margin-top: 25px; margin-bottom: 10px; font-size: 1.1rem; }
.text-panel p, .text-panel li { color: #aaa; line-height: 1.6; margin-bottom: 15px; }

.glass-footer {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border-radius: 50px; 
    padding: 15px 40px;
    width: auto;
    min-width: 300px;
    z-index: 100;
}
.footer-content { display: flex; align-items: center; justify-content: space-between; gap: 30px; white-space: nowrap; }
.footer-text { margin: 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 15px; }
.footer-links a { text-decoration: none; font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); transition: all 0.3s ease; font-weight: 500; }
.footer-links a:hover { color: #fff; text-shadow: 0 0 8px rgba(255, 255, 255, 0.6); }
.separator { color: rgba(255, 255, 255, 0.2); font-size: 0.8rem; }

@media (max-width: 600px) {
    .glass-footer { width: 85%; padding: 15px 20px; bottom: 15px; }
    .footer-content { flex-direction: column; gap: 10px; }
    .footer-links { gap: 10px; font-size: 0.8rem; }
}
