/* Global Styles */
:root {
    --primary-color: #2b5cb6;
    /* Blue similar to the one requested */
    --accent-color: #4472C4;
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
    --bg-color: #0f172a;
    /* Dark blue-grey, pleasant on eyes */
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(30, 41, 59, 0.4);
    --gradient-1: linear-gradient(135deg, #2b5cb6 0%, #1e40af 100%);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overscroll-behavior-y: none;
    background-color: var(--bg-color);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: transparent;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    overscroll-behavior-y: none;
    position: relative;
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -2;
    /* Deepest layer */
    overflow: hidden;
    pointer-events: none;
    touch-action: none;
}

/* Custom Cursor Canvas */
.cursor-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    /* Behind content but above background */
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.4;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: #2b5cb6;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: #4f46e5;
    bottom: -150px;
    right: -150px;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: #0ea5e9;
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -50px) rotate(10deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(-10deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    /* Fallback */
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 15px rgba(43, 92, 182, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(43, 92, 182, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-left: 15px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 45px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Admin Links */
.admin-link-item a {
    opacity: 0.4;
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: opacity 0.3s;
}

.admin-link-item a:hover {
    opacity: 0.8;
}

.admin-link-item a::after {
    display: none;
}

.mobile-admin-link {
    display: none;
}

.mobile-admin-link a {
    opacity: 0.4;
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: opacity 0.3s;
}

.mobile-admin-link a:hover {
    opacity: 0.8;
}

/* Hamburger Menu Button (Hidden on Desktop) */
.hamburger {
    display: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #fff;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 600px;
}

/* Sections */
.section {
    padding: 60px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Cards */
.card {
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s, background 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(30, 41, 59, 0.8);
}

.card-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.card p {
    color: var(--text-muted);
}

/* Features */
.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.feature-item {
    background: var(--card-bg);
    padding: 15px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--glass-border);
}

.feature-item i {
    color: #10b981;
    /* Success green */
}



/* Pricing */
.pricing-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(68, 114, 196, 0.3);
    box-shadow: 0 0 30px rgba(68, 114, 196, 0.1);
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 20px 0;
}

.pricing-details {
    text-align: left;
    margin: 30px 0;
}

.pricing-details ul {
    list-style: none;
    margin: 15px 0;
}

.pricing-details li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.pricing-details li::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(to bottom, transparent, var(--accent-color), transparent);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    box-shadow: 0 0 15px rgba(68, 114, 196, 0.5);
    border-radius: 2px;
    z-index: 0;
    /* Push line to back */
}

.timeline-item {
    padding: 0 40px 0 40px;
    /* Removed bottom padding entirely for tighter fit */
    margin-bottom: -10px;
    /* Slight overlap or pull to bring closer */
    position: relative;
    background-color: transparent;
    width: 50%;
    z-index: 2;
    /* Bring items (and nodes) to front */
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

.timeline-item .content {
    padding: 25px 30px;
    border-radius: 20px;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.timeline-item .content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-color);
}

/* Animated Timeline Node */
.timeline-item::after {
    content: '\f107';
    /* FontAwesome chevron-down */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    width: 40px;
    height: 40px;
    right: -20px;
    background-color: var(--bg-color);
    border: 2px solid var(--accent-color);
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.2rem;
    line-height: 1;
    box-shadow: 0 0 0 4px rgba(68, 114, 196, 0.2);
    animation: pulse-node 2s infinite;
}

.timeline-item.right::after {
    left: -20px;
    right: auto;
}

@keyframes pulse-node {
    0% {
        box-shadow: 0 0 0 0 rgba(68, 114, 196, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(68, 114, 196, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(68, 114, 196, 0);
    }
}

/* Testimonials / Referencie */
.testimonials-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.testimonials-track {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
}

/* Slider zobrazenie */
.testimonials-wrapper.slider-active .testimonials-track {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow: hidden;
    /* Úplne vypne scrollovanie s posuvníkmi */
    scroll-behavior: smooth;
    padding-bottom: 5px;
}

.testimonial-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    width: min(100%, 350px);
    min-height: 350px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.4s ease, opacity 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    opacity: 0.6;
    transform: scale(0.9);
}

.testimonial-card.active-slide {
    opacity: 1;
    transform: scale(1);
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(68, 114, 196, 0.4);
    /* Jemné presvitanie na hranách */
    box-shadow: 0 0 30px rgba(68, 114, 196, 0.25), 0 10px 30px rgba(0, 0, 0, 0.3);
    /* Svetlo za kartou */
}

.testimonial-card:hover {
    background: rgba(30, 41, 59, 0.8);
}

.ref-text {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-color);
    line-height: 1.6;
    flex-grow: 1;
}

.ref-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.ref-author h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.ref-author span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.ref-logo img {
    max-width: 80px;
    max-height: 40px;
    object-fit: contain;
}

/* Slider Controls */
.slider-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 30px auto 0;
    padding: 0 10px;
}

.slider-dots {
    display: flex;
    gap: 10px;
    align-items: center;
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.slider-dots .dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.slider-dots .dot.active {
    background: var(--text-color);
    transform: scale(1.3);
}

.slider-arrows {
    display: flex;
    gap: 15px;
}

.arrow-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 5px;
    /* Square shape, not circle */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
}

.arrow-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Contact */
.contact-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px auto;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.highlight-text {
    color: var(--accent-color);
    font-weight: 600;
}

.contact-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.contact-item {
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    min-width: 250px;
    transition: transform 0.3s;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-item i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer {
    padding: 30px 0;
    text-align: center;
    background: rgba(15, 23, 42, 0.9);
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Letter Animations */
.animate-letters {
    display: inline-block;
}

.animate-letters .word {
    display: inline-block;
    white-space: nowrap;
}

.animate-letters .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.animate-letters.visible .char {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {

    /* Mobile Menu Wrapper */
    .nav-wrapper {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        z-index: -1;
        /* Start invisible/clipped */
        clip-path: inset(0 0 100% 0);
        transition: clip-path 0.4s ease-out;
        pointer-events: none;
    }

    .nav-wrapper.active {
        /* End visible/unclipped */
        clip-path: inset(0 0 0 0);
        pointer-events: auto;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(15px);
        padding: 30px;
        text-align: center;
        border-bottom: 1px solid var(--glass-border);
        /* Start shifted up (hidden) */
        transform: translateY(-100%);
        transition: transform 0.4s ease-out;
    }

    .admin-link-item {
        display: none;
    }

    .nav-wrapper.active .nav-links {
        /* End in place */
        transform: translateY(0);
    }

    .nav-controls {
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    .hamburger {
        display: flex;
        cursor: pointer;
        flex-direction: column;
        gap: 5px;
        padding: 5px;
        z-index: 1100;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 2px;
        background-color: var(--text-color);
        border-radius: 3px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .hamburger.active span {
        background-color: var(--accent-color);
    }

    .mobile-admin-link {
        display: block;
        margin: 0;
    }

    .mobile-admin-link a {
        opacity: 0.4;
        font-size: 13px;
        padding: 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    /* Timeline Responsive */
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        text-align: left;
    }

    .timeline-item.right {
        left: 0;
    }

    .timeline-item.left,
    .timeline-item.right {
        text-align: left;
    }

    .timeline-item.left::after,
    .timeline-item.right::after {
        left: 11px;
        right: auto;
    }



    .contact-grid {
        flex-direction: column;
        align-items: center;
    }

    .contact-grid {
        flex-direction: column;
        align-items: center;
    }
}

/* Highlighted Button (Návod Websupport) */
.btn-highlight {
    background: #ff4757;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    font-weight: 700 !important;
}

.btn-highlight:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.6);
    background: #ff6b81;
}

.nav-links a.btn-highlight::after {
    display: none;
}

/* Guide Page Styles */
.hero-guide {
    padding-top: 120px;
    min-height: 100vh;
}

.guide-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
    font-size: 1.2rem;
    color: var(--text-muted);
}

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
}

.guide-step {
    padding: 40px;
    border-radius: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-number {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.step-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: white;
}

.step-content p {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.guide-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.guide-footer {
    text-align: center;
    margin-top: 60px;
}

/* Profile Image */
.profile-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    /* Removed right: 20px to prevent full width */
    width: 350px;
    /* Fixed width for card look */
    max-width: calc(100% - 40px);
    /* Responsive safety */
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 25px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    /* Stack content explicitly */
    align-items: flex-start;
    gap: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(150%);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-content {
    flex: 1;
}

.cookie-content h3 {
    margin-bottom: 5px;
    font-size: 1.1rem;
    color: white;
}

.cookie-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.cookie-content a {
    color: var(--accent-color);
    text-decoration: underline;
}

.cookie-content a:hover {
    color: white;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
    /* Full width buttons */
    justify-content: flex-end;
}

.cookie-btn {
    padding: 10px 20px;
    /* Slightly larger targets */
    font-size: 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    flex: 1;
    /* Equal width buttons */
    text-align: center;
}

.cookie-btn.accept {
    background: var(--accent-color);
    color: white;
}

.cookie-btn.accept:hover {
    background: #3b62ae;
}

.cookie-btn.reject {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
}

.cookie-btn.reject:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: flex-end;
    }
}