/* ===== CUSTOM PROPERTIES ===== */
:root {
    --primary-color: #047857;
    --secondary-color: #64748b;
    --accent-color: #0891b2;
    --success-color: #059669;
    --info-color: #0891b2;
    --warning-color: #d97706;
    --danger-color: #dc2626;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --white-color: #ffffff;
    --black-color: #000000;
    
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 80%, #334155 100%);
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-hero: #ffffff;
    --border-color: #e2e8f0;
    --shadow: 0 1px 3px 0 rgba(30, 41, 59, 0.1), 0 1px 2px 0 rgba(30, 41, 59, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(30, 41, 59, 0.1), 0 4px 6px -2px rgba(30, 41, 59, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(30, 41, 59, 0.1), 0 10px 10px -5px rgba(30, 41, 59, 0.04);
    
    --garage-primary: #1e293b;
    --garage-secondary: #334155;
    --garage-accent: rgb(8, 145, 178);
    --garage-light: #f8fafc;
    --garage-dark: #1e293b;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark theme */
[data-theme="dark"] {
    --bg-primary: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
    --bg-secondary: linear-gradient(135deg, #161b22 0%, #21262d 100%);
    --bg-hero: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --border-color: #30363d;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    
    --garage-light: #21262d;
    --garage-dark: #f0f6fc;
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: var(--transition);
}

.container {
    max-width: 1200px;
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
    padding: 0;
}

.theme-toggle:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.6);
    background-color: rgba(255, 255, 255, 0.1);
}

.theme-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

/* Theme toggle in dark mode */
[data-theme="dark"] .theme-toggle {
    border-color: rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .theme-toggle:hover {
    border-color: rgba(255, 255, 255, 0.7);
    background-color: rgba(255, 255, 255, 0.15);
}

/* ===== NAVIGATION ===== */
.navbar {
    background: linear-gradient(135deg, var(--garage-primary) 0%, var(--garage-secondary) 100%) !important;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: var(--transition-fast);
    position: relative;
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: linear-gradient(90deg, var(--garage-accent), #06b6d4);
    transition: var(--transition-fast);
    border-radius: 1px;
}

.navbar-nav .nav-link:hover {
    color: white !important;
    transform: translateY(-1px);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* ===== NAVIGATION LOGIN BUTTON ===== */
.navbar .btn-sm {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

/* Mobile navigation buttons - before hamburger */
.navbar .d-lg-none.d-flex {
    gap: 0.5rem;
}

.navbar .d-lg-none .btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 0.875rem;
}

.navbar .d-lg-none .btn i {
    margin: 0;
}

/* Mobile menu login link styling */
.navbar-nav .nav-link.fw-bold.text-info {
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.1) 0%, rgba(8, 145, 178, 0.05) 100%);
    border-radius: 6px;
    margin: 0.25rem 0;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.navbar-nav .nav-link.fw-bold.text-info:hover {
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.2) 0%, rgba(8, 145, 178, 0.1) 100%);
    transform: translateX(4px);
}

/* Mobile divider styling */
.navbar-nav .dropdown-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0.75rem 1rem;
}

/* Responsivní chování pro přihlašovací tlačítko */
@media (max-width: 991px) {
    .navbar-nav .nav-item .btn-outline-light {
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
        width: 100%;
        text-align: center;
    }
    
    .navbar-nav .nav-item.ms-2 {
        margin-left: 0 !important;
    }
    
    /* Mobile navbar spacing improvements */
    .navbar-brand {
        margin-right: auto;
    }
    
    .navbar-toggler {
        border: 1px solid rgba(255, 255, 255, 0.3);
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
    }
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    /* Light theme - světlé pozadí */
    background: linear-gradient(135deg, 
        #f8fafc 0%, 
        #e2e8f0 35%, 
        #cbd5e1 70%, 
        #94a3b8 100%
    );
}

/* Dark theme hero background - stejné jako střídavé sekce */
[data-theme="dark"] .hero-section {
    background: linear-gradient(135deg, #161b22 0%, #21262d 100%);
}

/* Light theme overlay - geometrický vzor s přechodem */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        /* Geometrický vzor */
        radial-gradient(circle at 20% 80%, rgba(8, 145, 178, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(30, 41, 59, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(8, 145, 178, 0.05) 0%, transparent 50%),
        /* Hlavní přechod */
        linear-gradient(
            135deg,
            rgba(248, 250, 252, 0.95) 0%,
            rgba(241, 245, 249, 0.9) 25%,
            rgba(226, 232, 240, 0.85) 50%,
            rgba(203, 213, 225, 0.9) 75%,
            rgba(148, 163, 184, 0.95) 100%
        );
    z-index: 1;
}

/* Dark theme overlay - skutečně tmavý s jemnými akcenty */
[data-theme="dark"] .hero-overlay {
    background: 
        /* Velmi jemné světelné akcenty */
        radial-gradient(circle at 25% 25%, rgba(8, 145, 178, 0.06) 0%, transparent 25%),
        radial-gradient(circle at 75% 75%, rgba(6, 182, 212, 0.04) 0%, transparent 30%),
        radial-gradient(circle at 50% 80%, rgba(45, 55, 72, 0.3) 0%, transparent 40%),
        /* Hlavní tmavý overlay - téměř černý */
        linear-gradient(
            135deg,
            rgba(15, 23, 42, 0.98) 0%,
            rgba(30, 41, 59, 0.95) 25%,
            rgba(15, 23, 42, 0.92) 50%,
            rgba(30, 41, 59, 0.95) 75%,
            rgba(15, 23, 42, 0.98) 100%
        );
}

/* Animované geometrické vzory pro hero overlay */
.hero-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.4;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent 0px,
            transparent 40px,
            rgba(8, 145, 178, 0.03) 40px,
            rgba(8, 145, 178, 0.03) 80px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent 0px,
            transparent 60px,
            rgba(30, 41, 59, 0.02) 60px,
            rgba(30, 41, 59, 0.02) 120px
        );
    animation: patternMove 20s linear infinite;
}

[data-theme="dark"] .hero-overlay::before {
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent 0px,
            transparent 60px,
            rgba(8, 145, 178, 0.02) 60px,
            rgba(8, 145, 178, 0.02) 120px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent 0px,
            transparent 80px,
            rgba(6, 182, 212, 0.015) 80px,
            rgba(6, 182, 212, 0.015) 160px
        );
    opacity: 0.2;
}

