/* ============================================
   KAVER — O NAS (rebranding, osobny plik)
   Ładowany PO style.css — nadpisuje style sekcji
   ============================================ */

/* ============ HERO ============ */
.about-hero {
    position: relative;
    padding: 70px 0 90px;
    overflow: hidden;
}
@media (min-width: 992px) {
    .about-hero { padding: 100px 0 120px; min-height: 78vh; display: flex; align-items: center; }
}

.about-hero-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}
@media (min-width: 992px) {
    .about-hero-wrap { grid-template-columns: 1.2fr 1fr; gap: 70px; }
}

.about-hero-text { max-width: 640px; }

.about-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2rem, 7vw, 4.2rem);
    line-height: 1.08;
    letter-spacing: 1.5px;
    color: #fff;
    margin: 20px 0 24px;
    text-shadow: 0 0 70px rgba(255, 0, 64, 0.35);
}

.about-name {
    display: inline-block;
    position: relative;
    background: linear-gradient(135deg, #fff 0%, var(--red-2) 45%, var(--red) 70%, var(--red-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 70px rgba(255, 0, 64, 0.55);
    animation: nameShine 4s ease-in-out infinite;
    background-size: 200% 200%;
}
@keyframes nameShine {
    0%, 100% { background-position: 0% 50%; filter: drop-shadow(0 0 20px rgba(255,0,64,0.5)); }
    50%      { background-position: 100% 50%; filter: drop-shadow(0 0 40px rgba(255,0,64,0.8)); }
}

.about-sub {
    font-size: clamp(1rem, 2.2vw, 1.18rem);
    color: var(--text-2);
    line-height: 1.85;
    margin-bottom: 34px;
    max-width: 560px;
}

/* ============ KARTA WIZYTÓWKI ============ */
.about-hero-card {
    position: relative;
    padding: 42px 34px;
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 0, 64, 0.18), transparent 45%),
        linear-gradient(180deg, rgba(28, 14, 20, 0.85), rgba(10, 10, 15, 0.95));
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.6),
        0 0 80px rgba(255, 0, 64, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
    animation: profileFloat 7s ease-in-out infinite;
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
    isolation: isolate;
}
@keyframes profileFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-12px) rotate(-0.5deg); }
}

.about-hero-card::before {
    content: '';
    position: absolute;
    top: 0; left: 15%;
    width: 70%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
    box-shadow: 0 0 24px var(--red);
    z-index: 1;
}

.about-hero-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 0, 64, 0.4), transparent 40%, transparent 60%, rgba(255, 0, 64, 0.2));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}

.about-orb {
    position: absolute;
    top: -100px; right: -100px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(255, 0, 64, 0.4), transparent 65%);
    filter: blur(50px);
    pointer-events: none;
    z-index: 0;
    animation: orbFloat 9s ease-in-out infinite;
}
.about-orb-2 {
    top: auto; right: auto;
    bottom: -120px; left: -120px;
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(255, 0, 64, 0.55), transparent 65%);
    animation-delay: -4.5s;
}
@keyframes orbFloat {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50%      { transform: scale(1.25); opacity: 1; }
}

.about-profile {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 26px;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--border-soft);
}

.about-avatar {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 40px var(--red-glow),
        inset 0 -6px 16px rgba(0, 0, 0, 0.35),
        inset 0 4px 12px rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
    position: relative;
    animation: avatarPulse 3s ease-in-out infinite;
}
@keyframes avatarPulse {
    0%, 100% { box-shadow: 0 0 40px var(--red-glow), inset 0 -6px 16px rgba(0,0,0,0.35), inset 0 4px 12px rgba(255,255,255,0.15); }
    50%      { box-shadow: 0 0 60px var(--red-glow), 0 0 100px rgba(255,0,64,0.4), inset 0 -6px 16px rgba(0,0,0,0.35), inset 0 4px 12px rgba(255,255,255,0.15); }
}

.about-profile-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    text-align: left;
}
.about-profile-info strong {
    font-family: var(--font-display);
    color: #fff;
    font-size: 1.25rem;
    letter-spacing: 2.5px;
    line-height: 1.2;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}
.about-profile-info .role {
    color: var(--red);
    font-family: var(--font-display);
    font-size: 0.72rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    text-shadow: 0 0 14px var(--red-glow);
}
.about-profile-info .loc {
    color: var(--muted);
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    margin-top: 3px;
}

/* Mini statystyki */
.about-mini-stats {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.about-mini-stats > div {
    text-align: center;
    padding: 14px 8px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    transition: all 0.3s var(--transition);
    position: relative;
    overflow: hidden;
}
.about-mini-stats > div::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 0, 64, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}
.about-mini-stats > div:hover {
    border-color: var(--border);
    transform: translateY(-3px);
}
.about-mini-stats > div:hover::before { opacity: 1; }

