:root {
    --primary-purple: #4a1c6b;
    --primary-blue: #1e3a8a;
    --dark-purple: #3a1655;
    --dark-blue: #162a5e;
    --light-color: #ffffff;
    --gray-color: #666666;
    --light-bg: #f5f5f5;
    --gradient: linear-gradient(135deg, #4a1c6b, #1e3a8a);
    --shadow: 0 10px 30px rgba(0,0,0,0.15);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* DÔLEŽITÉ: Flexbox layout pre celú stránku */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Oxanium', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(26, 10, 38, 0.9), rgba(10, 20, 45, 0.9)),
        url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') center/cover no-repeat;
    z-index: -2;
}

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

.bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(74, 28, 107, 0.1), rgba(30, 58, 138, 0.1));
    animation: float 20s infinite ease-in-out;
}

.bg-circle:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.bg-circle:nth-child(2) {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 10%;
    animation-delay: -5s;
}

.bg-circle:nth-child(3) {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 15%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(120deg); }
    66% { transform: translateY(30px) rotate(240deg); }
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: rgba(26, 10, 38, 0.9);
    backdrop-filter: blur(10px);
    color: white;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.scrolled {
    background: rgba(26, 10, 38, 0.95);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    padding: 10px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.logo-icon {
    font-size: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 30px;
}

nav li {
    position: relative;
    display: flex;
    align-items: center; 
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 5px 0;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6b6b, #4a1c6b);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: #ff6b6b;
}

/* DÔLEŽITÉ: Main musí mať flex: 1 */
main {
    flex: 1 0 auto;
    padding: 150px 0 100px;
    width: 100%;
}

.hero-section {
    text-align: center;
    padding: 60px 0;
    position: relative;
    animation: slideUp 0.8s ease-out;
}

.hero-section h1 {
    font-size: 56px;
    color: white;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-section p {
    font-size: 22px;
    color: rgba(255,255,255,0.9);
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.search-section {
    max-width: 600px;
    margin: 0 auto 60px;
}

.search-box {
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 20px 60px 20px 30px;
    font-size: 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--transition);
    font-family: 'Oxanium', sans-serif;
}

.search-box input:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.search-box input::placeholder {
    color: rgba(255,255,255,0.5);
}

.search-icon {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #ff6b6b;
    cursor: pointer;
}

.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 50px;
}

.category-btn {
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: rgba(255,255,255,0.8);
    font-family: 'Oxanium', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.category-btn:hover,
.category-btn.active {
    background: linear-gradient(135deg, #ff6b6b, #4a1c6b);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-category {
    margin-bottom: 60px;
    animation: slideUp 0.8s ease-out;
}

.faq-category h2 {
    color: white;
    font-size: 32px;
    margin-bottom: 30px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-icon {
    font-size: 36px;
    color: #ff6b6b;
}

.faq-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.faq-question {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question h3 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.faq-icon {
    font-size: 24px;
    color: #ff6b6b;
    transition: transform 0.3s ease;
    margin-left: 20px;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    padding: 0 30px 30px;
    max-height: 1000px;
}

.faq-answer p {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    margin-bottom: 15px;
}

.faq-answer ul {
    color: rgba(255,255,255,0.8);
    padding-left: 20px;
    margin-bottom: 15px;
}

.faq-answer li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.contact-cta {
    text-align: center;
    margin-top: 80px;
    padding: 60px;
    background: linear-gradient(135deg, rgba(74, 28, 107, 0.3), rgba(30, 58, 138, 0.3));
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUp 0.8s ease-out;
}

.contact-cta h2 {
    color: white;
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 700;
}

.contact-cta p {
    color: rgba(255,255,255,0.9);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 35px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    font-family: 'Oxanium', sans-serif;
}

.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.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b6b, #4a1c6b);
    color: white;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.4);
}

.btn-icon {
    font-size: 20px;
}

/* DÔLEŽITÉ: Footer musí mať flex-shrink: 0 */
footer {
    flex-shrink: 0;
    background: rgba(10, 5, 20, 0.95);
    color: white;
    padding: 80px 0 30px;
    position: relative;
    width: 100%;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h3 {
    color: #ff6b6b;
    margin-bottom: 25px;
    font-size: 20px;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: #ff6b6b;
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4a1c6b, #1e3a8a);
    z-index: 9999;
    transform: translateY(-100%);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-transition.active {
    transform: translateY(0);
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #4a1c6b);
    z-index: 1001;
    transition: width 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .hero-section h1 {
        font-size: 36px;
    }
    
    .hero-section p {
        font-size: 18px;
    }
    
    .faq-category h2 {
        font-size: 28px;
    }
    
    .faq-question h3 {
        font-size: 16px;
    }
    
    .contact-cta {
        padding: 40px 20px;
    }
    
    .contact-cta h2 {
        font-size: 28px;
    }
    
    .categories {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 28px;
    }
    
    .search-box input {
        padding: 15px 50px 15px 20px;
        font-size: 16px;
    }
    
    .faq-question {
        padding: 20px;
    }
    
    .faq-answer,
    .faq-item.active .faq-answer {
        padding: 0 20px 20px;
    }
    
    .category-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}