/* ==========================================
   MSFS Launcher Website - Styles
   Modern, Professional Design
   ========================================== */

/* CSS Variables */
:root {
    /* Primary Colors */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    
    /* Accent Colors */
    --accent: #22d3ee;
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    --accent-red: #ef4444;
    
    /* Background Colors */
    --bg-dark: #0f0f1a;
    --bg-darker: #080810;
    --bg-card: #1a1a2e;
    --bg-card-hover: #252540;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
    --gradient-accent: linear-gradient(135deg, #22d3ee 0%, #6366f1 100%);
    --gradient-dark: linear-gradient(180deg, #0f0f1a 0%, #080810 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 20px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

/* Gradient Text */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section Badge */
.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    color: var(--primary-light);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-download {
    background: #5865F2;
    color: white;
    padding: 16px 40px;
    font-size: 1.1rem;
    width: 100%;
    justify-content: center;
}

.btn-download:hover {
    background: #4752C4;
    transform: translateY(-2px);
}

/* ==========================================
   NAVIGATION
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 700;
}

.nav-logo img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Language Switcher */
.lang-switch {
    display: flex;
    gap: 5px;
    margin-left: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 4px;
}

.lang-btn {
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition-fast);
    font-family: 'Poppins', sans-serif;
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    background: var(--primary);
    color: white;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(15, 15, 26, 0.98);
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        transform: translateY(-150%);
        transition: var(--transition-normal);
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .nav-toggle {
        display: block;
    }
    
    .lang-switch {
        margin-left: 0;
        margin-right: 15px;
    }
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    position: relative;
    overflow: hidden;
    background: var(--gradient-dark);
}

.hero-particles {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(217, 70, 239, 0.1) 0%, transparent 60%);
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50px;
    color: var(--accent-green);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 30px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 25px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 5px;
}

.hero-image {
    display: none;
    position: relative;
}

.hero-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    filter: blur(60px);
    z-index: -1;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        gap: 30px;
    }
}

/* ==========================================
   FEATURES SECTION
   ========================================== */
.features {
    padding: var(--section-padding);
    background: var(--bg-darker);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 35px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-normal);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.feature-list i {
    color: var(--accent-green);
    font-size: 0.8rem;
}

/* ==========================================
   SCREENSHOTS SECTION
   ========================================== */
.screenshots {
    padding: var(--section-padding);
    background: var(--bg-dark);
}

.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.screenshot-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/10;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-normal);
}

.screenshot-item.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.screenshot-item:hover img {
    transform: scale(1.05);
}

.screenshot-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    transform: translateY(100%);
    transition: var(--transition-normal);
}

.screenshot-item:hover .screenshot-overlay {
    transform: translateY(0);
}

.screenshot-overlay h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.screenshot-overlay p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.screenshot-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.screenshot-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.screenshot-btn.active {
    background: var(--primary);
    width: 30px;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .screenshot-gallery {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   ZENTRALE SECTION
   ========================================== */
.zentrale {
    padding: var(--section-padding);
    background: var(--bg-darker);
}

.zentrale-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.section-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.zentrale-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.zentrale-feature {
    display: flex;
    gap: 15px;
}

.zentrale-feature-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-md);
    color: var(--primary-light);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.zentrale-feature-content h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.zentrale-feature-content p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.zentrale-image {
    position: relative;
}

.zentrale-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.zentrale-glow {
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 60%);
    filter: blur(40px);
    z-index: -1;
}

@media (max-width: 968px) {
    .zentrale-content {
        grid-template-columns: 1fr;
    }
    
    .zentrale-features {
        grid-template-columns: 1fr;
    }
    
    .zentrale-image {
        order: -1;
    }
}

/* ==========================================
   SERVER SECTION
   ========================================== */
.server {
    padding: var(--section-padding);
    background: var(--bg-dark);
}

