/**
 * Moderní CSS styly pro web katedry Ekonomiky a řízení stavebnictví ČVUT
 * Inspirováno nejlepšími praktikami současného webdesignu
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Source+Sans+Pro:wght@300;400;600;700&display=swap');

/* Moderní CSS proměnné */
:root {
    /* Modrá paleta (hlavní) */
    --primary-color: #1E3A8A;
    --primary-light: #3B82F6;
    --primary-dark: #1E40AF;
    --wine-color: #2563EB;
    --wine-light: #60A5FA;
    --wine-dark: #1D4ED8;
    --burgundy-color: #1E40AF;
    --wine-accent: #3B82F6;
    --wine-pale: #EFF6FF;

    /* Moderní neutraly */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Funkční barvy */
    --success-color: #10b981;
    --info-color: #3b82f6;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;

    /* Radius systém */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;

    /* Spacing systém */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Typography */
    --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-family-secondary: 'Source Sans Pro', sans-serif;

    /* Line heights */
    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;
}

/* Modernizovaný reset */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    line-height: 1.5;
}

body {
    font-family: var(--font-family-primary);
    font-weight: 400;
    line-height: var(--leading-normal);
    color: var(--gray-800);
    background-color: white;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Zarovnání všech textů do bloku */
p, .card-text, .text-muted, .lead {
    text-align: justify;
}

/* Moderní hlavička */
header.header-custom,
header.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--wine-color) 50%, var(--wine-dark) 100%) !important;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

header .container {
    max-width: 1200px;
}

header img {
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

header img:hover {
    transform: scale(1.05);
}

header h1 {
    font-family: var(--font-family-secondary);
    font-weight: 600;
    letter-spacing: -0.025em;
}

header p {
    font-weight: 300;
    opacity: 0.9;
}

/* Modernizovaná navigace */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(30, 58, 138, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Navigační odkazy - tmavý text na světlém pozadí */
.navbar .nav-link {
    color: #1E3A8A !important;
    font-weight: 600;
}

.navbar .nav-link:hover {
    color: #1E3A8A !important;
    background: rgba(30, 58, 138, 0.1) !important;
}

.navbar .nav-link.active {
    color: white !important;
    background: linear-gradient(45deg, #1E3A8A, #3B82F6) !important;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.navbar .container {
    max-width: 1200px;
}

.navbar-dark .navbar-nav .nav-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--radius-lg);
    margin: 0 var(--space-1);
    padding: var(--space-2) var(--space-4);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--gray-300) !important;
    position: relative;
    overflow: hidden;
}

.navbar-dark .navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.navbar-dark .navbar-nav .nav-link:hover::before {
    left: 100%;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--wine-color));
    color: white !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.navbar-dark .navbar-nav .nav-link i {
    margin-right: var(--space-2);
    transition: transform 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover i {
    transform: scale(1.1);
}

/* Modernizovaná Hero sekce */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--wine-color) 50%, var(--burgundy-color) 100%);
    border-radius: var(--radius-2xl) !important;
    position: relative;
    overflow: hidden;
    margin: var(--space-6) 0;
    box-shadow: var(--shadow-xl);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-family: var(--font-family-secondary);
    font-weight: 700;
    line-height: var(--leading-tight);
    letter-spacing: -0.025em;
}

.hero-section .lead {
    font-weight: 400;
    line-height: var(--leading-relaxed);
    opacity: 0.95;
}

.hero-section .btn {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Modernizované karty */
.card {
    border-radius: var(--radius-xl);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-200);
    background: white;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.card-header {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0 !important;
    border-bottom: 1px solid var(--gray-200);
    font-weight: 600;
    font-family: var(--font-family-secondary);
    background: white;
}

.card-body {
    padding: var(--space-6);
}

.card-title {
    font-family: var(--font-family-secondary);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-3);
}

.card-text {
    color: var(--gray-600);
    line-height: var(--leading-relaxed);
}

