/* ============================================================
   ABOUT PAGE – css/about.css
   Standalone styles for about.html; inherits variables from
   css/style.css (loaded first).
   ============================================================ */

/* ── Active nav link ─────────────────────────────────────── */
.top-link.active-page {
    color: var(--magenta-light) !important;
}

.top-link.active-page::after {
    width: 100% !important;
    background: linear-gradient(90deg, var(--magenta), var(--violet-light));
}

/* ============================================================
   GLOBAL CENTERING FIX – wyrównanie treści z uwzględnieniem
   bocznej HUD nav (160px) i top-nav (72px)
   ============================================================ */
.about-hero,
.nasze-dna,
.ekipa-section,
.operacje-section {
    /* HUD nav ma ~160px; top-nav 72px */
    padding-left: 60px;
    padding-right: 60px;
}

/* Wewnętrzny kontener wymusza faktyczne centrowanie */
.nasze-dna .container,
.ekipa-section .container,
.operacje-section .container {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   ABOUT HERO
   ============================================================ */
.about-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* padding już ustawiony przez global centering fix powyżej */
    padding-top: 120px;
    padding-bottom: 80px;
}

/* ── Background layers ── */
.about-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.about-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.55) saturate(0.7);
    transform: scale(1.06);
    /* Transition removed to fix parallax lag noticed by the user */
}

/* Hover effect removed to keep image scale static */

.about-hero-blur {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.about-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 50% 40%, rgba(192, 38, 211, 0.12) 0%, transparent 70%),
        linear-gradient(to bottom, rgba(3, 1, 13, 0.4) 0%, rgba(3, 1, 13, 0.75) 100%);
}

.about-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(192, 38, 211, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(192, 38, 211, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    animation: gridDrift 20s linear infinite;
}

@keyframes gridDrift {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 48px 48px;
    }
}

.about-hero-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 3px,
            rgba(0, 0, 0, 0.08) 3px,
            rgba(0, 0, 0, 0.08) 4px);
    pointer-events: none;
}

/* ── Content ── */
.about-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 820px;
    text-align: center;
    /* wycentrowanie w dostępnej przestrzeni (po HUD) */
    margin: 0 auto;
}

.about-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    color: var(--magenta-light);
    text-transform: uppercase;
    margin-bottom: 28px;
    opacity: 0.85;
}

.tag-dot {
    width: 6px;
    height: 6px;
    background: var(--magenta);
    border-radius: 50%;
    animation: pulseDot 2s ease-in-out infinite;
}

.about-hero-title {
    font-family: var(--font-hero);
    font-size: clamp(3.2rem, 7vw, 6rem);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.0;
    letter-spacing: -0.01em;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ah-line {
    display: block;
    color: #fff;
    opacity: 0;
    transform: translateY(40px);
    animation: ahReveal 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.ah-line:nth-child(1) {
    animation-delay: 0.3s;
}

.ah-line:nth-child(2) {
    animation-delay: 0.55s;
}

.ah-accent {
    background: linear-gradient(135deg, var(--magenta), var(--violet-light) 60%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 18px rgba(192, 38, 211, 0.6));
    animation: ahReveal 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards, neonFlicker 5s ease-in-out 2s infinite;
    animation-delay: 0.55s, 2s;
}

@keyframes ahReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-hero-body {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.2rem);
    /* Matched with index hero */
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 740px;
    margin: 0 auto 48px;
    text-align: center;
    opacity: 0;
    animation: ahReveal 0.9s 0.8s forwards;
}

.about-hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    opacity: 0;
    animation: ahReveal 0.8s 1.1s forwards;
}

/* ── HUD corner decorations ── */
.ah-corner {
    position: absolute;
    width: 28px;
    height: 28px;
    z-index: 3;
    pointer-events: none;
    opacity: 0.65;
}

.ah-tl {
    top: 80px;
    left: 20px;
    border-top: 2px solid var(--magenta);
    border-left: 2px solid var(--magenta);
}

