/* Existing Styles... (I will append to the end or overwrite if I had the whole file, but let's append properly) */
/* Ideally I should read the file first to append properly or use replace */

:root {
    --primary: #833ab4;
    --secondary: #fd1d1d;
    --tertiary: #fcb045;
    --bg-dark: #0f0f13;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --input-bg: rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* Changed from center to allow scrolling */
    padding-top: 50px;
    padding-bottom: 50px;
    overflow-x: hidden;
    position: relative;
}

/* Dynamic Background */
.background-globes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.globe {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 10s infinite ease-in-out;
}

.globe-1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: -50px;
    left: -50px;
    animation-delay: 0s;
}

.globe-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -100px;
    right: -100px;
    animation-delay: 3s;
}

.globe-3 {
    width: 250px;
    height: 250px;
    background: var(--tertiary);
    top: 40%;
    left: 30%;
    opacity: 0.2;
    animation-delay: 6s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(20px) scale(1.1);
    }
}

/* Container */
.container {
    width: 100%;
    max-width: 600px;
    /* Slight increase for content */
    padding: 2rem;
    text-align: center;
    z-index: 1;
}

header {
    margin-bottom: 2.5rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.logo i {
    font-size: 1.8rem;
    background: linear-gradient(45deg, var(--tertiary), var(--secondary), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.gradient-text {
    background: linear-gradient(90deg, var(--tertiary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Glass Card */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.card {
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Input Group */
.input-group {
    position: relative;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: var(--text-muted);
    pointer-events: none;
}

input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: var(--input-bg);
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

input:focus {
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.5);
}

.icon-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
    transition: 0.3s;
}

.icon-btn:hover {
    color: var(--text-main);
}

/* Buttons */
.primary-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(253, 29, 29, 0.3);
}

.primary-btn:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
}

.primary-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Result Area */
.result-container {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.media-preview {
    width: 100%;
    max-height: 400px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.media-preview img,
.media-preview video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    backdrop-filter: blur(4px);
}

.media-info {
    text-align: center;
    width: 100%;
}

.media-info h3 {
    margin-bottom: 0.5rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: white;
    color: var(--bg-dark);
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    margin-top: 1rem;
    transition: 0.3s;
    width: 100%;
}

.download-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

/* SEO Content Styles */
.seo-content {
    padding: 2.5rem;
    text-align: left;
    margin-top: 3rem;
    color: #dedede;
    line-height: 1.6;
}

.seo-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    border-left: 4px solid var(--secondary);
    padding-left: 10px;
}

.seo-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.seo-content p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-item {
    text-align: center;
}

.feature-item i {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, var(--tertiary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.how-to-section ol {
    padding-left: 1.2rem;
    margin-bottom: 2rem;
}

.how-to-section li {
    margin-bottom: 0.8rem;
}

.faq-section details {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    margin-bottom: 0.8rem;
    padding: 0.8rem;
    cursor: pointer;
    transition: 0.3s;
}

.faq-section details:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-section summary {
    font-weight: 600;
    list-style: none;
    /* Hide default triangle logic if desired, or keep it */
    position: relative;
    padding-right: 20px;
}

.faq-section summary::-webkit-details-marker {
    display: none;
}

.faq-section details[open] summary {
    color: var(--tertiary);
    margin-bottom: 0.5rem;
}

/* Footer Links */
footer {
    margin-top: 3rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

footer a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 5px;
    transition: 0.2s;
}

footer a:hover {
    color: var(--text-main);
}

.footer-links {
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}