/* ===== CSS Variables - Dark Mode (Default) ===== */
:root {
    /* Primary Colors */
    --color-primary: #38A6A7;
    --color-primary-dark: #2D8586;
    --color-primary-light: #4DC8C9;
    
    /* Background Colors - Dark Mode */
    --color-bg: #0D1717;
    --color-bg-alt: #141E1E;
    --color-bg-card: #1A2626;
    --color-bg-dark: #0A1010;
    
    /* Text Colors - Dark Mode */
    --color-text: #F0F0F0;
    --color-text-secondary: #A0A0A0;
    --color-text-light: #FFFFFF;
    --color-text-muted: #707070;
    
    /* Accent Colors */
    --color-accent: #E8B339;
    --color-success: #2D9B4E;
    --color-warning: #E8A339;
    --color-error: #D14343;
    
    /* Theme-specific - Dark Mode */
    --header-bg: rgba(13, 23, 23, 0.95);
    --card-border: rgba(255, 255, 255, 0.08);
    --icon-filter: brightness(1.2);
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Typography */
    --font-primary: 'e-Ukraine', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3.5rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Shadows - Dark Mode */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.6);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    
    /* Container */
    --container-max: 1280px;
    --container-padding: 1.5rem;
}

/* ===== Light Mode Variables (Optional) ===== */
[data-theme="light"] {
    --color-bg: #F5F2ED;
    --color-bg-alt: #EBE8E3;
    --color-bg-card: #FFFFFF;
    --color-bg-dark: #1A1F1F;
    
    --color-text: #1A1A1A;
    --color-text-secondary: #5A5A5A;
    --color-text-muted: #8A8A8A;
    
    --color-primary-light: #38A6A7;
    
    --header-bg: rgba(245, 242, 237, 0.95);
    --card-border: rgba(0, 0, 0, 0.06);
    --icon-filter: none;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* ===== Theme Transition ===== */
html {
    transition: background-color 0.3s ease, color 0.3s ease;
}

html[data-theme] *,
html[data-theme] *::before,
html[data-theme] *::after {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
    max-width: 100vw;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 70px;
}

@media (min-width: 992px) {
    body {
        padding-top: 80px;
    }
}

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

ul {
    list-style: none;
}

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

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

/* ===== Container ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
}

/* ===== Header - Tesla Style ===== */
@keyframes headerSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes headerSlideUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

.header {
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.header.header-hidden {
    animation: headerSlideUp 0.35s ease-out forwards;
}

.header.header-visible {
    animation: headerSlideDown 0.35s ease-out forwards;
}

.header.header-scrolled {
    background: rgba(13, 23, 23, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    gap: var(--space-sm);
}

@media (min-width: 768px) {
    .header-content {
        gap: var(--space-lg);
    }
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-left: auto;
}

@media (min-width: 768px) {
    .header-right {
        gap: var(--space-lg);
    }
}

/* Logo - Minimal */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-icon {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.logo-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.2;
}

/* Hide logo text on very small screens */
@media (max-width: 360px) {
    .logo-title {
        display: none;
    }
}

/* Navigation */
.main-nav {
    display: none;
}

@media (min-width: 992px) {
    .main-nav {
        display: flex;
        align-items: center;
    }
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

@media (min-width: 1200px) {
    .nav-list {
        gap: var(--space-lg);
    }
}

.nav-link {
    font-size: var(--font-size-sm);
    font-weight: 400;
    color: var(--color-text-secondary);
    padding: var(--space-sm) 0;
    position: relative;
    transition: color var(--transition-fast);
}

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

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

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-left: auto;
}

@media (min-width: 992px) {
    .header-actions {
        margin-left: 0;
    }
}

/* Theme Toggle Button */
.theme-toggle {
    display: none; /* Hidden */
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--color-bg-alt);
    border: 1px solid var(--card-border);
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--color-text);
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-text-light);
}

[data-theme="dark"] .theme-toggle {
    background: var(--color-bg-card);
}

[data-theme="dark"] .theme-toggle:hover {
    background: var(--color-primary);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-base);
}

.theme-toggle:hover svg {
    transform: rotate(15deg);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    display: none;
}

/* Light mode - show moon icon (to switch to dark) */
[data-theme="light"] .theme-toggle .icon-moon {
    display: block;
}