.about-mini-stats strong {
    display: block;
    font-family: var(--font-display);
    color: var(--red);
    font-size: 1.25rem;
    text-shadow: 0 0 20px var(--red-glow);
    line-height: 1;
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
}
.about-mini-stats span {
    font-family: var(--font-display);
    color: var(--muted);
    font-size: 0.62rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

/* ============ STORY ============ */
.about-story p {
    color: var(--text-2);
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 20px;
}
.about-story p:last-child { margin-bottom: 0; }
.about-story strong { color: #fff; }
.about-story .hl {
    color: var(--red);
    font-weight: 600;
    position: relative;
    white-space: nowrap;
}
.about-story .hl::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 100%; height: 1px;
    background: var(--red);
    box-shadow: 0 0 12px var(--red);
}

/* ============ TIMELINE ============ */
.timeline {
    position: relative;
    padding-left: 42px;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 10px; bottom: 10px; left: 12px;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--red) 15%, var(--red) 85%, transparent);
    box-shadow: 0 0 18px var(--red);
    border-radius: 2px;
}

.tl-item { position: relative; margin-bottom: 34px; }
.tl-item:last-child { margin-bottom: 0; }

.tl-dot {
    position: absolute;
    top: 26px; left: -36px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--red);
    box-shadow: 0 0 24px var(--red-glow);
    z-index: 2;
}
.tl-dot-active {
    background: var(--red);
    box-shadow:
        0 0 30px var(--red),
        0 0 60px rgba(255, 0, 64, 0.5),
        inset 0 0 10px rgba(255, 255, 255, 0.3);
    animation: tlPulse 2.2s ease-in-out infinite;
}
@keyframes tlPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.2); }
}

.tl-content {
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(22, 22, 28, 0.6), rgba(15, 15, 20, 0.8));
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    backdrop-filter: blur(16px);
    transition: all 0.4s var(--transition);
    position: relative;
    overflow: hidden;
}
.tl-content::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: linear-gradient(180deg, var(--red), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.tl-content:hover {
    transform: translateX(8px);
    border-color: var(--border);
    box-shadow: 0 20px 50px rgba(255, 0, 64, 0.15);
}
.tl-content:hover::before { opacity: 1; }

.tl-content-active {
    background: linear-gradient(135deg, rgba(255, 0, 64, 0.1), rgba(15, 15, 20, 0.9));
    border-color: var(--border);
    box-shadow: 0 25px 60px rgba(255, 0, 64, 0.25);
}
.tl-content-active::before { opacity: 1; }

.tl-year {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(255, 0, 64, 0.12);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--red);
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
    text-shadow: 0 0 12px var(--red-glow);
}
.tl-content h3 {
    font-family: var(--font-display);
    color: #fff;
    font-size: 1.1rem;
    letter-spacing: 1.2px;
    margin-bottom: 10px;
}
.tl-content p {
    color: var(--text-2);
    font-size: 0.96rem;
    line-height: 1.75;
    margin: 0;
}

/* ============ WARTOŚCI ============ */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 22px;
}

.value-tile {
    padding: 32px 26px;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 0, 64, 0.08), transparent 60%),
        linear-gradient(180deg, rgba(22, 22, 28, 0.6), rgba(12, 12, 16, 0.85));
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    text-align: center;
    transition: all 0.4s var(--transition);
    position: relative;
    overflow: hidden;
}
.value-tile::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    width: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
    box-shadow: 0 0 18px var(--red);
    transform: translateX(-50%);
    transition: width 0.5s var(--transition);
}
.value-tile:hover {
    transform: translateY(-8px);
    border-color: var(--border);
    box-shadow: 0 25px 60px rgba(255, 0, 64, 0.2);
}
.value-tile:hover::before { width: 85%; }

.value-icon {
    font-size: 2.4rem;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 16px var(--red-glow));
    transition: transform 0.4s var(--transition);
    display: inline-block;
}
.value-tile:hover .value-icon { transform: scale(1.18) rotate(-6deg); }

.value-tile h3 {
    font-family: var(--font-display);
    color: #fff;
    font-size: 0.98rem;
    letter-spacing: 1.3px;
    margin-bottom: 12px;
}
.value-tile p {
    color: var(--text-2);
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0;
}

/* ============ STACK ============ */
.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 12px;
}
@media (min-width: 768px) {
    .stack-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
}

.stack-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(22, 22, 28, 0.55), rgba(12, 12, 16, 0.75));
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    color: var(--text);
    font-family: var(--font-display);
    font-size: 0.82rem;
    letter-spacing: 1px;
    transition: all 0.3s var(--transition);
    backdrop-filter: blur(12px);
}
.stack-item:hover {
    border-color: var(--border);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(255, 0, 64, 0.18);
    background: linear-gradient(135deg, rgba(255, 0, 64, 0.08), rgba(12, 12, 16, 0.85));
}
.stack-dot {
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
    box-shadow: 0 0 14px var(--red);
    flex-shrink: 0;
    animation: dotPulse 2s ease-in-out infinite;
}
.stack-item:nth-child(2n) .stack-dot { animation-delay: -0.5s; }
.stack-item:nth-child(3n) .stack-dot { animation-delay: -1s; }

