:root {
    --primary-purple: #667eea;
    --secondary-purple: #764ba2;
    --accent-purple: #a855f7;
    --accent-pink: #ec4899;
    --dark-bg: #0f172a;
    --darker-bg: #020617;
    --card-bg: rgba(30, 41, 59, 0.6);
    --card-border: rgba(102, 126, 234, 0.25);
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --success-green: #10b981;
    --warning-orange: #f59e0b;
    --danger-red: #ef4444;
    --glow-purple: rgba(102, 126, 234, 0.5);
    --glow-pink: rgba(118, 75, 162, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 10% 20%, rgba(102, 126, 234, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 80%, rgba(118, 75, 162, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(168, 85, 247, 0.12) 0%, transparent 50%);
    animation: backgroundShift 15s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(118, 75, 162, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 60%, rgba(168, 85, 247, 0.04) 0%, transparent 40%);
    background-size: 300px 300px, 400px 400px, 350px 350px;
    animation: float 25s ease-in-out infinite;
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
}

@keyframes backgroundShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes float {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg);
    }
    33% { 
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% { 
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

.container-fluid {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: none !important;
}

.main-content {
    padding-top: 140px;
    padding-bottom: 80px;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.downloads-hero {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
    padding: 0 20px;
}

.hero-background {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 140%;
    max-width: 1200px;
    height: 250px;
    background: radial-gradient(ellipse, var(--glow-purple) 0%, var(--glow-pink) 40%, transparent 70%);
    filter: blur(80px);
    opacity: 0.5;
    z-index: -1;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { 
        transform: translateX(-50%) scale(1);
        opacity: 0.4;
    }
    50% { 
        transform: translateX(-50%) scale(1.1);
        opacity: 0.6;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    animation: titleGlow 3s ease-in-out infinite;
    text-transform: uppercase;
}

.hero-title i {
    font-size: 3.5rem;
    margin-right: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px var(--glow-purple));
}

@keyframes titleGlow {
    0%, 100% { filter: drop-shadow(0 0 30px rgba(102, 126, 234, 0.6)); }
    50% { filter: drop-shadow(0 0 50px rgba(118, 75, 162, 0.8)); }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
    font-weight: 300;
}

.downloads-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 0 20px;
}

.downloads-container {
    background: linear-gradient(145deg, 
        rgba(30, 41, 59, 0.7) 0%, 
        rgba(15, 23, 42, 0.8) 50%,
        rgba(30, 41, 59, 0.7) 100%);
    border-radius: 30px;
    border: 1px solid var(--card-border);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 20px 60px rgba(37, 99, 235, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    padding: 50px;
    backdrop-filter: blur(20px) saturate(180%);
    position: relative;
    overflow: hidden;
}

.downloads-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-purple) 20%, 
        var(--secondary-purple) 50%, 
        var(--accent-purple) 80%, 
        transparent 100%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.downloads-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
}

.downloads-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.download-card {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.08) 0%, 
        rgba(30, 41, 59, 0.5) 50%,
        rgba(15, 23, 42, 0.6) 100%);
    border-radius: 24px;
    border: 1px solid rgba(102, 126, 234, 0.25);
    padding: 35px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(102, 126, 234, 0.15), 
        transparent);
    transition: left 1s ease;
}

.download-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.12) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.download-card:hover {
    transform: translateY(-10px) scale(1.01);
    border-color: var(--primary-purple);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(102, 126, 234, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.15) 0%, 
        rgba(30, 41, 59, 0.6) 50%,
        rgba(15, 23, 42, 0.7) 100%);
}

.download-card:hover::before {
    left: 100%;
}

.download-card:hover::after {
    opacity: 1;
}

.download-content {
    display: flex;
    align-items: center;
    gap: 25px;
}

.download-icon-wrapper {
    position: relative;
    flex-shrink: 0;
}

.download-icon-wrapper::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(45deg, 
        var(--primary-purple), 
        var(--secondary-purple), 
        var(--accent-purple),
        var(--primary-purple));
    background-size: 300% 300%;
    border-radius: 22px;
    animation: borderRotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.download-card:hover .download-icon-wrapper::before {
    opacity: 1;
}

@keyframes borderRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.download-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.95) 0%, 
        rgba(118, 75, 162, 0.95) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 10px 40px rgba(102, 126, 234, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.download-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 25%, 
        transparent 50%);
    animation: rotate-glow 4s linear infinite;
}

.download-card:hover .download-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 15px 50px rgba(102, 126, 234, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

@keyframes rotate-glow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.download-icon i {
    font-size: 2.5rem;
    color: white;
    z-index: 2;
    position: relative;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.download-details {
    flex: 1;
    min-width: 0;
}

.download-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 18px;
    line-height: 1.4;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: color 0.3s ease;
}

.download-card:hover .download-title {
    color: #ffffff;
}

.download-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 0;
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.15) 0%, 
        rgba(30, 41, 59, 0.4) 100%);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.meta-badge:hover {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.25) 0%, 
        rgba(118, 75, 162, 0.2) 100%);
    border-color: var(--primary-purple);
    color: var(--text-primary);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 4px 15px rgba(102, 126, 234, 0.4),
        0 0 20px rgba(102, 126, 234, 0.3);
}

