/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

:root {
    --primary: #8a2be2;
    --primary-light: #9b4de3;
    --primary-dark: #6a1cb9;
    --secondary: #bb86fc;
    --accent: #03dac6;
    --text: #e0e0e0;
    --text-secondary: #a0a0a0;
    --bg-dark: #0a0a0a;
    --bg-card: rgba(20, 20, 20, 0.8);
    --bg-card-light: rgba(40, 40, 40, 0.7);
    --success: #4caf50;
    --error: #f44336;
    --warning: #ff9800;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1a1a 100%);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.3;
    }

    25% {
        transform: translateY(-20px) translateX(10px) rotate(90deg);
        opacity: 0.5;
    }

    50% {
        transform: translateY(-40px) translateX(20px) rotate(180deg);
        opacity: 0.7;
    }

    75% {
        transform: translateY(-20px) translateX(10px) rotate(270deg);
        opacity: 0.5;
    }

    100% {
        transform: translateY(0) translateX(0) rotate(360deg);
        opacity: 0.3;
    }
}

/* Glow effects */
.glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.05;
    filter: blur(40px);
    z-index: -1;
    animation: pulse-glow 8s infinite alternate;
}

.glow-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.glow-2 {
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.glow-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes pulse-glow {
    0% {
        transform: scale(1);
        opacity: 0.05;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.1;
    }

    100% {
        transform: scale(1);
        opacity: 0.05;
    }
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Header styles */
.header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 1s ease-out;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.logo i {
    font-size: 2.8rem;
    color: var(--primary);
    animation: pulse 2s infinite, glow-icon 3s infinite alternate;
}

@keyframes glow-icon {
    0% {
        text-shadow: 0 0 5px var(--primary-light);
    }

    100% {
        text-shadow: 0 0 20px var(--primary), 0 0 30px var(--secondary);
    }
}

.title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 3s linear infinite, text-shake 0.5s ease-in-out infinite alternate;
    position: relative;
    display: inline-block;
}

.title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: line-grow 3s infinite;
}

@keyframes line-grow {
    0% {
        transform: scaleX(0);
        opacity: 0;
    }

    50% {
        transform: scaleX(1);
        opacity: 1;
    }

    100% {
        transform: scaleX(0);
        opacity: 0;
    }
}

@keyframes text-shake {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(2px);
    }
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 300;
    animation: fadeIn 1.5s ease-out;
}

/* Main content styles */
.main {
    margin-bottom: 40px;
}

.upload-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(138, 43, 226, 0.3);
    backdrop-filter: blur(10px);
    animation: slideUp 0.8s ease-out, card-glow 3s infinite alternate;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid rgba(138, 43, 226, 0.2);
    position: relative;
}

@keyframes card-glow {
    0% {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 10px rgba(138, 43, 226, 0.3);
    }

    100% {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 30px rgba(138, 43, 226, 0.5);
    }
}

.card-header {
    background: linear-gradient(90deg, rgba(138, 43, 226, 0.2), rgba(147, 112, 219, 0.2));
    padding: 20px 30px;
    border-bottom: 1px solid rgba(138, 43, 226, 0.3);
    position: relative;
    overflow: hidden;
}

.card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.card-header h2 {
    color: #e0d6f2;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Upload area styles */
.upload-area {
    padding: 30px;
}

.drop-zone {
    border: 2px dashed var(--primary);
    border-radius: 16px;
    padding: 50px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(138, 43, 226, 0.05);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.drop-zone::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(138, 43, 226, 0.1), transparent);
    transform: rotate(45deg);
    animation: border-light 2s infinite;
}

@keyframes border-light {
    0% {
        transform: rotate(45deg) translateX(-100%);
    }

    100% {
        transform: rotate(45deg) translateX(100%);
    }
}

.drop-zone:hover {
    background: rgba(138, 43, 226, 0.1);
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.2);
}

.drop-zone.active {
    background: rgba(138, 43, 226, 0.2);
    border-color: var(--secondary);
    transform: scale(1.02);
    animation: pulse 0.5s;
}

.upload-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: var(--primary);
    animation: bounce 2s infinite, glow-icon 3s infinite alternate;
}

.drop-content p {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #d0d0d0;
    font-weight: 500;
}

.drop-content small {
    color: var(--text-secondary);
}

/* Expiry options */
.expiry-options {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    animation: fadeIn 1s ease-out;
}

.expiry-options label {
    color: #d0d0d0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.expiry-options select {
    background: var(--bg-card-light);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 10px 15px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
}

.expiry-options select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(138, 43, 226, 0.3);
}

/* Progress area styles */
.progress-area {
    padding: 0 30px 30px;
    animation: fadeIn 0.5s ease-out;
}

