:root {
    /* Primary Colors */
    --primary-orange: #FF6B35;
    --primary-orange-light: #FF8E53;
    --primary-orange-dark: #E55A2B;

    /* Background Colors */
    --dark-bg: #1A1A1A;
    --darker-bg: #0D0D0D;
    --card-bg: rgba(255, 255, 255, 0.03);
    --glass-bg: rgba(13, 13, 13, 0.7);

    /* Text Colors */
    --light-text: #FFFFFF;
    --gray-text: #B0B0B0;
    --dim-text: #707070;

    /* Accent Colors */
    --accent-yellow: #FFD700;
    --accent-blue: #4A90E2;
    --accent-purple: #9B59B6;
    --accent-cyan: #00D4FF;
    --success-green: #27AE60;
    --danger-red: #E74C3C;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #FF6B35 0%, #FF8E53 100%);
    --gradient-secondary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-dark: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(255, 107, 53, 0.4) 0%, transparent 70%);

    /* Effects */
    --glow-color: rgba(255, 107, 53, 0.5);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --blur-amount: 10px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

/* Header and Navigation */
header {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 107, 53, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all var(--transition-normal);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

header.scrolled {
    background: rgba(13, 13, 13, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo img {
    height: 60px;
    width: auto;
    animation: float 3s ease-in-out infinite;
    transition: transform var(--transition-normal);
}

.logo:hover img {
    transform: scale(1.1) rotate(5deg);
}

.logo-text h1 {
    color: var(--primary-orange);
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.logo-text p {
    color: var(--gray-text);
    font-size: 0.9rem;
    letter-spacing: 3px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--light-text);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
    position: relative;
    display: inline-block;
    padding-bottom: 2px;
}

nav a:hover {
    color: var(--primary-orange);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
    background: var(--gradient-dark);
    border-radius: 10px;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    background-size: 200% 200%;
    animation: gradient-shift 30s ease infinite;  /* Slowed from 15s to 30s */
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--gradient-glow);
    animation: spin 30s linear infinite;
    opacity: 0.3;
}

.hero h1 {
    font-size: 3rem;
    background: var(--gradient-primary);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: text-gradient 8s ease infinite;  /* Slowed from 3s to 8s */
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.3rem;
    color: var(--gray-text);
    max-width: 800px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 1;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--gradient-primary);
    color: var(--light-text);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.5);
}

/* Section Styling */
section {
    margin-bottom: 4rem;
}

h2 {
    color: var(--primary-orange);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-orange);
    padding-bottom: 0.5rem;
}

h3 {
    color: var(--light-text);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Resource Cards */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.resource-card {
    background: linear-gradient(135deg, var(--card-bg), rgba(255, 107, 53, 0.05));
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 15px;
    padding: 2rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    background-size: 200% 200%;
    animation: gradient-shift 10s ease infinite;  /* Slowed from 3s to 10s */
}

.resource-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.resource-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow:
        0 20px 40px rgba(255, 107, 53, 0.3),
        0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-orange);
}

.resource-card:hover::after {
    opacity: 1;
}

.resource-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.resource-card h3 {
    margin: 0;
    color: var(--primary-orange);
}

.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-development {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.2), rgba(255, 107, 53, 0.2), rgba(255, 215, 0, 0.2));
    color: var(--accent-yellow);
    animation: shimmer 6s ease-in-out infinite;  /* Slower animation */
    background-size: 200% 100%;
}

.status-released {
    background: linear-gradient(90deg, rgba(39, 174, 96, 0.2), rgba(46, 204, 113, 0.2), rgba(39, 174, 96, 0.2));
    color: var(--success-green);
    animation: shimmer 6s ease-in-out infinite;  /* Slower animation */
    background-size: 200% 100%;
}

/* Color-based status badges */
.status-yellow {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.2), rgba(255, 193, 7, 0.2), rgba(255, 215, 0, 0.2));
    color: #FFC107;
    animation: shimmer 6s ease-in-out infinite;
    background-size: 200% 100%;
}