/* Floating bubbles efekt pro tmavé téma */
[data-theme="dark"] .hero-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(8, 145, 178, 0.04) 0%, transparent 1.5%),
        radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.03) 0%, transparent 2%),
        radial-gradient(circle at 30% 70%, rgba(8, 145, 178, 0.025) 0%, transparent 1.5%),
        radial-gradient(circle at 70% 30%, rgba(6, 182, 212, 0.02) 0%, transparent 2.5%),
        radial-gradient(circle at 50% 50%, rgba(8, 145, 178, 0.015) 0%, transparent 3%);
    animation: floatingBubbles 30s ease-in-out infinite;
    opacity: 0.4;
}

@keyframes floatingBubbles {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) scale(1.1);
        opacity: 0.8;
    }
}

@keyframes patternMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(120px, 120px);
    }
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Light theme text - černý text na světlém pozadí */
.hero-section h1,
.hero-section .display-4 {
    color: #1e293b !important;
    text-shadow: 
        0 1px 2px rgba(255, 255, 255, 0.8),
        0 2px 4px rgba(255, 255, 255, 0.6);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-section p,
.hero-section .lead {
    color: #334155 !important;
    text-shadow: 
        0 1px 2px rgba(255, 255, 255, 0.6);
    font-weight: 500;
    line-height: 1.6;
    font-size: 1.125rem;
}

.hero-section .text-white {
    color: #1e293b !important;
    text-shadow: 
        0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Dark theme text - bílý text na tmavém pozadí */
[data-theme="dark"] .hero-section h1,
[data-theme="dark"] .hero-section .display-4 {
    color: #ffffff !important;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.9),
        0 4px 8px rgba(0, 0, 0, 0.8),
        0 8px 16px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .hero-section p,
[data-theme="dark"] .hero-section .lead {
    color: #f1f5f9 !important;
    text-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.9),
        0 2px 6px rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] .hero-section .text-white {
    color: #ffffff !important;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.9),
        0 4px 8px rgba(0, 0, 0, 0.8);
}

/* Enhanced image container */
.hero-image-container {
    position: relative;
    animation: float 6s ease-in-out infinite;
    z-index: 2;
}

.hero-image-container::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(45deg, 
        rgba(8, 145, 178, 0.15), 
        rgba(14, 116, 144, 0.15)
    );
    border-radius: 20px;
    z-index: -1;
}

[data-theme="dark"] .hero-image-container::before {
    background: linear-gradient(45deg, 
        rgba(8, 145, 178, 0.2), 
        rgba(14, 116, 144, 0.2)
    );
}

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

/* ===== SECTIONS ===== */
section {
    position: relative;
    background: var(--bg-primary);
}

section:nth-child(even) {
    background: var(--bg-secondary);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--garage-primary);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--garage-accent), #0ea5e9);
    border-radius: 2px;
}

