:root {
    --bg-dark: #050508;
    --bg-surface: rgba(20, 20, 30, 0.6);
    
    --neon-purple: #b52bff;
    --neon-pink: #ff2be5;
    --neon-blue: #2be5ff;
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0b8;
    
    --gradient-glow: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    
    --font-main: 'Outfit', sans-serif;
    --font-mono: 'Space Grotesk', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Selection */
::selection {
    background: var(--neon-purple);
    color: #fff;
}

/* Cursor Glow */
.cursor-glow {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(181, 43, 255, 0.15) 0%, rgba(0,0,0,0) 70%);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    transition: top 0.1s ease-out, left 0.1s ease-out;
}

/* Typography */
h1, h2, h3 {
    font-weight: 800;
    line-height: 1.2;
}

.text-gradient {
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.neon-dot {
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

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

.nav-links .btn-primary {
    color: #fff;
}

/* Buttons */
.btn-primary {
    background: var(--gradient-glow);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(181, 43, 255, 0.4);
    display: inline-block;
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 43, 229, 0.6);
}

.btn-secondary {
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    display: inline-block;
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    padding-top: 80px;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    padding-right: 2rem;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(43, 229, 255, 0.1);
    color: var(--neon-blue);
    border: 1px solid rgba(43, 229, 255, 0.3);
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.glitch {
    font-size: 4.5rem;
    position: relative;
    color: white;
}

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

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 red;
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: 2px 0 blue;
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% { clip: rect(20px, 9999px, 85px, 0); }
    20% { clip: rect(92px, 9999px, 12px, 0); }
    40% { clip: rect(62px, 9999px, 42px, 0); }
    60% { clip: rect(10px, 9999px, 5px, 0); }
    80% { clip: rect(78px, 9999px, 50px, 0); }
    100% { clip: rect(31px, 9999px, 89px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(85px, 9999px, 10px, 0); }
    20% { clip: rect(12px, 9999px, 60px, 0); }
    40% { clip: rect(50px, 9999px, 15px, 0); }
    60% { clip: rect(80px, 9999px, 40px, 0); }
    80% { clip: rect(20px, 9999px, 90px, 0); }
    100% { clip: rect(95px, 9999px, 5px, 0); }
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

/* Image Wrapper */
.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.cyber-frame {
    position: relative;
    width: 450px;
    height: 550px;
    border-radius: 20px;
    padding: 4px;
    background: linear-gradient(135deg, var(--neon-purple), transparent 50%, var(--neon-blue));
    box-shadow: 0 0 40px rgba(181, 43, 255, 0.2);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.cyber-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-dark);
    border-radius: 18px;
    z-index: 0;
}

.img-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-surface);
    border-radius: 16px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Tady bude obrázek z UI - použijeme zástupnou neon barvu prozatím */
    background: url('lia.jpg') center/cover no-repeat;
}

/* Fallback pro případ chybějícího obrázku */
.img-text {
    font-family: var(--font-mono);
    color: var(--neon-purple);
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.5;
}

.hud-elements {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 2;
}

.hud-box {
    position: absolute;
    width: 40px; height: 40px;
    border: 2px solid var(--neon-blue);
    opacity: 0.5;
}

.hud-box:nth-child(1) {
    top: -10px; left: -10px;
    border-right: none; border-bottom: none;
}
.hud-box:nth-child(2) {
    bottom: -10px; right: -10px;
    border-left: none; border-top: none;
}

/* Sections Common */
section {
    padding: 100px 10%;
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

/* Services Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.glass {
    background: var(--bg-surface);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 2.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.bento-box {
    position: relative;
    overflow: hidden;
}

.bento-box:hover {
    transform: translateY(-5px);
    border-color: rgba(181, 43, 255, 0.3);
}

.bento-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: var(--gradient-glow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.bento-box:hover::before {
    transform: scaleX(1);
}

.icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.bento-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.bento-box p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Contact Section */
.contact-card {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
}

.input-group {
    position: relative;
}

.input-group input, .input-group textarea {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 10px;
    color: white;
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group input:focus, .input-group textarea:focus {
    border-color: var(--neon-purple);
    box-shadow: 0 0 10px rgba(181, 43, 255, 0.2);
}

.input-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    pointer-events: none;
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
    top: -0.5rem;
    left: 0.8rem;
    font-size: 0.8rem;
    background: var(--bg-dark);
    padding: 0 0.4rem;
    color: var(--neon-purple);
}

.btn-submit {
    width: 100%;
    margin-top: 1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 120px;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 4rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .cyber-frame {
        width: 100%;
        max-width: 400px;
        height: 500px;
    }
}

@media (max-width: 768px) {
    .glitch { font-size: 3.5rem; }
    .hero-content h2 { font-size: 2rem; }
    .nav-links { display: none; } /* V reálu bychom sem dali hamburger menu */
}
