
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Colors */
    --primary-blue: #0066ff;
    --secondary-blue: #0052cc;
    --accent-blue: #338ef7;
    --light-blue: #e6f0ff;
    --dark-blue: #003d99;
    
    /* Background */
    --bg-primary: #0a0a0b;
    --bg-secondary: #131316;
    --bg-tertiary: #1a1a1e;
    --bg-card: #1e1e23;
    --bg-surface: #252529;
    
    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #b4b4b9;
    --text-muted: #8a8a8f;
    --text-accent: #e6f0ff;
    
    /* Status Colors */
    --success: #00d26a;
    --warning: #ffb800;
    --error: #ff4757;
    --info: #0066ff;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0066ff 0%, #338ef7 50%, #0052cc 100%);
    --gradient-secondary: linear-gradient(135deg, #1a1a1e 0%, #252529 100%);
    --gradient-surface: linear-gradient(135deg, #1e1e23 0%, #2a2a2f 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(0, 102, 255, 0.3);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Elements */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 102, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(51, 142, 247, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(0, 82, 204, 0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: -2;
}

.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s linear infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 20%;
    right: -100px;
    animation-delay: 7s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 10%;
    left: 10%;
    animation-delay: 14s;
}

.shape-4 {
    width: 250px;
    height: 250px;
    bottom: -125px;
    right: 20%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(90deg); }
    50% { transform: translateY(0px) rotate(180deg); }
    75% { transform: translateY(-10px) rotate(270deg); }
}

/* App Container */
.app-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
.nav-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(26, 26, 30, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-md) var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Hero Section */
.hero-section {
    padding: var(--space-2xl) var(--space-lg);
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-xs) var(--space-md);
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: 50px;
    margin-bottom: var(--space-lg);
    animation: glow 2s ease-in-out infinite alternate;
}

.badge-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-blue);
}

@keyframes glow {
    from { box-shadow: 0 0 10px rgba(0, 102, 255, 0.2); }
    to { box-shadow: 0 0 20px rgba(0, 102, 255, 0.4); }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Tool Section */
.tool-section {
    padding: 0 var(--space-lg) var(--space-2xl);
}

.tool-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.input-panel {
    background: rgba(32, 32, 35, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(20px);
}

.input-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.input-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.security-badge {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: rgba(34, 139, 34, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #22C55E;
}

.input-group {
    display: flex;
    gap: var(--space-md);
    align-items: stretch;
}

.input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: var(--space-md);
    color: var(--text-muted);
    z-index: 2;
    transition: color 0.3s ease;
}

#urlInput {
    width: 100%;
    height: 60px;
    padding: 0 var(--space-lg) 0 60px;
    background: rgba(45, 45, 48, 0.8);
    border: 2px solid rgba(75, 75, 78, 0.6);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

#urlInput::placeholder {
    color: var(--text-muted);
}

#urlInput:focus {
    border-color: var(--primary-blue);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

#urlInput:focus + .input-validation .validation-icon {
    color: var(--primary-blue);
}

.input-validation {
    position: absolute;
    right: var(--space-md);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.validation-icon {
    color: var(--success);
}

#urlInput:valid ~ .input-validation {
    opacity: 1;
}

.download-btn {
    height: 60px;
    padding: 0 var(--space-xl);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: none;
    border-radius: var(--radius-lg);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 180px;
    box-shadow: 0 8px 25px -5px rgba(37, 99, 235, 0.4);
}

.download-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.download-btn:active:not(:disabled) {
    transform: translateY(0);
}

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

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.download-btn:hover .btn-icon {
    transform: translateY(2px);
}

.btn-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.spinner-ring {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom Message */
.custom-message {
    text-align: center;
    padding: var(--space-md);
    background: rgba(255, 184, 0, 0.1);
    border: 1px solid rgba(255, 184, 0, 0.2);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    animation: fadeIn 0.5s ease-out;
}

.custom-message p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--warning);
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 184, 0, 0.3);
}

/* Status Panel */
.status-panel {
    background: var(--gradient-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    backdrop-filter: blur(20px);
    animation: slideInUp 0.4s ease-out;
}

/* New Progress Bar */
.progress-container {
    width: 100%;
    margin-top: var(--space-md);
}

.progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xs);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.progress-percentage {
    font-weight: 600;
    color: var(--primary-blue);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    border-radius: 50px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-complete {
    text-align: center;
    padding: var(--space-md);
    background: rgba(0, 210, 106, 0.1);
    border: 1px solid rgba(0, 210, 106, 0.2);
    border-radius: var(--radius-md);
    margin-top: var(--space-md);
    animation: fadeIn 0.5s ease-out;
}

.progress-complete h4 {
    color: var(--success);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.status-content {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.status-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 102, 255, 0.1);
}

.status-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 102, 255, 0.3);
    border-top: 2px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.status-text {
    font-weight: 500;
    color: var(--text-primary);
}

/* Status Variations */
.status-panel.info {
    border-color: rgba(0, 102, 255, 0.2);
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.05), rgba(0, 102, 255, 0.02));
}

.status-panel.success {
    border-color: rgba(0, 210, 106, 0.2);
    background: linear-gradient(135deg, rgba(0, 210, 106, 0.05), rgba(0, 210, 106, 0.02));
}

.status-panel.warning {
    border-color: rgba(255, 184, 0, 0.2);
    background: linear-gradient(135deg, rgba(255, 184, 0, 0.05), rgba(255, 184, 0, 0.02));
}

.status-panel.error {
    border-color: rgba(255, 71, 87, 0.2);
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.05), rgba(255, 71, 87, 0.02));
}

/* Download Panel */
.download-panel {
    background: var(--gradient-surface);
    border: 2px solid rgba(0, 210, 106, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
    animation: slideInUp 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

.download-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--success), transparent);
}

.download-content {
    position: relative;
    z-index: 2;
}

.download-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    background: rgba(0, 210, 106, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--success);
}

.download-panel h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--success);
    margin-bottom: var(--space-sm);
}

.download-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    font-size: 1.1rem;
}

.file-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

.download-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: linear-gradient(135deg, var(--success) 0%, #00b056 100%);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
}

.download-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 210, 106, 0.4);
}



/* Footer */
.footer {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--bg-secondary);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-branding {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-powered {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.powered-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.team-name {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-content {
        padding: var(--space-md);
    }
    
    .hero-section {
        padding: var(--space-xl) var(--space-md);
    }
    
    .tool-section {
        padding: 0 var(--space-md) var(--space-xl);
    }
    
    .input-group {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    
    
    .footer-content {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
    
    .file-stats {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .stat-divider {
        width: 40px;
        height: 1px;
    }
}

@media (max-width: 480px) {
    .input-panel {
        padding: var(--space-lg);
    }
    
    .input-header {
        flex-direction: column;
        gap: var(--space-sm);
        align-items: flex-start;
    }
    
    
}

/* Technology Message */
.technology-message {
    background: rgba(165, 139, 69, 0.2);
    border: 1px solid rgba(218, 165, 32, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin-top: var(--space-lg);
    text-align: center;
}

.technology-message p {
    font-size: 0.95rem;
    font-weight: 500;
    color: #DAA520;
    margin: 0;
}

.team-highlight {
    font-weight: 700;
    color: #FFD700;
}


/* Focus Styles for Accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Smooth transitions for all interactive elements */
button, input, a, .feature-card, .download-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