/* Dark mode - show sun icon (to switch to light) */
[data-theme="dark"] .theme-toggle .icon-sun {
    display: block;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-xs);
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

@media (min-width: 992px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition-fast);
    transform-origin: center;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 14px 28px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-text-light);
}

/* ===== Footer - Tesla Style ===== */
.footer {
    background: var(--color-bg);
    color: var(--color-text-light);
    padding: var(--space-2xl) 0 var(--space-lg);
    position: relative;
    border-top: 1px solid var(--card-border);
}

@media (min-width: 768px) {
    .footer {
        padding: var(--space-3xl) 0 var(--space-lg);
    }
}

.footer::before {
    display: none;
}

.footer::after {
    display: none;
}

.footer-grid-bg {
    display: none;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl) var(--space-lg);
    margin-bottom: var(--space-2xl);
}

@media (min-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: var(--space-2xl);
    }
}

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

@media (min-width: 768px) {
    .footer-brand {
        grid-column: auto;
        max-width: 300px;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.footer-logo .logo-icon {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
}

.footer-logo span {
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--color-text);
}

.footer-description {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    font-size: var(--font-size-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
    color: var(--color-text-muted);
}

.footer-links h4::after,
.footer-contact h4::after {
    display: none;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    transition: color var(--transition-fast);
}

.footer-links a::before {
    display: none;
}

.footer-links a:hover {
    color: var(--color-text);
}

.footer-contact p {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-sm);
    line-height: 1.6;
}

.footer-link {
    color: var(--color-primary);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

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

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

.footer-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--card-border);
    text-align: center;
}

.footer-bottom p {
    color: var(--color-text-muted);
    font-size: var(--font-size-xs);
}

/* Footer Coming Soon Items */
.footer-coming-soon {
    color: var(--color-text-muted);
    opacity: 0.7;
    cursor: default;
}

.footer-coming-soon::after {
    content: " (скоро)";
    font-size: inherit;
    opacity: 0.8;
}

/* ===== Mobile Navigation ===== */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg);
    padding: var(--space-lg);
    padding-top: 90px; /* Space for header */
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    z-index: 998; /* Below header (1000) but above content */
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
}

.mobile-nav.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.mobile-nav .nav-link {
    display: block;
    padding: var(--space-md) 0;
    font-size: var(--font-size-lg);
    border-bottom: 1px solid var(--color-bg-alt);
    width: 100%;
}

/* ===== Background - Futuristic Animated ===== */
.home-page {
    position: relative;
    overflow-x: hidden;
}

.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg);
}

/* Matrix Canvas - Header + Hero combined */
#matrix-canvas {
    position: absolute;
    top: -80px; /* Extend up into header */
    left: 0;
    width: 100%;
    height: calc(100% + 80px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
    mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
}

/* Animated Gradient Orbs */
.bg-gradient::before,
.bg-gradient::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.bg-gradient::before {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(42, 124, 124, 0.5) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.bg-gradient::after {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(42, 124, 124, 0.3) 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -40px) scale(1.05);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }
    75% {
        transform: translate(40px, 30px) scale(1.02);
    }
}

/* Additional floating orb via hero pseudo-element */
.hero::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(42, 124, 124, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Multiple Floating Orbs */
.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

.bg-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(42, 124, 124, 0.4) 0%, transparent 60%);
    top: 10%;
    right: -10%;
    animation: orbFloat1 25s ease-in-out infinite;
}

.bg-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(42, 124, 124, 0.3) 0%, transparent 60%);
    bottom: 20%;
    left: -5%;
    animation: orbFloat2 30s ease-in-out infinite;
}

.bg-orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(74, 191, 191, 0.2) 0%, transparent 60%);
    top: 40%;
    left: 30%;
    animation: orbFloat3 20s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-50px, 80px) rotate(120deg); }
    66% { transform: translate(30px, -40px) rotate(240deg); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, -60px) scale(1.1); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0); opacity: 0.5; }
    50% { transform: translate(-40px, 40px); opacity: 0.8; }
}

/* Noise texture overlay for premium feel */
.home-page::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    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.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
    z-index: 0;
}

.home-page section,
.home-page footer {
    position: relative;
    z-index: 2;
}

.home-page .header {
    z-index: 1000;
}

/* ===== Hero Section - Tesla Style ===== */
.hero {
    min-height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: var(--space-2xl) var(--container-padding) var(--space-3xl);
    overflow: visible;
}

