/* =============================================================
   SECTIONS.CSS - Challenge, Services, Tech, Contact
   ============================================================= */

/* ============== CHALLENGE SECTION ============== */

.challenge {
    background: linear-gradient(180deg, var(--dark-2) 0%, var(--dark-1) 100%);
    position: relative;
    overflow: hidden;
}

.challenge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 0, 110, 0.1) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.challenge-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.challenge-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.challenge-header {
    margin-bottom: 3rem;
}

.challenge-examples {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 3rem 0;
}

.challenge-example {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 0, 110, 0.1);
    border: 2px solid var(--pink);
    border-radius: 15px;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.challenge-example:hover {
    background: rgba(255, 0, 110, 0.2);
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(255, 0, 110, 0.3);
}

.challenge-example i {
    font-size: 1.5rem;
    color: var(--pink);
}

.challenge-statement {
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
}

.challenge-lead {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.challenge-emphasis {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.challenge-emphasis strong {
    color: var(--pink);
}

.challenge-cta {
    margin-top: 3rem;
}

.cta-button-large {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 3rem;
    background: linear-gradient(135deg, var(--pink) 0%, var(--purple) 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(255, 0, 110, 0.4);
}

.cta-button-large:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 50px rgba(255, 0, 110, 0.6);
}

.cta-button-large i {
    transition: transform 0.3s ease;
}

.cta-button-large:hover i {
    transform: translateX(5px);
}

/* ============== SERVICES SECTION ============== */

.services {
    background: var(--dark-1);
}

.outcomes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.outcome-card {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.outcome-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.outcome-card:hover {
    background: rgba(0, 245, 255, 0.05);
    border-color: var(--cyan);
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 245, 255, 0.2);
}

.outcome-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 245, 255, 0.1);
    border-radius: 15px;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: var(--cyan);
    transition: all 0.3s ease;
}

.outcome-card:hover .outcome-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.5);
}

.outcome-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.outcome-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}

.outcome-card small {
    display: block;
    font-size: 0.9rem;
    margin-top: 1rem;
    line-height: 1.5;
}

/* Replaces the old inline style="color:#00f5ff;display:block;margin-top:10px"
   previously hardcoded on the SaaS-hosting note inside an outcome card. */
.outcome-note {
    color: var(--cyan);
    opacity: 0.85;
}

/* ============== TECH SECTION ============== */

.tech {
    background: linear-gradient(180deg, var(--dark-1) 0%, var(--dark-2) 100%);
    text-align: center;
}

.tech-stack-brief {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    min-width: 150px;
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--cyan);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.2);
}

.tech-item i {
    font-size: 3rem;
    color: var(--cyan);
}

.tech-item span {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.tech-note {
    margin-top: 3rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ============== CONTACT SECTION ============== */

.contact {
    background: var(--dark-1);
    padding-bottom: 4rem;
}

.contact-wrapper {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.contact-content {
    margin-bottom: 3rem;
}

.contact-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

/* Now that Telegram is gone and only 2 cards remain (WhatsApp + Email),
   keep them from spreading too far apart on wide screens. */
.contact-grid--2col {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2.5rem 3rem;
    background: rgba(0, 245, 255, 0.05);
    border: 2px solid var(--cyan);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.4s ease;
    min-width: 280px;
    flex: 1;
    max-width: 350px;
}

.contact-card:hover {
    background: rgba(0, 245, 255, 0.1);
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 60px rgba(0, 245, 255, 0.4);
}

/* WhatsApp card gets its authentic brand green instead of the uniform
   neon-cyan terminal palette -- friendlier and instantly recognisable
   to non-technical visitors, while the email card stays on-brand cyan. */
.contact-card--whatsapp {
    background: rgba(37, 211, 102, 0.06);
    border-color: rgba(37, 211, 102, 0.55);
}

.contact-card--whatsapp:hover {
    background: rgba(37, 211, 102, 0.12);
    box-shadow: 0 20px 60px rgba(37, 211, 102, 0.35);
}

.contact-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cyan);
    border-radius: 50%;
    font-size: 2.5rem;
    color: var(--dark-1);
    transition: all 0.3s ease;
}

.contact-icon--whatsapp {
    background: #25D366;
    color: #0a0e1a;
}

.contact-card:hover .contact-icon {
    transform: rotate(360deg) scale(1.1);
}

.contact-card h3 {
    font-size: 1.5rem;
    color: white;
    margin: 0;
}

.contact-card p {
    font-size: 1.2rem;
    color: var(--cyan);
    font-weight: 600;
    margin: 0;
}

.contact-card--whatsapp p {
    color: #25D366;
}

.contact-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #00ff00;
    margin-top: 0.5rem;
}

.contact-status.online::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
    box-shadow: 0 0 10px #00ff00;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ============== CONTACT NOTE ============== */

.contact-note {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
}

.contact-note p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.contact-note p:last-child {
    margin-bottom: 0;
}

.contact-note strong {
    color: white;
    font-weight: 700;
}

.contact-note-detail {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.65);
}

.contact-note-links {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
}

.contact-note a {
    color: var(--cyan);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-note a:hover {
    color: var(--purple);
    text-decoration: underline;
}

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

@media (max-width: 768px) {
    .challenge-example {
        font-size: 1rem;
        padding: 1rem;
    }
    .challenge-emphasis {
        font-size: 1.5rem;
    }
    .cta-button-large {
        padding: 1.2rem 2rem;
        font-size: 1.1rem;
    }
    .outcomes-grid {
        grid-template-columns: 1fr;
    }
    .outcome-card {
        padding: 2rem;
    }
    .tech-stack-brief {
        gap: 1rem;
    }
    .tech-item {
        min-width: 120px;
        padding: 1rem;
    }
    .tech-item i {
        font-size: 2.5rem;
    }
    .contact-grid {
        flex-direction: column;
        align-items: stretch;
    }
    .contact-card {
        min-width: auto;
        max-width: none;
        padding: 2rem;
    }
    .contact-note {
        padding: 1.5rem;
    }
    .contact-note p {
        font-size: 1rem;
    }
}

.contact-avatar-container {
    display: flex;
    justify-content: center;
    margin: 0 auto 2.5rem auto; /* Vycentrování a mezera pod avatarem */
    position: relative;
}

.contact-avatar-frame {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #00f5ff, #0af357); /* Hezký tech přechod na hraně */
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.2);
}

.contact-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* Volitelná pulzující záře na pozadí avatara */
.contact-avatar-glow {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 50%;
    background: inherit;
    filter: blur(10px);
    opacity: 0.4;
    z-index: -1;
}