/**
 * MORELESS.TOOLS - MAIN CSS (REFACTORED)
 * Core styles unified across all pages
 */

/* =============================================================================
 * 1. CSS VARIABLES & RESET
 * ========================================================================== */
 :root {
    /* Colors */
    --color-dark: #031024;
    --color-dark-accent: #051e3e;
    --color-dark-light: #0a1932;
    --color-primary: #FF4D29;
    --color-primary-light: rgba(255, 77, 41, 0.1);
    --color-primary-dark: #e64024;
    --color-secondary: #0055A4;
    --color-secondary-light: rgba(0, 85, 164, 0.1);
    --color-accent: #4682B4;
    --color-white: #FFFFFF;
    --color-light-gray: rgba(255, 255, 255, 0.7);
    --color-gray: rgba(255, 255, 255, 0.5);
    --color-dark-gray: rgba(255, 255, 255, 0.1);
    --color-problem: #FF3333;
    --color-problem-bg: rgba(255, 51, 51, 0.15);
    --color-solution: #27AE60;
    --color-solution-bg: rgba(39, 174, 96, 0.15);
    
    /* Client/Server badge colors */
    --color-client: #27AE60;
    --color-client-bg: rgba(39, 174, 96, 0.15);
    --color-server: #6366F1;
    --color-server-bg: rgba(99, 102, 241, 0.15);
    
    /* RGB value for primary color */
    --color-primary-rgb: 255, 77, 41;
    
    /* Section backgrounds */
    --section-bg-light: transparent;
    --section-bg-dark: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-md: 1.125rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 1.875rem;
    --font-size-3xl: 2.25rem;
    --font-size-4xl: 3rem;
    --font-size-5xl: 3.75rem;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 5rem;
    --space-5xl: 6rem;
    --space-6xl: 7rem;
    --space-7xl: 8rem;
    --space-8xl: 9rem;
    --space-9xl: 10rem;
    --space-10xl: 12rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;
    
    /* Transitions - Optimized for performance */
    --transition-fast: 0.15s ease-out;
    --transition-normal: 0.2s ease-out;
    --transition-slow: 0.3s ease-out;
    
    /* Z-Index */
    --z-below: -1;
    --z-normal: 0;
    --z-above: 1;
    --z-fixed: 100;
    --z-header: 100;
    --z-overlay: 1000;
    --z-modal: 2000;
    --z-tooltip: 3000;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.4);
    --shadow-fire: 0 0 20px rgba(255, 77, 41, 0.4);
    --shadow-fire-lg: 0 0 30px rgba(255, 77, 41, 0.6);
    
    /* Additional colors for legal pages */
    --color-success: #27AE60;
    --color-success-bg: rgba(39, 174, 96, 0.15);
    --color-warning: #F39C12;
    --color-warning-bg: rgba(243, 156, 18, 0.15);
}

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

html, body {
    height: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-accent) 100%);
    background-attachment: fixed;
    margin: 0;
    overflow-x: hidden;
    font-size: var(--font-size-base);
    line-height: 1.6;
}

/* =============================================================================
 * 2. OPTIMIZED SCROLLBAR
 * ========================================================================== */
/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, 
        rgba(255, 77, 41, 0.6) 0%, 
        rgba(255, 77, 41, 0.8) 50%, 
        rgba(255, 77, 41, 0.6) 100%);
    border-radius: 10px;
    border: 1px solid rgba(255, 77, 41, 0.2);
    transition: all var(--transition-normal);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, 
        rgba(255, 77, 41, 0.8) 0%, 
        rgba(255, 77, 41, 1) 50%, 
        rgba(255, 77, 41, 0.8) 100%);
    border-color: rgba(255, 77, 41, 0.4);
    box-shadow: 0 0 8px rgba(255, 77, 41, 0.3);
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 77, 41, 0.7) rgba(255, 255, 255, 0.05);
}

/* Mobile responsive scrollbar */
@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 4px;
        height: 4px;
    }
    
    ::-webkit-scrollbar-thumb {
        border-radius: 2px;
    }
}

/* =============================================================================
 * 3. TYPOGRAPHY
 * ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
    font-weight: 800;
    line-height: 1.2;
}

p {
    margin: 0 0 var(--space-md);
}

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

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

.text-link {
    position: relative;
    display: inline-block;
    color: var(--color-primary);
    font-weight: 600;
    transition: all var(--transition-normal);
}

.text-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-normal);
}

.text-link:hover {
    color: var(--color-primary);
}

.text-link:hover::after {
    width: 100%;
}

/* =============================================================================
 * 4. LAYOUT & CONTAINERS
 * ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Global Section System with Alternating Backgrounds */
.section {
    padding: var(--space-3xl) 0;
    position: relative;
    scroll-margin-top: 100px;
    background: var(--section-bg-light);
    contain: layout style;
}

/* Dark background sections - aplikuje se na každou druhou sekci */
.section-dark {
    background: var(--section-bg-dark);
}

/* Specific section overrides for backwards compatibility */
.projects {
    background: var(--section-bg-dark);
}

.tools-main-section {
    background: var(--section-bg-light);
}

.section-header {
    margin-bottom: var(--space-2xl);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
    background-color: var(--color-primary-light);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
}

.section-tag i {
    font-size: 0.85em;
}

.section-title {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-lg);
    color: var(--color-light-gray);
}

