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

:root {
    --primary-black: #0a0a0a;
    --secondary-black: #1a1a1a;
    --primary-red: #ff0040;
    --secondary-red: #cc0033;
    --accent-red: #ff6b9d;
    --text-white: #ffffff;
    --text-gray: #cccccc;
    --gradient-red: linear-gradient(135deg, #ff0040, #cc0033, #ff6b9d);
    --font-primary: 'Orbitron', monospace;
    --font-secondary: 'Rajdhani', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--primary-black);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Matrix pozadí */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 4px solid #800020;
    box-shadow: 0 3px 30px rgba(128, 0, 32, 0.8);
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 900;
}

.glitch {
    position: relative;
    color: var(--text-white);
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    animation: glitch 2s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 0.5s infinite;
    color: #660019;
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.5s infinite;
    color: #4d0010;
    z-index: -2;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    10% { transform: translate(-2px, -2px); }
    20% { transform: translate(2px, 2px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    10% { transform: translate(2px, 0); }
    20% { transform: translate(-2px, 0); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-red);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-red);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1001;
}

.hamburger:hover {
    background: rgba(255, 0, 64, 0.1);
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--text-white);
    margin: 4px 0;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    border-radius: 2px;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
    background: var(--primary-red);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background: var(--primary-red);
}

/* Hero sekce */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #660019, #330000, #990027, #4d0010);
    background-size: 400% 400%;
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(255, 0, 64, 0.5);
}

.glow {
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from { text-shadow: 0 0 20px rgba(255, 0, 64, 0.5); }
    to { text-shadow: 0 0 40px rgba(255, 0, 64, 0.8), 0 0 60px rgba(255, 0, 64, 0.4); }
}

.hero-subtitle {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    margin-bottom: 2rem;
    color: var(--text-gray);
    font-weight: 300;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    position: relative;
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--primary-red);
    color: var(--text-white);
    text-decoration: none;
    font-family: var(--font-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-red);
    transition: left 0.3s ease;
    z-index: -1;
}

.cta-button:hover::before {
    left: 0;
}

.cta-button:hover {
    box-shadow: 0 0 30px rgba(255, 0, 64, 0.6);
    transform: translateY(-2px);
}

.button-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-red);
    z-index: -2;
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-button:hover .button-glow {
    opacity: 0.7;
}

/* Floating elements */
.hero-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.element {
    position: absolute;
    font-family: var(--font-primary);
    font-size: 2rem;
    color: rgba(255, 0, 64, 0.3);
    animation: float 6s ease-in-out infinite;
}

.element:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.element:nth-child(2) {
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.element:nth-child(3) {
    top: 80%;
    left: 20%;
    animation-delay: 4s;
}

.element:nth-child(4) {
    top: 30%;
    right: 30%;
    animation-delay: 6s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Sekce */
section {
    padding: 5rem 0;
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 6vw, 3rem);
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-white);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gradient-red);
}

/* O nás */
.about {
    background: var(--secondary-black);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: var(--text-gray);
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 0, 64, 0.1);
    border: 1px solid var(--primary-red);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 0, 64, 0.3);
}

.stat-number {
    display: block;
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-red);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Služby */
.services {
    background: var(--primary-black);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--secondary-black);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 0, 64, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 64, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-red);
    box-shadow: 0 20px 40px rgba(255, 0, 64, 0.2);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.service-card h3 {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-red);
    text-align: center;
}

.service-card p {
    color: var(--text-gray);
    line-height: 1.6;
    text-align: center;
}

/* Kontakt */
.contact {
    background: var(--secondary-black);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-text {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.contact-info {
    margin: 2rem 0;
}

.contact-item {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    padding: 0.8rem 1.2rem;
    background: rgba(255, 0, 64, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 0, 64, 0.2);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 0, 64, 0.1);
    border-color: rgba(255, 0, 64, 0.4);
    transform: translateY(-2px);
}

.contact-item.company-info {
    margin-bottom: 1.2rem;
}

.contact-label {
    color: var(--text-gray);
    font-weight: 600;
}

.contact-email {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.contact-email:hover {
    color: var(--accent-red);
    text-decoration: underline;
}

.cta-button.secondary {
    margin-top: 2rem;
}

/* Footer */
.footer {
    background: var(--primary-black);
    padding: 2rem 0;
    border-top: 1px solid var(--primary-red);
    text-align: center;
    color: var(--text-gray);
}

/* Responzivní design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, rgba(26, 26, 26, 0.98), rgba(0, 0, 0, 0.98));
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
    }

    .nav-menu.active {
        left: 0;
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        padding: 1.5rem 0;
        transform: translateX(-50px);
        opacity: 0;
        transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
    }

    .nav-menu.active li {
        transform: translateX(0);
        opacity: 1;
    }

    .nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.4s; }

    .nav-link {
        font-size: 1.8rem;
        font-weight: 700;
        padding: 1rem 2rem;
        display: block;
        border-radius: 12px;
        margin: 0.5rem 0;
        background: rgba(255, 0, 64, 0.05);
        border: 2px solid transparent;
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: 2px;
    }

    .nav-link:hover {
        background: rgba(255, 0, 64, 0.15);
        border-color: var(--primary-red);
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(255, 0, 64, 0.3);
    }

    .nav-link::after {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .contact-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .navbar {
        padding: 1rem;
    }

    section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.8rem 1rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .nav-link {
        font-size: 1.5rem;
        padding: 0.8rem 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    .contact-item {
        padding: 1rem;
        margin: 0 0.5rem 1rem 0.5rem;
    }

    .contact-item.company-info {
        margin-bottom: 1rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .about-text, .contact-text {
        font-size: 1.1rem;
        padding: 0 0.5rem;
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-black);
}

::-webkit-scrollbar-thumb {
    background: #d20000;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-red);
}