.ah-tr {
    top: 80px;
    right: 20px;
    border-top: 2px solid var(--magenta);
    border-right: 2px solid var(--magenta);
}

.ah-bl {
    bottom: 20px;
    left: 20px;
    border-bottom: 2px solid var(--violet-light);
    border-left: 2px solid var(--violet-light);
}

.ah-br {
    bottom: 20px;
    right: 20px;
    border-bottom: 2px solid var(--violet-light);
    border-right: 2px solid var(--violet-light);
}

/* ============================================================
   NASZE DNA
   ============================================================ */
.nasze-dna {
    padding: 120px 60px 100px;
    position: relative;
    background:
        radial-gradient(ellipse 80% 60% at 50% 50%, rgba(124, 58, 237, 0.07) 0%, transparent 65%);
}

.dna-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 16px;
}

/* ── DNA card ── */
.dna-card {
    position: relative;
    padding: 40px 32px 36px;
    overflow: hidden;
    transition: transform 0.35s var(--transition-smooth), box-shadow 0.35s var(--transition-smooth);
    opacity: 0;
    transform: translateY(40px);

    /* Centering elements */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.dna-card.revealed {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 0.7s ease var(--card-delay, 0s),
        transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) var(--card-delay, 0s),
        box-shadow 0.35s var(--transition-smooth);
}

html.can-hover .dna-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(192, 38, 211, 0.25), 0 4px 16px rgba(124, 58, 237, 0.2);
}

/* neon background glow per card */
.dna-card-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    top: -60px;
    right: -60px;
    filter: blur(60px);
    pointer-events: none;
    opacity: 0.5;
}

.dna-glow-1 {
    background: radial-gradient(circle, rgba(192, 38, 211, 0.4) 0%, transparent 70%);
}

.dna-glow-2 {
    background: radial-gradient(circle, rgba(124, 58, 237, 0.4) 0%, transparent 70%);
}

.dna-glow-3 {
    background: radial-gradient(circle, rgba(168, 85, 247, 0.4) 0%, transparent 70%);
}

/* ── Icon hexagon ── */
.dna-icon-wrap {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 28px;
    /* Added auto margins to be safe */
}

.dna-icon-hex {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(192, 38, 211, 0.25), rgba(124, 58, 237, 0.25));
    border: 1.5px solid rgba(192, 38, 211, 0.5);
    border-radius: 16px;
    font-size: 1.6rem;
    color: var(--magenta-light);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(192, 38, 211, 0.3);
}

html.can-hover .dna-card:hover .dna-icon-hex {
    background: linear-gradient(135deg, rgba(192, 38, 211, 0.4), rgba(124, 58, 237, 0.4));
    box-shadow: 0 0 35px rgba(192, 38, 211, 0.6), 0 0 70px rgba(124, 58, 237, 0.3);
    border-color: var(--magenta);
    transform: scale(1.08);
}

.dna-icon-pulse {
    position: absolute;
    inset: -8px;
    border-radius: 20px;
    border: 1px solid rgba(192, 38, 211, 0.3);
    animation: iconRingPulse 2.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes iconRingPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.08);
    }
}

/* ── Card index ── */
.dna-index {
    font-family: var(--font-display);
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    color: var(--magenta);
    margin-bottom: 10px;
    opacity: 0.75;
}

/* ── DNA title ── */
.dna-title {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
    line-height: 1.15;
}

/* ── DNA desc ── */
.dna-desc {
    font-family: var(--font-body);
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ── Tags usunięte z DNA ── */
.dna-tag-row {
    display: none;
}

.dna-desc {
    margin-bottom: 0;
}

/* ============================================================
   EKIPA – THE SQUAD
   ============================================================ */
.ekipa-section {
    padding-top: 120px;
    padding-bottom: 100px;
    background:
        radial-gradient(ellipse 90% 70% at 50% 30%, rgba(192, 38, 211, 0.06) 0%, transparent 65%);
}

/* ── Squad gallery: 1 duże (1290×860) + 2 boczne duże ── */
.squad-gallery {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 32px;
    align-items: center;
}

/* ── Main image ── */
.squad-main {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-40px);
}