/* Updated Section Divider - Orange, thin and clean */
.section-divider {
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        var(--color-primary) 20%,
        var(--color-primary) 80%,
        transparent
    );
    margin: 0;
    max-width: 100%;
    opacity: 0.6;
}

/* =============================================================================
 * 5. BUTTONS
 * ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: var(--font-size-sm);
    transition: var(--transition-normal);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-fire);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary:hover {
    box-shadow: 0 10px 30px rgba(255, 77, 41, 0.7);
    color: var(--color-white);
}

.btn-primary i {
    transition: var(--transition-normal);
}

.btn-primary:hover i {
    transform: translateX(5px);
}

/* Optimized shine effect - Runs only on hover */
.btn-primary:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    z-index: -1;
    animation: shine 0.8s ease-out;
}

.btn-primary:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(255, 77, 41, 0.8), rgba(255, 120, 60, 0.9));
    z-index: -1;
    transition: all var(--transition-normal);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-gray);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--color-white);
    transform: translateY(-5px);
    color: var(--color-white);
}

.btn-secondary i {
    transition: var(--transition-normal);
}

.btn-secondary:hover i {
    transform: translateX(5px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: var(--font-size-sm);
    transition: var(--transition-normal);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-primary);
    box-shadow: none;
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 77, 41, 0.3);
}

/* =============================================================================
 * 6. BACKGROUND ANIMATION
 * ========================================================================== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-below);
    overflow: hidden;
}

.cube {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    animation: cubeFloat 35s linear infinite;
    backdrop-filter: blur(1px);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.02) 0%,
        rgba(255, 255, 255, 0.005) 100%
    );
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.03);
    opacity: 0.4;
    transform: translateZ(0);
}

/* Cube positions - Optimized count but preserved visual balance */
.cube:nth-child(1) {
    top: 20%;
    left: 10%;
    width: 160px;
    height: 160px;
    animation-duration: 40s;
    animation-delay: -2s;
}

.cube:nth-child(2) {
    top: 50%;
    left: 15%;
    width: 100px;
    height: 100px;
    animation-duration: 35s;
    animation-delay: -5s;
}

.cube:nth-child(3) {
    top: 30%;
    left: 80%;
    width: 140px;
    height: 140px;
    animation-duration: 38s;
    animation-delay: -7s;
}

.cube:nth-child(4) {
    top: 70%;
    left: 70%;
    width: 120px;
    height: 120px;
    animation-duration: 32s;
    animation-delay: -3s;
}

.cube:nth-child(5) {
    top: 10%;
    left: 50%;
    width: 130px;
    height: 130px;
    animation-duration: 39s;
    animation-delay: -10s;
}

.cube:nth-child(6) {
    top: 60%;
    left: 30%;
    width: 110px;
    height: 110px;
    animation-duration: 36s;
    animation-delay: -8s;
}

/* =============================================================================
 * 7. HERO SECTION (UNIFIED FOR ALL PAGES)
 * ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 80px;
    overflow: hidden;
    background: radial-gradient(circle at 30% 30%, rgba(255, 77, 41, 0.15) 0%, transparent 70%),
                radial-gradient(circle at 70% 70%, rgba(0, 85, 164, 0.15) 0%, transparent 70%);
}

/* Specific hero heights for legal pages */
.hero--legal {
    min-height: 80vh;
    padding: 120px 0 80px;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out both;
    will-change: transform, opacity;
}

.tagline {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-xl);
    font-weight: 600;
    align-self: flex-start;
}

.flame-icon {
    animation: flameFlicker 2s ease-in-out 3;
    will-change: transform;
}

.hero-text {
    position: relative;
    z-index: 1;
    margin-bottom: var(--space-xl);
    text-align: left;
}

.hero-heading {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    text-align: left;
}

.top-line {
    display: block;
    margin-bottom: var(--space-sm);
    color: var(--color-white);
    animation: fadeInRight 0.8s ease-out 0.2s both;
    will-change: transform, opacity;
}

.highlight-container {
    position: relative;
    display: flex;
    margin-top: 1.5rem;
    align-items: stretch;
    animation: fadeInLeft 0.8s ease-out 0.4s both;
    will-change: transform, opacity;
}

.vertical-line {
    position: absolute;
    width: 3px;
    height: 100%;
    background-color: #FF4D29;
    left: 0;
    top: 0;
}

.highlight-text {
    display: flex;
    flex-direction: column;
    padding-left: 20px;
    text-align: left;
}

.highlight-line {
    display: block;
    position: relative;
    color: var(--color-primary);
    margin: 5px 0;
    font-weight: 900;
    line-height: 1.1;
}

.hero-description {
    animation: fadeIn 1s ease-out 0.6s both;
    margin-bottom: var(--space-xl);
    will-change: opacity;
}

.hero-description p {
    font-size: var(--font-size-xl);
    color: var(--color-light-gray);
    line-height: 1.5;
    margin-bottom: var(--space-md);
    text-align: left;
}

/* Legal pages specific description */
.hero-description--legal p {
    text-align: justify;
    margin-top: 1.5rem;
    line-height: 1.6;
    font-size: var(--font-size-lg);
}

.hero-description p:last-child {
    margin-bottom: 0;
}

.hero-tagline {
    font-style: italic;
    color: var(--color-white);
    font-weight: 600;
    margin-top: var(--space-lg);
}