/* ===== FEATURE ICONS ===== */
.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--garage-accent);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2rem;
    color: white;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    position: relative;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--garage-accent), #0ea5e9);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.feature-icon:hover {
    transform: translateY(-5px) scale(1.05);
}

.feature-icon:hover::before {
    opacity: 1;
}

/* ===== SERVICE CARDS ===== */
.service-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--garage-primary), var(--garage-secondary));
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--garage-accent);
}

.service-icon i {
    color: var(--garage-accent);
}

.service-card h5 {
    color: var(--garage-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: var(--garage-accent);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0;
    width: 12px;
    height: 12px;
    background-color: var(--garage-accent);
    border-radius: 50%;
    transform: translateX(-50%);
}

.timeline-year {
    font-weight: 700;
    color: var(--garage-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.timeline-content h6 {
    color: var(--garage-primary);
    margin-bottom: 0.25rem;
}

/* ===== GALLERY ===== */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    transition: var(--transition);
}

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

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: var(--transition);
}

/* Hide empty gallery overlays */
.gallery-overlay h6:empty {
    display: none;
}

.gallery-overlay:has(h6:empty) {
    display: none;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* ===== DOCUMENTS ===== */
.documents-container {
    background-color: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.document-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: var(--bg-primary);
    border-radius: 10px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.document-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow);
}

.document-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 1rem;
}

.document-item h6 {
    margin-bottom: 0.25rem;
    color: var(--garage-primary);
}

