:root {
    --bg-color: #0a0a0a;
    /* Čistá černá - pozadí */
    --text-color: #ffffff;
    --text-secondary: #a0a0a0;
    /* Šedá - sekundární text */
    --accent-color: #ff3333;
    /* Červená - akcent */
    --accent-secondary: #cc0000;
    /* Tmavší červená varianta */
    --glass-bg: rgba(255, 51, 51, 0.05);
    --glass-border: rgba(255, 51, 51, 0.15);
    --nav-height: 80px;
    --section-padding: 100px 0;
}

html {
    scroll-behavior: smooth;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: var(--accent-color);
    font-size: 2rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: color 0.3s ease;
}

.scroll-indicator:hover {
    color: var(--text-color);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-15px);
    }

    60% {
        transform: translateX(-50%) translateY(-8px);
    }
}

/* Scroll Progress Bar */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 1001;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
    transition: width 0.1s ease;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 242, 255, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 242, 255, 0.5);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 5px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    padding: 8px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-right: 20px;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
}

.lang-icon {
    font-size: 1.1rem;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    position: relative;
}

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

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

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: all 0.3s ease-in-out;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.hero-content {
    z-index: 2;
    padding: 20px;
}

.greeting {
    font-size: 1.5rem;
    color: var(--accent-color);
    display: block;
    margin-bottom: 10px;
}

.glitch {
    font-size: 5rem;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    color: var(--text-color);
}

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

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(31px, 9999px, 94px, 0);
    }

    5% {
        clip: rect(70px, 9999px, 21px, 0);
    }

    10% {
        clip: rect(66px, 9999px, 11px, 0);
    }

    15% {
        clip: rect(10px, 9999px, 83px, 0);
    }

    20% {
        clip: rect(25px, 9999px, 92px, 0);
    }

    25% {
        clip: rect(89px, 9999px, 9px, 0);
    }

    30% {
        clip: rect(51px, 9999px, 87px, 0);
    }

    35% {
        clip: rect(6px, 9999px, 15px, 0);
    }

    40% {
        clip: rect(79px, 9999px, 2px, 0);
    }

    45% {
        clip: rect(48px, 9999px, 60px, 0);
    }

    50% {
        clip: rect(12px, 9999px, 5px, 0);
    }

    55% {
        clip: rect(59px, 9999px, 34px, 0);
    }

    60% {
        clip: rect(98px, 9999px, 39px, 0);
    }

    65% {
        clip: rect(7px, 9999px, 65px, 0);
    }

    70% {
        clip: rect(36px, 9999px, 85px, 0);
    }

    75% {
        clip: rect(32px, 9999px, 63px, 0);
    }

    80% {
        clip: rect(46px, 9999px, 7px, 0);
    }

    85% {
        clip: rect(55px, 9999px, 16px, 0);
    }

    90% {
        clip: rect(50px, 9999px, 78px, 0);
    }

    95% {
        clip: rect(15px, 9999px, 21px, 0);
    }

    100% {
        clip: rect(3px, 9999px, 23px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(65px, 9999px, 100px, 0);
    }

    5% {
        clip: rect(52px, 9999px, 74px, 0);
    }

    10% {
        clip: rect(79px, 9999px, 85px, 0);
    }

    15% {
        clip: rect(74px, 9999px, 96px, 0);
    }

    20% {
        clip: rect(67px, 9999px, 4px, 0);
    }

    25% {
        clip: rect(14px, 9999px, 32px, 0);
    }

    30% {
        clip: rect(30px, 9999px, 68px, 0);
    }

    35% {
        clip: rect(89px, 9999px, 57px, 0);
    }

    40% {
        clip: rect(3px, 9999px, 19px, 0);
    }

    45% {
        clip: rect(41px, 9999px, 70px, 0);
    }

    50% {
        clip: rect(92px, 9999px, 18px, 0);
    }

    55% {
        clip: rect(31px, 9999px, 91px, 0);
    }

    60% {
        clip: rect(69px, 9999px, 37px, 0);
    }

    65% {
        clip: rect(90px, 9999px, 26px, 0);
    }

    70% {
        clip: rect(44px, 9999px, 68px, 0);
    }

    75% {
        clip: rect(8px, 9999px, 96px, 0);
    }

    80% {
        clip: rect(9px, 9999px, 31px, 0);
    }

    85% {
        clip: rect(62px, 9999px, 60px, 0);
    }

    90% {
        clip: rect(3px, 9999px, 78px, 0);
    }

    95% {
        clip: rect(66px, 9999px, 11px, 0);
    }

    100% {
        clip: rect(18px, 9999px, 49px, 0);
    }
}

.subtitle {
    font-size: 1.5rem;
    margin: 20px 0;
    color: rgba(255, 255, 255, 0.8);
}

.cta-buttons {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn.primary {
    background-color: var(--accent-color);
    color: #000;
    border: 2px solid var(--accent-color);
}

.btn.primary:hover {
    background-color: transparent;
    color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color);
}

.btn.secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--text-color);
}

.btn.secondary:hover {
    background-color: var(--text-color);
    color: #000;
}

/* Hero Background Animation */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.6;
    border-radius: 50%;
    will-change: transform;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-color);
    top: 10%;
    left: 20%;
    animation: move 10s infinite alternate;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-secondary);
    bottom: 20%;
    right: 20%;
    animation: move 12s infinite alternate-reverse;
}

@keyframes move {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(50px, -50px) scale(1.1);
    }
}

/* Section General */
.section {
    padding: var(--section-padding);
}

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

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-color);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 4px;
    background: var(--accent-color);
    bottom: -10px;
    left: 25%;
    border-radius: 2px;
}

/* About Section */
.about-content {
    display: flex;
    justify-content: center;
    text-align: center;
}

.about-text {
    max-width: 800px;
}

.about-text p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.skill-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.skill-item i {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.skill-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

/* Particles Canvas */
#particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Typing Effect */
.typing {
    min-height: 2rem;
}

.typing::after {
    content: '|';
    animation: blink 0.7s infinite;
    color: var(--accent-color);
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* Stats Grid */
.stats-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    display: block;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
    display: block;
}

/* Projects Section */
.projects {
    background-color: #080808;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-image {
    height: 200px;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.project-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.img-placeholder {
    color: #555;
    font-size: 1.5rem;
    font-weight: 700;
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.project-info p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.project-links {
    display: flex;
    gap: 15px;
}

.icon-link {
    font-size: 1.2rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.icon-link:hover {
    color: var(--accent-color);
}

.project-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Contact Section */
.contact-desc {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: var(--accent-color);
    color: #000;
    transform: scale(1.1);
}

/* Footer */
footer {
    padding: 30px 0;
    text-align: center;
    background-color: #050505;
    border-top: 1px solid var(--glass-border);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: var(--nav-height);
        flex-direction: column;
        background-color: rgba(13, 13, 13, 0.95);
        width: 100%;
        height: calc(100vh - var(--nav-height));
        align-items: center;
        justify-content: center;
        transition: 0.3s ease-in-out;
        gap: 50px;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .glitch {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2.5rem;
    }
}