/* =========================================
           ZÁKLADNÉ NASTAVENIA A FARBY
           ========================================= */
:root {
    --primary-color: #FF5A00;
    --bg-dark: #121212;
    --bg-light: #1E1E1E;
    --text-main: #FFFFFF;
    --text-muted: #B0B0B0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

h1,
h2,
h3,
.logo {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 2px;
    font-weight: normal;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--text-main);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

/* =========================================
           HLAVIČKA A MENU
           ========================================= */
header {
    display: flex;
    flex-direction: column;
    padding: 15px 20px;
    background-color: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 38px;
    letter-spacing: 3px;
    color: var(--text-main);
    display: none;
}

.logo span {
    color: var(--primary-color);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Jazykový prepínač - Všeobecný štýl */
.lang-switch {
    display: flex;
    gap: 5px;
    align-items: center;
    font-weight: bold;
    color: var(--text-muted);
}

.lang-switch button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.lang-switch button.active {
    color: var(--primary-color);
}

.lang-switch button:hover {
    color: #fff;
}

.desktop-lang {
    display: none;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}

.hamburger .bar {
    width: 30px;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 3px;
    transition: all 0.4s ease;
    transform-origin: left center;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(2px, -2px);
    background-color: var(--primary-color);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(2px, 2px);
    background-color: var(--primary-color);
}

.header-nav-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, opacity 0.3s ease;
    opacity: 0;
}

.header-nav-wrap.active {
    max-height: 600px;
    opacity: 1;
    padding-top: 25px;
    padding-bottom: 10px;
}

nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

nav ul li a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 1px;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
    left: 0;
}

.header-socials {
    display: flex;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    margin-top: 25px;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.header-socials a {
    font-size: 22px;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
}

.header-socials a:hover {
    transform: translateY(-3px);
}

/* =========================================
           HERO
           ========================================= */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: -2;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 18, 18, 0.6), rgba(18, 18, 18, 0.95));
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    font-size: 3.5rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    line-height: 1;
    opacity: 0;
    animation: fadeDown 1s ease 0.2s forwards;
}

.hero h1 span {
    color: var(--primary-color);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 650px;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeUp 1s ease 0.5s forwards;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    opacity: 0;
    animation: fadeUp 1s ease 0.8s forwards;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #e04e00;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 90, 0, 0.4);
}

/* Globálne pre Sekcie */
.services,
.projects,
.testimonials,
.team-section,
.blog-section,
.partners,
.cta-parallax {
    padding: 60px 20px;
    text-align: center;
}

.services {
    background-color: var(--bg-light);
}

.projects {
    background-color: var(--bg-dark);
}

.testimonials {
    background-color: var(--bg-light);
    overflow: hidden;
}

.team-section {
    background-color: var(--bg-dark);
}

.blog-section {
    background-color: var(--bg-light);
}

.partners {
    background-color: var(--bg-dark);
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.section-title span {
    border-bottom: 4px solid var(--primary-color);
    padding-bottom: 5px;
}

.section-subtitle {
    max-width: 700px;
    margin: 0 auto 50px;
    color: var(--text-muted);
    font-size: 1rem;
}

/* =========================================
           SLUŽBY
           ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: var(--bg-dark);
    padding: 40px 30px;
    border-radius: 8px;
    border-top: 4px solid var(--primary-color);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    text-align: left;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.service-icon {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.service-card:hover .service-icon {
    transform: scale(1.15);
}

.service-card h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text-main);
    letter-spacing: 1.5px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* =========================================
           REALIZOVANÉ PROJEKTY 
           ========================================= */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 350px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    text-align: left;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(18, 18, 18, 0.1) 0%, rgba(18, 18, 18, 0.95) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    transition: background 0.4s ease;
}

.project-category {
    align-self: flex-end;
    background-color: var(--primary-color);
    color: #fff;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-content {
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

.project-content h3 {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.project-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    opacity: 0.9;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-card:hover .project-img {
    transform: scale(1.08);
}

.project-card:hover .project-overlay {
    background: linear-gradient(to bottom, rgba(255, 90, 0, 0.2) 0%, rgba(18, 18, 18, 0.95) 100%);
}

.project-card:hover .project-content {
    transform: translateY(0);
}

/* =========================================
           CAROUSELY (DRAG & TOUCH) - OPTIMALIZOVANÉ
           ========================================= */
.testimonials-marquee,
.carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    padding: 20px 0;
}

.testimonials-marquee::before,
.testimonials-marquee::after,
.carousel-wrapper::before,
.carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.testimonials-marquee::before,
.carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-light) 0%, transparent 100%);
}

.testimonials-marquee::after,
.carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-light) 0%, transparent 100%);
}

.marquee-scroll {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
    /* Hladký natívny scroll pre iOS */
}

.marquee-scroll::-webkit-scrollbar {
    display: none;
}

