/* ============================================
   UPLOADPUBLIC - ANIMATED CSS (Flaticon Style)
   Clean, Professional, Bug-Free, Fully Animated
   ============================================ */

:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary: #06b6d4;
    --accent: #f472b6;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg: #0f0f1a;
    --bg-card: #16162a;
    --bg-elevated: #1e1e3a;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --border: rgba(99, 102, 241, 0.15);
    --glow: rgba(99, 102, 241, 0.4);
    --glow-secondary: rgba(6, 182, 212, 0.3);
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    --gradient-2: linear-gradient(90deg, #6366f1, #06b6d4, #f472b6, #6366f1);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
    scroll-behavior: smooth;
}

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

/* ============================================
   BACKGROUND PARTICLES
   ============================================ */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) scale(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-10vh) scale(1) rotate(360deg);
        opacity: 0;
    }
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2.5rem;
    background: rgba(15, 15, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    animation: navSlideDown 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(-20px);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.logo-anim {
    width: 40px;
    height: 40px;
    color: var(--primary-light);
    animation: logoPulse 3s ease-in-out infinite;
}

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

.logo-svg {
    width: 100%;
    height: 100%;
}

.logo-rect {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: logoDraw 2s ease forwards 0.5s;
}

@keyframes logoDraw {
    to { stroke-dashoffset: 0; }
}

.logo-arrow {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: logoDrawArrow 1s ease forwards 1.5s;
}

@keyframes logoDrawArrow {
    to { stroke-dashoffset: 0; }
}

.logo-arrow-down {
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    animation: logoDrawArrow 1s ease forwards 2s;
}

.logo-dot {
    transform-origin: center;
    animation: logoDotPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards 2.5s;
    opacity: 0;
    transform: scale(0);
}

@keyframes logoDotPop {
    to { opacity: 1; transform: scale(1); }
}

.brand-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.brand-highlight {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: brandShimmer 3s linear infinite;
    background-size: 200% 200%;
}

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

.nav-links {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    padding: 0.5rem 1.25rem;
    border-radius: 12px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-1);
    border-radius: 12px;
    opacity: 0;
    transform: scale(0.8);
    transition: var(--transition-smooth);
    z-index: -1;
}

.nav-link:hover {
    color: var(--text);
    transform: translateY(-2px);
}

.nav-link:hover::before {
    opacity: 0.1;
    transform: scale(1);
}

.nav-link.active {
    color: var(--primary-light);
    background: rgba(99, 102, 241, 0.1);
}

/* ============================================
   MAIN CONTAINER
   ============================================ */
.main-container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 7rem 1.5rem 4rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    text-align: center;
    margin-bottom: 3rem;
    animation: heroFadeIn 1s ease forwards 0.3s;
    opacity: 0;
    transform: translateY(30px);
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 100px;
    margin-bottom: 1.5rem;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.2); }
    50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: badgeDotBlink 1.5s ease-in-out infinite;
}

@keyframes badgeDotBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.badge-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--success);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.title-line {
    display: block;
}

.title-gradient {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGradient 4s linear infinite;
    background-size: 300% 100%;
}

@keyframes titleGradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
    animation: subtitleFade 1s ease forwards 0.6s;
    opacity: 0;
}

@keyframes subtitleFade {
    to { opacity: 1; }
}

/* ============================================
   UPLOAD ZONE
   ============================================ */
.upload-wrapper {
    margin-bottom: 3rem;
    animation: uploadSlideUp 1s ease forwards 0.5s;
    opacity: 0;
    transform: translateY(40px);
}

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

.upload-zone {
    position: relative;
    background: var(--bg-card);
    border-radius: 24px;
    padding: 3rem 2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    overflow: hidden;
}

.upload-zone::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: var(--gradient-1);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: var(--transition-smooth);
}

.upload-zone:hover::before,
.upload-zone.dragover::before {
    opacity: 1;
}

.upload-zone:hover,
.upload-zone.dragover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow), 0 20px 60px rgba(0, 0, 0, 0.3);
}

.upload-zone.dragover {
    background: var(--bg-elevated);
}

.upload-zone.dragover .upload-icon-outer {
    animation: iconBounce 0.6s ease infinite;
}

.upload-border {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    pointer-events: none;
    overflow: hidden;
}

.border-segment {
    position: absolute;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s;
}

