/* ============================
   Custom properties
   ============================ */
:root {
    --bg:      #ffffff;
    --surface: #f5f5f0;
    --ink:     #111827;
    --muted:   #6b7280;
    --accent:  #4f46e5;
    --ease:    cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================
   Base
   ============================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

/* ============================
   Animace
   ============================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulseLine {
    0%,100% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    20%      { opacity: 1; }
    50%      { transform: scaleY(1); transform-origin: top; }
    51%      { transform-origin: bottom; }
    80%      { transform: scaleY(0); transform-origin: bottom; opacity: 1; }
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(14px, -22px); }
}

/* Hero .fade-up – animuje se hned při načtení */
.hero .fade-up {
    opacity: 0;
    animation: fadeUp .9s var(--ease) forwards;
}

/* Sekce .fade-up – animuje se při scroll (JS přidá třídu .in-view) */
.section .fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.section .fade-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ============================
   Layout helper
   ============================ */
.wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================
   Hero sekce
   ============================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem 4rem;
    overflow: hidden;
    text-align: center;
}

/* Dekorativní rozmazané tvary v pozadí */
.hero__shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: .14;
    animation: floatShape 10s ease-in-out infinite;
}
.shape--1 { width: 540px; height: 540px; background: #7c3aed; top: -170px; right: -150px; }
.shape--2 { width: 440px; height: 440px; background: #2563eb; bottom: -130px; left: -130px; animation-delay: 3.5s; }
.shape--3 { width: 300px; height: 300px; background: #06b6d4; top: 52%; left: 46%; animation-delay: 7s; }

/* Obsah hero */
.hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.hero__logo { width: 160px; margin: 0 auto; }

.hero__name {
    font-size: clamp(1.9rem, 5vw, 3.4rem);
    font-weight: 300;
    letter-spacing: -.03em;
    line-height: 1.15;
}

.hero__tagline {
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
}

.hero__btn {
    display: inline-block;
    margin-top: .5rem;
    padding: .7rem 1.6rem;
    background: var(--accent);
    color: #fff;
    border-radius: 100px;
    font-size: .85rem;
    font-weight: 500;
    letter-spacing: .01em;
    box-shadow: 0 3px 20px rgba(79,70,229,.32);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.hero__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(79,70,229,.42);
}

@media (max-width: 600px) {
    .hero__btn { padding: .6rem 1.2rem; font-size: .82rem; }
}

/* Animovaná čára naznačující scroll */
.hero__scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    width: 1px;
    height: 56px;
    background: linear-gradient(to bottom, transparent, var(--ink));
    animation: pulseLine 2.4s ease-in-out infinite;
}

/* ============================
   Sekce (o mně, kontakt)
   ============================ */
.section {
    padding: 7rem 0;
}
.section--tint {
    background: var(--surface);
}

.section__label {
    display: block;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.section__title {
    font-size: clamp(1.65rem, 4vw, 2.6rem);
    font-weight: 300;
    letter-spacing: -.025em;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.section__text {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.85;
    max-width: 520px;
}

/* ============================
   Kontakt
   ============================ */
.contact-link {
    display: inline-block;
    margin-top: .5rem;
    font-size: clamp(1.25rem, 3vw, 1.8rem);
    font-weight: 300;
    color: var(--accent);
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
    transition: opacity .3s;
}
.contact-link:hover { opacity: .6; }

/* ============================
   Patička
   ============================ */
.footer {
    padding: 2rem;
    text-align: center;
    font-size: .8rem;
    color: var(--muted);
    border-top: 1px solid #e5e7eb;
}

/* ============================
   Responzivita
   ============================ */
@media (max-width: 600px) {
    .hero__logo { width: 115px; }
    .section    { padding: 5rem 0; }
    .wrap       { padding: 0 1.5rem; }
}