/* ==========================================================================
   HERO COMPONENTS - DANIEL WOŹNIAK (SKOPIOWANE Z BACKUP)
   ========================================================================== */

.hero {
    min-height: 35vh;
    display: flex;
    align-items: center;
    position: relative;
    background:
        linear-gradient(135deg, rgba(10, 25, 47, 0.95) 0%, rgba(26, 54, 93, 0.95) 100%),
        radial-gradient(ellipse at top right, rgba(0, 122, 204, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(247, 147, 30, 0.05) 0%, transparent 50%);
    padding: clamp(5rem, 8vw, 6rem) 0 0rem 0;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(0,122,204,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-overline {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.hero-main-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary-light);
    margin: 0 0 1rem 0;
    letter-spacing: -0.02em;
    position: relative;
}

/* TYPEWRITER EFFECT */
.typewriter-text {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

.typewriter-cursor {
    display: inline-block;
    background: var(--accent-blue);
    width: 3px;
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

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

.typewriter-complete .typewriter-cursor {
    display: none;
}

.hero-emphasis-line {
    margin-top: 1rem;
    position: relative;
    display: inline-block;
}

.hero-emphasis {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 700;
    color: var(--accent-blue);
    position: relative;
    display: inline-block;
    opacity: 1;
    line-height: 1.4;
}

.hero-emphasis::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-gold));
    border-radius: 2px;
    animation: underlineGlow 2s ease-in-out infinite;
}

@keyframes underlineGlow {
    0%, 100% {
        opacity: 0.8;
        transform: scaleX(1);
    }
    50% {
        opacity: 1;
        transform: scaleX(1.05);
    }
}

.hero-description {
    font-size: clamp(1.1rem, 2.2vw, 1.3rem);
    line-height: 1.6;
    color: var(--text-light);
    margin: 1rem 0 2rem 0;
}

.hero-cta-section {
    display: flex;
    gap: 1.5rem;
    margin: 3rem 0;
}

.hero-cta-primary {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-light) 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-cta-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.6s ease;
}

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

.hero-cta-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.hero-cta-secondary {
    padding: 1rem 1.5rem;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: var(--border-radius-md);
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.4;
    transition: var(--transition-normal);
    text-align: center;
}

.hero-cta-secondary:hover {
    background: rgba(0, 122, 204, 0.15);
    border-color: var(--accent-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 122, 204, 0.3);
}

.hero-social-proof {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0 1rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

/* Journey stats styles moved to stats-enhanced.css for 3D flip effects */

/* Journey styles removed - using stats-enhanced.css */

/* All journey styles now handled by stats-enhanced.css */

.proof-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.proof-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-blue);
}

.proof-item.highlight .proof-number {
    font-size: 2rem;
    color: var(--accent-gold);
    text-shadow: 0 2px 8px rgba(247, 147, 30, 0.3);
}

.proof-item.highlight .proof-label {
    color: var(--accent-gold);
    font-weight: 600;
}

.proof-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-quote {
    margin: 3rem 0;
    max-width: 600px;
}

.hero-quote blockquote {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    line-height: 1.5;
    color: #666666;
    margin: 0;
    font-weight: 300;
}

.hero-right {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 1rem;
}

.hero-image-container {
    position: relative;
    width: 100%;
    max-width: 378px;
    height: 378px;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: var(--transition-slow);
}

.hero-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 25%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-image-container:hover .hero-image {
    transform: scale(1.02);
}

.hero-image-container:hover .hero-brand-circle {
    transform: scale(1.1);
    border-color: var(--accent-gold);
}

.hero-image-container:hover .hero-overlay-content {
    transform: translateY(-2px);
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    background: linear-gradient(135deg, rgba(10,25,47,0.85) 0%, rgba(0,122,204,0.75) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: var(--transition-normal);
}

.hero-image-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(0,122,204,0.1) 20px, rgba(0,122,204,0.1) 40px);
}