/* Universal highlight box for all pages - UNIFIED STYLE */
.highlight-box {
    margin: var(--space-2xl) auto;
    max-width: 800px;
    padding: var(--space-lg);
    background: linear-gradient(135deg, 
                rgba(255, 255, 255, 0.08) 0%, 
                rgba(255, 255, 255, 0.03) 100%);
    border-radius: var(--radius-lg);
    border-left: 3px solid var(--color-primary);
    text-align: left;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.8s both;
    will-change: transform, opacity;
}

.quote-mark {
    display: none;
}

.quote-text {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-lg);
    line-height: 1.4;
}

.quote-author {
    font-size: var(--font-size-sm);
    color: var(--color-light-gray);
    font-weight: 400;
    text-align: right;
    margin-top: var(--space-md);
}

.testimonial-block {
    margin-top: var(--space-2xl);
    padding: var(--space-lg);
    background: linear-gradient(135deg, 
                rgba(255, 255, 255, 0.08) 0%, 
                rgba(255, 255, 255, 0.03) 100%);
    border-radius: var(--radius-lg);
    border-left: 3px solid var(--color-primary);
    text-align: left;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.8s ease-out 0.8s both;
    will-change: transform, opacity;
}

.testimonial-heading {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: var(--space-lg);
}

.benefits {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex: 1 1 100%;
}

.benefit-icon {
    width: 40px;
    height: 40px;
    background-color: var(--color-primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: var(--font-size-md);
}

.benefit-item span {
    font-weight: 600;
    font-size: var(--font-size-md);
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-top: var(--space-2xl);
    justify-content: flex-start;
    animation: fadeIn 1s ease-out 1s both;
    will-change: opacity;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.feature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--color-light-gray);
}

.feature i {
    color: var(--color-primary);
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* How we roll section styling - REFERENCE STYLE */
.how-we-roll {
    margin-top: var(--space-2xl);
    padding: var(--space-lg);
    background: linear-gradient(135deg, 
                rgba(255, 255, 255, 0.08) 0%, 
                rgba(255, 255, 255, 0.03) 100%);
    border-radius: var(--radius-lg);
    border-left: 3px solid var(--color-primary);
    text-align: left;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.8s ease-out 0.8s both;
    will-change: transform, opacity;
}

.how-we-roll-heading {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: var(--space-lg);
}

.roll-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.roll-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.roll-icon {
    flex-shrink: 0;
    font-size: var(--font-size-xl);
    line-height: 1.2;
    padding-top: 2px;
}

.roll-text {
    display: flex;
    flex-direction: column;
}

.roll-title {
    font-weight: 600;
    font-size: var(--font-size-md);
    color: var(--color-white);
    margin-bottom: var(--space-xs);
}

.roll-description {
    font-size: var(--font-size-sm);
    color: var(--color-light-gray);
}

/* Tech particles - optimized for performance */
.tech-particles {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    transform: translateZ(0);
    will-change: transform;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 77, 41, 0.4) 0%, rgba(255, 77, 41, 0.1) 100%);
    opacity: 0.6;
    animation: float 6s ease-in-out 5;
    will-change: transform;
    transform: translateZ(0);
}

.particle.p1 {
    width: 60px;
    height: 60px;
    top: 20%;
    right: 15%;
    animation-duration: 8s;
}

.particle.p2 {
    width: 30px;
    height: 30px;
    top: 40%;
    right: 30%;
    background: linear-gradient(135deg, rgba(0, 85, 164, 0.4) 0%, rgba(0, 85, 164, 0.1) 100%);
    animation-duration: 7s;
    animation-delay: 0.5s;
}

.particle.p3 {
    width: 45px;
    height: 45px;
    top: 60%;
    right: 10%;
    animation-duration: 9s;
    animation-delay: 1s;
}

.particle.p4 {
    width: 25px;
    height: 25px;
    top: 30%;
    right: 25%;
    background: linear-gradient(135deg, rgba(0, 85, 164, 0.4) 0%, rgba(0, 85, 164, 0.1) 100%);
    animation-duration: 10s;
    animation-delay: 1.5s;
}

.particle.p5 {
    width: 35px;
    height: 35px;
    top: 70%;
    right: 35%;
    animation-duration: 11s;
    animation-delay: 2s;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateZ(0);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-white);
    opacity: 0.7;
    transition: var(--transition-normal);
    cursor: pointer;
}

.scroll-indicator:hover {
    opacity: 1;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--color-white);
    border-radius: 15px;
    position: relative;
}

.scroll-wheel {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: var(--color-white);
    left: 50%;
    transform: translateX(-50%) translateZ(0);
    top: 10px;
    border-radius: 50%;
    animation: scrollWheel 2s ease-in-out 3;
    will-change: transform, opacity;
}

/* =============================================================================
 * 8. PROJECTS SECTION
 * ========================================================================== */
.projects-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
    contain: layout;
}

.project-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(10, 25, 50, 0.7) 0%, rgba(5, 30, 62, 0.9) 100%);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    will-change: transform;
    contain: layout style;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.project-card:hover {
    transform: translate3d(0, -10px, 0);
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: -1;
}

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

.project-content {
    padding: var(--space-xl);
    flex: 1;
    contain: layout style;
}

