/* ============================================
   HELENA HOLUBOVÁ — Prezentace pro MeasureDesign
   Visual DNA: Dark + Teal accent (#2dd4bf)
   Font: IBM Plex Sans / Condensed
   ============================================ */

:root {
    --primary: #0f172a;
    --secondary: #1e293b;
    --accent: #2dd4bf;
    --accent-hover: #14b8a6;
    --accent-glow: rgba(45, 212, 191, 0.15);
    --text-light: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --text-bright: #cbd5e1;
    --bg-light: #ffffff;
    --bg-alt: #f8fafc;
    --bg-dark: #0f172a;
    --bg-dark-alt: #1e293b;
    --glass-border: rgba(255, 255, 255, 0.08);
    --transition: all 0.3s ease;
    --white: #ffffff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Sans', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-dark);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

* {
    max-width: 100%;
}

img,
video {
    height: auto;
}

h1,
h2,
h3,
h4 {
    font-family: 'IBM Plex Sans Condensed', sans-serif;
    font-weight: 700;
    line-height: 1.1;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- HERO SECTION --- */
@keyframes heroGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(-45deg, #0f172a, #16233d, #1e293b, #0c1831);
    background-size: 400% 400%;
    animation: heroGradient 15s ease infinite;
    color: var(--text-light);
    overflow: hidden;
    padding: 4rem 0;
}

#hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent);
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

#hero h1 {
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

#hero h1 .highlight {
    color: var(--accent);
}

#hero .subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2.5rem;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
}

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--accent);
    color: var(--primary);
    border: none;
    font-weight: 700;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 212, 191, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(45, 212, 191, 0.05);
}

/* --- SECTIONS --- */
section {
    padding: 6rem 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.section-title.center {
    text-align: center;
}

.section-title.center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* --- WHAT I BRING (LIGHT/ALT) --- */
#co-prinesu {
    background: var(--bg-alt);
    /* Light background */
    color: var(--text-dark);
    /* Dark text */
}

#co-prinesu .section-title {
    color: var(--text-dark);
}

#co-prinesu .section-subtitle {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 650px;
    margin-bottom: 3.5rem;
    line-height: 1.7;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Force 2x2 layout for 4 items */
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
        /* Stack on smaller screens */
    }
}

.card {
    background: var(--bg-light);
    /* White card background */
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Softer border for light mode */
    padding: 2.5rem 2rem;
    border-radius: 16px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    /* Slight shadow */
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: var(--transition);
}

.card:hover::before {
    background: var(--accent);
}

.card:hover {
    border-color: rgba(45, 212, 191, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    /* Adjusted shadow for light theme */
}

.card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: block;
    opacity: 0.9;
    transition: var(--transition);
}

.card:hover i {
    opacity: 1;
}

.card h3 {
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    color: var(--text-dark);
    /* Dark text on light card */
    font-weight: 700;
}

.card p {
    color: var(--text-muted);
    /* Muted dark text */
    line-height: 1.7;
    font-size: 1.05rem;
    flex-grow: 1;
}

/* --- MATCH SECTION (DARK) --- */
#proc-ja {
    background: linear-gradient(90deg, var(--bg-dark) 0%, #16233d 50%, var(--bg-dark) 100%);
    color: var(--text-light);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

#proc-ja::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.05) 0%, transparent 60%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

#proc-ja .section-title {
    color: var(--text-light);
    /* Update to match dark background */
}

.match-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.match-list {
    list-style: none;
    padding: 0;
}

.match-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.8rem;
    align-items: flex-start;
}

.match-list li i {
    color: var(--accent);
    font-size: 1.1rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.match-list li strong {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--text-light);
    font-size: 1.15rem;
}

.match-list li span {
    color: var(--text-bright);
    /* Use bright instead of muted for dark background */
    font-size: 1.05rem;
    line-height: 1.6;
}

.match-highlight {
    background: var(--bg-dark-alt);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    border-left: 6px solid var(--accent);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    color: var(--text-light);
}

.match-highlight h3 {
    color: var(--text-light);
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
}

.match-highlight blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 1.5rem;
    margin: 0 0 2rem 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    font-size: 1.05rem;
}

.match-highlight-footer {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.match-highlight-footer p:first-child {
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.match-highlight-footer p:last-child {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* --- SHOWCASE (LIGHT) --- */
#showcase {
    background: var(--bg-light);
    /* White background */
    color: var(--text-dark);
}

#showcase .section-title {
    color: var(--text-dark);
}

#showcase .section-subtitle {
    color: var(--text-muted);
    /* Better suited for light background */
    font-size: 1.15rem;
    margin-bottom: 3rem;
    line-height: 1.7;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
}

.showcase-item {
    background: var(--bg-alt);
    /* slightly off-white instead of dark */
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Softer glass border */
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    /* Slight shadow */
}

.showcase-item:hover {
    border-color: rgba(45, 212, 191, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    /* Adjusted shadow for light theme */
    transform: translateY(-4px);
}

.device-mockup-wrapper {
    width: 100%;
    height: 380px;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
    display: block;
}

.mockup-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 20s cubic-bezier(0.45, 0.05, 0.55, 0.95);
    transform: translateY(0);
}

.showcase-item:hover .mockup-image {
    transform: translateY(calc(-100% + 380px));
}

.showcase-content {
    padding: 2rem;
    background: var(--bg-light);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.showcase-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.7rem;
    color: var(--text-dark);
    /* Dark text on light content */
}