.marquee-scroll:active {
    cursor: grabbing;
}

.testimonials-track,
.carousel-track {
    display: flex;
    width: max-content;
}

.testimonials-group {
    display: flex;
    gap: 30px;
    padding-right: 30px;
}

.partners-group {
    display: flex;
}

.testimonial-card {
    background-color: var(--bg-dark);
    width: 320px;
    flex-shrink: 0;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: left;
    position: relative;
    transition: transform 0.4s, border-color 0.4s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.testimonial-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 90, 0, 0.3);
}

.quote-icon {
    font-size: 2.5rem;
    color: rgba(255, 90, 0, 0.2);
    position: absolute;
    top: 20px;
    right: 25px;
    pointer-events: none;
}

.testimonial-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-style: italic;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    pointer-events: none;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
    pointer-events: none;
}

.client-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.client-info h4 {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 2px;
}

.client-info span {
    font-size: 0.8rem;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 600;
}

.carousel-track a {
    width: 250px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 30px;
    user-select: none;
}

.carousel-track img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    opacity: 0.4;
    filter: grayscale(100%);
    transition: all 0.4s ease;
    pointer-events: none;
}

.carousel-track a:hover img {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* =========================================
           NÁŠ TÍM
           ========================================= */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.team-card {
    background-color: var(--bg-light);
    padding: 40px 30px;
    border-radius: 8px;
    border-top: 4px solid var(--primary-color);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    text-align: center;
}

.team-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.team-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 25px;
    border: 3px solid var(--primary-color);
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.team-card:hover .team-img {
    filter: grayscale(0%);
}

.team-card h3 {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 5px;
}

.team-card .role {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 15px;
}

.team-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* =========================================
           BLOG / NOVINKY
           ========================================= */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.blog-card {
    background-color: var(--bg-dark);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 90, 0, 0.3);
}

.blog-img-wrap {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.blog-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-img-wrap img {
    transform: scale(1.08);
}

.blog-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.blog-content {
    padding: 30px;
}

.blog-date {
    display: block;
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.blog-content h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--text-main);
    line-height: 1.3;
}

.blog-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: var(--primary-color);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* =========================================
           OSTATNÉ
           ========================================= */
.cta-parallax {
    background: linear-gradient(rgba(255, 90, 0, 0.8), rgba(18, 18, 18, 0.95)), url('https://images.unsplash.com/photo-1541534741688-6078c6bfb5c5?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    background-attachment: scroll;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-parallax h2 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 20px;
}

footer {
    background-color: #0a0a0a;
    padding: 80px 20px 40px;
    text-align: center;
}

.contact-info {
    margin-bottom: 40px;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.social-links {
    margin: 20px 0;
}

.social-links a {
    margin: 0 15px;
    font-size: 26px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    transform: translateY(-5px);
}

.copyright {
    color: #555;
    font-size: 0.9rem;
    margin-top: 40px;
    border-top: 1px solid #222;
    padding-top: 20px;
}

.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s ease;
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
           MEDIA QUERIES (Desktope)
           ========================================= */
@media (min-width: 768px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 20px 50px;
    }

    .header-top {
        width: auto;
    }

    .hamburger {
        display: none;
    }

    .logo {
        display: block;
    }

    /* Skryjeme mobilný prepínač, zobrazíme desktopový úplne vpravo */
    .mobile-lang {
        display: none;
    }

    .desktop-lang {
        display: flex;
        margin-left: 20px;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        padding-left: 20px;
        align-items: center;
    }

    /* Zabezpečí, že sa menu roztiahne a zarovná obsah striktne doprava */
    .header-nav-wrap {
        max-height: none;
        opacity: 1;
        overflow: visible;
        flex-direction: row;
        align-items: center;
        flex: 1;
        justify-content: flex-end;
        padding-top: 0;
        padding-bottom: 0;
    }

    nav ul {
        flex-direction: row;
        gap: 20px;
        align-items: center;
    }

    nav ul li a {
        font-size: 13px;
    }

    .header-socials {
        border-top: none;
        padding-top: 0;
        margin-top: 0;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        padding-left: 15px;
        margin-left: 15px;
        width: auto;
        gap: 15px;
        align-items: center;
    }

    .header-socials a {
        font-size: 18px;
    }

    .hero h1 {
        font-size: 6rem;
    }

    .section-title {
        font-size: 3.5rem;
    }

    .services,
    .projects,
    .testimonials,
    .team-section,
    .blog-section,
    .partners {
        padding: 100px 50px;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-card {
        height: 420px;
    }

    .cta-parallax {
        padding: 150px 20px;
        background-attachment: fixed;
    }

    footer {
        padding: 80px 50px 40px;
    }

    .testimonials-marquee::before,
    .testimonials-marquee::after,
    .carousel-wrapper::before,
    .carousel-wrapper::after {
        width: 150px;
    }
}