.hero-brand-circle {
    width: 80px;
    height: 80px;
    border: 3px solid var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    background: rgba(0,122,204,0.2);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 3;
    transition: var(--transition-normal);
}

.hero-dw-sygnet {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.hero-overlay-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--text-primary);
    transition: var(--transition-normal);
}

.overlay-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    color: white;
}

.overlay-subtitle {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
    font-family: var(--font-family-mono);
    letter-spacing: 0.05em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.hero-corner-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 60px 60px 0;
    border-color: transparent rgba(0,122,204,0.6) transparent transparent;
    z-index: 4;
}

/* ==========================================================
   TRANSFORM OVERLAY (Problem → Rozwiązanie) w zdjęciu
   ========================================================== */
.transform-overlay {
    width: 88%;
    max-width: 760px;
    margin: 0 auto 1.2rem;
    padding: 0.8rem 1rem;
    background: rgba(10,25,47,0.7);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    backdrop-filter: blur(4px);
}

.to-badge { display: none; }

.to-header {
    text-align: center;
    font-size: clamp(1.15rem, 2.4vw, 1.6rem);
    color: var(--text-primary-light);
    font-weight: 700;
    margin: 0 0 0.9rem 0;
    line-height: 1.35;
}

.to-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.9rem; align-items: start; }

.to-col { background: transparent; border: none; padding: 0; }

.to-problem {}
.to-solution {}

.to-col-title {
    font-size: 0.95rem;
    color: var(--text-primary-light);
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.to-list { list-style: none; margin: 0; padding: 0; }
.to-list li { position: relative; padding-left: 1rem; color: var(--text-primary-light); line-height: 1.5; font-size: 0.98rem; }
.to-list li::before { content: '•'; position: absolute; left: 0; color: var(--text-secondary); }
.to-solution .to-list li::before { content: '✓'; color: var(--accent-gold); font-weight: 700; }

.to-sep { display: flex; align-items: center; justify-content: center; color: var(--accent-gold); font-weight: 900; font-size: 1.2rem; opacity: 0.85; }

.to-tagline { display: none; }

/* CTA przeniesione na dół sekcji */
.hero-cta-row {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    margin: 1.25rem auto 48px;
}

/* Subtelne podświetlenie cykliczne (opcjonalne) */
@keyframes subtlePulse {
    0%, 100% { box-shadow: 0 0 0 rgba(100,255,218,0); }
    50% { box-shadow: 0 0 0 6px rgba(100,255,218,0.08); }
}
.to-solution { animation: none; }

/* Responsive dla overlay */
@media (max-width: 1024px) {
    .to-grid { grid-template-columns: 1fr; gap: 0.5rem; }
    .to-sep { display: none; }
}

/* ==========================================================
   HERO VARIANTS
   A: overlay-pasek na zdjęciu (domyślnie)
   B: mozaika obok zdjęcia
   ========================================================== */
.hero { --hero-variant: 'a'; }
.hero .hero-mosaic { display: none; }

.hero.hero-variant-b .hero-image-overlay { display: none; }
.hero.hero-variant-b .hero-mosaic { display: flex; flex-direction: column; gap: 12px; }

.hero-right-grid { display: block; }
.hero.hero-variant-b .hero-right-grid { display: grid; grid-template-columns: auto 260px; gap: 16px; align-items: stretch; }

.mosaic-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 14px;
}
.mosaic-title { color: var(--text-primary-light); font-weight: 600; margin-bottom: 6px; }
.mosaic-list { list-style: none; padding: 0; margin: 0; }
.mosaic-list li { position: relative; padding-left: 1rem; color: var(--text-light); line-height: 1.5; font-size: 0.95rem; }
.mosaic-list li::before { content: '•'; position: absolute; left: 0; color: var(--text-secondary); }
.mosaic-solution .mosaic-list li::before { content: '✓'; color: var(--accent-gold); font-weight: 700; }

@media (max-width: 1024px) {
  .hero.hero-variant-b .hero-right-grid { grid-template-columns: 1fr; }
  .hero.hero-variant-b .hero-mosaic { display: none; }
}