.border-top, .border-bottom {
    height: 2px;
    width: 0;
    transition: width 0.6s ease;
}

.border-left, .border-right {
    width: 2px;
    height: 0;
    transition: height 0.6s ease;
}

.border-top { top: 0; left: 0; }
.border-right { top: 0; right: 0; }
.border-bottom { bottom: 0; right: 0; }
.border-left { bottom: 0; left: 0; }

.upload-zone:hover .border-top,
.upload-zone:hover .border-bottom,
.upload-zone.dragover .border-top,
.upload-zone.dragover .border-bottom {
    width: 100%;
    opacity: 1;
}

.upload-zone:hover .border-left,
.upload-zone:hover .border-right,
.upload-zone.dragover .border-left,
.upload-zone.dragover .border-right {
    height: 100%;
    opacity: 1;
}

.upload-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.upload-icon-container {
    position: relative;
    width: 120px;
    height: 120px;
}

.upload-icon-outer {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--gradient-1);
    opacity: 0.1;
    animation: outerPulse 3s ease-in-out infinite;
}

@keyframes outerPulse {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.15); opacity: 0.05; }
}

.upload-icon-inner {
    position: absolute;
    inset: 15px;
    border-radius: 50%;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border);
    transition: var(--transition-smooth);
}

.upload-zone:hover .upload-icon-inner {
    border-color: var(--primary);
    transform: scale(1.05);
}

.upload-cloud {
    width: 60px;
    height: 60px;
    color: var(--primary-light);
}

.cloud-body {
    animation: cloudFloat 3s ease-in-out infinite;
}

@keyframes cloudFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.cloud-arrow {
    animation: arrowBounce 2s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

.cloud-particle {
    animation: particlePop 2s ease-in-out infinite;
}

.cloud-particle.p1 { animation-delay: 0s; }
.cloud-particle.p2 { animation-delay: 0.6s; }
.cloud-particle.p3 { animation-delay: 1.2s; }

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

.upload-text {
    text-align: center;
}

.upload-primary {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.upload-secondary {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.upload-browse {
    color: var(--primary-light);
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: var(--transition-smooth);
}

.upload-browse::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.upload-browse:hover::after {
    width: 100%;
}

.upload-browse:hover {
    color: var(--secondary);
}

.upload-formats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.format-tag {
    padding: 0.35rem 0.85rem;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    animation: tagFadeIn 0.5s ease forwards;
    opacity: 0;
    transform: translateY(10px);
}

.format-tag:nth-child(1) { animation-delay: 0.8s; }
.format-tag:nth-child(2) { animation-delay: 0.9s; }
.format-tag:nth-child(3) { animation-delay: 1.0s; }
.format-tag:nth-child(4) { animation-delay: 1.1s; }
.format-tag:nth-child(5) { animation-delay: 1.2s; }

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

.format-tag:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary);
    color: var(--primary-light);
    transform: translateY(-2px);
}

.file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

/* ============================================
   PROGRESS SECTION
   ============================================ */
.progress-section {
    margin-bottom: 3rem;
    animation: progressSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes progressSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.progress-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.progress-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.progress-icon {
    width: 48px;
    height: 48px;
    color: var(--primary-light);
    flex-shrink: 0;
}

.progress-ring {
    stroke-dasharray: 63;
    stroke-dashoffset: 63;
    animation: ringDraw 1s ease forwards;
}

@keyframes ringDraw {
    to { stroke-dashoffset: 0; }
}

.progress-check {
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
    animation: checkDraw 0.5s ease forwards 0.8s;
}

@keyframes checkDraw {
    to { stroke-dashoffset: 0; }
}

.progress-info {
    flex: 1;
    min-width: 0;
}

.progress-filename {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.progress-size {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.progress-bar-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.progress-bar-bg {
    flex: 1;
    height: 8px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 100px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient-1);
    border-radius: 100px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shineSlide 2s ease-in-out infinite;
}

@keyframes shineSlide {
    to { left: 100%; }
}

.progress-percent {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary-light);
    min-width: 40px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.progress-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: statusBlink 1.5s ease-in-out infinite;
}

@keyframes statusBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.status-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================
   RESULT SECTION
   ============================================ */
.result-section {
    margin-bottom: 3rem;
    animation: resultPopIn 0.7s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes resultPopIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.result-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), var(--shadow-glow);
}

.result-success {
    text-align: center;
    margin-bottom: 2rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    color: var(--success);
}

.success-circle {
    stroke-dasharray: 176;
    stroke-dashoffset: 176;
    animation: successCircleDraw 0.8s ease forwards;
}

@keyframes successCircleDraw {
    to { stroke-dashoffset: 0; }
}

.success-check {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: successCheckDraw 0.5s ease forwards 0.6s;
}

@keyframes successCheckDraw {
    to { stroke-dashoffset: 0; }
}

.result-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

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

.result-link-box {
    background: var(--bg-elevated);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.link-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    margin-bottom: 1rem;
    transition: var(--transition-smooth);
}

.link-input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.link-icon {
    width: 20px;
    height: 20px;
    color: var(--text-dim);
    flex-shrink: 0;
}

.link-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text);
    font-size: 0.875rem;
    font-family: 'Space Grotesk', monospace;
    outline: none;
    min-width: 0;
}