.project-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: var(--color-white);
    contain: layout style;
}

.project-subtitle {
    color: var(--color-primary);
    font-size: var(--font-size-lg);
    font-weight: 500;
    margin-bottom: var(--space-lg);
    contain: layout style;
}

.project-description {
    color: var(--color-light-gray);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
    text-align: justify;
    contain: layout style;
}

.project-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    contain: layout;
}

.project-features li {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: var(--color-light-gray);
    contain: layout style;
}

.project-features i {
    color: var(--color-primary);
    font-size: var(--font-size-md);
    contain: layout style;
}

.project-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
    contain: layout;
}

.project-image img, 
.project-image svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.project-card:hover .project-image img,
.project-card:hover .project-image svg {
    transform: translate3d(0, 0, 0) scale(1.05);
}

.tools-animation,
.software-animation {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background-color: rgba(5, 30, 62, 0.5);
    padding: var(--space-lg);
    transform: scaleX(-1) translateZ(0);
    contain: layout style;
    backface-visibility: hidden;
}

/* =============================================================================
 * 9. LEGAL PAGES CONTENT BLOCKS
 * ========================================================================== */

/* Generic content block for all legal pages */
.content-block {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    padding: var(--space-xl);
    background: linear-gradient(135deg, rgba(10, 25, 50, 0.7) 0%, rgba(5, 30, 62, 0.9) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    margin-bottom: var(--space-2xl);
}

.content-block:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 77, 41, 0.2);
    border-color: rgba(255, 77, 41, 0.3);
    transform: translateY(-5px);
}

.content-block-header {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.content-block-icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: var(--font-size-xl);
    transition: all var(--transition-normal);
}

.content-block:hover .content-block-icon {
    background-color: rgba(255, 77, 41, 0.2);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 77, 41, 0.4);
}

.content-block-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-white);
}

.content-block-text {
    color: var(--color-light-gray);
    line-height: 1.7;
    letter-spacing: 0.3px;
}

.content-block-text p {
    margin-bottom: var(--space-md);
    font-size: var(--font-size-md);
}

.content-block-text p:last-child {
    margin-bottom: 0;
}

.content-block-text em {
    color: var(--color-primary);
    font-style: normal;
    font-weight: 500;
}

.content-block-text strong {
    color: var(--color-white);
    font-weight: 600;
}

.content-block-text ul {
    margin: var(--space-md) 0;
    padding-left: var(--space-xl);
}

.content-block-text li {
    margin-bottom: var(--space-sm);
    color: var(--color-light-gray);
}

/* Success and Warning Boxes - FIXED ALIGNMENT */
.info-box {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    margin: var(--space-lg) 0;
}

.info-box--success {
    background: var(--color-success-bg);
    border: 1px solid var(--color-success);
}

.info-box--warning {
    background: var(--color-warning-bg);
    border: 1px solid var(--color-warning);
}

.info-box-icon {
    font-size: var(--font-size-lg);
    flex-shrink: 0;
}

.info-box--success .info-box-icon {
    color: var(--color-success);
}

.info-box--warning .info-box-icon {
    color: var(--color-warning);
}

.info-box-text {
    font-weight: 600;
    line-height: 1.5;
}

.info-box--success .info-box-text {
    color: var(--color-success);
}

.info-box--warning .info-box-text {
    color: var(--color-warning);
}

/* Table of Contents for Legal Pages */
.toc {
    background: linear-gradient(135deg, rgba(10, 25, 50, 0.7) 0%, rgba(5, 30, 62, 0.9) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: var(--space-xl);
    margin-bottom: var(--space-2xl);
    box-shadow: var(--shadow-lg);
}

.toc-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.toc-icon {
    width: 40px;
    height: 40px;
    background-color: var(--color-primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: var(--font-size-md);
}

.toc-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
    list-style: none;
    padding: 0;
}

.toc-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.toc-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.toc-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    text-decoration: none;
    color: var(--color-light-gray);
    font-weight: 500;
    transition: all var(--transition-normal);
}

.toc-link:hover {
    color: var(--color-primary);
}

.toc-link i {
    color: var(--color-primary);
    width: 20px;
    text-align: center;
}

/* =============================================================================
 * 10. SPECIFIC PAGE STYLES (ABOUT, STORY, TIMELINE, ETC.)
 * ========================================================================== */

/* About Content */
.about-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    margin-bottom: var(--space-lg);
    font-size: var(--font-size-md);
    color: var(--color-light-gray);
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* Story Section - aplikuje tmavé pozadí automaticky */
.story-section {
    position: relative;
    z-index: 2;
}

.story-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-3xl);
}

