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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    min-height: 100vh;
    color: #333;
    position: relative;
    overflow-x: hidden;
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, white, transparent),
        radial-gradient(2px 2px at 40px 70px, white, transparent),
        radial-gradient(1px 1px at 50px 50px, white, transparent),
        radial-gradient(1px 1px at 80px 10px, white, transparent),
        radial-gradient(2px 2px at 130px 80px, white, transparent),
        radial-gradient(1px 1px at 110px 120px, white, transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: sparkle 20s linear infinite;
    opacity: 0.3;
}

@keyframes sparkle {
    from { transform: translateY(0); }
    to { transform: translateY(-200px); }
}

/* Performance optimization */
* {
    will-change: auto;
}

.stars {
    will-change: transform;
}

.slideshow-images {
    will-change: transform;
}

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

header {
    text-align: center;
    padding: 40px 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.title {
    font-size: 3em;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.title-animation {
    display: inline-block;
    vertical-align: middle;
    height: 60px;
    width: auto;
    margin: 0 15px;
    animation: bounce 2s ease-in-out infinite;
}

.left-animation {
    animation-delay: 0s;
}

.right-animation {
    animation-delay: 1s;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

@media (max-width: 768px) {
    .title-animation {
        height: 40px;
        margin: 0 10px;
    }
}

.subtitle {
    font-size: 1.2em;
    color: #666;
    margin-top: 10px;
}

/* Header Links */
.header-link {
    position: absolute;
    top: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
    font-size: 0.95em;
}

.header-link.left {
    left: 20px;
}

.header-link.right {
    right: 20px;
}

.header-link.left:hover {
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.header-link.right:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.header-link span {
    font-size: 1.2em;
}

/* Slideshow */
.slideshow-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto 40px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.slideshow-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.slideshow-images {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.slideshow-images img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    flex-shrink: 0;
    background: #f0f0f0;
}

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
    z-index: 10;
}

.slide-btn:hover {
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.slide-btn.prev { left: 10px; }
.slide-btn.next { right: 10px; }

.slide-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.indicator.active {
    background: white;
    transform: scale(1.3);
}

/* Sections */
.section-title {
    font-size: 2em;
    color: white;
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.icon {
    font-size: 1.2em;
}

.section-icon {
    display: inline-block;
    vertical-align: middle;
    height: 35px;
    width: auto;
    margin-right: 10px;
}

@media (max-width: 768px) {
    .section-icon {
        height: 28px;
        margin-right: 8px;
    }
}

/* Download Cards */
.latest-version {
    margin-bottom: 40px;
}

.download-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.download-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-header {
    padding: 20px;
    color: white;
    position: relative;
    overflow: hidden;
}

.card-header.equestr {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.card-header.ponyparadise {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.card-header h3 {
    font-size: 1.5em;
    margin-bottom: 5px;
}

.version-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9em;
    display: inline-block;
}

.card-content {
    padding: 20px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.1em;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-icon {
    font-size: 1.2em;
}

.download-btn .btn-icon-img {
    height: 18px !important;
    width: 18px !important;
    object-fit: contain;
    flex-shrink: 0;
    max-height: 18px !important;
    max-width: 18px !important;
}

/* Changelog */
.changelog {
    margin-bottom: 40px;
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-card h4 {
    color: #764ba2;
    margin-bottom: 15px;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-icon {
    height: 80px;
    width: 80px;
    object-fit: contain;
    flex-shrink: 0;
}

.feature-card ul {
    list-style: none;
    padding-left: 0;
}

.feature-card li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.feature-card li:before {
    content: "✦";
    color: #f093fb;
    position: absolute;
    left: 0;
}

/* Previous Versions */
.previous-versions {
    margin-bottom: 40px;
}

.version-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.version-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.version-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.version-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 15px;
    text-align: center;
}

.version-header h3 {
    font-size: 1.2em;
}

.version-links {
    padding: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mini-download {
    flex: 1;
    min-width: 120px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9em;
    transition: all 0.3s;
}

.mini-download:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(240, 147, 251, 0.3);
}

.version-changelog {
    padding: 15px;
    border-top: 1px solid #eee;
}

.version-changelog summary {
    cursor: pointer;
    color: #764ba2;
    font-weight: bold;
    padding: 5px 0;
}

.version-changelog ul {
    margin-top: 10px;
    padding-left: 20px;
    list-style: none;
}

.version-changelog li {
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
}

.version-changelog li:before {
    content: "•";
    color: #f093fb;
    position: absolute;
    left: 0;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    margin-top: 40px;
}

footer p {
    color: #764ba2;
    font-size: 1.1em;
}

/* Responsive */
@media (max-width: 768px) {
    .title {
        font-size: 2em;
    }
    
    .slideshow-wrapper {
        height: 300px;
    }
    
    .download-cards {
        grid-template-columns: 1fr;
    }
    
    .version-grid {
        grid-template-columns: 1fr;
    }
}