:root {
    --primary-color: #2e8b57; /* Deep Military Green */
    --primary-light: #4caf50;
    --bg-dark: #0a0e0f;      /* Very Dark Grey-Blue */
    --bg-card: rgba(22, 33, 35, 0.7);
    --border-subtle: rgba(255, 255, 255, 0.1);
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --accent: #f59e0b;       /* Amber for attention */
    --accent-hover: #d97706;
    
    --nav-bg: rgba(10, 14, 15, 0.85);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 12px;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}
h1, h2, h3, h4, .logo {
    font-family: 'Outfit', sans-serif;
}
/* Typography Enhancements */
h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
}
h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
p {
    font-size: 1.125rem;
    color: var(--text-muted);
}
.highlight {
    color: transparent;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
}
/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    border: 2px solid transparent;
}
.btn-primary {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 14px rgba(46, 139, 87, 0.4);
}
.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
}
.btn-secondary {
    background: transparent;
    color: #fff;
    border-color: var(--border-subtle);
}
.btn-secondary:hover {
    border-color: var(--text-main);
    background: rgba(255,255,255,0.05);
}
/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}
.main-nav.scrolled {
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.05em;
}
.logo ion-icon {
    font-size: 1.75rem;
    color: var(--primary-light);
}
.logo-reb {
    color: var(--primary-color);
}
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}
.nav-item {
    position: relative;
}
.nav-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.link-text {
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.link-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    opacity: 0.7;
    white-space: nowrap;
}
.nav-link:hover {
    background: rgba(46, 139, 87, 0.1);
}
.nav-link:hover .link-text {
    color: var(--primary-light);
}
.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-icon {
    font-size: 0.9rem;
    transition: var(--transition);
}
.has-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    list-style: none;
    padding: 0.75rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.dropdown-menu li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}
.dropdown-menu li a:hover {
    background: rgba(255,255,255,0.05);
    color: var(--primary-light);
}
.lock {
    font-size: 1rem;
    color: var(--accent);
}
/* Hero Section */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 2rem; /* Vrácen větší horní okraj kvůli navigaci na podstránce */
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('hero_bg_reb.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -2;
}
/* Gradient Overlay overlay over hero */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(10, 14, 15, 0.4) 0%,
        rgba(10, 14, 15, 0.8) 70%,
        var(--bg-dark) 100%
    );
    z-index: -1;
}
/* Radar Scan line effect overlay */
.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(76, 175, 80, 0.5);
    box-shadow: 0 0 20px 2px rgba(76, 175, 80, 0.8);
    animation: radarScan 8s linear infinite;
    z-index: -1;
    opacity: 0.3;
}
@keyframes radarScan {
    0% { top: -10%; opacity: 0; }
    10% { opacity: 0.5; }
    50% { opacity: 0.8; }
    90% { opacity: 0.5; }
    100% { top: 110%; opacity: 0; }
}
.hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(46, 139, 87, 0.15);
    border: 1px solid var(--primary-color);
    color: var(--primary-light);
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.hero-greeting {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: #cbd5e1;
}
.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}
/* Separator */
.separator-wrapper {
    position: relative;
    padding: 4rem 0;
    text-align: center;
}
.separator {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-subtle), transparent);
    width: 60%;
    margin: 0 auto;
}
.sep-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-dark);
    padding: 0 1rem;
    font-size: 1.5rem;
    color: var(--primary-color);
}
/* News Section */
.news-section {
    padding: 6rem 0;
    background: url('hero_bg_reb.png') center/cover fixed;
    position: relative;
}
.news-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 15, 0.92);
}
.news-section > * {
    position: relative;
    z-index: 1;
}
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}
.news-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.card-image {
    height: 220px;
    position: relative;
    overflow: hidden;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.news-card:hover .card-image img {
    transform: scale(1.05);
}
.placeholder-img {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255,255,255,0.1);
}
.placeholder-img.dark {
    background: linear-gradient(135deg, #064e3b, #022c22);
}
.card-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.1);
}
.card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: calc(100% - 220px);
}
.card-body p {
    margin-bottom: 2rem;
    flex-grow: 1;
}
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    transition: var(--transition);
}
.read-more ion-icon {
    font-size: 1.2rem;
    transition: transform 0.3s;
}
.read-more:hover {
    color: #fff;
}
.read-more:hover ion-icon {
    transform: translateX(4px);
}
/* Crossroads Cards Styles */
.crossroads-container {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 2rem auto 4rem;
    padding: 0 2rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-width: 0;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img {
    transform: scale(1.05);
}

.card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
    font-family: 'Outfit', sans-serif;
}

.card-text {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.btn-tertiary {
    background: transparent;
    color: var(--accent);
    border-color: var(--border-subtle);
}

.btn-tertiary:hover {
    border-color: var(--accent);
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-hover);
}

.arrow-icon {
    width: 20px;
    height: 20px;
    margin-left: 0.5rem;
    transition: transform 0.3s;
}

.btn:hover .arrow-icon {
    transform: translateX(4px);
}

/* Footer */
footer {
    background: #06090a;
    padding: 3rem 0;
    border-top: 1px solid var(--border-subtle);
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: #fff;
}
.footer-brand ion-icon {
    color: var(--primary-color);
}
/* Responsive */
@media (max-width: 1024px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--nav-bg);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--border-subtle);
    }
    .nav-menu.active {
        display: flex;
    }
    .mobile-toggle {
        display: block;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .nav-link {
        width: 100%;
    }
    .dropdown-menu {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: rgba(255,255,255,0.02);
        margin-top: 0.5rem;
        display: none;
    }
    .has-dropdown.active .dropdown-menu {
        display: block;
    }
    .crossroads-container {
        flex-wrap: wrap;
    }
    .card {
        flex: 1 1 100%;
    }
}