.status-green {
    background: linear-gradient(90deg, rgba(39, 174, 96, 0.2), rgba(46, 204, 113, 0.2), rgba(39, 174, 96, 0.2));
    color: #4CAF50;
    animation: shimmer 6s ease-in-out infinite;
    background-size: 200% 100%;
}

.status-red {
    background: linear-gradient(90deg, rgba(244, 67, 54, 0.2), rgba(229, 57, 53, 0.2), rgba(244, 67, 54, 0.2));
    color: #F44336;
    animation: shimmer 6s ease-in-out infinite;
    background-size: 200% 100%;
}

.status-orange {
    background: linear-gradient(90deg, rgba(255, 107, 53, 0.2), rgba(255, 152, 0, 0.2), rgba(255, 107, 53, 0.2));
    color: #FF6B35;
    animation: shimmer 6s ease-in-out infinite;
    background-size: 200% 100%;
}

.resource-card p {
    color: var(--gray-text);
    margin-bottom: 1rem;
}

.version-info {
    font-size: 0.9rem;
    color: var(--gray-text);
    margin-bottom: 0.5rem;
}

.price-info {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.resource-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.7rem 1.5rem;
    background-color: var(--primary-orange);
    color: var(--dark-bg);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.resource-link:hover {
    background-color: var(--accent-yellow);
}

/* Screenshots Gallery */
.screenshots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.screenshot {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 107, 53, 0.3);
    background: var(--darker-bg);
    aspect-ratio: 16 / 9;  /* Force consistent aspect ratio */
    position: relative;
    transition: all var(--transition-normal);
}

.screenshot:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.3);
}

.screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* Crop to fit if needed */
    object-position: center;  /* Center the image */
    display: block;
    transition: transform 0.3s;
}

.screenshot:hover img {
    transform: scale(1.05);
}

/* Feature Lists */
.features {
    margin: 1.5rem 0;
}

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

.features li {
    padding: 0.5rem 0 0.5rem 2rem;
    position: relative;
    color: var(--gray-text);
}

.features li:before {
    content: "▸";
    color: var(--primary-orange);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* Planned Feature Lists */
.planned-features {
    margin: 1.5rem 0;
}

.planned-features ul {
    list-style: none;
    padding-left: 0;
}

.planned-features li {
    padding: 0.5rem 0 0.5rem 2rem;
    position: relative;
    color: var(--gray-text);
}

.planned-features li:before {
    content: "▸";
    color: var(--primary-orange);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* Important Notes */
.notes {
    background-color: rgba(255, 107, 53, 0.1);
    border-left: 4px solid var(--primary-orange);
    padding: 1.5rem;
    margin: 2rem 0;
}

.notes h3 {
    color: var(--primary-orange);
    margin-bottom: 1rem;
}

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

.notes li {
    padding: 0.3rem 0;
    color: var(--gray-text);
}

/* Preview Placeholder */
.preview-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    margin: 2rem 0;
}

.placeholder-card {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, var(--card-bg), rgba(255, 107, 53, 0.05));
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 15px;
    max-width: 500px;
    width: 100%;
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.placeholder-card h3 {
    color: var(--primary-orange);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.placeholder-card p {
    color: var(--gray-text);
    margin-bottom: 0.5rem;
}

/* Download & Support Section Styling */
.download-support {
    text-align: center;
    background: transparent !important;
    padding: 2rem 0;
}

.download-support h2 {
    margin-bottom: 1.5rem;
}

.download-support p {
    max-width: 700px;
    margin: 0 auto 1rem auto;
    color: var(--gray-text);
    line-height: 1.8;
}

/* Button container for proper spacing and centering */
.button-container {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
}

/* Ensure sections have consistent spacing */
section {
    margin-bottom: 2rem;
}

section:last-of-type {
    margin-bottom: 0;
}

/* Footer */
footer {
    background-color: var(--darker-bg);
    padding: 2rem;
    text-align: center;
    border-top: 2px solid var(--primary-orange);
    margin-top: 4rem;
}

footer p {
    color: var(--gray-text);
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: var(--light-text);
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 1001;
}

.lightbox-close:hover {
    color: var(--primary-orange);
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--light-text);
    text-align: center;
    font-size: 1.2rem;
    padding: 1rem 2rem;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
    max-width: 80%;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 107, 53, 0.8);
    color: white;
    border: none;
    font-size: 30px;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 5px;
}

