:root {
    --primary: #00f0ff;
    --secondary: #2C3E50;
    --accent: #3498db;
    --dark: #1a1a1a;
    --darker: #141414;
    --text: #e0e0e0;
    --text-secondary: #888;
    --grid-color: rgba(0, 240, 255, 0.1);
    --background: #1a1a1a;
    --light: #F0F0F0;
    --card-bg: #2a2a2a;
    --section-bg: #222222;
    --moonstone: #58A4B0;
    --gunmetal: #2B303A;
    --gradient: linear-gradient(135deg, var(--moonstone), var(--gunmetal));
    --header-height: 70px;
    --section-padding-mobile: 3rem 1rem;
    --section-padding-desktop: 6rem 2rem;
}

body {
    font-family: 'Inter', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--dark);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 120px 5% 80px;
    text-align: center;
    position: relative;
}

header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -1px;
}

header p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

section {
    position: relative;
    z-index: 1;
    padding: 5rem 2rem;
    margin-bottom: 2rem;
    background: var(--dark);
}

.about {
    background: #f8f9fa;
}

h2 {
    font-size: 2.5rem;
    color: var(--text);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

h2::after {
    display: none;
}

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

.skills ul {
    list-style: none;
    padding: 0;
}

.skills li {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skills li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
}

.skills li:hover {
    transform: translateY(-5px);
}

.projects {
    background: white;
}

.projects ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.projects li {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.projects li:hover {
    background: white;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

footer {
    background: var(--secondary);
    color: white;
    text-align: center;
    padding: 2rem;
}

footer a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 2px solid white;
    border-radius: 4px;
    transition: all 0.3s ease;
}

footer a:hover {
    background: white;
    color: var(--secondary);
}

@media (max-width: 768px) {
    header {
        padding: 80px 5% 60px;
    }

    header h1 {
        font-size: 2.5rem;
    }

    section {
        padding: 3rem 1rem;
    }

    h2 {
        font-size: 2rem;
    }
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
}

.nav-links a {
    margin-left: 2rem;
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Tech Grid Background */
.tech-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(to right, var(--grid-color) 1px, transparent 1px) 0 0 / 50px 50px,
        linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px) 0 0 / 50px 50px;
    opacity: 0.2;
    z-index: -1;
}

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

.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(
            circle at center,
            transparent 0%,
            var(--dark) 70%
        ),
        conic-gradient(
            from 45deg at 50% 50%,
            var(--dark) 0deg,
            var(--primary) 45deg,
            var(--accent) 90deg,
            var(--dark) 135deg,
            var(--dark) 225deg,
            var(--primary) 270deg,
            var(--accent) 315deg,
            var(--dark) 360deg
        );
    opacity: 0.1;
    animation: slowRotate 30s linear infinite;
    filter: blur(60px);
}

.hero::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        transparent 0%,
        var(--dark) 100%
    );
    opacity: 0.7;
    z-index: 1;
}

.hero-content {
    text-align: center;
    z-index: 2;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    background: linear-gradient(
        45deg,
        rgba(0, 240, 255, 0.9) 0%,
        rgba(52, 152, 219, 0.9) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
}

.tech-line {
    height: 2px;
    width: 150px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--primary) 50%,
        transparent 100%
    );
    margin: 2rem auto;
    position: relative;
    opacity: 0.3;
}

/* Split Sections */
.split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.split-section {
    background: var(--darker);
    border-radius: 15px;
    padding: 2.5rem;
    border: 1px solid rgba(0, 240, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.split-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.1);
}

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

.tech-item {
    background: var(--dark);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-3px);
}

.tech-item i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.tech-item span {
    display: block;
    margin-bottom: 1rem;
    font-weight: 500;
}

.tech-bar {
    height: 4px;
    background: var(--section-bg);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.tech-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
    width: var(--width);
    animation: skillFill 1s ease-out forwards;
}

/* Obecné sekce */
.section {
    position: relative;
    z-index: 1;
    padding: 5rem 2rem;
    margin-bottom: 2rem;
    background: var(--dark);
}

.specializations {
    z-index: 2;
}

.bg-alt {
    background: var(--section-bg);
}

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

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    color: var(--text);
    font-size: 2.5rem;
}

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

/* Zajistíme, že všechny h2 s třídou section-title budou mít tento styl */
h2.section-title {
    text-align: center;
    display: block;
    width: 100%;
}

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