/* Modernizovaná tlačítka */
.btn {
    border-radius: var(--radius-lg);
    font-weight: 500;
    font-family: var(--font-family-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    padding: var(--space-3) var(--space-6);
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--wine-color) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--wine-dark) 100%);
    color: white;
    box-shadow: var(--shadow-xl);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--wine-color) 100%);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.btn-light {
    background: rgba(255, 255, 255, 0.95);
    color: var(--gray-800);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-light:hover {
    background: white;
    color: var(--gray-900);
}

/* Modernizovaný layout a kontejnery */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

main {
    min-height: calc(100vh - 200px);
}

/* Modernizovaný breadcrumb */
.breadcrumb {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-6);
    border: 1px solid var(--gray-200);
    margin-bottom: var(--space-6);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    font-weight: 600;
    color: var(--gray-400);
    margin: 0 var(--space-2);
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--wine-color);
}

.breadcrumb-item.active {
    color: var(--gray-600);
    font-weight: 500;
}

/* Timeline pro stránku O katedře */
.timeline-item {
    position: relative;
    padding-left: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--wine-color) 100%);
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px var(--wine-light);
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 25px;
    bottom: -20px;
    width: 2px;
    background: linear-gradient(to bottom, var(--wine-light) 0%, var(--wine-pale) 50%, transparent 100%);
}

/* Modernizované formuláře */
.form-control, .form-select {
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-300);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-family-primary);
    background: white;
    color: var(--gray-900);
    font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(30, 58, 138, 0.1);
    transform: translateY(-2px);
    background: white;
    outline: none;
}

.form-control::placeholder {
    color: var(--gray-400);
}

.form-label {
    font-weight: 600;
    font-family: var(--font-family-secondary);
    color: var(--gray-700);
    margin-bottom: var(--space-2);
    font-size: 0.9rem;
}

/* Modernizované badges */
.badge {
    border-radius: var(--radius-md);
    font-weight: 500;
    padding: var(--space-2) var(--space-3);
    font-size: 0.8rem;
    font-family: var(--font-family-primary);
    letter-spacing: 0.025em;
}

/* Modernizované animace */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in {
    animation: slideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-in {
    animation: scaleIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Intersection Observer animace */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Modernizovaný responzivní design */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 var(--space-6);
    }
}

@media (max-width: 768px) {
    :root {
        --space-4: 0.75rem;
        --space-6: 1rem;
        --space-8: 1.5rem;
    }

    .hero-section {
        padding: var(--space-8) var(--space-4) !important;
        margin: var(--space-4) 0;
        text-align: center;
    }

    .hero-section h1 {
        font-size: 2rem !important;
        line-height: var(--leading-tight);
    }

    .hero-section .lead {
        font-size: 1.1rem;
    }

    .navbar-nav {
        padding-top: var(--space-4);
        gap: var(--space-2);
    }

    .navbar-dark .navbar-nav .nav-link {
        padding: var(--space-3);
        margin: var(--space-1) 0;
        text-align: center;
    }

    .card-body {
        padding: var(--space-4);
    }

    .container {
        padding: 0 var(--space-4);
    }

    .btn {
        width: 100%;
        margin-bottom: var(--space-2);
    }

    .row > div {
        margin-bottom: var(--space-4);
    }
}

@media (max-width: 576px) {
    .hero-section .lead {
        font-size: 1rem;
    }

    .display-5 {
        font-size: 2rem !important;
    }

    .h3 {
        font-size: 1.5rem !important;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-50);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--wine-color) 0%, var(--burgundy-color) 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--wine-dark) 100%);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--gray-800) 0%, #495057 100%) !important;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
}

/* Tabulky */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background-color: rgba(30, 58, 138, 0.05);
    transform: translateX(2px);
}

/* Mapa iframe */
.ratio iframe {
    border-radius: 8px;
}

/* Person cards specifické styly */
.person-card .person-photo {
    transition: all 0.3s ease;
}

.person-card:hover .person-photo {
    transform: scale(1.05);
}