.squad-main.revealed {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.squad-img-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(192, 38, 211, 0.3);
}

.squad-img {
    width: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* 1290×860 → ratio 3/2 */
.squad-img-main {
    aspect-ratio: 3 / 2;
}

html.can-hover .squad-main:hover .squad-img {
    transform: scale(1.04);
}

.squad-violet-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.3) 0%, rgba(192, 38, 211, 0.15) 100%);
    mix-blend-mode: overlay;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

html.can-hover .squad-main:hover .squad-violet-overlay {
    opacity: 0.7;
}

html.can-hover .mosaic-item:hover .squad-violet-overlay {
    opacity: 0.8;
}

/* ── Scanning line animation on main image ── */
.squad-scan-line {
    position: absolute;
    top: -4px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--magenta-light), transparent);
    opacity: 0;
    pointer-events: none;
    animation: squadScan 4s linear 1.5s infinite;
}

@keyframes squadScan {
    0% {
        top: -4px;
        opacity: 0;
    }

    5% {
        opacity: 0.8;
    }

    95% {
        opacity: 0.8;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

.squad-caption {
    padding: 14px 16px 0;
}

.squad-caption-tag {
    font-family: var(--font-display);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    color: var(--magenta);
    display: block;
    margin-bottom: 4px;
}

.squad-caption p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ── HUD corners on main image ── */
.sq-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 3;
    opacity: 0.6;
}

.sq-tl {
    top: 8px;
    left: 8px;
    border-top: 2px solid var(--magenta);
    border-left: 2px solid var(--magenta);
}

.sq-tr {
    top: 8px;
    right: 8px;
    border-top: 2px solid var(--magenta);
    border-right: 2px solid var(--magenta);
}

.sq-bl {
    bottom: 8px;
    left: 8px;
    border-bottom: 2px solid var(--violet-light);
    border-left: 2px solid var(--violet-light);
}

.sq-br {
    bottom: 8px;
    right: 8px;
    border-bottom: 2px solid var(--violet-light);
    border-right: 2px solid var(--violet-light);
}

/* ── Mosaic: 2 duże zdjęcia w kolumnie ── */
.squad-mosaic {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mosaic-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: default;
    opacity: 0;
    transform: translateX(30px);
    flex: 1;
}

.mosaic-item.revealed {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mosaic-item:nth-child(1).revealed {
    transition-delay: 0.1s;
}

.mosaic-item:nth-child(2).revealed {
    transition-delay: 0.25s;
}

/* duże placeholder / zdjęcia – taka sama wysokość */
.mosaic-large {
    min-height: 240px;
}

.mosaic-img {
    width: 100%;
    height: 100%;
    min-height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

html.can-hover .mosaic-item:hover .mosaic-img {
    transform: scale(1.06);
}

html.can-hover .mosaic-item:hover .squad-img {
    transform: scale(1.04);
}

/* ── Placeholder gdy nie ma zdjęcia ── */
.mosaic-placeholder {
    width: 100%;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(10, 5, 28, 0.8);
    color: rgba(255, 255, 255, 0.25);
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: 2px dashed rgba(192, 38, 211, 0.2);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mosaic-placeholder i {
    font-size: 2rem;
    opacity: 0.3;
}

html.can-hover .mosaic-item:hover .mosaic-placeholder {
    border-color: rgba(192, 38, 211, 0.5);
    color: rgba(255, 255, 255, 0.45);
    background: rgba(192, 38, 211, 0.06);
}

.mosaic-label {
    position: absolute;
    bottom: 10px;
    left: 12px;
    font-family: var(--font-display);
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    padding: 3px 8px;
    border-radius: 4px;
    border-left: 2px solid var(--magenta);
    pointer-events: none;
}

/* ============================================================
   OPERACJE
   ============================================================ */
.operacje-section {
    padding-top: 120px;
    padding-bottom: 100px;
    background:
        radial-gradient(ellipse 80% 50% at 50% 80%, rgba(124, 58, 237, 0.08) 0%, transparent 65%);
}

/* ── dwie karty obok siebie ── */
.ops-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

/* ── ops-card: pionowa (zdjęcie góra, info dół) ── */
.ops-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    opacity: 0;
    transform: translateY(40px);
    cursor: default;
}

.ops-card.revealed {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.4s ease,
        filter 0.4s ease;
}

.ops-card:nth-child(2).revealed {
    transition-delay: 0.15s;
}

html.can-hover .ops-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 64px rgba(192, 38, 211, 0.25), 0 8px 24px rgba(124, 58, 237, 0.18);
}

/* ── Zdjęcie u góry karty (B&W → kolor na hover) ── */
.ops-img-col {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    height: 260px;
}

.ops-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* domyślnie czarno-białe, przyciemnione */
    filter: grayscale(1) brightness(0.55);
    transition: transform 0.5s ease, filter 0.5s ease;
}

html.can-hover

/* na hover – pełen kolor */
.ops-card:hover .ops-img {
    filter: grayscale(0) brightness(0.85);
    transform: scale(1.06);
}

.ops-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(192, 38, 211, 0.35) 0%, rgba(124, 58, 237, 0.2) 100%);
    mix-blend-mode: overlay;
}