/* Code Terminal Component */
.code-terminal {
    background: #0a0e1b;
    border-radius: var(--radius-md);
    font-family: 'Monaco', 'Courier New', monospace;
    margin-top: var(--space-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.terminal-header {
    background: linear-gradient(to right, #1a1f33, #151a2c);
    padding: var(--space-sm) var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn-red {
    background: #ff5f56;
}

.btn-yellow {
    background: #ffbd2e;
}

.btn-green {
    background: #27c93f;
}

.terminal-title {
    margin-left: auto;
    font-size: var(--font-size-xs);
    color: var(--color-gray);
}

.terminal-line {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--font-size-sm);
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.terminal-prompt {
    color: #27c93f;
    font-weight: bold;
}

.terminal-command {
    color: var(--color-white);
    flex: 1;
}

.terminal-result {
    color: var(--color-light-gray);
    opacity: 0.8;
}

/* Timeline Section */
.timeline-section {
    position: relative;
    z-index: 2;
}

.timeline-container {
    position: relative;
    padding: var(--space-3xl) 0;
    max-width: 1000px;
    margin: 0 auto;
}

/* Main timeline line */
.timeline-line {
    position: absolute;
    left: 80px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--color-primary) 10%,
        var(--color-primary) 45%,
        var(--color-secondary) 55%,
        var(--color-secondary) 90%,
        transparent 100%
    );
    opacity: 0.8;
}

.timeline-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: -1px;
    right: -1px;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(255, 77, 41, 0.3) 20%,
        rgba(0, 85, 164, 0.3) 80%,
        transparent
    );
    filter: blur(4px);
}

/* Timeline items */
.timeline-item {
    position: relative;
    padding-left: 120px;
    margin-bottom: var(--space-4xl);
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInFromLeft 0.6s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }

/* Timeline dot with pulse effect */
.timeline-dot {
    position: absolute;
    left: 64px;
    top: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-dark);
    border: 3px solid var(--color-primary);
    box-shadow: 
        0 0 0 8px rgba(255, 77, 41, 0.1),
        0 0 20px rgba(255, 77, 41, 0.3);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.timeline-dot::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--color-primary);
    border-radius: 50%;
    animation: pulseDot 2s ease-in-out infinite;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.2);
    border-color: var(--color-secondary);
    box-shadow: 
        0 0 0 12px rgba(0, 85, 164, 0.1),
        0 0 30px rgba(0, 85, 164, 0.4);
}

.timeline-item:hover .timeline-dot::before {
    background: var(--color-secondary);
}

/* Timeline date badge */
.timeline-date {
    position: absolute;
    left: 120px;
    top: -25px;
    padding: var(--space-xs) var(--space-md);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(255, 77, 41, 0.3);
    white-space: nowrap;
}

/* Timeline content card */
.timeline-content {
    background: linear-gradient(135deg, rgba(10, 25, 50, 0.8) 0%, rgba(5, 30, 62, 0.95) 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.timeline-item:hover .timeline-content::before {
    transform: scaleX(1);
}

.timeline-content:hover {
    transform: translateY(-5px) translateX(5px);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(255, 77, 41, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 77, 41, 0.3);
}

/* Timeline content text */
.timeline-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.timeline-title::before {
    content: '🔥';
    font-size: var(--font-size-lg);
}

.timeline-text {
    font-size: var(--font-size-md);
    color: var(--color-light-gray);
    line-height: 1.7;
    position: relative;
}

/* Glowing effect on hover */
.timeline-item:hover .timeline-content {
    background: linear-gradient(135deg, rgba(10, 25, 50, 0.9) 0%, rgba(5, 30, 62, 1) 100%);
}

/* Values Section - tmavé pozadí */
.values-section {
    position: relative;
    z-index: 2;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
}

.value-card {
    padding: var(--space-xl);
    background: linear-gradient(135deg, rgba(10, 25, 50, 0.7) 0%, rgba(5, 30, 62, 0.9) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
}

.value-card:hover::before {
    transform: translateX(0);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 77, 41, 0.3);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    background: var(--color-primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-2xl);
    color: var(--color-primary);
    transition: all var(--transition-normal);
}

.value-card:hover .value-icon {
    transform: rotate(360deg) scale(1.1);
    background: rgba(255, 77, 41, 0.2);
    box-shadow: 0 0 20px rgba(255, 77, 41, 0.4);
}

.value-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.value-description {
    font-size: var(--font-size-sm);
    color: var(--color-light-gray);
    line-height: 1.6;
}

/* Team Section - světlé pozadí */
.team-section {
    position: relative;
    z-index: 2;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-2xl);
}

.team-card {
    background: linear-gradient(135deg, rgba(10, 25, 50, 0.7) 0%, rgba(5, 30, 62, 0.9) 100%);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-normal);
    position: relative;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 77, 41, 0.3);
}

.team-photo {
    width: 100%;
    height: 420px;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all var(--transition-normal);
}

.team-card:hover .team-photo {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.team-info {
    padding: var(--space-xl);
}

.team-name {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-xs);
}

.team-position {
    font-size: var(--font-size-md);
    color: var(--color-primary);
    margin-bottom: var(--space-md);
    font-weight: 500;
}

.team-bio {
    font-size: var(--font-size-sm);
    color: var(--color-light-gray);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.team-socials {
    display: flex;
    gap: var(--space-md);
}

.team-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-light-gray);
    transition: all var(--transition-normal);
}

.team-social-link:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-3px);
}

/* CTA Section - tmavé pozadí */
.cta-section {
    position: relative;
    padding: var(--space-3xl) 0;
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-2xl);
    background: linear-gradient(135deg, rgba(10, 25, 50, 0.7) 0%, rgba(5, 30, 62, 0.9) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.cta-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 77, 41, 0.15) 0%, transparent 70%),
               radial-gradient(circle at 70% 70%, rgba(0, 85, 164, 0.15) 0%, transparent 70%);
    z-index: -1;
}

.cta-title {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: var(--space-xl);
}

