/* ============================================
   Jenny Mod - Main Stylesheet
   Dark gaming aesthetic with cyberpunk accents
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Oxanium:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* ============================================
   1. CSS Variables / Root
   ============================================ */
:root {
    --bg-dark: #0a0a12;
    --bg-card: #13131f;
    --bg-card-hover: #1a1a2e;
    --bg-darker: #060610;
    --primary: #c850c0;
    --primary-light: #e070d8;
    --primary-dark: #a040a0;
    --secondary: #4158d0;
    --secondary-light: #5a70e8;
    --text: #e8e8f0;
    --text-muted: #8888a0;
    --text-dim: #555570;
    --border: #2a2a3d;
    --border-light: #3a3a50;
    --success: #50c878;
    --warning: #f0a030;
    --error: #e05050;
    --gradient: linear-gradient(135deg, #4158d0, #c850c0);
    --gradient-reverse: linear-gradient(135deg, #c850c0, #4158d0);
    --gradient-subtle: linear-gradient(135deg, rgba(65, 88, 208, 0.15), rgba(200, 80, 192, 0.15));
    --gradient-border: linear-gradient(135deg, #4158d0, #c850c0, #4158d0);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(200, 80, 192, 0.3);
    --shadow-glow-strong: 0 0 40px rgba(200, 80, 192, 0.5);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --font-heading: 'Oxanium', cursive, sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --header-height: 72px;
    --container-width: 1200px;
    --container-padding: 20px;
}

/* ============================================
   2. Global Styles & Reset
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Noise texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--secondary), var(--primary));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--secondary-light), var(--primary-light));
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-darker);
}

/* Selection */
::selection {
    background: rgba(200, 80, 192, 0.3);
    color: var(--text);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

input, select, textarea {
    font-family: inherit;
    outline: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }

p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* ============================================
   3. Scroll Progress Bar
   ============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient);
    z-index: 10001;
    width: 0%;
    transition: none;
}

/* ============================================
   4. Utility Classes
   ============================================ */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
}

.section-title h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 0.75rem;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--gradient);
    margin: 0 auto;
    border-radius: 2px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--border-light);
    box-shadow: var(--shadow-md), 0 0 30px rgba(200, 80, 192, 0.08);
    background: var(--bg-card-hover);
}

.card:hover::before {
    opacity: 1;
}

/* Glass card effect */
.glass-card {
    background: rgba(19, 19, 31, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 2rem;
}

/* ============================================
   5. Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(200, 80, 192, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(200, 80, 192, 0.5);
    transform: translateY(-2px);
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary-light);
    box-shadow: 0 0 20px rgba(200, 80, 192, 0.15);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

.btn-glow {
    animation: btnGlow 2s ease-in-out infinite alternate;
}

@keyframes btnGlow {
    from { box-shadow: 0 4px 15px rgba(200, 80, 192, 0.3); }
    to { box-shadow: 0 4px 30px rgba(200, 80, 192, 0.6), 0 0 60px rgba(200, 80, 192, 0.2); }
}

/* ============================================
   6. Header / Navbar
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: all var(--transition-normal);
    background: rgba(10, 10, 18, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: rgba(10, 10, 18, 0.92);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}

.header-logo img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(200, 80, 192, 0.4));
    transition: filter var(--transition-normal);
}

.header-logo:hover img {
    filter: drop-shadow(0 0 12px rgba(200, 80, 192, 0.7));
}

.header-logo span {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient);
    border-radius: 1px;
    transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.nav-link.active {
    color: var(--primary-light);
}

/* Header Right Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* Language Selector */
.language-selector {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-body);
}

.language-btn:hover {
    border-color: var(--border-light);
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

.language-btn .flag {
    font-size: 1.1rem;
    line-height: 1;
}

.language-btn .arrow {
    font-size: 0.65rem;
    transition: transform var(--transition-fast);
}

.language-selector.open .language-btn .arrow {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition-fast);
    z-index: 100;
    overflow: hidden;
}