.server-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.server-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.server-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.server-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    background: rgba(99, 102, 241, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.server-card-header i {
    font-size: 1.3rem;
    color: var(--primary-light);
}

.server-card-header h3 {
    font-size: 1.1rem;
}

.server-card-body {
    padding: 25px;
}

.server-stat {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.server-stat:last-child {
    border-bottom: none;
}

.server-stat .stat-label {
    color: var(--text-secondary);
}

.server-stat .stat-value {
    color: var(--text-primary);
    font-weight: 500;
}

.api-list {
    list-style: none;
}

.api-list li {
    padding: 10px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.api-list li:last-child {
    border-bottom: none;
}

.api-list code {
    background: rgba(99, 102, 241, 0.2);
    padding: 3px 10px;
    border-radius: 4px;
    color: var(--accent);
    font-family: 'Consolas', monospace;
    font-size: 0.85rem;
    margin-right: 10px;
}

.server-diagram {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.diagram-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.diagram-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 25px 40px;
    border-radius: var(--radius-md);
    font-weight: 500;
}

.diagram-node i {
    font-size: 2rem;
}

.diagram-node.client {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);
    border: 1px solid rgba(99, 102, 241, 0.5);
}

.diagram-node.server-node {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3) 0%, rgba(34, 197, 94, 0.3) 100%);
    border: 1px solid rgba(16, 185, 129, 0.5);
}

.diagram-node.database {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3) 0%, rgba(251, 191, 36, 0.3) 100%);
    border: 1px solid rgba(245, 158, 11, 0.5);
}

.diagram-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.diagram-arrow i {
    font-size: 1.2rem;
    color: var(--primary-light);
}

.diagram-services {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.service-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.service-badge i {
    color: var(--primary-light);
}

@media (max-width: 968px) {
    .server-content {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   DOWNLOAD SECTION
   ========================================== */
.download {
    padding: var(--section-padding);
    background: var(--bg-darker);
}

.download-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.download-requirements {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-top: 30px;
}

.download-requirements h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--accent);
}

.download-requirements ul {
    list-style: none;
}

.download-requirements li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--text-secondary);
}

.download-requirements i {
    color: var(--primary-light);
    width: 20px;
}

.download-box {
    display: flex;
    justify-content: center;
}

.download-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 50px 40px;
    text-align: center;
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: var(--shadow-glow);
    max-width: 400px;
    width: 100%;
}

.download-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    font-size: 2rem;
    margin: 0 auto 25px;
}

.download-card h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.version-info {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent-green);
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.file-info {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.download-note {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 20px;
}

.download-note i {
    color: var(--accent);
}

@media (max-width: 768px) {
    .download-content {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact {
    padding: var(--section-padding);
    background: var(--bg-dark);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.contact-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-normal);
}

.contact-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
}

.contact-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 50%;
    font-size: 1.8rem;
    color: var(--primary-light);
    margin: 0 auto 20px;
}

.contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.contact-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-light);
    font-weight: 500;
}

.contact-link:hover {
    color: var(--accent);
}

.contact-link i {
    transition: var(--transition-fast);
}

.contact-link:hover i {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--bg-darker);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-brand img {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
}

.footer-brand h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-column a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.disclaimer {
    font-size: 0.8rem !important;
    max-width: 700px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================
   BACK TO TOP BUTTON
   ========================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.5);
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }

/* ==========================================
   LIGHTBOX / IMAGE VIEWER
   ========================================== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    animation: lightboxZoom 0.3s ease;
}

@keyframes lightboxZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
    transition: transform 0.3s ease, color 0.3s ease;
}

.lightbox-close:hover {
    transform: rotate(90deg);
    color: var(--accent);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 24px;
    padding: 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s ease, transform 0.3s ease;
}

.lightbox-nav:hover {
    background: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-caption {
    text-align: center;
    color: white;
    padding: 20px;
    font-size: 1.1rem;
}

.lightbox-caption h4 {
    margin-bottom: 5px;
    font-size: 1.5rem;
}

/* Screenshot items klickbar machen */
.screenshot-item {
    cursor: pointer;
}

.screenshot-item:hover .screenshot-overlay {
    opacity: 1;
}

.screenshot-item::after {
    content: '\\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.screenshot-item:hover::after {
    opacity: 0.8;
}