.progress-area h3,
.results-header h3 {
    margin-bottom: 20px;
    color: var(--secondary);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-item {
    background: var(--bg-card-light);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    animation: fadeIn 0.5s ease-out;
    border-left: 4px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.progress-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
}

.progress-item.uploading::after {
    animation: shimmer 1.5s infinite;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.file-icon {
    font-size: 1.5rem;
    color: var(--primary);
}

.file-details {
    display: flex;
    flex-direction: column;
}

.file-name {
    font-weight: 500;
}

.file-size {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.progress-bar {
    height: 8px;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    width: 0;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: progress-shine 1.5s infinite;
}

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

    100% {
        transform: translateX(100%);
    }
}

.progress-status {
    text-align: right;
    font-size: 0.9rem;
    color: #aaa;
}

.progress-item.completed {
    border-left-color: var(--success);
    animation: success-pulse 0.5s;
}

@keyframes success-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.5);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

.progress-item.completed .progress-status {
    color: var(--success);
}

.progress-item.error {
    border-left-color: var(--error);
    animation: error-shake 0.5s;
}

@keyframes error-shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

.progress-item.error .progress-status {
    color: var(--error);
}

/* Results area styles */
.results-area {
    padding: 30px;
    animation: fadeIn 0.5s ease-out;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.result-item {
    background: var(--bg-card-light);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    animation: fadeIn 0.5s ease-out;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease;
    border: 1px solid rgba(138, 43, 226, 0.2);
    position: relative;
    overflow: hidden;
}

.result-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.result-item:hover::before {
    opacity: 1;
}

.result-item.animate-in {
    transform: translateY(0);
    opacity: 1;
}

.result-file-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.result-file-name {
    font-weight: 500;
    font-size: 1.1rem;
}

.expiry-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.result-url {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.result-url input {
    flex: 1;
    background: #222;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 12px 15px;
    color: var(--text);
    font-family: monospace;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.result-url input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(138, 43, 226, 0.3);
}

.result-actions {
    display: flex;
    gap: 10px;
}

/* Button styles */
.copy-btn,
.download-btn,
.preview-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.copy-btn::before,
.download-btn::before,
.preview-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.copy-btn:hover::before,
.download-btn:hover::before,
.preview-btn:hover::before {
    left: 100%;
}

.copy-btn:hover,
.download-btn:hover,
.preview-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.4);
}

.copy-btn.copied {
    background: linear-gradient(90deg, var(--success), #66bb6a);
    animation: celebrate 0.5s;
}

@keyframes celebrate {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.preview-btn {
    background: linear-gradient(90deg, #7e57c2, #9575cd);
}

.download-btn {
    background: linear-gradient(90deg, #673ab7, #7b5bba);
}

/* Features section */
.features {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(138, 43, 226, 0.3);
    backdrop-filter: blur(10px);
    margin-bottom: 30px;
    border: 1px solid rgba(138, 43, 226, 0.2);
    animation: slideUp 0.8s ease-out 0.5s both;
}

.features h3 {
    color: var(--secondary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--bg-card-light);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(138, 43, 226, 0.1);
    animation: fadeIn 1s ease-out;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.2);
    border-color: rgba(138, 43, 226, 0.3);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    animation: shimmer 3s infinite ease-in-out;
}

.feature-card h4 {
    color: #e0d6f2;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Footer styles */
.footer {
    background: rgba(15, 15, 15, 0.9);
    border-radius: 20px;
    padding: 40px 30px 20px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(138, 43, 226, 0.1);
    animation: fadeIn 1s ease-out;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: var(--secondary);
    margin-bottom: 15px;
    font-size: 1.1rem;
    position: relative;
    display: inline-block;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-section p,
.footer-section li {
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
    cursor: pointer;
    position: relative;
    padding-left: 15px;
}

.footer-section li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.footer-section li:hover {
    color: #e0d6f2;
}

.footer-section li:hover::before {
    transform: translateX(3px);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(138, 43, 226, 0.1);
    color: #e0d6f2;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-links a:hover::before {
    opacity: 0.3;
}

.social-links a:hover {
    background: rgba(138, 43, 226, 0.3);
    transform: translateY(-3px) rotate(5deg);
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-bottom i {
    color: #e91e63;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {

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

    25%,
    75% {
        transform: scale(1.1);
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Particle generation */
function createParticles() {
    const particlesContainer=document.querySelector('.particles');
    if ( !particlesContainer) return;

    for (let i=0; i < 50; i++) {
        const particle=document.createElement('div');
        particle.classList.add('particle');

        // Random properties
        const size=Math.random() * 5+2;
        const posX=Math.random() * 100;
        const posY=Math.random() * 100;
        const delay=Math.random() * 15;
        const duration=Math.random() * 10+15;

        particle.style.width=`$ {
            size
        }

        px`;

        particle.style.height=`$ {
            size
        }

        px`;

        particle.style.left=`$ {
            posX
        }

        %`;

        particle.style.top=`$ {
            posY
        }

        %`;

        particle.style.animationDelay=`$ {
            delay
        }

        s`;

        particle.style.animationDuration=`$ {
            duration
        }

        s`;

        particlesContainer.appendChild(particle);
    }
}

// Initialize particles when DOM is loaded
document.addEventListener('DOMContentLoaded', createParticles);

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .title {
        font-size: 2rem;
    }

    .upload-card,
    .features {
        padding: 20px;
    }

    .result-url {
        flex-direction: column;
    }

    .result-actions {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .results-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .expiry-options {
        flex-direction: column;
        align-items: flex-start;
    }

    .drop-zone {
        padding: 30px 15px;
    }
}
/* Style for no expiration option */
.expiry-options select option[value="0"] {
    font-weight: bold;
    color: var(--success);
}

/* Style for never expire notice */
.expiry-notice.never-expire {
    color: var(--success);
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    padding: 10px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
    animation: pulse 2s infinite;
}

/* Special highlight for permanent files in results */
.result-item.permanent {
    border-left: 4px solid var(--success);
}

.result-item.permanent .expiry-date {
    color: var(--success);
    font-weight: bold;
}

/* Animation for permanent files */
@keyframes permanent-glow {
    0% {
        box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(76, 175, 80, 0.6);
    }
    100% {
        box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
    }
}

.result-item.permanent {
    animation: permanent-glow 3s infinite;
}