.language-selector.open .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    cursor: pointer;
    transition: background var(--transition-fast);
    color: var(--text-muted);
    font-size: 0.9rem;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-family: var(--font-body);
}

.language-option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.language-option.active {
    color: var(--primary-light);
    background: rgba(200, 80, 192, 0.08);
}

.language-option .flag {
    font-size: 1.2rem;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition-normal);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Header CTA */
.header-cta {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

/* ============================================
   7. Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: calc(var(--header-height) + 2rem) 0 4rem;
}

/* Gradient mesh background */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(65, 88, 208, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(200, 80, 192, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(65, 88, 208, 0.08) 0%, transparent 50%);
    animation: heroMesh 20s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes heroMesh {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-2%, -2%) rotate(3deg); }
}

/* Floating particles */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-particles .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat linear infinite;
}

.hero-particles .particle:nth-child(1) {
    left: 10%; top: 20%;
    animation-duration: 8s; animation-delay: 0s;
    width: 3px; height: 3px; opacity: 0.3;
}
.hero-particles .particle:nth-child(2) {
    left: 20%; top: 60%;
    animation-duration: 10s; animation-delay: 1s;
    width: 5px; height: 5px; opacity: 0.2;
    background: var(--secondary);
}
.hero-particles .particle:nth-child(3) {
    left: 35%; top: 30%;
    animation-duration: 7s; animation-delay: 2s;
    width: 3px; height: 3px; opacity: 0.4;
}
.hero-particles .particle:nth-child(4) {
    left: 50%; top: 70%;
    animation-duration: 9s; animation-delay: 0.5s;
    width: 4px; height: 4px; opacity: 0.25;
    background: var(--secondary);
}
.hero-particles .particle:nth-child(5) {
    left: 65%; top: 15%;
    animation-duration: 11s; animation-delay: 3s;
    width: 6px; height: 6px; opacity: 0.2;
}
.hero-particles .particle:nth-child(6) {
    left: 75%; top: 50%;
    animation-duration: 8s; animation-delay: 1.5s;
    width: 3px; height: 3px; opacity: 0.35;
    background: var(--secondary);
}
.hero-particles .particle:nth-child(7) {
    left: 85%; top: 25%;
    animation-duration: 12s; animation-delay: 4s;
    width: 4px; height: 4px; opacity: 0.2;
}
.hero-particles .particle:nth-child(8) {
    left: 45%; top: 85%;
    animation-duration: 9s; animation-delay: 2.5s;
    width: 5px; height: 5px; opacity: 0.15;
    background: var(--secondary);
}
.hero-particles .particle:nth-child(9) {
    left: 90%; top: 65%;
    animation-duration: 10s; animation-delay: 0.8s;
    width: 3px; height: 3px; opacity: 0.3;
}
.hero-particles .particle:nth-child(10) {
    left: 5%; top: 80%;
    animation-duration: 7s; animation-delay: 3.5s;
    width: 4px; height: 4px; opacity: 0.25;
    background: var(--secondary);
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: var(--particle-opacity, 0.3);
    }
    90% {
        opacity: var(--particle-opacity, 0.3);
    }
    100% {
        transform: translateY(-120px) translateX(30px);
        opacity: 0;
    }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 var(--container-padding);
}

.hero-logo {
    width: 140px;
    height: 140px;
    margin: 0 auto 2rem;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(200, 80, 192, 0.4));
    transition: filter var(--transition-normal);
}

.hero-logo:hover {
    filter: drop-shadow(0 0 30px rgba(200, 80, 192, 0.7));
}

.hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(200, 80, 192, 0.1);
    border: 1px solid rgba(200, 80, 192, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero h1 .gradient-text {
    display: inline;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat .number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    display: block;
}

.hero-stat .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   8. Sections - General
   ============================================ */
section {
    padding: 5rem 0;
    position: relative;
}

section:nth-child(even) {
    background: rgba(19, 19, 31, 0.3);
}

/* ============================================
   9. Features Section
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 1.5rem;
}

.feature-card {
    text-align: center;
    padding: 2.5rem 2rem;
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-subtle);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    transition: all var(--transition-normal);
}

.feature-card:hover .feature-icon {
    box-shadow: var(--shadow-glow);
    border-color: var(--primary);
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ============================================
   10. Download Section
   ============================================ */
.download-section {
    position: relative;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.download-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    overflow: hidden;
    border: 1px solid transparent;
    background-clip: padding-box;
    transition: all var(--transition-normal);
}

/* Gradient border effect */
.download-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: var(--gradient-border);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.download-card:hover::before {
    opacity: 1;
}

.download-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(200, 80, 192, 0.1);
}

.download-card .edition-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border-radius: var(--radius-md);
    background: var(--gradient-subtle);
    border: 1px solid var(--border);
}

.download-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.download-card .version-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(80, 200, 120, 0.1);
    border: 1px solid rgba(80, 200, 120, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--success);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.download-card .description {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.download-card .btn {
    width: 100%;
    padding: 0.9rem;
    font-size: 1rem;
}

.download-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.download-info span {
    font-size: 0.8rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ============================================
   11. Screenshots / Gallery
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--border);
    transition: all var(--transition-normal);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 18, 0.7) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-dark);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item .gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    z-index: 2;
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-normal);
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(6, 6, 16, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    cursor: zoom-out;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: transform var(--transition-normal);
    cursor: default;
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 2;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* ============================================
   12. FAQ Section
   ============================================ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.faq-item:hover {
    border-color: var(--border-light);
}

.faq-item.active {
    border-color: rgba(200, 80, 192, 0.3);
    box-shadow: 0 0 20px rgba(200, 80, 192, 0.05);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.25rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
    gap: 1rem;
    background: none;
    border: none;
}

.faq-question:hover {
    color: var(--primary-light);
}

.faq-toggle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-normal);
    position: relative;
}

.faq-toggle::before,
.faq-toggle::after {
    content: '';
    position: absolute;
    background: var(--text-muted);
    border-radius: 1px;
    transition: all var(--transition-normal);
}

.faq-toggle::before {
    width: 12px;
    height: 2px;
}

.faq-toggle::after {
    width: 2px;
    height: 12px;
}

.faq-item.active .faq-toggle {
    background: var(--gradient-subtle);
    border-color: var(--primary);
    transform: rotate(45deg);
}

.faq-item.active .faq-toggle::before,
.faq-item.active .faq-toggle::after {
    background: var(--primary-light);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-answer-inner {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* ============================================
   13. Footer
   ============================================ */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
    padding: 4rem 0 0;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
    max-width: 320px;
    line-height: 1.7;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-links a:hover {
    color: var(--primary-light);
    transform: translateX(3px);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: all var(--transition-normal);
}

.footer-social a:hover {
    background: var(--gradient-subtle);
    border-color: var(--primary);
    color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(200, 80, 192, 0.2);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.footer-bottom-links a:hover {
    color: var(--primary-light);
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    box-shadow: var(--shadow-glow-strong);
    transform: translateY(-3px);
}

/* ============================================
   14. Animations / Keyframes
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(200, 80, 192, 0.2), 0 0 20px rgba(200, 80, 192, 0.1);
    }
    50% {
        box-shadow: 0 0 15px rgba(200, 80, 192, 0.4), 0 0 40px rgba(200, 80, 192, 0.2);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.animate-delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.animate-delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.animate-delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.animate-delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.animate-delay-5 { transition-delay: 0.5s; }

.animate-fade-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-left.animated {
    opacity: 1;
    transform: translateX(0);
}

.animate-fade-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-right.animated {
    opacity: 1;
    transform: translateX(0);
}

.animate-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-scale.animated {
    opacity: 1;
    transform: scale(1);
}

/* ============================================
   15. Miscellaneous Components
   ============================================ */

/* Tags / Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-heading);
}

.badge-primary {
    background: rgba(200, 80, 192, 0.1);
    color: var(--primary-light);
    border: 1px solid rgba(200, 80, 192, 0.2);
}

.badge-success {
    background: rgba(80, 200, 120, 0.1);
    color: var(--success);
    border: 1px solid rgba(80, 200, 120, 0.2);
}

/* Divider */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 0;
}

/* Info box */
.info-box {
    background: var(--gradient-subtle);
    border: 1px solid rgba(65, 88, 208, 0.2);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.info-box .info-icon {
    flex-shrink: 0;
    font-size: 1.2rem;
}

/* Requirements list */
.requirements-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.requirement-item .check {
    color: var(--success);
    flex-shrink: 0;
}

/* Steps */
.steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    font-size: 0.95rem;
}

.step-content h4 {
    margin-bottom: 0.3rem;
    font-size: 1.05rem;
}

.step-content p {
    font-size: 0.9rem;
    margin: 0;
}

/* Compatibility table */
.compat-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
}

.compat-table th,
.compat-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.compat-table th {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text);
    background: rgba(255, 255, 255, 0.02);
}