.showcase-content p {
    color: var(--text-muted);
    /* Muted text on light */
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 1.05rem;
}

.showcase-content .url-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
    margin-top: 1.5rem;
}

.showcase-content .url-link:hover {
    color: var(--accent-hover);
}

/* --- SKILL TAGS --- */
.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.skill-tag {
    display: inline-block;
    padding: 5px 14px;
    background: var(--bg-light);
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
}

.skill-tag.light {
    background: #ffffff;
    color: var(--text-muted);
    border: 1px solid #e2e8f0;
}

/* --- HOW I WORK (DARK) --- */
#jak-pracuji {
    background: linear-gradient(100deg, var(--bg-dark) 0%, #15213c 100%);
    color: var(--text-light);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

#jak-pracuji::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.06) 0%, transparent 60%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

#jak-pracuji .section-title {
    color: var(--text-light);
}

#jak-pracuji .section-subtitle {
    color: var(--text-bright);
    font-size: 1.15rem;
    margin-bottom: 3rem;
    max-width: 600px;
    line-height: 1.7;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    counter-reset: step;
}

.process-step {
    background: var(--bg-dark-alt);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    position: relative;
    transition: var(--transition);
    counter-increment: step;
}

.process-step::before {
    content: counter(step, decimal-leading-zero);
    display: block;
    font-family: 'IBM Plex Sans Condensed', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.3;
    margin-bottom: 1rem;
    line-height: 1;
}

.process-step:hover {
    border-color: rgba(45, 212, 191, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.process-step h3 {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 0.6rem;
}

.process-step p {
    color: var(--text-bright);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* --- AI SECTION --- */
.ai-banner {
    background: linear-gradient(100deg, var(--bg-dark) 0%, #15213c 100%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3.5rem;
    position: relative;
    overflow: hidden;
    color: var(--text-light);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.ai-banner::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.08) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}

.ai-banner h2 {
    color: var(--text-light);
}

.ai-banner p {
    color: var(--text-bright);
    font-size: 1.05rem;
    max-width: 680px;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* --- CONTACT SECTION (LIGHT) --- */
#kontakt {
    background: var(--bg-alt);
    /* Light background for contact section */
    color: var(--text-dark);
}

#kontakt .section-title {
    color: var(--text-dark);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3.5rem;
    align-items: start;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1.05rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-item i {
    color: var(--accent);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.contact-item a,
.contact-item span {
    color: var(--text-muted);
    /* Better suited for light background */
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--accent);
}

.contact-cta {
    background: var(--bg-light);
    /* pure white block */
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--accent);
    padding: 3.5rem 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.contact-cta h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.contact-cta p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

.contact-cta .btn-primary {
    padding: 1.1rem 2.5rem;
    font-size: 1rem;
    width: 100%;
}

.contact-cta .phone-line {
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    /* Adjust border for light theme */
    font-size: 0.95rem;
    color: var(--text-muted);
}

.contact-cta .phone-line a {
    color: var(--text-dark);
    /* Make phone number stand out in dark text */
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.contact-cta .phone-line a:hover {
    color: var(--accent);
}

/* --- FOOTER --- */
footer {
    background: #0a0f1c;
    color: var(--text-light);
    padding: 4rem 0 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-brand p {
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 320px;
    font-size: 0.9rem;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1rem;
}

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

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-contact p {
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- ANIMATIONS --- */
[data-reveal] {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- BACK TO TOP --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 42px;
    height: 42px;
    background: var(--accent);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    z-index: 100;
    transition: var(--transition);
    font-size: 0.9rem;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(45, 212, 191, 0.3);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 992px) {
    .container {
        padding: 0 1.5rem;
    }

    section {
        padding: 4rem 0;
    }

    .match-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    section {
        padding: 3rem 0;
    }

    #hero {
        min-height: auto;
        padding: 4rem 0;
    }

    #hero h1 {
        font-size: clamp(1.8rem, 7vw, 2.4rem);
    }

    #hero .subtitle {
        font-size: 1rem;
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .section-title {
        font-size: clamp(1.7rem, 5vw, 2rem);
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .device-mockup-wrapper {
        height: 300px;
    }

    .showcase-item:hover .mockup-image {
        transform: translateY(calc(-100% + 300px));
    }

    .process-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .ai-banner {
        padding: 2.5rem 1.5rem;
    }

    .match-highlight {
        padding: 2rem 1.5rem;
    }

    .contact-cta {
        padding: 2.5rem 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.875rem;
    }

    section {
        padding: 2.5rem 0;
    }

    #hero {
        padding: 3rem 0;
    }

    #hero h1 {
        font-size: 1.6rem;
    }

    .btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

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

    .card {
        padding: 1.8rem 1.3rem;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .process-step {
        padding: 1.5rem 1.2rem;
    }

    .ai-banner {
        padding: 2rem 1.2rem;
        border-radius: 14px;
    }

    .ai-banner p {
        font-size: 0.95rem;
    }

    .device-mockup-wrapper {
        height: 260px;
    }

    .showcase-item:hover .mockup-image {
        transform: translateY(calc(-100% + 260px));
    }

    .showcase-content {
        padding: 1.2rem;
    }

    .match-highlight {
        padding: 1.5rem;
        border-radius: 14px;
    }

    .contact-cta {
        padding: 2rem 1.2rem;
    }

    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 38px;
        height: 38px;
    }

    .footer-grid {
        gap: 1.5rem;
    }
}