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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow-x: hidden;
}

.theme-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 100;
    padding: 0.75rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(15deg);
}

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(59, 130, 246, 0.5);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.particle:nth-child(1) {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
    animation-duration: 15s;
}

.particle:nth-child(2) {
    left: 80%;
    top: 40%;
    animation-delay: 2s;
    animation-duration: 18s;
}

.particle:nth-child(3) {
    left: 30%;
    top: 60%;
    animation-delay: 4s;
    animation-duration: 22s;
}

.particle:nth-child(4) {
    left: 70%;
    top: 80%;
    animation-delay: 1s;
    animation-duration: 20s;
}

.particle:nth-child(5) {
    left: 50%;
    top: 10%;
    animation-delay: 3s;
    animation-duration: 25s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }
    50% {
        transform: translateY(-100px) translateX(50px) scale(1.5);
        opacity: 1;
    }
}

.main-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 600px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-section {
    text-align: center;
    margin-bottom: 1rem;
}

.logo-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.github-logo {
    width: 80px;
    height: 80px;
    fill: currentColor;
    animation: rotate 20s linear infinite;
    opacity: 0.9;
}

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

.main-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    animation: titlePulse 3s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

.dark .subtitle {
    color: #9ca3af;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.dark .glass-panel {
    background: rgba(22, 27, 34, 0.8);
    border: 1px solid rgba(48, 54, 61, 0.6);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.input-section {
    margin-bottom: 1.5rem;
}

.input-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.dark .input-label {
    color: #9ca3af;
}

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

.input-icon {
    position: absolute;
    left: 1rem;
    width: 20px;
    height: 20px;
    color: #9ca3af;
    pointer-events: none;
}

.url-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(209, 213, 219, 0.5);
    border-radius: 0.75rem;
    font-family: 'Monaspace Neon', monospace;
    font-size: 0.875rem;
    color: #111827;
    transition: all 0.3s ease;
    outline: none;
}

.dark .url-input {
    background: rgba(13, 17, 23, 0.9);
    border-color: rgba(48, 54, 61, 0.8);
    color: #e6edf3;
}

.url-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.url-input::placeholder {
    color: #9ca3af;
}

.download-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #000000;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.download-btn:hover {
    background: #1f1f1f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.download-btn:active {
    transform: scale(0.98);
}

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

.dark .download-btn {
    background: #ffffff;
    color: #000000;
}

.dark .download-btn:hover {
    background: #e5e5e5;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.status-area {
    margin-top: 1.5rem;
}

.terminal {
    height: 128px;
    background: #0d1117;
    border-radius: 0.5rem;
    padding: 0.75rem;
    overflow-y: auto;
    font-family: 'Monaspace Neon', monospace;
    font-size: 0.75rem;
    color: #58a6ff;
    border: 1px solid #30363d;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dark .terminal {
    background: #010409;
    border-color: #21262d;
}

.terminal > div {
    margin-bottom: 0.25rem;
    line-height: 1.5;
}

.terminal::-webkit-scrollbar {
    width: 6px;
}

.terminal::-webkit-scrollbar-track {
    background: transparent;
}

.terminal::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 3px;
}

.terminal::-webkit-scrollbar-thumb:hover {
    background: #484f58;
}

.progress-container {
    width: 100%;
    height: 6px;
    background: rgba(209, 213, 219, 0.3);
    border-radius: 9999px;
    overflow: hidden;
    margin-top: 1rem;
}

.dark .progress-container {
    background: rgba(48, 54, 61, 0.5);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 9999px;
    width: 0;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-size: 0.625rem;
    color: #6b7280;
    text-align: center;
}

.dark .security-badge {
    color: #9ca3af;
}

.badge-icon {
    width: 14px;
    height: 14px;
    color: #10b981;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(200, 200, 200, 0.3);
}

.dark .footer {
    background: rgba(13, 17, 23, 0.5);
    border-top: 1px solid rgba(48, 54, 61, 0.5);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.heart {
    color: #ef4444;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.footer-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #2563eb;
}

.hidden {
    display: none;
}

@media (max-width: 640px) {
    .main-title {
        font-size: 3rem;
    }
    
    .footer-content {
        font-size: 0.75rem;
    }
}