.link-input::selection {
    background: var(--primary);
    color: white;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: var(--gradient-1);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.copy-btn:active {
    transform: translateY(0);
}

.copy-btn.copied {
    background: var(--success);
}

.copy-icon {
    width: 16px;
    height: 16px;
}

.link-actions {
    display: flex;
    gap: 0.75rem;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
}

.action-btn svg {
    width: 16px;
    height: 16px;
}

.action-btn:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    color: var(--primary-light);
}

.open-btn:hover {
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.new-btn:hover {
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2);
    border-color: var(--secondary);
    color: var(--secondary);
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
    margin-bottom: 4rem;
    animation: featuresFadeIn 1s ease forwards 0.8s;
    opacity: 0;
}

@keyframes featuresFadeIn {
    to { opacity: 1; }
}

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

.feature-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border);
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(99, 102, 241, 0.3);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    color: var(--primary-light);
}

.feature-rocket {
    animation: rocketLaunch 3s ease-in-out infinite;
    transform-origin: bottom center;
}

@keyframes rocketLaunch {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.feature-flame {
    animation: flameFlicker 0.5s ease-in-out infinite alternate;
}

@keyframes flameFlicker {
    from { opacity: 0.6; transform: scaleY(0.8); }
    to { opacity: 1; transform: scaleY(1.1); }
}

.feature-star {
    animation: starTwinkle 2s ease-in-out infinite;
}

.feature-star:nth-child(4) { animation-delay: 0s; }
.feature-star:nth-child(5) { animation-delay: 0.6s; }
.feature-star:nth-child(6) { animation-delay: 1.2s; }

@keyframes starTwinkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

.feature-shield {
    animation: shieldPulse 3s ease-in-out infinite;
}

@keyframes shieldPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.feature-lock {
    animation: lockWiggle 2s ease-in-out infinite;
    transform-origin: center;
}

@keyframes lockWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

.feature-globe {
    animation: globeSpin 8s linear infinite;
    transform-origin: center;
}

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

.feature-globe-ring {
    animation: globeSpin 12s linear infinite reverse;
}

.feature-globe-line {
    animation: linePulse 2s ease-in-out infinite;
}

@keyframes linePulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.feature-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    position: relative;
    margin-top: 4rem;
    padding: 3rem 1.5rem 1.5rem;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    overflow: hidden;
}

.footer-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-dot {
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-light);
}

.footer-link:hover::after {
    width: 100%;
}

.footer-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    color: rgba(99, 102, 241, 0.05);
    pointer-events: none;
}

.footer-wave svg {
    width: 100%;
    height: 100%;
}

.wave-path {
    animation: waveMove 8s ease-in-out infinite;
}

@keyframes waveMove {
    0%, 100% { d: path('M0,60 C360,120 720,0 1080,60 C1260,90 1350,30 1440,60 L1440,120 L0,120 Z'); }
    50% { d: path('M0,60 C360,0 720,120 1080,60 C1260,30 1350,90 1440,60 L1440,120 L0,120 Z'); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 1rem;
    }

    .nav-links {
        display: none;
    }

    .main-container {
        padding: 6rem 1rem 2rem;
    }

    .upload-zone {
        padding: 2rem 1.25rem;
    }

    .upload-icon-container {
        width: 90px;
        height: 90px;
    }

    .upload-cloud {
        width: 45px;
        height: 45px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ============================================
   SELECTION
   ============================================ */
::selection {
    background: var(--primary);
    color: white;
}