@media (min-width: 992px) {
    .hero {
        min-height: calc(100vh - 80px);
    }
}

.hero-content {
    max-width: 900px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    font-size: var(--font-size-xs);
    font-weight: 500;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: var(--space-lg);
    animation: fadeInUp 1s ease-out 0s both;
}

@media (min-width: 768px) {
    .hero-badge {
        font-size: var(--font-size-sm);
        letter-spacing: 0.3em;
    }
}

.hero-title {
    font-size: clamp(3rem, 12vw, 8rem);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-xl);
    line-height: 1;
    letter-spacing: -0.03em;
    animation: fadeInUp 1s ease-out 0.2s both;
    position: relative;
}

/* Glitch effect on title - continuous */
.hero-title::before,
.hero-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    overflow: hidden;
}

.hero-title::before {
    color: rgba(42, 124, 124, 0.6);
    text-shadow: 2px 0 rgba(42, 124, 124, 0.3);
    animation: glitch-1 8s ease-in-out infinite;
}

.hero-title::after {
    color: rgba(200, 255, 255, 0.4);
    text-shadow: -2px 0 rgba(255, 255, 255, 0.2);
    animation: glitch-2 6s ease-in-out infinite;
    animation-delay: 1s;
}

@keyframes glitch-1 {
    0%, 100% {
        clip-path: inset(0 0 100% 0);
        transform: translateX(0);
    }
    5% {
        clip-path: inset(80% 0 5% 0);
        transform: translateX(-4px);
    }
    10% {
        clip-path: inset(10% 0 75% 0);
        transform: translateX(3px);
    }
    15% {
        clip-path: inset(45% 0 40% 0);
        transform: translateX(-2px);
    }
    20% {
        clip-path: inset(0 0 100% 0);
        transform: translateX(0);
    }
    50% {
        clip-path: inset(0 0 100% 0);
        transform: translateX(0);
    }
    55% {
        clip-path: inset(25% 0 60% 0);
        transform: translateX(4px);
    }
    60% {
        clip-path: inset(70% 0 15% 0);
        transform: translateX(-3px);
    }
    65% {
        clip-path: inset(5% 0 85% 0);
        transform: translateX(2px);
    }
    70% {
        clip-path: inset(0 0 100% 0);
        transform: translateX(0);
    }
}

@keyframes glitch-2 {
    0%, 100% {
        clip-path: inset(0 0 100% 0);
        transform: translateX(0);
    }
    8% {
        clip-path: inset(60% 0 25% 0);
        transform: translateX(3px);
    }
    12% {
        clip-path: inset(15% 0 70% 0);
        transform: translateX(-2px);
    }
    16% {
        clip-path: inset(40% 0 45% 0);
        transform: translateX(2px);
    }
    20% {
        clip-path: inset(0 0 100% 0);
        transform: translateX(0);
    }
    60% {
        clip-path: inset(0 0 100% 0);
        transform: translateX(0);
    }
    65% {
        clip-path: inset(50% 0 35% 0);
        transform: translateX(-3px);
    }
    70% {
        clip-path: inset(20% 0 65% 0);
        transform: translateX(2px);
    }
    75% {
        clip-path: inset(75% 0 10% 0);
        transform: translateX(-2px);
    }
    80% {
        clip-path: inset(0 0 100% 0);
        transform: translateX(0);
    }
}

.hero-title span {
    color: var(--color-primary);
    text-shadow: 0 0 60px rgba(42, 124, 124, 0.5), 0 0 120px rgba(42, 124, 124, 0.3);
    display: inline-block;
    animation: glowPulse 3s ease-in-out infinite, fadeInUp 1s ease-out 0.3s both;
}

@keyframes glowPulse {
    0%, 100% {
        text-shadow: 0 0 40px rgba(42, 124, 124, 0.4), 0 0 80px rgba(42, 124, 124, 0.2);
    }
    50% {
        text-shadow: 0 0 80px rgba(42, 124, 124, 0.6), 0 0 140px rgba(42, 124, 124, 0.4), 0 0 200px rgba(42, 124, 124, 0.2);
    }
}