.service-card {
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
    color: var(--text);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(88, 164, 176, 0.2);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Skills */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.skills-category h3 {
    margin-bottom: 2rem;
    color: var(--moonstone);
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-item span {
    display: block;
    margin-bottom: 0.5rem;
}

.skill-bar {
    height: 10px;
    background: var(--section-bg);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.skill-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--primary);
    border-radius: 5px;
    width: var(--width);
    animation: skillFill 1s ease-out forwards;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    color: var(--text);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(88, 164, 176, 0.2);
}

.project-content {
    padding: 2rem;
}

.project-content p {
    color: var(--text-secondary);
}

.project-tech {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tech span {
    padding: 0.3rem 0.8rem;
    background: var(--section-bg);
    border-radius: 15px;
    font-size: 0.9rem;
    color: var(--text);
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.social-links {
    margin-bottom: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary);
}

/* Animace */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes skillFill {
    from { width: 0; }
    to { width: var(--width); }
}

/* Responzivní design */
@media (max-width: 992px) {
    .split-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
    }

    .split-section {
        padding: 1.5rem;
    }

    .specialties-list {
        gap: 1rem;
    }

    .specialty-item {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .split-section {
        padding: 1.5rem;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 3rem;
    }

    #changing-claim {
        font-size: 1.2rem;
    }

    .tech-line {
        width: 100px;
    }
}

.pre-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    opacity: 0.9;
    font-weight: 300;
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--moonstone);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    transition: transform 0.3s ease;
    animation: fadeInUp 1s ease 0.4s;
    border: none;
}

.cta-button:hover {
    background: var(--gunmetal);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(88, 164, 176, 0.3);
}

@keyframes slowRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

#changing-claim {
    display: inline-block;
    color: var(--text);
    font-weight: 400;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0 10px;
    font-size: 1.5rem;
}

#changing-claim span {
    color: var(--primary);
    font-weight: 600;
    position: relative;
    padding-bottom: 2px;
}

#changing-claim span::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(1);
    transform-origin: left;
    transition: transform 0.3s ease;
}

/* Přidáme animaci pro nový text */
@keyframes highlightIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#changing-claim span {
    animation: highlightIn 0.5s ease-out forwards;
    display: inline-block;
}

/* What I Do Section */
.what-i-do {
    background: var(--darker);
    padding: 6rem 2rem;
}

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

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

.specialties-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.specialties-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: var(--dark);
    border-radius: 8px;
    border: 1px solid rgba(0, 240, 255, 0.1);
    transition: transform 0.3s ease;
}

.specialties-list li:hover {
    transform: translateY(-3px);
}

.specialties-list i {
    color: var(--primary);
    font-size: 1.2rem;
}

/* Odstraním původní tech grid z pozadí */
.tech-grid {
    display: none;
}

/* Responzivní design pro What I Do sekci */
@media (max-width: 768px) {
    .specialties-list {
        flex-direction: column;
        align-items: center;
    }

    .specialties-list li {
        width: 100%;
        max-width: 300px;
    }
}

.specialty-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--dark);
    border-radius: 8px;
    border: 1px solid rgba(0, 240, 255, 0.1);
    transition: transform 0.3s ease;
    margin-bottom: 1rem;
}

.specialty-item:hover {
    transform: translateY(-3px);
}

.specialty-item i {
    color: var(--primary);
    font-size: 1.2rem;
}

.specialty-item span {
    color: var(--text);
    font-size: 1.1rem;
}

/* Upravím responzivitu */
@media (max-width: 768px) {
    .specialty-item {
        padding: 0.8rem 1rem;
    }
    
    .specialty-item span {
        font-size: 1rem;
    }
}

.linkedin-link {
    text-align: center;
    margin: 1rem 0 3rem 0;
}

.linkedin-link a {
    display: inline-flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem 2.5rem;
    background: var(--dark);
    border-radius: 8px;
    border: 1px solid rgba(0, 240, 255, 0.1);
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.linkedin-link a:hover {
    transform: translateY(-3px);
    background: var(--darker);
    border-color: var(--primary);
}

.linkedin-link i {
    color: var(--primary);
    font-size: 1.4rem;
}

.linkedin-link span {
    font-size: 1.1rem;
}

/* Optimalizace animací pro mobily */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Vylepšení navigace pro mobily */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
        justify-content: center;  /* Vycentruje TM logo */
    }

    .nav-links {
        display: none;  /* Skryje navigační odkazy na mobilu */
    }

    .nav-logo {
        margin: 0;  /* Odstraní margin pro lepší centrování */
        font-size: 1.3rem;  /* Případně upravit velikost pro mobil */
    }

    .section {
        padding: 3rem 1rem;
        margin-bottom: 1rem;
    }

    .split-container {
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .split-section {
        margin-bottom: 2rem;
    }

    .split-section h2 {
        font-size: 1.8rem;
    }

    .section.bg-alt {
        margin-top: 2rem;
        padding-top: 4rem;
        position: relative;
        z-index: 1;
        background: var(--section-bg);
    }

    .projects-grid {
        position: relative;
        z-index: 1;
    }

    .specialties-list {
        margin-bottom: 1rem;
    }

    .section-content {
        overflow: visible;
    }
}

/* Styly pro nadpisy sekcí */
.split-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    color: var(--text);
    display: inline-block;
}

.split-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
    display: block;
}

/* Odstranění původního h2::after, který způsoboval konflikt */
h2::after {
    display: none;
}

/* Obnovení stylu pro section-title */
.section-title::after {
    display: block;
} 