.meta-badge i {
    color: var(--primary-purple);
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.meta-badge:hover i {
    transform: scale(1.2) rotate(10deg);
}

.download-action {
    flex-shrink: 0;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    background: linear-gradient(135deg, 
        #667eea 0%, 
        #764ba2 50%, 
        #a855f7 100%);
    color: white;
    text-decoration: none;
    border-radius: 18px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 10px 30px rgba(102, 126, 234, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.download-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.8s ease;
}

.download-btn:hover {
    background: linear-gradient(135deg, 
        #764ba2 0%, 
        #a855f7 50%, 
        #ec4899 100%);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 20px 50px rgba(102, 126, 234, 0.7),
        0 0 40px rgba(118, 75, 162, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    color: white;
    text-decoration: none;
    border-color: rgba(255, 255, 255, 0.2);
}

.download-btn:hover::before {
    width: 300px;
    height: 300px;
}

.download-btn:hover::after {
    left: 100%;
}

.download-btn:active {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 10px 30px rgba(102, 126, 234, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.download-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.download-btn:hover i {
    transform: translateY(2px) scale(1.1);
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.2); }
}

.no-downloads {
    text-align: center;
    padding: 100px 40px;
    position: relative;
}

.no-downloads::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--glow-purple) 0%, transparent 70%);
    filter: blur(80px);
    opacity: 0.3;
    animation: pulse 6s ease-in-out infinite;
}

.no-downloads-icon {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.15) 0%, 
        rgba(118, 75, 162, 0.12) 50%,
        rgba(168, 85, 247, 0.15) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 35px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 10px 40px rgba(102, 126, 234, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.no-downloads-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: conic-gradient(from 0deg, 
        transparent 0%, 
        rgba(102, 126, 234, 0.4) 25%, 
        transparent 50%,
        rgba(168, 85, 247, 0.4) 75%,
        transparent 100%);
    animation: rotate-glow 6s linear infinite;
}

.no-downloads-icon i {
    font-size: 5rem;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 2;
    position: relative;
    filter: drop-shadow(0 5px 15px rgba(102, 126, 234, 0.5));
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.no-downloads h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 18px;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 1;
}

.no-downloads p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.alert-custom {
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.15) 0%, 
        rgba(185, 28, 28, 0.1) 100%);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 20px;
    padding: 24px 30px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 18px;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 20px rgba(239, 68, 68, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.alert-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--danger-red) 0%, rgba(239, 68, 68, 0.5) 100%);
}

.alert-custom i {
    font-size: 1.8rem;
    color: var(--danger-red);
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(239, 68, 68, 0.5));
    animation: warningPulse 2s ease-in-out infinite;
}

@keyframes warningPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.alert-custom span {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.5;
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .downloads-container {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .downloads-wrapper {
        padding: 0 15px;
    }

    .downloads-hero {
        margin-bottom: 50px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-title i {
        font-size: 2.5rem;
        margin-right: 10px;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 0.95rem;
        padding: 0 10px;
    }

    .downloads-container {
        padding: 30px 20px;
        border-radius: 24px;
    }

    .downloads-grid {
        gap: 20px;
    }

    .download-card {
        padding: 25px 20px;
        border-radius: 20px;
    }

    .download-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .download-icon {
        width: 80px;
        height: 80px;
    }

    .download-icon i {
        font-size: 2.2rem;
    }

    .download-title {
        font-size: 1.4rem;
    }

    .download-meta {
        justify-content: center;
    }

    .meta-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .download-btn {
        padding: 16px 28px;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }

    .no-downloads {
        padding: 80px 20px;
    }

    .no-downloads-icon {
        width: 140px;
        height: 140px;
    }

    .no-downloads-icon i {
        font-size: 4rem;
    }

    .no-downloads h3 {
        font-size: 1.8rem;
    }

    .no-downloads p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-title i {
        font-size: 2rem;
        display: block;
        margin: 0 auto 10px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .downloads-container {
        padding: 25px 15px;
    }

    .download-card {
        padding: 20px 15px;
    }

    .download-icon {
        width: 70px;
        height: 70px;
    }

    .download-icon i {
        font-size: 2rem;
    }

    .download-title {
        font-size: 1.2rem;
    }

    .meta-badge {
        font-size: 0.75rem;
        padding: 5px 10px;
        gap: 5px;
    }

    .download-btn {
        padding: 14px 24px;
        font-size: 0.9rem;
    }
}