/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Outfit:wght@400;700&display=swap');

:root {
    --primary-red: #E63946;
    --dark-red: #A8202D;
    --white: #FFFFFF;
    --light-bg: #F8F9FA;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --text-dark: #1D3557;
    --text-light: #F1FAEE;
    --shadow: 0 8px 32px 0 rgba(230, 57, 70, 0.2);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #FFB3BA 0%, #FFDFD3 100%);
    background-attachment: fixed;
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background Animated Orbs */
.bg-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: #E63946;
    top: -100px;
    left: -100px;
    animation: float 10s ease-in-out infinite alternate;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: #FFFFFF;
    bottom: -50px;
    right: -50px;
    animation: float 12s ease-in-out infinite alternate-reverse;
}

@keyframes float {
    0% { transform: translateY(0) translateX(0); }
    100% { transform: translateY(50px) translateX(50px); }
}

/* Navbar */
header {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-red);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-red);
}

/* Main Content */
main {
    flex: 1;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Glass Container */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 800px;
    text-align: center;
    transition: transform 0.3s ease;
}

.glass-panel:hover {
    transform: translateY(-5px);
}

h1 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary-red);
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

p.subtitle {
    font-size: 1.1rem;
    color: #4A5568;
    margin-bottom: 2rem;
}

/* Forms & Inputs */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

label {
    font-weight: 600;
    color: var(--text-dark);
}

input[type="text"], input[type="url"], input[type="file"], select {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.6);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

input:focus, select:focus {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.2);
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--primary-red);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.btn:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-red);
    border: 1px solid var(--primary-red);
}

.btn-secondary:hover {
    background: #FFF0F1;
}

/* Grid Layouts */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
}

.feature-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.15);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-family: 'Outfit', sans-serif;
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    text-align: center;
    padding: 2rem;
    margin-top: auto;
    border-top: 1px solid var(--glass-border);
    color: var(--text-dark);
}

/* File Upload Zone */
.upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--primary-red);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    width: 100%;
}

.upload-zone:hover, .upload-zone.dragover {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--dark-red);
}

.upload-icon {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

/* Result Area */
#result-area {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--glass-border);
    display: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(230, 57, 70, 0.2);
    border-top-color: var(--primary-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 1rem auto;
}

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

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 15px;
    }
    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .glass-panel {
        padding: 2rem 1rem;
    }
    h1 {
        font-size: 2rem;
    }
    .upload-zone {
        padding: 2rem 1rem;
    }
}