/* ===== CONTACT ===== */
.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    border-radius: 10px;
    background: var(--white-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.contact-item i {
    font-size: 2rem;
    color: var(--garage-accent);
    margin-bottom: 1rem;
}

.contact-item h6 {
    color: var(--garage-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.contact-item a {
    color: var(--garage-accent);
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--garage-primary);
}

[data-theme="dark"] .contact-item {
    background: var(--garage-light);
    border: 1px solid var(--border-color);
}

/* ===== MAP CONTAINER ===== */
.map-container {
    margin-top: 2rem;
}

.map-container .ratio {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Dark theme adjustments for map section */
[data-theme="dark"] .map-container {
    background: var(--garage-light);
    border-color: var(--border-color);
}

[data-theme="dark"] .map-info {
    color: var(--text-secondary);
}

/* ===== HERO BUTTON STYLES ===== */
.hero-section .btn {
    font-weight: 600;
    padding: 0.875rem 2.5rem;
    border-radius: 50px;
    text-transform: none;
    letter-spacing: 0.025em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 10;
    border-width: 2px;
    font-size: 1rem;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Primary button - vysoký kontrast */
.hero-section .btn-primary {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    border-color: #0891b2;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.hero-section .btn-primary:hover {
    background: linear-gradient(135deg, #0e7490 0%, #155e75 100%);
    border-color: #0e7490;
    transform: translateY(-3px);
    box-shadow: 
        0 8px 20px rgba(8, 145, 178, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.2);
    color: #ffffff !important;
}

.hero-section .btn-primary:focus {
    background: linear-gradient(135deg, #0e7490 0%, #155e75 100%);
    border-color: #0e7490;
    box-shadow: 
        0 0 0 0.25rem rgba(8, 145, 178, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.15);
    color: #ffffff !important;
}

.hero-section .btn-primary:active {
    transform: translateY(-1px);
    color: #ffffff !important;
}

/* Outline button - pro světlé téma */
.hero-section .btn-outline-light {
    background: rgba(71, 85, 105, 0.05);
    backdrop-filter: blur(10px);
    border-color: #1e293b;
    color: #1e293b !important;
    text-shadow: none;
    border-width: 2px;
}

.hero-section .btn-outline-light i {
    color: #1e293b !important;
}

.hero-section .btn-outline-light:hover {
    background: #1e293b;
    backdrop-filter: blur(10px);
    border-color: #1e293b;
    transform: translateY(-3px);
    box-shadow: 
        0 8px 20px rgba(30, 41, 59, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.2);
    color: #ffffff !important;
}

.hero-section .btn-outline-light:hover i {
    color: #ffffff !important;
}

.hero-section .btn-outline-light:focus {
    background: #1e293b;
    border-color: #1e293b;
    box-shadow: 
        0 0 0 0.25rem rgba(30, 41, 59, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.15);
    color: #ffffff !important;
}

.hero-section .btn-outline-light:focus i {
    color: #ffffff !important;
}

.hero-section .btn-outline-light:active {
    transform: translateY(-1px);
    color: #ffffff !important;
}

.hero-section .btn-outline-light:active i {
    color: #ffffff !important;
}

/* Dark theme button adjustments */
[data-theme="dark"] .hero-section .btn-primary {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    border-color: #06b6d4;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.25),
        0 2px 4px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .hero-section .btn-primary:hover {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    border-color: #0891b2;
    box-shadow: 
        0 8px 20px rgba(6, 182, 212, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .hero-section .btn-outline-light {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.9);
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .hero-section .btn-outline-light i {
    color: #ffffff !important;
}

[data-theme="dark"] .hero-section .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    box-shadow: 
        0 8px 20px rgba(255, 255, 255, 0.2),
        0 4px 8px rgba(0, 0, 0, 0.3);
    color: #ffffff !important;
}

[data-theme="dark"] .hero-section .btn-outline-light:hover i {
    color: #ffffff !important;
}

[data-theme="dark"] .hero-section .btn-outline-light:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
    color: #ffffff !important;
}

[data-theme="dark"] .hero-section .btn-outline-light:focus i {
    color: #ffffff !important;
}

/* Enhanced styles for dark theme */
[data-theme="dark"] .hero-section h1,
[data-theme="dark"] .hero-section .display-4 {
    color: #ffffff !important;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] .hero-section p,
[data-theme="dark"] .hero-section .lead {
    color: #ffffff !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] .hero-section .btn-primary {
    background: var(--garage-accent);
    border-color: var(--garage-accent);
    color: white !important;
    box-shadow: 0 4px 15px rgba(8, 145, 178, 0.4);
}

[data-theme="dark"] .hero-section .btn-primary:hover {
    background: #0ea5e9;
    border-color: #0ea5e9;
    color: white !important;
    box-shadow: 0 6px 20px rgba(8, 145, 178, 0.5);
}

[data-theme="dark"] .hero-section .btn-outline-light {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.8);
    color: white !important;
}

[data-theme="dark"] .hero-section .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: white;
    color: white !important;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--garage-primary) !important;
    color: white;
}

footer h5, footer h6 {
    color: white;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-item {
        padding-left: 1.5rem;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Hero buttons na mobilu - plná šířka */
    .hero-section .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    /* Very small screens - hide text, show only icon */
    .mobile-login-btn span {
        display: none !important;
    }
    
    .mobile-login-btn {
        padding: 0.5rem;
        width: 40px;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* ===== SMOOTH SCROLLING ===== */
html {
    scroll-behavior: smooth;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== THEME SPECIFIC OVERRIDES ===== */
[data-theme="dark"] .navbar {
    background: linear-gradient(135deg, #0d1117 0%, #21262d 100%) !important;
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .hero-section {
    background: var(--bg-hero);
}

[data-theme="dark"] .hero-section::after {
    background: linear-gradient(180deg, transparent 0%, rgba(13, 17, 23, 0.8) 100%);
}

[data-theme="dark"] .section-title {
    color: var(--text-primary);
}

[data-theme="dark"] .service-card {
    background: #161b22;
    border-color: var(--border-color);
}

[data-theme="dark"] .service-card h5,
[data-theme="dark"] .timeline-year,
[data-theme="dark"] .timeline-content h6,
[data-theme="dark"] .contact-item h6,
[data-theme="dark"] .document-item h6 {
    color: var(--text-primary);
}

[data-theme="dark"] footer {
    background: linear-gradient(135deg, #0d1117 0%, #21262d 100%) !important;
    border-top: 1px solid var(--border-color);
}

[data-theme="dark"] .card {
    background: #161b22;
    border-color: var(--border-color);
}

[data-theme="dark"] .alert-info {
    background: #1f2937;
    border-color: #374151;
    color: #93c5fd;
}

[data-theme="dark"] .documents-container {
    background: #161b22;
}

[data-theme="dark"] .contact-form {
    background: #161b22;
}

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

[data-theme="dark"] .service-icon {
    color: var(--garage-accent);
}

[data-theme="dark"] .service-icon i {
    color: var(--garage-accent);
}

[data-theme="dark"] .bg-light {
    background: var(--bg-secondary) !important;
}

/* Dark theme Google Maps filter */
[data-theme="dark"] #google-map {
    filter: invert(90%) hue-rotate(180deg);
    border-radius: 10px;
}

/* Reset filter for map controls */
[data-theme="dark"] #google-map img {
    filter: invert(100%) hue-rotate(180deg);
}

/* ===== LOADING ANIMATION ===== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== LEGAL PAGES STYLING ===== */
/* Ensure legal pages have the same background as main page */
main {
    background: transparent;
    min-height: 100vh;
}

/* Legal page cards should match main page styling */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

/* Text colors for legal pages */
.text-garage-primary {
    color: var(--garage-primary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Button styling for legal pages */
.btn-primary {
    background: linear-gradient(135deg, var(--garage-primary), var(--garage-secondary));
    border: none;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
    border-color: var(--garage-primary);
    color: var(--garage-primary);
}

.btn-outline-primary:hover {
    background: var(--garage-primary);
    border-color: var(--garage-primary);
    color: white;
}

/* Alert styling for legal pages */
.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--text-primary);
}

/* Links in legal pages */
a {
    color: var(--garage-primary);
    transition: var(--transition);
}

a:hover {
    color: var(--garage-secondary);
}

/* ===== DARK MODE IMPROVEMENTS FOR LEGAL PAGES ===== */
/* Better text contrast for legal pages */
.card-body h1,
.card-body h2,
.card-body h3,
.card-body h4,
.card-body h5,
.card-body h6 {
    color: var(--text-primary) !important;
}

.card-body p,
.card-body li {
    color: var(--text-primary) !important;
    opacity: 0.9;
}

.card-body strong {
    color: var(--text-primary) !important;
    font-weight: 600;
}

/* Dark theme specific adjustments for legal pages */
[data-theme="dark"] .card {
    background: #1f2937 !important;
    border-color: #374151 !important;
}

[data-theme="dark"] .card-body {
    color: #f9fafb !important;
}

[data-theme="dark"] .card-body h1,
[data-theme="dark"] .card-body h2,
[data-theme="dark"] .card-body h3,
[data-theme="dark"] .card-body h4,
[data-theme="dark"] .text-garage-primary {
    color: #60a5fa !important;
}

[data-theme="dark"] .card-body p,
[data-theme="dark"] .card-body li,
[data-theme="dark"] .card-body strong {
    color: #e5e7eb !important;
}

[data-theme="dark"] .text-muted {
    color: #9ca3af !important;
}

[data-theme="dark"] .alert-info {
    background: #1e3a8a !important;
    border-color: #1e40af !important;
    color: #bfdbfe !important;
}

[data-theme="dark"] .alert-info .alert-heading {
    color: #93c5fd !important;
}

/* ===== ICON STYLES ===== */
.bi {
    color: var(--garage-accent);
}

/* Specific icon overrides where needed */
.navbar .bi,
.theme-toggle .bi {
    color: white;
}

.hero-section .bi {
    color: white;
}

/* Google Drive icon specific styling */
.bi-google,
.google-drive-icon {
    color: var(--garage-accent) !important;
}

/* Document icons */
.document-item .bi,
.documents-container .bi {
    color: var(--garage-accent);
}

/* Contact icons */
.contact-item .bi {
    color: var(--garage-accent);
}

/* Service/activity icons */
.service-icon .bi,
.service-card .bi {
    color: var(--garage-accent);
}

/* Dark theme adjustments */
[data-theme="dark"] .bi {
    color: var(--garage-accent);
}

[data-theme="dark"] .navbar .bi,
[data-theme="dark"] .theme-toggle .bi,
[data-theme="dark"] .hero-section .bi {
    color: white;
}

/* ===== ACCESSIBILITY & FOCUS STYLES ===== */
.btn:focus,
.btn:focus-visible {
    outline: 2px solid var(--garage-accent);
    outline-offset: 2px;
}

.hero-section .btn:focus,
.hero-section .btn:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Ensure all clickable elements are properly accessible */
a, button, .btn {
    cursor: pointer;
}

a:focus,
button:focus {
    outline: 2px solid var(--garage-accent);
    outline-offset: 2px;
}

/* Skip to content link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--garage-primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 9999;
}

.skip-link:focus {
    top: 6px;
}

/* ===== MAP SECTION STYLES ===== */
.map-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.map-info {
    color: var(--text-secondary);
}

/* External buttons styles - pro Google Drive a Google Maps */
.btn-outline-primary.external-btn,
.map-container .btn-outline-primary,
.documents-container .btn-outline-primary {
    border-color: var(--garage-accent);
    color: var(--garage-accent);
    background: transparent;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary.external-btn:hover,
.map-container .btn-outline-primary:hover,
.documents-container .btn-outline-primary:hover {
    background: var(--garage-accent);
    border-color: var(--garage-accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.3);
}

.btn-outline-primary.external-btn:focus,
.map-container .btn-outline-primary:focus,
.documents-container .btn-outline-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(8, 145, 178, 0.25);
    border-color: var(--garage-accent);
    color: var(--garage-accent);
}

/* Dark theme pro externí tlačítka */
[data-theme="dark"] .btn-outline-primary.external-btn,
[data-theme="dark"] .map-container .btn-outline-primary,
[data-theme="dark"] .documents-container .btn-outline-primary {
    border-color: var(--garage-accent);
    color: var(--garage-accent);
    background: rgba(8, 145, 178, 0.1);
}

[data-theme="dark"] .btn-outline-primary.external-btn:hover,
[data-theme="dark"] .map-container .btn-outline-primary:hover,
[data-theme="dark"] .documents-container .btn-outline-primary:hover {
    background: var(--garage-accent);
    border-color: var(--garage-accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.4);
}

[data-theme="dark"] .btn-outline-primary.external-btn:focus,
[data-theme="dark"] .map-container .btn-outline-primary:focus,
[data-theme="dark"] .documents-container .btn-outline-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(8, 145, 178, 0.4);
    border-color: var(--garage-accent);
    color: var(--garage-accent);
    background: rgba(8, 145, 178, 0.1);
}

/* ===== GOOGLE DRIVE SECTION STYLES ===== */
.documents-container .card-title,
.card-body .card-title {
    color: var(--garage-accent) !important;
    font-weight: 600;
}

.card-header h5 {
    color: var(--garage-accent) !important;
}

/* Google Drive specific styles */
.bi-google {
    color: var(--garage-accent) !important;
}

/* Dark theme adjustments for Google Drive section */
[data-theme="dark"] .documents-container .card,
[data-theme="dark"] .card {
    background: var(--garage-light);
    border-color: var(--border-color);
}

[data-theme="dark"] .documents-container .card-title,
[data-theme="dark"] .card-body .card-title {
    color: var(--garage-accent) !important;
}

[data-theme="dark"] .card-header {
    background: rgba(8, 145, 178, 0.1);
    border-color: var(--border-color);
}

[data-theme="dark"] .card-header h5 {
    color: var(--garage-accent) !important;
}

/* ===== EXTERNAL LINK ICONS ===== */
.bi-box-arrow-up-right {
    font-size: 1rem !important;
    vertical-align: middle;
}

.bi-box-arrow-up-right.small {
    font-size: 0.95rem !important;
}

/* Specific styling for external link icons in documents */
.document-item .bi-box-arrow-up-right {
    font-size: 0.95rem !important;
    opacity: 0.9;
}

/* External link icons in buttons */
.btn .bi-box-arrow-up-right {
    font-size: 1rem !important;
}