.compat-table td {
    color: var(--text-muted);
}

.compat-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* ============================================
   16. Responsive Design
   ============================================ */

/* Large desktops and below */
@media (max-width: 1200px) {
    :root {
        --container-padding: 24px;
    }
}

/* Tablets and below */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .hero h1 {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .download-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

/* Mobile landscape and below */
@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    /* Mobile navigation */
    .hamburger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 85vw);
        height: 100vh;
        background: var(--bg-card);
        border-left: 1px solid var(--border);
        flex-direction: column;
        align-items: stretch;
        padding: calc(var(--header-height) + 1.5rem) 1.5rem 1.5rem;
        gap: 0.25rem;
        transform: translateX(100%);
        transition: transform var(--transition-normal);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
        z-index: 999;
    }

    .nav.open {
        transform: translateX(0);
    }

    .nav-link {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        border-radius: var(--radius-sm);
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(255, 255, 255, 0.05);
    }

    /* Mobile overlay */
    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(6, 6, 16, 0.7);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .header-cta {
        display: none;
    }

    /* Hero adjustments */
    .hero {
        min-height: auto;
        padding: calc(var(--header-height) + 3rem) 0 3rem;
    }

    .hero-logo {
        width: 100px;
        height: 100px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .hero-stat .number {
        font-size: 1.25rem;
    }

    /* Section adjustments */
    section {
        padding: 3.5rem 0;
    }

    .section-title {
        margin-bottom: 2.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    /* FAQ */
    .faq-question {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }

    .faq-answer-inner {
        padding: 0 1.25rem 1rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }

    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 40px;
        height: 40px;
    }

    /* Override inline grid styles that cause horizontal overflow on mobile */
    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    [style*="grid-template-columns: repeat"] {
        grid-template-columns: 1fr !important;
    }

    [style*="gap: 3rem"] {
        gap: 1.5rem !important;
    }

    /* Table responsive wrapper */
    .glass-card {
        overflow-x: auto;
    }

    .compat-table {
        min-width: 480px;
    }
}

/* Small phones */
@media (max-width: 576px) {
    :root {
        --container-padding: 16px;
    }

    h1 { font-size: clamp(1.8rem, 6vw, 2.5rem); }
    h2 { font-size: clamp(1.5rem, 5vw, 2rem); }

    .hero h1 {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .card {
        padding: 1.5rem;
    }

    .feature-card {
        padding: 1.75rem 1.5rem;
    }

    .download-card {
        padding: 2rem 1.5rem;
    }

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

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

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .requirements-list {
        grid-template-columns: 1fr;
    }

    .step {
        gap: 1rem;
    }

    .step-number {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .language-dropdown {
        right: -1rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .animate-on-scroll,
    .animate-fade-left,
    .animate-fade-right,
    .animate-scale {
        opacity: 1;
        transform: none;
    }
}

/* Print styles */
@media print {
    .header,
    .back-to-top,
    .scroll-progress,
    .hero-particles,
    .lightbox {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    body::before {
        display: none;
    }

    .card {
        border: 1px solid #ccc;
        box-shadow: none;
    }
}