.cta-text {
    color: var(--color-light-gray);
    font-size: var(--font-size-lg);
    line-height: 1.6;
    margin-bottom: var(--space-2xl);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

/* =============================================================================
 * 11. MODALS
 * ========================================================================== */

/* Changelog Modal */
.changelog-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 16, 36, 0.8);
    z-index: var(--z-overlay);
    padding: 20px;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.changelog-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.changelog-modal .modal-content {
    background: rgba(10, 25, 50, 0.98);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    padding: var(--space-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    transform: translate3d(0, 20px, 0);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    will-change: transform, opacity;
}

.changelog-modal.active .modal-content {
    transform: translate3d(0, 0, 0);
    opacity: 1;
}

.changelog-intro {
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: rgba(0, 85, 164, 0.08);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 85, 164, 0.2);
}

.changelog-intro-content {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.changelog-intro-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(0, 85, 164, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    font-size: var(--font-size-lg);
}

.changelog-intro-text {
    flex: 1;
}

.changelog-intro-text h3 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: var(--space-sm);
}

.changelog-intro-text p {
    font-size: var(--font-size-sm);
    color: var(--color-light-gray);
    line-height: 1.5;
    margin: 0;
}

.changelog-timeline {
    position: relative;
}

.changelog-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-primary) 0%, var(--color-secondary) 100%);
}

.changelog-entry {
    position: relative;
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    padding-left: 60px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.changelog-entry:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translate3d(0, -2px, 0);
}

.changelog-entry::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 24px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(255, 77, 41, 0.15);
}

.changelog-entry.improvement::before {
    background: var(--color-secondary);
    box-shadow: 0 0 0 4px rgba(0, 85, 164, 0.15);
}

.changelog-entry.bugfix::before {
    background: #27AE60;
    box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.15);
}

.changelog-entry.breaking::before {
    background: #E74C3C;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.15);
}

.changelog-date {
    font-size: var(--font-size-xs);
    color: var(--color-gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-xs);
}

.changelog-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-sm);
}