/* ============ STATYSTYKI ============ */
.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .about-stats { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

.about-stat {
    padding: 30px 20px;
    background:
        radial-gradient(circle at 50% 100%, rgba(255, 0, 64, 0.12), transparent 65%),
        linear-gradient(180deg, rgba(22, 22, 28, 0.6), rgba(12, 12, 16, 0.85));
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    text-align: center;
    backdrop-filter: blur(20px);
    transition: all 0.4s var(--transition);
    position: relative;
    overflow: hidden;
}
.about-stat::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
    transition: left 0.8s var(--transition);
}
.about-stat:hover {
    border-color: var(--border);
    transform: translateY(-6px);
    box-shadow: 0 25px 55px rgba(255, 0, 64, 0.22);
}
.about-stat:hover::before { left: 100%; }

.about-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5.5vw, 2.6rem);
    color: var(--red);
    text-shadow: 0 0 30px var(--red-glow);
    line-height: 1;
    margin-bottom: 12px;
}
.about-stat span {
    font-family: var(--font-display);
    font-size: 0.72rem;
    letter-spacing: 2px;
    color: var(--muted);
    text-transform: uppercase;
}

/* ============ CTA KONTAKT ============ */
.about-cta-section {
    position: relative;
    overflow: hidden;
}
.about-cta-section::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 900px; height: 900px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 0, 64, 0.14), transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: ctaGlow 6s ease-in-out infinite alternate;
}
@keyframes ctaGlow {
    0% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}
.about-cta-section > .container { position: relative; z-index: 1; }

/* ============ KARTY KONTAKTU — wersja pewna ============ */
.about-contact {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 50px;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

@media (max-width: 1024px) {
    .about-contact {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

.about-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(22, 22, 28, 0.65), rgba(12, 12, 16, 0.85));
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    backdrop-filter: blur(18px);
    text-align: left;
    transition: all 0.35s var(--transition);
    position: relative;
    overflow: hidden;
    min-width: 0;
}
.about-contact-item::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 2px; height: 100%;
    background: var(--red);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.35s var(--transition);
}
.about-contact-item:hover {
    border-color: var(--border);
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(255, 0, 64, 0.18);
}
.about-contact-item:hover::before { transform: scaleY(1); }

.about-contact-item > span {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: rgba(255, 0, 64, 0.12);
    border-radius: 12px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 12px var(--red-glow));
}

.about-contact-item > div {
    flex: 1 1 0%;
    min-width: 0;
    overflow: hidden;
}

.about-contact-item small {
    display: block;
    font-family: var(--font-display);
    color: var(--muted);
    font-size: 0.58rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 3px;
    white-space: nowrap;
}
.about-contact-item strong {
    display: block;
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.72rem;
    letter-spacing: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    max-width: 100%;
}

@media (max-width: 1024px) {
    .about-contact-item { padding: 16px 20px; gap: 14px; }
    .about-contact-item strong { font-size: 0.95rem; }
    .about-contact-item small { font-size: 0.65rem; }
    .about-contact-item > span { width: 42px; height: 42px; font-size: 1.15rem; }
}

@media (max-width: 600px) {
    .about-contact-item { padding: 14px 16px; gap: 12px; }
    .about-contact-item strong { font-size: 0.88rem; }
    .about-contact-item > span { width: 38px; height: 38px; font-size: 1rem; }
}

/* ============ MOBILE OGÓLNE ============ */
@media (max-width: 600px) {
    .about-hero-card { padding: 32px 24px; border-radius: var(--radius-lg); }
    .about-avatar { width: 66px; height: 66px; font-size: 1.7rem; }
    .about-profile-info strong { font-size: 1.05rem; letter-spacing: 1.8px; }
    .about-profile-info .role { font-size: 0.65rem; letter-spacing: 1.8px; }
    .about-mini-stats strong { font-size: 1.05rem; }
    .about-mini-stats span { font-size: 0.55rem; letter-spacing: 1px; }
    .about-mini-stats > div { padding: 12px 6px; }
    .tl-content { padding: 20px 22px; }
    .timeline { padding-left: 36px; }
    .tl-dot { left: -30px; }
    .timeline::before { left: 9px; }
    .value-tile { padding: 26px 22px; }
    .about-stat { padding: 24px 14px; }
}

@media (max-width: 380px) {
    .about-hero-wrap { gap: 36px; }
    .about-title { font-size: 1.9rem; }
}