/* Hero Entrance Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: var(--color-text-secondary);
    font-weight: 300;
    font-style: italic;
    margin-bottom: var(--space-lg);
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-author strong {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-primary-light);
}

.hero-author span {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    font-weight: 400;
}

/* Scroll Indicator */
.hero-scroll {
    margin-top: auto;
    padding-top: var(--space-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    color: var(--color-text-muted);
    animation: fadeInUp 1s ease-out 0.8s both;
}

.hero-scroll span {
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.hero-scroll svg {
    width: 20px;
    height: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(6px);
    }
    60% {
        transform: translateY(3px);
    }
}

/* ===== Categories Section - Enhanced ===== */
.categories-section {
    padding: var(--space-2xl) 0 var(--space-3xl);
    background: transparent;
}

.categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 640px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: var(--space-sm);
    }
}

.category-card {
    background: transparent;
    border: 1px solid rgba(42, 124, 124, 0.15);
    border-radius: 3px;
    padding: var(--space-xl) var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-md);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

/* Top glow line */
.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Bottom accent */
.category-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-primary);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover {
    background: rgba(42, 124, 124, 0.05);
    border-color: rgba(42, 124, 124, 0.4);
}

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

.category-card:hover::after {
    transform: scaleX(1);
}

.category-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

.category-icon svg {
    width: 36px;
    height: 36px;
    stroke-width: 1.5;
}

.category-card h3 {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    line-height: 1.5;
    transition: color 0.3s ease;
}

.category-card:hover h3 {
    color: var(--color-text);
}

@media (min-width: 768px) {
    .category-card h3 {
        font-size: var(--font-size-base);
    }
}

.card-arrow {
    display: none;
}

/* ===== Content Sections - Enhanced ===== */
.content-section {
    padding: var(--space-3xl) 0;
    position: relative;
}

.content-section:not(:first-of-type) {
    border-top: 1px solid var(--card-border);
}