/* Typing line pod opisem */
.hero-typing { margin-top: -0.5rem; color: var(--text-secondary); font-size: 0.95rem; min-height: 1.2em; }
.hero-typing #heroTyping::after { content: '|'; margin-left: 2px; color: var(--accent-blue); animation: blink 1s infinite; }

/* Safety: wymuszenie widoczności wariantu A */
.hero.hero-variant-a .hero-image-container { max-width: 378px; height: 378px; }
.hero.hero-variant-a .hero-image-overlay { display: flex; }
.hero.hero-variant-a .hero-image { opacity: 1; }

/* FULL WIDTH QUOTE SECTION */
.hero-quote-full-width {
    padding: 1rem 0;
    background: linear-gradient(135deg,
        rgba(247, 147, 30, 0.03) 0%,
        rgba(10, 25, 47, 0.08) 50%,
        rgba(0, 122, 204, 0.03) 100%
    );
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.hero-quote-full-width::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(0, 122, 204, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-quote-main {
    font-size: clamp(1.4rem, 3.5vw, 2.2rem);
    line-height: 1.4;
    color: var(--text-primary-light);
    margin: 0;
    font-weight: 400;
    text-align: center;
    position: relative;
    z-index: 2;
    font-style: italic;
}

.rotating-text {
    color: var(--accent-gold);
    font-weight: 700;
    position: relative;
    display: inline-block;
    min-width: 150px;
    text-align: left;
}

.rotating-text::after {
    content: '|';
    color: var(--accent-blue);
    animation: blink 1s infinite;
    margin-left: 2px;
    font-weight: 400;
}

/* TYPEWRITER ROTATION ANIMATION */
@keyframes typeWriter {
    0% { width: 0; }
    20% { width: 100%; }
    80% { width: 100%; }
    100% { width: 0; }
}

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

/* FULL WIDTH STATS SECTION */
.hero-stats-full-width {
    padding: 2rem 0;
    background: linear-gradient(135deg,
        rgba(0, 122, 204, 0.03) 0%,
        rgba(10, 25, 47, 0.05) 50%,
        rgba(247, 147, 30, 0.02) 100%
    );
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-stats-full-width .hero-social-proof {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 0;
    border: none;
}

.hero-stats-full-width .hero-journey-stats {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 0;
    border: none;
}

/* FADE TEXT ANIMATION */
.fade-text {
    opacity: 1;
    animation: fadeInOut 3s ease-in-out infinite;
    color: var(--accent-gold);
    font-weight: 700;
}

.fade-text:nth-child(2) {
    animation-delay: 1.5s;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 1; transform: translateY(0); }
    25%, 75% { opacity: 0.3; transform: translateY(-2px); }
    50% { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE STYLES */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-image-container {
        order: -1;
        max-width: 345px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
        padding: 2rem 0 4rem 0;
    }

    .hero-content {
        gap: 2rem;
        padding-top: 2rem;
    }

    .hero-cta-section {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .hero-cta-primary,
    .hero-cta-secondary {
        width: 100%;
        max-width: 100%;
        text-align: center;
        padding: 1rem 1.2rem;
        font-size: 0.95rem;
    }

    .hero-social-proof {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .hero-image-container {
        max-width: 295px;
        margin: 0 auto;
    }

    .hero-brand-circle {
        width: 60px;
        height: 60px;
    }

    .hero-dw-sygnet {
        font-size: 1.5rem;
    }

    .overlay-title {
        font-size: 1rem;
    }

    .overlay-subtitle {
        font-size: 0.75rem;
    }

    .hero-corner-accent {
        border-width: 0 40px 40px 0;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 60vh;
        padding: 3rem 0;
    }

    .hero-main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-cta-primary,
    .hero-cta-secondary {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }

    .hero-social-proof {
        gap: 1rem;
    }

    .proof-number {
        font-size: 1.2rem;
    }

    .proof-label {
        font-size: 0.75rem;
    }
}
