:root {
    --bg: #020408;
    --card-bg: #0a101e;
    --accent: #0071e3;
    --text-main: #f5f5f7;
    --text-dim: #86868b;
    --apple-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { 
    scroll-behavior: smooth; 
    background: var(--bg); 
}

body { 
    background-color: var(--bg); 
    color: var(--text-main); 
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif; 
    -webkit-font-smoothing: antialiased; 
    overflow-x: hidden; 
}

/* --- ANIMACE --- */
.reveal-smooth { 
    opacity: 0; 
    transform: translateY(50px) scale(0.97); 
    transition: all 1.2s var(--apple-ease); 
}
.reveal-smooth.active { 
    opacity: 1; 
    transform: translateY(0) scale(1); 
}

/* --- NAVIGACE --- */
nav { 
    position: fixed; 
    top: 0; width: 100%; 
    display: flex; justify-content: space-between; align-items: center;
    padding: 25px 8%; 
    background: rgba(2, 4, 8, 0.7);
    backdrop-filter: blur(25px); 
    z-index: 1000; 
}

.logo { font-weight: 700; letter-spacing: 2px; font-size: 1.1rem; }
.nav-links { display: flex; align-items: center; gap: 25px; }
.nav-links a { color: var(--text-main); text-decoration: none; font-size: 0.9rem; opacity: 0.7; transition: 0.3s; }
.nav-links a:hover { opacity: 1; color: var(--accent); }

/* --- HERO --- */
.hero { 
    height: 100vh; 
    display: flex; align-items: center; justify-content: center; 
    text-align: center; 
    background: radial-gradient(circle at center, #051125 0%, #020408 100%); 
}
.tagline { color: var(--accent); font-weight: 600; letter-spacing: 4px; text-transform: uppercase; font-size: 0.8rem; }
h1 { font-size: clamp(3rem, 10vw, 6rem); font-weight: 800; letter-spacing: -3px; margin: 10px 0; }
.blue-text { background: linear-gradient(120deg, #0071e3, #42a5f5); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.social-hero { display: flex; justify-content: center; gap: 25px; margin: 30px 0; }
.social-link { color: var(--text-dim); text-decoration: none; font-size: 0.9rem; transition: 0.3s; display: flex; align-items: center; gap: 8px; }
.social-link:hover { color: var(--accent); transform: translateY(-2px); }

.btn-primary { 
    display: inline-block; padding: 15px 35px; background: var(--accent); color: white; 
    text-decoration: none; border-radius: 40px; font-weight: 600; transition: 0.3s; 
}
.btn-primary:hover { transform: scale(1.05); box-shadow: 0 10px 30px rgba(0, 113, 227, 0.4); }

/* --- ABOUT ME --- */
.about-section { padding: 120px 10%; display: flex; justify-content: center; }
.about-container { 
    display: flex; align-items: center; gap: 60px; max-width: 1100px;
    background: var(--card-bg); padding: 60px; border-radius: 40px;
    border: 1px solid rgba(255,255,255,0.05);
}
.about-image img { width: 300px; height: 300px; border-radius: 30px; object-fit: cover; }
.nickname { color: var(--accent); font-weight: 600; }
.about-text h2 { font-size: 2.8rem; margin: 10px 0 20px; }
.about-text p { color: var(--text-dim); font-size: 1.1rem; margin-bottom: 30px; }
.about-stats { display: flex; gap: 40px; }
.stat span { display: block; color: #fff; font-size: 1.8rem; font-weight: 700; }

/* --- TRUST --- */
.trust-section { padding: 80px 10%; text-align: center; }
.section-subtitle { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 3px; color: var(--text-dim); margin-bottom: 40px; }
.trust-grid { display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; }
.avatar-wrapper { width: 90px; height: 90px; border-radius: 50%; overflow: hidden; border: 1.5px solid rgba(255,255,255,0.1); margin-bottom: 15px; }
.avatar-wrapper img { width: 100%; height: 100%; object-fit: cover; }

/* --- PORTFOLIO --- */
.portfolio { padding: 100px 8%; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); gap: 40px; }
.card { background: var(--card-bg); border-radius: 25px; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); transition: 0.5s var(--apple-ease); }
.card:hover { transform: translateY(-10px); border-color: var(--accent); }
.video-container { width: 100%; aspect-ratio: 16/9; background: #000; }
.video-container iframe { width: 100%; height: 100%; border: none; }
.card-info { padding: 25px; }

/* --- THE WOW FINALE --- */
.wow-footer {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}
.shutter {
    position: absolute;
    top: 0; width: 50.5%; height: 100%;
    background: var(--bg);
    z-index: 2;
    transition: transform 1.5s var(--apple-ease);
}
.shutter.left { left: 0; border-right: 1px solid rgba(255,255,255,0.05); }
.shutter.right { right: 0; border-left: 1px solid rgba(255,255,255,0.05); }

.wow-footer.active .shutter.left { transform: translateX(-100%); }
.wow-footer.active .shutter.right { transform: translateX(100%); }

.finale-content { text-align: center; z-index: 1; }
.huge-cta {
    font-size: clamp(3rem, 15vw, 10rem);
    font-weight: 900;
    text-decoration: none;
    display: block;
    margin-top: 20px;
    letter-spacing: -5px;
    transition: 0.5s var(--apple-ease);
}
.huge-cta:hover { transform: scale(1.05); filter: brightness(1.2); }

footer { padding: 60px; text-align: center; color: var(--text-dim); font-size: 0.8rem; }

@media (max-width: 900px) {
    .about-container { flex-direction: column; text-align: center; }
    .grid { grid-template-columns: 1fr; }
}

.vertical-portfolio {
    padding: 80px 8%;
    text-align: center;
}

.vertical-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.vertical-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: center;
    transition: transform 0.4s var(--apple-ease);
}

.vertical-card:hover {
    transform: scale(1.02);
}

/* Úprava Instagram embedu, aby seděl do designu */
.ig-container {
    width: 100%;
    max-width: 350px;
    padding: 10px;
}

.instagram-media {
    margin: 0 !important;
    border-radius: 15px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* RESPONZIVITA PRO MOBILY A TABLETY */
@media (max-width: 768px) {
    /* Zmenšení písma v Hero sekci, aby se text nerozlamoval ošklivě */
    h1 {
        font-size: clamp(2.5rem, 12vw, 3.5rem);
        letter-spacing: -1px;
    }

    /* Navigace na mobilu - schováme textové odkazy, nebo je dáme pod sebe */
    .nav-links {
        gap: 15px;
    }
    .nav-links a {
        font-size: 0.8rem;
    }

    /* Sekce O mně - fotka a text nad sebou místo vedle sebe */
    .about-container {
        flex-direction: column;
        padding: 40px 20px;
        text-align: center;
        gap: 30px;
    }

    .about-image {
        width: 180px; /* Menší fotka na mobilu */
        height: 180px;
    }

    /* Portfolio - mřížka bude mít jen 1 sloupec místo 2 nebo 3 */
    .grid, .vertical-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 0;
    }

    /* Trust sekce - loga blíž k sobě */
    .trust-grid {
        gap: 30px;
    }
    
    .avatar-wrapper {
        width: 70px;
        height: 70px;
    }

    /* WOW finále - zmenšení obřího nápisu */
    .huge-cta {
        font-size: 3.5rem;
        letter-spacing: -2px;
    }
}

/* ÚPRAVA PRO TABLETY (šířka mezi mobilem a PC) */
@media (min-width: 769px) and (max-width: 1024px) {
    .grid {
        grid-template-columns: 1fr 1fr; /* 2 sloupce na tabletu */
    }
}
.ig-container {
        max-width: 100%; /* Aby video nepřeteklo displej mobilu */
        padding: 5px;
    }