.lightbox-nav:hover {
    background-color: var(--primary-orange);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--light-text);
    margin: 3px 0;
    transition: all 0.3s;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
    background-color: var(--primary-orange);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background-color: var(--primary-orange);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-orange);
    color: var(--dark-bg);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 99;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--accent-yellow);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* Fade-in animation for sections */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Float animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Shimmer animation */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Glow pulse animation */
@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 20px var(--glow-color); }
    50% { box-shadow: 0 0 40px var(--glow-color), 0 0 60px var(--glow-color); }
}

/* Gradient shift animation */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Text gradient animation */
@keyframes text-gradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Particle rise animation */
@keyframes particle-rise {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Rainbow animation for easter egg */
@keyframes rainbow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* Fire animation for easter egg */
@keyframes fire {
    0% { text-shadow: 0 0 20px #ff6b35, 0 0 40px #ff8e53; }
    50% { text-shadow: 0 0 30px #ff8e53, 0 0 50px #ffa500; }
    100% { text-shadow: 0 0 20px #ff6b35, 0 0 40px #ff8e53; }
}

/* Slide in animation */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Bounce animation */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-10px); }
    75% { transform: translateY(5px); }
}

/* Spin animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Fade and scale */
@keyframes fadeScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Ripple effect */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Typewriter cursor */
@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* Fade out animation */
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

section {
    animation: fadeInUp 0.6s ease-out;
}

/* Enhanced Body Background */
body {
    background: var(--dark-bg);
    position: relative;
    overflow-x: hidden;
}

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% 50%, rgba(155, 89, 182, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 100%, rgba(74, 144, 226, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Navigation Active States - Removed duplicate, handled in effects.js */

/* Resource Link Enhanced */
.resource-link {
    position: relative;
    overflow: hidden;
}

.resource-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.resource-link:hover::before {
    width: 300px;
    height: 300px;
}

/* Theme Classes for Body */
body.theme-light {
    --dark-bg: #F5F5F5;
    --darker-bg: #FFFFFF;
    --light-text: #1A1A1A;
}

/* Downloads Page Styles */
.download-section {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
}

.download-section:last-of-type {
    border-bottom: none;
}

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

.download-header h2 {
    margin: 0;
}

.download-note {
    background: var(--card-bg);
    border-left: 4px solid var(--success-green);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.download-note.premium {
    border-left-color: var(--accent-purple);
}

.download-note h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--light-text);
}

.version-list {
    margin-top: 2rem;
}

.version-list h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.version-item {
    background: var(--card-bg);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-normal);
}

.version-item:hover {
    border-color: var(--primary-orange);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.3);
}

.version-details {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.version-number {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-orange);
}

.version-tag {
    background: var(--success-green);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.version-tag.latest {
    background: var(--primary-orange);
}

.version-tag.development {
    background: var(--accent-blue);
}

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

.version-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.download-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--gradient-primary);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.download-button:hover:not(.disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--glow-color);
}

.download-button.tebex {
    background: linear-gradient(135deg, var(--accent-purple) 0%, #764ba2 100%);
}

.download-button.disabled {
    background: var(--card-bg);
    color: var(--gray-text);
    cursor: not-allowed;
    opacity: 0.6;
}

.download-button span {
    font-size: 1rem;
}

.download-button small {
    font-size: 0.75rem;
    font-weight: normal;
    margin-top: 0.2rem;
    opacity: 0.8;
}

.info-link {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.info-link:hover {
    color: var(--primary-orange-light);
    text-decoration: underline;
}

.download-info {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid rgba(255, 107, 53, 0.3);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all var(--transition-normal);
}

.info-card:hover {
    border-color: var(--primary-orange);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.3);
}

.info-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary-orange);
}

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