.content-section.section-alt {
    background: rgba(42, 124, 124, 0.02);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

/* Subsection Grid */
.subsection-grid {
    display: grid;
    gap: var(--space-md);
}

.subsection-grid.cols-2 {
    grid-template-columns: 1fr;
}

.subsection-grid.cols-3 {
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .subsection-grid.cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .subsection-grid.cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .subsection-grid {
        gap: var(--space-lg);
    }
    
    .subsection-grid.cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Subsection Card - Minimal */
.subsection-card {
    background: transparent;
    border: 1px solid rgba(42, 124, 124, 0.15);
    border-radius: 3px;
    padding: var(--space-lg) var(--space-xl);
    display: flex;
    text-decoration: none;
    color: inherit;
    position: relative;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: var(--space-lg);
    transition: all 0.3s ease;
    position: relative;
}

.subsection-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--color-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.subsection-card:hover {
    border-color: rgba(42, 124, 124, 0.4);
    background: rgba(42, 124, 124, 0.03);
}

.subsection-card:hover::before {
    transform: scaleY(1);
}

.subsection-icon {
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid rgba(42, 124, 124, 0.2);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.subsection-card:hover .subsection-icon {
    border-color: var(--color-primary);
    background: rgba(42, 124, 124, 0.1);
}

.subsection-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.5;
}

.subsection-card h4 {
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--color-text-secondary);
    line-height: 1.4;
    transition: color 0.3s ease;
}

.subsection-card:hover h4 {
    color: var(--color-text);
}

/* Clickable card indicator */
.card-link-indicator {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    width: 20px;
    height: 20px;
    color: var(--color-primary);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.card-link-indicator svg {
    width: 100%;
    height: 100%;
}

.card-link-indicator .tooltip {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: var(--color-primary);
    color: var(--color-bg);
    font-size: var(--font-size-xs);
    font-weight: 500;
    white-space: nowrap;
    border-radius: 3px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.3s ease;
    z-index: 10;
}

.card-link-indicator .tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    right: 8px;
    border: 5px solid transparent;
    border-bottom-color: var(--color-primary);
}

.subsection-card.clickable:hover .card-link-indicator {
    opacity: 1;
    transform: scale(1.1);
}

.subsection-card.clickable:hover .card-link-indicator .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.subsection-card.clickable {
    cursor: pointer;
}

/* ===== Section Teaser - Enhanced ===== */
.section-teaser .teaser-content {
    text-align: center;
}

.teaser-lead {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 auto var(--space-2xl);
    line-height: 1.8;
    font-weight: 300;
}

.teaser-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 640px) {
    .teaser-stats {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

.teaser-stat {
    text-align: center;
    padding: var(--space-md) 0;
    position: relative;
}

.teaser-stat .stat-value {
    display: block;
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.1;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}

.teaser-stat .stat-value small {
    font-size: 0.4em;
    font-weight: 400;
    color: var(--color-text-muted);
    margin-left: 0.1em;
}

.teaser-stat .stat-unit {
    display: block;
    font-size: var(--font-size-lg);
    font-weight: 500;
    color: var(--color-primary);
    margin-top: -0.5rem;
    margin-bottom: var(--space-xs);
}

.teaser-stat .stat-label {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.section-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-primary);
    color: var(--color-primary);
    font-weight: 500;
    font-size: var(--font-size-sm);
    border-radius: 0;
    margin-top: var(--space-xl);
    transition: all 0.3s ease;
}

.section-cta:hover {
    color: var(--color-text);
    border-color: var(--color-text);
}

.section-cta svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.section-cta:hover svg {
    transform: translateX(4px);
}

/* ===== Main Content Placeholder ===== */
main {
    min-height: 60vh;
}

/* ===== Utilities ===== */
.text-center {
    text-align: center;
}

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

/* ===== Scroll-triggered Hover Animation ===== */
.screening-card,
.uif-card,
.reform-visual-card,
.visual-block,
.visual-card,
.sector-card,
.highlight-box,
.project-item,
.chapter-item,
.city-item,
.city-group,
.teaser-card,
.direction-card,
.stat-card,
.big-stat,
.partner-logo,
.reform-summary-stat,
.category-card,
.subsection-card {
    transition: border-color 0.6s ease-out, 
                box-shadow 0.6s ease-out,
                transform 0.6s ease-out;
}

/* When element is in view - apply hover effect */
.screening-card.in-view,
.uif-card.in-view,
.reform-visual-card.in-view,
.visual-block.in-view,
.visual-card.in-view,
.sector-card.in-view,
.highlight-box.in-view,
.project-item.in-view,
.chapter-item.in-view,
.city-item.in-view,
.city-group.in-view,
.teaser-card.in-view,
.direction-card.in-view,
.stat-card.in-view,
.big-stat.in-view,
.partner-logo.in-view,
.reform-summary-stat.in-view {
    border-color: var(--color-primary);
    box-shadow: 0 4px 20px rgba(56, 166, 167, 0.15);
    transform: translateY(-2px);
}

/* Category card in-view - mirror all hover effects */
.category-card.in-view {
    background: rgba(42, 124, 124, 0.05);
    border-color: rgba(42, 124, 124, 0.4);
    box-shadow: 0 4px 20px rgba(56, 166, 167, 0.15);
    transform: translateY(-2px);
}

.category-card.in-view::before {
    opacity: 1;
}

.category-card.in-view::after {
    transform: scaleX(1);
}

.category-card.in-view .category-icon {
    transform: scale(1.1);
}

.category-card.in-view h3 {
    color: var(--color-text);
}

/* Subsection card in-view - mirror all hover effects */
.subsection-card.in-view {
    border-color: rgba(42, 124, 124, 0.4);
    background: rgba(42, 124, 124, 0.03);
    box-shadow: 0 4px 20px rgba(56, 166, 167, 0.1);
    transform: translateY(-2px);
}

.subsection-card.in-view::before {
    transform: scaleY(1);
}

.subsection-card.in-view .subsection-icon {
    border-color: var(--color-primary);
    background: rgba(42, 124, 124, 0.1);
}

.subsection-card.in-view h4 {
    color: var(--color-text);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .screening-card,
    .uif-card,
    .reform-visual-card,
    .visual-block,
    .visual-card,
    .sector-card,
    .highlight-box,
    .project-item,
    .chapter-item,
    .city-item,
    .city-group,
    .teaser-card,
    .direction-card,
    .stat-card,
    .big-stat,
    .partner-logo,
    .reform-summary-stat,
    .category-card,
    .subsection-card {
        transition: none;
    }
    
    .in-view {
        transform: none !important;
    }
    
    .content-block {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Mobile - disable transform to prevent overflow */
@media (max-width: 480px) {
    .in-view {
        transform: none !important;
    }
    
    .category-card.in-view,
    .subsection-card.in-view,
    .reform-visual-card.in-view {
        transform: none !important;
    }
    
    .category-card.in-view .category-icon {
        transform: none;
    }
}

