/* Startup Loader */
.startup-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

/* Hide startup loader by default, show with JavaScript */
.no-js .startup-loader {
    display: none;
}

.startup-content {
    text-align: center;
    color: white;
}

.startup-gif {
    max-width: 600px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(255, 107, 53, 0.5));
}

/* Responsive adjustments for startup loader */
@media (max-width: 768px) {
    .startup-gif {
        max-width: 450px;
    }
}

@media (max-width: 480px) {
    .startup-gif {
        max-width: 340px;
    }
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b35;
    --primary-dark: #e55a2b;
    --secondary-color: #2d3748;
    --accent-color: #00d4ff;
    --accent-dark: #00b8e6;
    --success-color: #00ff88;
    --warning-color: #ffd700;
    --error-color: #ff4444;
    --text-primary: #ffffff;
    --text-secondary: #b8c5d6;
    --bg-primary: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --bg-secondary: rgba(255, 255, 255, 0.05);
    --bg-tertiary: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --glow: 0 0 20px rgba(255, 107, 53, 0.3);
    --glow-accent: 0 0 20px rgba(0, 212, 255, 0.3);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(0, 255, 136, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Navigation */
.header {
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.4));
    transition: transform 0.3s ease;
}

.logo-icon:hover {
    transform: scale(1.1);
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo span {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background:
        linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(22, 33, 62, 0.9) 50%, rgba(15, 52, 96, 0.9) 100%),
        radial-gradient(circle at 30% 40%, rgba(255, 107, 53, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(0, 212, 255, 0.3) 0%, transparent 50%);
    background-attachment: fixed;
    color: white;
    padding: 140px 2rem 100px;
    text-align: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    animation: gridMove 20s linear infinite;
    opacity: 0.1;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color), var(--success-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 107, 53, 0.5);
    position: relative;
    z-index: 2;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 300;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
}

.logo-container {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.hero-logo {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.3));
    animation: logoGlow 3s ease-in-out infinite alternate;
}

/* Responsive adjustments for logo */
@media (max-width: 768px) {
    .hero-logo {
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        max-width: 200px;
    }
}

@keyframes logoGlow {
    0% {
        filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.3));
        transform: scale(1);
    }
    100% {
        filter: drop-shadow(0 0 30px rgba(255, 107, 53, 0.6));
        transform: scale(1.02);
    }
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.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: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: var(--glow);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--glow), 0 15px 30px rgba(255, 107, 53, 0.4);
    border-color: var(--accent-color);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid var(--accent-color);
    box-shadow: var(--glow-accent);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: var(--secondary-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--glow-accent), 0 15px 30px rgba(0, 212, 255, 0.4);
}

.btn-download {
    background: linear-gradient(45deg, var(--success-color), var(--accent-color));
    color: var(--secondary-color);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border: 2px solid var(--success-color);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.btn-download:hover {
    background: linear-gradient(45deg, var(--accent-color), var(--success-color));
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5), 0 15px 30px rgba(0, 212, 255, 0.4);
    border-color: var(--accent-color);
}

.download-icon {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* Sections */
section {
    padding: 80px 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    margin: 4rem 2rem;
    padding: 4rem 2rem;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--success-color));
}

.about h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.features {
    display: grid;
    gap: 2rem;
}

.feature {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color), var(--success-color));
    border-radius: 0 2px 2px 0;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-color);
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.feature p {
    color: var(--text-secondary);
}

/* Downloads Section */
.downloads {
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    margin: 4rem 2rem;
    padding: 4rem 2rem;
    border: 1px solid var(--border-color);
    position: relative;
}

.downloads::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--success-color), var(--accent-color), var(--primary-color));
}

.downloads h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    background: linear-gradient(45deg, var(--success-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.download-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--success-color), var(--accent-color));
}

.download-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-color);
}

.download-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.download-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.download-info {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.file-size, .version {
    background: var(--bg-tertiary);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.download-notes {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
}

.download-notes h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.download-notes ul {
    list-style: none;
}

.download-notes li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.download-notes li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* Contact Section */
.contact {
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    margin: 4rem 2rem;
    padding: 4rem 2rem;
    border: 1px solid var(--border-color);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color), var(--warning-color));
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-color);
}

.contact-item h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
}

.contact-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

/* Footer */
.footer {
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    color: white;
    padding: 3rem 2rem 2rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--success-color));
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-icon {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 0 6px rgba(255, 107, 53, 0.3));
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-icon:hover {
    opacity: 1;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .download-options {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }

    .nav-links {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 1rem 60px;
    }

    section {
        padding: 60px 1rem;
    }

    .navbar {
        padding: 1rem;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .download-info {
        flex-direction: column;
        gap: 0.5rem;
    }
}