.info-card ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.info-card ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-orange);
}

.download-support {
    margin-top: 4rem;
    text-align: center;
}

/* Download Modal */
.download-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.download-modal-content {
    background: var(--darker-bg);
    border: 2px solid var(--primary-orange);
    border-radius: 15px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.download-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--gray-text);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.download-modal-close:hover {
    color: var(--primary-orange);
}

.download-modal-content h2 {
    color: var(--primary-orange);
    margin-bottom: 0.5rem;
}

.download-modal-description {
    color: var(--gray-text);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--light-text);
    font-weight: 500;
}

.form-group .required {
    color: var(--danger-red);
}

.form-group .optional {
    color: var(--gray-text);
    font-size: 0.9rem;
    font-weight: normal;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    background: var(--card-bg);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 8px;
    color: var(--light-text);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group input::placeholder {
    color: var(--dim-text);
}

.field-help {
    display: block;
    color: var(--gray-text);
    font-size: 0.85rem;
    margin-top: 0.3rem;
    font-style: italic;
}

.form-error {
    display: none;
    background: var(--danger-red);
    color: white;
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.btn-primary,
.btn-secondary {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--glow-color);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--light-text);
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: var(--primary-orange);
}

.download-modal-privacy {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 107, 53, 0.2);
    color: var(--gray-text);
    text-align: center;
}

.download-modal-privacy a {
    color: var(--primary-orange);
    text-decoration: none;
}

.download-modal-privacy a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .header-content {
        position: relative;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--darker-bg);
        transition: right 0.3s ease-in-out;
        z-index: 100;
        padding: 80px 2rem 2rem;
        border-left: 2px solid var(--primary-orange);
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 2rem;
        text-align: left;
    }

    nav a {
        font-size: 1.3rem;
    }

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

    .hero p {
        font-size: 1.1rem;
    }

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

    .lightbox-content {
        max-width: 95%;
        max-height: 80vh;
    }

    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 40px;
    }

    .lightbox-nav {
        font-size: 20px;
        padding: 0.7rem 1rem;
    }

    .lightbox-caption {
        font-size: 1rem;
        padding: 0.7rem 1rem;
        bottom: 10px;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 20px;
    }

    /* Downloads page responsive */
    .version-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .version-actions {
        width: 100%;
        flex-direction: column;
        gap: 0.8rem;
    }

    .download-button,
    .info-link {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

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

    /* Download modal responsive */
    .download-modal-content {
        width: 95%;
        max-width: 95%;
        padding: 1.5rem;
    }

    .download-modal-close {
        font-size: 1.5rem;
        right: 1rem;
    }

    .form-actions {
        flex-direction: column;
        gap: 0.8rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .download-modal-content h2 {
        font-size: 1.3rem;
        padding-right: 2rem;
    }
}

/* ========================================
   Legal Pages
   ======================================== */

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.legal-content h2 {
    color: var(--primary-orange);
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.legal-content h2:first-of-type {
    margin-top: 0;
}

.legal-content h3 {
    color: var(--light-text);
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.legal-content p {
    color: var(--gray-text);
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.legal-content ul {
    color: var(--gray-text);
    line-height: 1.8;
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.8rem;
}

.legal-content strong {
    color: var(--light-text);
}

.legal-content a {
    color: var(--primary-orange);
    text-decoration: underline;
    transition: color var(--transition-fast);
}

.legal-content a:hover {
    color: var(--primary-orange-light);
}

/* Footer link styling */
footer a {
    color: var(--gray-text);
    text-decoration: none;
    transition: color var(--transition-fast);
}

footer a:hover {
    color: var(--primary-orange);
}