/* Publikace a projekty */
.projekt-card, .publikace-item {
    transition: all 0.3s ease;
    border: 1px solid rgba(30, 58, 138, 0.1);
}

.projekt-card:hover {
    transform: translateY(-3px);
    border-color: var(--wine-light);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.2);
}

.publikace-item:hover {
    background: linear-gradient(135deg, var(--wine-pale) 0%, rgba(245, 230, 234, 0.5) 100%);
    border-left: 4px solid var(--wine-color) !important;
}

/* Nové vínové styly pro různé komponenty */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--wine-color) 100%) !important;
    color: white !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Specifické vínové styly pro badges */
.badge.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--wine-color) 100%) !important;
}

.badge.bg-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #157347 100%) !important;
}

.badge.bg-info {
    background: linear-gradient(135deg, var(--info-color) 0%, #0aa2c0 100%) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #e0a800 100%) !important;
    color: var(--gray-800) !important;
}

/* Card headers s vínovými odstíny */
.card-header.bg-primary {
    background: linear-gradient(135deg, var(--wine-color) 0%, var(--wine-dark) 100%) !important;
}

.card-header.bg-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #157347 100%) !important;
}

.card-header.bg-info {
    background: linear-gradient(135deg, var(--info-color) 0%, #0aa2c0 100%) !important;
}

.card-header.bg-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #e0a800 100%) !important;
}

/* Nav pills */
.nav-pills .nav-link {
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-pills .nav-link:hover {
    transform: translateY(-2px);
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--wine-color) 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(30, 58, 138, 0.3);
}

/* Alert styly */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Loading animace */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(30, 58, 138, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Nové styly pro fullscreen hero */
.hero-fullscreen {
    position: relative;
    overflow: hidden;
}

.text-shadow-lg {
    text-shadow: 0 2px 4px rgba(0,0,0,0.3), 0 4px 8px rgba(0,0,0,0.2);
}

.tracking-wide {
    letter-spacing: 0.1em;
}

.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Floating elements animace */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Bounce animace pro scroll indicator */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* Stat cards hover efekty */
.stat-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2) !important;
}

/* Feature cards */
.feature-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl) !important;
}

/* Program cards */
.program-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.program-card:hover {
    transform: translateY(-5px) scale(1.02);
}

/* Navigation cards */
.nav-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg) !important;
}

.nav-card .nav-icon {
    transition: transform 0.3s ease;
}

.nav-card:hover .nav-icon {
    transform: scale(1.1);
}

/* News cards */
.news-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl) !important;
}

/* Vylepšené hover efekty */
a.text-decoration-none:hover .nav-card {
    border-color: var(--primary-color) !important;
}

/* Plynulé hover přechody */
* {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Z-index management */
.position-relative.z-1 {
    z-index: 1;
}

/* Geometrické tvary pro stavební téma */
.geometric-shape {
    position: absolute;
    opacity: 0.1;
    z-index: -1;
    pointer-events: none;
}

/* Trojúhelník */
.triangle {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 87px solid var(--wine-color);
}

.triangle-large {
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid var(--wine-color);
}

/* Kosočtverec/Diamond */
.diamond {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--wine-color) 0%, var(--wine-light) 100%);
    transform: rotate(45deg);
    border-radius: 8px;
}

.diamond-large {
    width: 120px;
    height: 120px;
}

/* Hexagon */
.hexagon {
    width: 100px;
    height: 57.735px;
    background: var(--wine-color);
    position: relative;
    margin: 28.8675px 0;
}

.hexagon:before,
.hexagon:after {
    content: "";
    position: absolute;
    width: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
}

.hexagon:before {
    bottom: 100%;
    border-bottom: 28.8675px solid var(--wine-color);
}

.hexagon:after {
    top: 100%;
    border-top: 28.8675px solid var(--wine-color);
}

/* Kruh s výřezem */
.circle-cut {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--wine-color) 0deg, var(--wine-color) 270deg, transparent 270deg);
}