.changelog-type.new {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.changelog-type.improvement {
    background: var(--color-secondary-light);
    color: var(--color-secondary);
}

.changelog-type.bugfix {
    background: rgba(39, 174, 96, 0.15);
    color: #27AE60;
}

.changelog-type.breaking {
    background: rgba(231, 76, 60, 0.15);
    color: #E74C3C;
}

.changelog-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.changelog-description {
    font-size: var(--font-size-sm);
    color: var(--color-light-gray);
    line-height: 1.5;
    margin-bottom: var(--space-md);
}

.changelog-tools {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.changelog-tool {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    color: var(--color-light-gray);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.changelog-tool i {
    color: var(--color-primary);
}

/* Request Tool Modal */
.request-tool-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 16, 36, 0.8);
    z-index: var(--z-overlay);
    padding: 20px;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.request-tool-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.request-tool-modal .modal-content {
    background: rgba(10, 25, 50, 0.98);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: var(--space-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    transform: translate3d(0, 20px, 0);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    will-change: transform, opacity;
}

.request-tool-modal.active .modal-content {
    transform: translate3d(0, 0, 0);
    opacity: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-dark-gray);
}

.modal-title {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--color-white);
}

.modal-close {
    background: none;
    border: none;
    font-size: var(--font-size-xl);
    color: var(--color-light-gray);
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.modal-close:hover {
    color: var(--color-white);
    transform: scale(1.1);
}

/* Tool Disclaimer */
.tool-disclaimer {
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: rgba(255, 77, 41, 0.08);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 77, 41, 0.2);
}

.disclaimer-content {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.disclaimer-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(255, 77, 41, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: var(--font-size-lg);
}

.disclaimer-text {
    flex: 1;
}

.disclaimer-text h3 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.disclaimer-text p {
    font-size: var(--font-size-sm);
    color: var(--color-light-gray);
    line-height: 1.5;
    margin: 0;
}

.disclaimer-text strong {
    color: var(--color-white);
}

.request-tool-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-label {
    font-weight: 600;
    color: var(--color-white);
    font-size: var(--font-size-sm);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.form-label i {
    color: var(--color-primary);
}

.form-input,
.form-textarea {
    background-color: rgba(15, 30, 55, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    color: var(--color-white);
    font-size: var(--font-size-sm);
    transition: border-color 0.2s ease, background-color 0.2s ease;
    width: 100%;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: rgba(15, 30, 55, 0.7);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-text {
    font-size: var(--font-size-xs);
    color: var(--color-light-gray);
    margin-top: var(--space-xs);
}

.form-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-top: var(--space-xs);
}

.form-checkbox {
    margin-top: 4px;
    accent-color: var(--color-primary);
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

.form-checkbox-label {
    font-size: var(--font-size-sm);
    color: var(--color-light-gray);
    cursor: pointer;
    line-height: 1.4;
}

.form-email-field {
    display: none;
    opacity: 0;
    margin-top: var(--space-sm);
    transition: opacity 0.3s ease;
}

.form-email-field.visible {
    display: block;
    opacity: 1;
}

.form-submit {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    color: var(--color-white);
    border: none;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.form-submit:hover {
    transform: translate3d(0, -3px, 0);
    box-shadow: 0 5px 15px rgba(255, 77, 41, 0.25);
}

.form-submit:disabled {
    background: rgba(128, 128, 128, 0.6);
    color: rgba(255, 255, 255, 0.7);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-response {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-weight: 600;
    margin-top: var(--space-md);
    text-align: center;
    display: none;
}

.form-response.success {
    background-color: rgba(39, 174, 96, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.form-response.error {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* Honeypot field (anti-spam) */
.honeypot-field {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
}

/* =============================================================================
 * 12. ANIMATIONS
 * ========================================================================== */

/* Core fade animations - optimized for GPU acceleration */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(-20px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(20px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Timeline specific animations */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulseDot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
}

/* Optimized pulse animation - reduced complexity */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 77, 41, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(255, 77, 41, 0.1);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 77, 41, 0);
    }
}

/* Optimized beat animation - reduced frames */
@keyframes beat {
    0%, 100% {
        transform: scale3d(1, 1, 1);
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

/* Shine effect - optimized for transform only */
@keyframes shine {
    to {
        transform: translateX(200%);
    }
}

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

/* Optimized flame flicker - less intensive */
@keyframes flameFlicker {
    0%, 100% {
        transform: scale3d(1, 1, 1);
        opacity: 1;
    }
    50% {
        transform: scale3d(1.05, 1.05, 1);
        opacity: 0.9;
    }
}

/* Scroll wheel animation - GPU accelerated */
@keyframes scrollWheel {
    0% {
        opacity: 1;
        transform: translate3d(-50%, 0, 0);
    }
    100% {
        opacity: 0;
        transform: translate3d(-50%, 15px, 0);
    }
}

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

/* Simplified cube float - reduced complexity */
@keyframes cubeFloat {
    0% {
        transform: translate3d(0, 0, 0) rotateX(0deg);
    }
    50% {
        transform: translate3d(0, -50px, 0) rotateX(180deg);
    }
    100% {
        transform: translate3d(0, 0, 0) rotateX(360deg);
    }
}

/* Animation utility classes - optimized with will-change */
.animate-fade-in {
    will-change: opacity, transform;
    animation: fadeIn 0.4s ease forwards;
}

.animate-pulse {
    will-change: box-shadow;
    animation: pulse 2s ease-in-out infinite;
}

.animate-beat {
    will-change: transform;
    animation: beat 0.6s ease-in-out;
    animation-fill-mode: forwards;
}

.animate-spin {
    will-change: transform;
    animation: spin 1s linear infinite;
}

.animate-float {
    will-change: transform;
    animation: float 4s ease-in-out infinite;
}

.animate-flame {
    will-change: transform, opacity;
    animation: flameFlicker 4s ease-in-out infinite;
}

/* Optimized hover effects - GPU accelerated */
.hover-scale {
    will-change: transform;
    transition: transform 0.2s ease;
}

.hover-scale:hover {
    transform: scale3d(1.05, 1.05, 1);
}

.hover-translate {
    will-change: transform;
    transition: transform 0.2s ease;
}

.hover-translate:hover {
    transform: translate3d(0, -5px, 0);
}

.hover-glow {
    will-change: box-shadow;
    transition: box-shadow 0.2s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 15px rgba(255, 77, 41, 0.3);
}

/* Optimized loading states */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid var(--color-primary);
    border-radius: 50%;
    will-change: transform;
    animation: spin 1s linear infinite;
}

.loading-pulse {
    will-change: box-shadow;
    animation: pulse 2s ease-in-out infinite;
}

/* Optimized transition effects */
.transition-all {
    transition: all var(--transition-normal);
}

.transition-transform {
    will-change: transform;
    transition: transform var(--transition-normal);
}

.transition-opacity {
    will-change: opacity;
    transition: opacity var(--transition-normal);
}

/* =============================================================================
 * 13. UTILITY CLASSES
 * ========================================================================== */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--color-primary);
}

.text-light {
    color: var(--color-light-gray);
}

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

.hidden {
    opacity: 0;
    visibility: hidden;
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Component loading styles */
.component-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    height: 60px;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.component-error {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    margin: 10px 0;
}

/* =============================================================================
 * 14. MEDIA QUERIES - MOBILE FIRST
 * ========================================================================== */

/* Base styles for mobile devices */
.section {
    padding: var(--space-xl) 0;
}

.section-title {
    font-size: var(--font-size-2xl);
}

/* Mobile optimizations */
@media (max-width: 767px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .section {
        padding: var(--space-xl) 0;
    }
    
    .btn {
        width: 100%;
    }
    
    /* Hero section mobile */
    .hero,
    .hero--legal {
        min-height: auto;
        padding: 90px 0 30px;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .tagline {
        align-self: center;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-heading {
        font-size: var(--font-size-3xl);
        text-align: center;
    }
    
    .hero-description p,
    .hero-description--legal p {
        font-size: var(--font-size-lg);
        text-align: center;
    }
    
    .hero-tagline {
        font-size: var(--font-size-md);
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-ctas {
        justify-content: center;
    }
    
    .highlight-container {
        flex-direction: column;
        margin-top: 1rem;
    }
    
    .vertical-line {
        width: 3px;
        height: 100%;
        left: 0;
    }
    
    .highlight-text {
        padding-left: 15px;
    }
    
    .tech-particles {
        width: 100%;
        opacity: 0.3;
    }
    
    .particle {
        transform: scale3d(0.6, 0.6, 1);
    }

    .scroll-indicator {
        display: none;
    }
    
    /* Projects mobile */
    .project-card {
        flex-direction: column;
    }
    
    .project-content {
        width: 100%;
        padding: var(--space-lg);
    }
    
    .project-title {
        font-size: var(--font-size-xl);
    }
    
    .project-subtitle {
        font-size: var(--font-size-md);
        margin-bottom: var(--space-md);
    }
    
    .project-description {
        font-size: var(--font-size-sm);
        margin-bottom: var(--space-md);
    }
    
    .project-features {
        gap: var(--space-sm);
        margin-bottom: var(--space-lg);
    }
    
    .project-features li {
        font-size: var(--font-size-sm);
    }
    
    .project-image {
        width: 100%;
        height: 250px;
    }
    
    .tools-animation,
    .software-animation {
        display: flex;
    }
    
    .btn-outline {
        width: 100%;
        justify-content: flex-start;
    }
    
    .projects {
        margin-bottom: var(--space-3xl);
    }
    
    /* Legal pages mobile */
    .highlight-box {
        padding: var(--space-lg);
        margin: var(--space-xl) 0;
    }
    
    .content-block {
        padding: var(--space-lg);
    }
    
    .content-block-title {
        font-size: var(--font-size-lg);
    }
    
    .content-block-text p {
        font-size: var(--font-size-sm);
    }
    
    /* Modals mobile */
    .request-tool-modal .modal-content,
    .changelog-modal .modal-content {
        padding: var(--space-lg);
    }
    
    .modal-title {
        font-size: var(--font-size-xl);
    }
    
    .form-submit {
        width: 100%;
    }
    
    .disclaimer-content,
    .changelog-intro-content {
        flex-direction: column;
        text-align: center;
    }
    
    .disclaimer-icon,
    .changelog-intro-icon {
        align-self: center;
    }
    
    .changelog-entry {
        padding-left: 40px;
    }
    
    .changelog-timeline::before {
        left: 12px;
    }
    
    .changelog-entry::before {
        left: 4px;
    }
    
    /* Timeline mobile */
    .timeline-line {
        left: 30px;
    }
    
    .timeline-item {
        padding-left: 70px;
        margin-bottom: var(--space-2xl);
    }
    
    .timeline-dot {
        left: 14px;
        width: 32px;
        height: 32px;
    }
    
    .timeline-date {
        position: relative;
        left: 0;
        top: 0;
        margin-bottom: var(--space-sm);
        display: inline-block;
    }
    
    .timeline-content {
        padding: var(--space-lg);
    }
    
    .timeline-title {
        font-size: var(--font-size-lg);
    }
    
    .timeline-title::before {
        display: none;
    }
    
    .timeline-text {
        font-size: var(--font-size-sm);
    }
    
    /* Values grid mobile */
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    /* Team grid mobile */
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .team-photo {
        height: 300px;
    }
    
    /* TOC mobile */
    .toc-list {
        grid-template-columns: 1fr;
    }
    
    /* Reduce animations on mobile for better performance */
    .cube {
        animation-duration: 50s;
        opacity: 0.3;
        backdrop-filter: none;
    }
    
    .btn-primary:hover::after {
        display: none;
    }
}

/* Tablet devices */
@media (min-width: 768px) {
    .btn {
        width: auto;
    }
    
    .hero-heading {
        font-size: var(--font-size-3xl);
    }
    
    .hero-actions {
        flex-direction: row;
        width: auto;
    }
    
    .hero-ctas {
        justify-content: flex-start;
    }
    
    .project-card {
        flex-direction: row;
        align-items: stretch;
    }
    
    .project-content {
        width: 60%;
    }
    
    .project-image {
        width: 40%;
        height: auto;
    }
    
    /* Timeline tablet */
    .timeline-container {
        max-width: 90%;
    }
    
    .timeline-line {
        left: 60px;
    }
    
    .timeline-item {
        padding-left: 100px;
    }
    
    .timeline-dot {
        left: 44px;
    }
    
    .timeline-date {
        left: 100px;
    }
}

/* Large desktop devices */
@media (min-width: 1200px) {
    .section {
        padding: var(--space-3xl) 0;
    }
    
    .section-title {
        font-size: var(--font-size-3xl);
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero--legal {
        padding: 140px 0 100px;
    }
    
    .hero-heading {
        font-size: var(--font-size-4xl);
    }
    
    .content-block {
        padding: var(--space-2xl);
    }
}

/* Reduced motion preferences - enhanced */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        transition-duration: 0.01ms;
        will-change: auto;
    }
    
    .animate-pulse,
    .animate-float,
    .animate-flame,
    .animate-spin,
    .cube,
    .flame-icon,
    .particle,
    .scroll-wheel {
        animation: none;
    }
    
    .loading-spinner {
        animation: none;
        border: 2px solid var(--color-primary);
    }
    
    .hero-content,
    .top-line,
    .highlight-container,
    .hero-description,
    .testimonial-block,
    .hero-ctas,
    .how-we-roll {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .project-card,
    .project-card::after,
    .project-image img,
    .project-image svg {
        transition: none;
    }
    
    .project-card:hover {
        transform: none;
    }
    
    .project-card:hover .project-image img,
    .project-card:hover .project-image svg {
        transform: none;
    }
    
    .btn-primary:hover::after {
        display: none;
    }
}