.ops-overlay-alt {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.35) 0%, rgba(192, 38, 211, 0.2) 100%);
}

/* ── Badge ── */
.ops-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    padding: 5px 12px;
    border-radius: 4px;
    z-index: 2;
}

.ops-badge-hot {
    background: rgba(192, 38, 211, 0.85);
    color: #fff;
    box-shadow: 0 0 16px rgba(192, 38, 211, 0.6);
}

.ops-badge-recurring {
    background: rgba(124, 58, 237, 0.85);
    color: #fff;
    box-shadow: 0 0 16px rgba(124, 58, 237, 0.6);
}

/* ── Info col – pod zdjęciem ── */
.ops-info-col {
    padding: 28px 28px 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    flex: 1;
}

.ops-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.ops-meta-tag {
    font-family: var(--font-display);
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 4px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ops-meta-tag i {
    color: var(--magenta-light);
}

.ops-tag-live {
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.3);
}

.ops-tag-board i {
    color: var(--violet-light);
}

.ops-live-dot {
    width: 7px;
    height: 7px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulseDot 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.7);
}

.ops-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.1;
    margin-bottom: 6px;
}

.ops-subtitle {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--magenta-light);
    letter-spacing: 0.05em;
    margin-bottom: 18px;
    opacity: 0.9;
}

.ops-desc {
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.72;
    color: var(--text-secondary);
    margin-bottom: 0;
    max-width: 100%;
}

/* ── Feature pills – ukryte (brak przycisków i pilek) ── */
.ops-features {
    display: none;
}

.ops-cta {
    display: none;
}

/* (ops-cta + ops-features hidden above) */

/* padding-left zarządzany przez global centering fix na górze */

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
    .ops-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media (max-width: 960px) {

    /* Ukryj HUD, zresetuj padding */
    .about-hero,
    .nasze-dna,
    .ekipa-section,
    .operacje-section {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    .dna-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .squad-gallery {
        grid-template-columns: 1fr;
    }

    .squad-mosaic {
        flex-direction: row;
    }

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

    .ops-img-col {
        height: 220px;
    }
}

@media (max-width: 600px) {
    .about-hero-title {
        font-size: clamp(2.4rem, 10vw, 3.6rem);
    }

    .squad-mosaic {
        flex-direction: column;
    }

    .dna-card {
        padding: 28px 20px;
    }
}