/* Stavební I-beam tvar */
.i-beam {
    width: 60px;
    height: 120px;
    background: var(--wine-color);
    position: relative;
}

.i-beam:before,
.i-beam:after {
    content: '';
    position: absolute;
    width: 100px;
    height: 20px;
    background: var(--wine-color);
    left: -20px;
}

.i-beam:before {
    top: 0;
}

.i-beam:after {
    bottom: 0;
}

/* Trapezoidal tvar */
.trapezoid {
    border-bottom: 60px solid var(--wine-color);
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    height: 0;
    width: 80px;
}

/* Gear/ozubené kolo */
.gear {
    width: 80px;
    height: 80px;
    background: var(--wine-color);
    border-radius: 50%;
    position: relative;
}

.gear:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 50% 0%, transparent 8px, var(--wine-color) 8px, var(--wine-color) 12px, transparent 12px),
        radial-gradient(circle at 100% 50%, transparent 8px, var(--wine-color) 8px, var(--wine-color) 12px, transparent 12px),
        radial-gradient(circle at 50% 100%, transparent 8px, var(--wine-color) 8px, var(--wine-color) 12px, transparent 12px),
        radial-gradient(circle at 0% 50%, transparent 8px, var(--wine-color) 8px, var(--wine-color) 12px, transparent 12px);
    border-radius: 50%;
}

/* Stavební bloky */
.building-block {
    width: 100px;
    height: 40px;
    background: var(--wine-color);
    border-radius: 4px;
    position: relative;
}

.building-block:after {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 20px;
    background: var(--wine-light);
    border-radius: 4px 4px 0 0;
}

/* Dekorativní pozadí pro sekce */
.geometric-bg {
    position: relative;
    overflow: hidden;
}

.geometric-bg::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: var(--wine-pale);
    transform: rotate(45deg);
    opacity: 0.3;
    z-index: -1;
}

.geometric-bg::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background:
        radial-gradient(circle at center, transparent 40%, var(--wine-pale) 40%, var(--wine-pale) 60%, transparent 60%);
    opacity: 0.2;
    z-index: -1;
}

/* Krásné moderní animace */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatUpDown {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes rotateFloat {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes sway {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(3deg); }
    75% { transform: rotate(-3deg); }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(0,0,0,0.15), 0 0 0 0 rgba(255,255,255,0.7);
    }
    50% {
        box-shadow: 0 8px 25px rgba(0,0,0,0.15), 0 0 0 10px rgba(255,255,255,0);
    }
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Hover effects pro moderní tlačítka */
.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-modern:hover::before {
    left: 100%;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Enhanced card animations */
.card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Text gradient animations */
.hero-accent {
    background-size: 200% 200%;
    animation: shimmer 3s ease-in-out infinite;
}

/* Floating elements staggered animations */
.floating-shape:nth-child(1) { animation-delay: 0s; }
.floating-shape:nth-child(2) { animation-delay: 1s; }
.floating-shape:nth-child(3) { animation-delay: 2s; }
.floating-shape:nth-child(4) { animation-delay: 3s; }

/* Enhanced navigation hover */
.navbar-dark .navbar-nav .nav-link {
    position: relative;
    overflow: hidden;
}

.navbar-dark .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, var(--primary-color), var(--wine-color));
    transition: width 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link.active::after {
    width: 100%;
}

/* Smooth page transitions */
.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-left {
    animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced shadows and depth */
.shadow-beautiful {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1), 0 1px 8px rgba(0,0,0,0.06);
}

.shadow-beautiful:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.15), 0 5px 15px rgba(0,0,0,0.08);
}

/* Print styly */
@media print {
    .navbar, .btn, footer {
        display: none !important;
    }

    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }

    body {
        font-size: 12pt;
    }

    .hero-fullscreen {
        min-height: auto !important;
        background: white !important;
        color: black !important;
    }

    .geometric-shape {
        display: none !important;
    }
}