/* Products Grid and Cards */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

.product-card {
    position: relative;
    background: rgba(255, 255, 255, 0.94);
    padding: 30px;
    border: 1px solid rgba(19, 34, 56, 0.08);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(19, 34, 56, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(36, 87, 214, 0.06), transparent 34%),
        linear-gradient(315deg, rgba(0, 166, 166, 0.07), transparent 36%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 80px rgba(19, 34, 56, 0.16);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover::after {
    opacity: 1;
}

.product-card .about-content {
    position: relative;
    z-index: 1;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.product-card .about-text {
    flex: none;
}

.product-card .about-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    /*background: var(--light-color);*/
    /*border-radius: 10px;*/
    margin-top: auto;
    overflow: hidden; /* Ensure images don't overflow card rounded corners */
}

/* Unified, responsive image scaling inside products grid */
#products .about-image {
    position: relative;
    /* Ensure a reasonable visual height across viewports while keeping flexibility */
}

#products .about-image .image-stack {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#products .about-image .image-stack img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    object-fit: contain; /* keep full image visible without cropping */
}

.product-icon-title {
    display: block; /* bez ikony nie potrzebujemy flexa */
    margin-bottom: 15px;
}

/* Styl nagłówka w sekcji Trucker360 & Spedytor360 */
.product-icon-title h3 {
    font-size: clamp(1.55rem, 2.6vw, 2rem);
    line-height: 1.3;
    font-weight: 700;
    margin: 0;
    color: var(--dark-color);
}

.trucker-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.product-card .about-text h4,
.product-card .about-text h5 {
    margin: 18px 0 8px;
    color: var(--dark-color);
    font-size: 1.05rem;
}

.product-card .about-text p,
.product-card .about-text li {
    color: var(--text-light);
}

.product-card .about-text ul {
    margin-top: 12px;
}

.product-card .about-text li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
}

.product-card .about-text li::before {
    content: '';
    position: absolute;
    top: 0.66em;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--secondary-color);
}

.product-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
}

.product-highlights div {
    min-height: 88px;
    padding: 14px 10px;
    border-radius: 8px;
    background: linear-gradient(180deg, #f7fbff, #fff);
    border: 1px solid rgba(36, 87, 214, 0.1);
    text-align: center;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.product-highlights div:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 166, 166, 0.28);
    box-shadow: 0 12px 28px rgba(19, 34, 56, 0.08);
}

.product-highlights i {
    display: block;
    margin-bottom: 8px;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.product-highlights span {
    display: block;
    color: var(--dark-color);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.25;
}

.integration-band {
    position: relative;
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 28px;
    align-items: center;
    margin-top: 34px;
    padding: 32px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--dark-color), #2457d6 55%, #00a6a6);
    box-shadow: 0 28px 70px rgba(19, 34, 56, 0.18);
    overflow: hidden;
}

.integration-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 54px 54px;
    opacity: 0.36;
    pointer-events: none;
}

.integration-copy,
.integration-logos {
    position: relative;
    z-index: 1;
}

.integration-copy span {
    display: inline-block;
    margin-bottom: 10px;
    color: #bff7f7;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.82rem;
}

.integration-copy h3 {
    margin-bottom: 10px;
    font-size: clamp(1.55rem, 3vw, 2.25rem);
    line-height: 1.18;
}

.integration-copy p {
    color: rgba(255, 255, 255, 0.82);
    max-width: 720px;
}

.integration-logos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.integration-logos div {
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--dark-color);
    font-size: clamp(1.2rem, 2.3vw, 1.7rem);
    font-weight: 900;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.14);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.integration-logos div:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.18);
}

/* Trucker image stack specific adjustment */
.trucker-stack {
    display: block !important;
    width: 100%;
    max-width: 900px; /* dopasowanie rozmiaru grafiki */
    margin: 0 auto;   /* wycentrowanie w kontenerze */
}

.trucker-stack img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 0 !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
}

@media (max-width: 992px) {
    .trucker-stack { max-width: 100%; }
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    #products .about-image {
        min-height: clamp(180px, 28vh, 360px);
    }
}


/* DPP gallery (główne zdjęcie + miniatury) */
#dpp-card .dpp-gallery {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#dpp-card .dpp-main {
    width: 100%;
}

#dpp-card .dpp-main-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    cursor: zoom-in; /* zachowaj spójność z lightbox */
}

#dpp-card .dpp-thumbs {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center; /* wyśrodkuj miniatury w poziomie */
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin; /* Firefox */
}

#dpp-card .dpp-thumbs::after {
    /* subtelna wskazówka, że można przewinąć jeśli jest więcej miniaturek */
    content: '';
    flex: 0 0 0; /* brak rezerwacji miejsca, tylko overlay w razie potrzeby */
}

#dpp-card .dpp-thumb {
    height: 68px;
    width: auto;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    cursor: pointer;
    opacity: 0.85;
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid transparent;
}

#dpp-card .dpp-thumb:hover {
    opacity: 1;
    transform: translateY(-2px);
}

#dpp-card .dpp-thumb.active {
    border-color: var(--primary-color);
    opacity: 1;
}

@media (max-width: 600px) {
    #dpp-card .dpp-thumb { height: 56px; }
}

/* CTA w kartach produktów: na dole i wyśrodkowany */
#products .hero-buttons {
    display: flex;
    justify-content: center;
}

/* --- Image Lightbox (zoom on click) --- */
#products .about-image img {
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    padding: 20px;
}

.lightbox.open {
    display: flex;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

/* Lightbox navigation arrows */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.35);
    border: none;
    color: #fff;
    width: 48px;
    height: 64px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
    opacity: 0.9;
}

.lightbox-nav:hover { background: rgba(0,0,0,0.5); }

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-nav .chevron {
    font-size: 28px;
    line-height: 1;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.95rem;
    background: rgba(0,0,0,0.35);
    padding: 6px 10px;
    border-radius: 6px;
}

@media (max-width: 576px) {
    .lightbox-nav { width: 40px; height: 56px; }
    .lightbox-nav .chevron { font-size: 24px; }
}

/* Global Styles */
:root {
    --primary-color: #2457d6;
    --secondary-color: #00a6a6;
    --accent-color: #ff7a45;
    --dark-color: #132238;
    --light-color: #f5f8fb;
    --surface-color: #ffffff;
    --text-color: #233044;
    --text-light: #667085;
    --box-shadow: 0 18px 45px rgba(19, 34, 56, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        linear-gradient(120deg, rgba(36, 87, 214, 0.08), transparent 32%),
        linear-gradient(240deg, rgba(0, 166, 166, 0.08), transparent 38%),
        #f5f8fb;
}

a {
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 10px;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 740px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 0 34%, rgba(255, 255, 255, 0.35) 48%, transparent 62% 100%);
    transform: translateX(-110%);
    transition: transform 0.55s ease;
    pointer-events: none;
}

.btn:hover::after {
    transform: translateX(110%);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 14px 30px rgba(36, 87, 214, 0.22);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: #fff;
    color: var(--dark-color);
    border: 1px solid rgba(19, 34, 56, 0.14);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-height: 100px;
    background-color: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 35px rgba(19, 34, 56, 0.08);
    backdrop-filter: blur(16px);
    z-index: 1000;
    padding: 10px 0;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--dark-color);
}

.logo span {
    color: var(--primary-color);
}

.logo-img {
    max-height: 50px; /* Increased from 100px for better resolution */
    width: auto;
    mix-blend-mode: darken; /* Best for white backgrounds */
    filter: contrast(1.5) brightness(1.2) saturate(1.3) hue-rotate(0deg); /* Enhanced for better visibility and sharpness */
    background-color: transparent !important;
    -webkit-background-clip: content-box; /* Additional support for transparency */
    background-clip: content-box;
    opacity: 1; /* Full opacity for better clarity */
    box-shadow: none !important; /* Removes any shadow that might show the background */
    transform: translateY(-18px); /* Increased shift up to compensate for larger size */
    margin-bottom: -28px; /* Increased negative margin to prevent navbar expansion */
    margin-top: 15px;
    image-rendering: -webkit-optimize-contrast; /* Improves the appearance of the image */
    image-rendering: crisp-edges; /* Improves the appearance of the image in Firefox */
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    font-weight: 600;
    color: var(--dark-color);
    position: relative;
    padding: 8px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* Language Selector */
.language-selector {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.lang-btn {
    background: transparent;
    /* Domyślnie bez widocznej obwódki; pokażemy ją tylko dla wybranego języka */
    border: 1px solid transparent;
    color: var(--primary-color);
    font-size: 1.2rem;
    /* Ustal jednolity, stały rozmiar przycisków z flagami, aby obie wyglądały identycznie */
    width: 28px;
    height: 20px;
    padding: 0;
    box-sizing: border-box; /* uwzględnij obramowanie w rozmiarze przycisku */
    margin: 0 3px;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.lang-btn.active {
    background: rgba(78, 84, 200, 0.1);
    /* Tylko aktywny język ma widoczną obwódkę */
    border-color: var(--primary-color);
}

.lang-btn:hover {
    background: rgba(78, 84, 200, 0.2);
}

/* Ensure inline SVG flags render consistently */
.lang-btn svg {
    /* Dopasuj SVG dokładnie do rozmiaru przycisku, aby obie flagi miały ten sam wymiar */
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 2px;
    /* Zapewnij widoczność białych pól flag (np. Japonii) na jasnym tle */
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--dark-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 94vh;
    padding: 140px 0 72px;
    display: flex;
    align-items: center;
    color: #fff;
    background:
        linear-gradient(115deg, rgba(19, 34, 56, 0.96) 0%, rgba(21, 57, 103, 0.9) 48%, rgba(0, 166, 166, 0.76) 100%),
        url("images/gotowa_grafika_spedytor_trucker2.png") center/cover no-repeat;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(115deg, transparent 0 26%, rgba(255, 255, 255, 0.12) 27%, transparent 29% 58%, rgba(0, 166, 166, 0.18) 59%, transparent 61%);
    background-size: 72px 72px, 72px 72px, 180% 180%;
    opacity: 0.75;
    mix-blend-mode: screen;
    animation: heroRouteShift 16s linear infinite;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 160px;
    background: linear-gradient(to bottom, transparent, var(--light-color));
    pointer-events: none;
}

.hero .container,
.hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 56px;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    padding-right: 0;
    max-width: 650px;
    min-width: 0;
    width: 100%;
    animation: heroTextIn 0.8s ease both;
}

.hero-content h1 {
    font-size: clamp(2.4rem, 5.2vw, 4.7rem);
    margin-bottom: 20px;
    color: #fff;
    line-height: 1.05;
    letter-spacing: 0;
    text-shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.82);
    max-width: 610px;
    overflow-wrap: break-word;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #dffcff;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.hero-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 34px;
}

.hero-proof div {
    min-height: 112px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.hero-proof div:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.16);
}

.hero-proof strong,
.hero-proof span {
    display: block;
}

.hero-proof strong {
    margin-bottom: 8px;
    color: #fff;
    font-size: 1rem;
}

.hero-proof span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    line-height: 1.45;
}

.hero-showcase {
    flex: 1;
    min-width: 320px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
    animation: heroPanelIn 0.9s 0.12s ease both;
    padding-bottom: 74px;
}

.showcase-panel {
    position: relative;
    width: min(100%, 520px);
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(36, 87, 214, 0.42), rgba(0, 166, 166, 0.55)) border-box;
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.2);
    color: var(--dark-color);
    overflow: hidden;
    transform: rotateX(2deg) rotateY(-3deg);
    transform-style: preserve-3d;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.showcase-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(110deg, transparent 0 38%, rgba(255, 255, 255, 0.72) 48%, transparent 58% 100%);
    transform: translateX(-115%);
    animation: panelSweep 4.8s ease-in-out infinite;
    pointer-events: none;
}

.showcase-panel::after {
    content: '';
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 0 22px rgba(0, 166, 166, 0.42);
    z-index: 2;
}

.hero-showcase:hover .showcase-panel {
    transform: rotateX(0deg) rotateY(0deg) translateY(-4px);
    box-shadow: 0 38px 110px rgba(0, 0, 0, 0.36), 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.showcase-panel span {
    position: relative;
    z-index: 2;
    display: block;
    margin-bottom: 8px;
    color: var(--secondary-color);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.showcase-panel h3 {
    position: relative;
    z-index: 2;
    margin-bottom: 14px;
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
    line-height: 1.25;
}

.showcase-panel img {
    width: 100%;
    border-radius: 8px;
    display: block;
    position: relative;
    z-index: 0;
    box-shadow: 0 16px 38px rgba(19, 34, 56, 0.14);
}

.showcase-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 220px;
    padding: 14px;
    border-radius: 8px;
    background: #fff;
    color: var(--dark-color);
    box-shadow: 0 18px 48px rgba(19, 34, 56, 0.24);
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.showcase-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 58px rgba(19, 34, 56, 0.28);
}

.showcase-card i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.showcase-card-top {
    top: auto;
    left: 26px;
    bottom: 8px;
}

.showcase-card-bottom {
    right: 26px;
    bottom: 8px;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    position: relative;
    background: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    overflow: hidden;
    border: 1px solid rgba(19, 34, 56, 0.06);
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 28px 60px rgba(19, 34, 56, 0.14);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 14px 28px rgba(36, 87, 214, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover .service-icon {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 18px 34px rgba(0, 166, 166, 0.24);
}

.service-icon i {
    font-size: 30px;
    color: white;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.service-card p {
    color: var(--text-light);
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--light-color);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(19, 34, 56, 0.12);
}

.about-image img {
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.035);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.stats {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Portfolio Section */
.portfolio {
    padding: 100px 0;
    background-color: white;
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: none;
    padding: 8px 20px;
    margin: 0 5px 10px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-light);
    transition: var(--transition);
    border-radius: 20px;
}

.filter-btn.active,
.filter-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    padding: 20px;
    text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    color: white;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: var(--transition);
}

.portfolio-overlay p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    transform: translateY(20px);
    transition: var(--transition);
}

.portfolio-overlay .btn {
    transform: translateY(20px);
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p,
.portfolio-item:hover .portfolio-overlay .btn {
    transform: translateY(0);
}

/* Team Section */
.team {
    padding: 100px 0;
    background-color: var(--light-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-member {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.member-image {
    position: relative;
    overflow: hidden;
    width: 250px;
    height: 250px;
    margin: 0 auto;
    border-radius: 50%;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.member-image::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    opacity: 0;
    transition: var(--transition);
    border-radius: 50%;
}

.team-member:hover .member-image::before {
    opacity: 1;
}

.team-member h3 {
    margin-top: 20px;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.team-member p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.member-description {
    text-align: center;
    margin-left: 8px;
    margin-right: 8px;
}

.social-links {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.social-links a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    color: var(--dark-color);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-item i {
    font-size: 24px;
    color: var(--primary-color);
}

.contact-item h3 {
    margin-bottom: 5px;
    color: var(--dark-color);
}

.contact-item p {
    color: var(--text-light);
}

.contact-info .social-links {
    margin-top: 20px;
    justify-content: flex-start;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(78, 84, 200, 0.2);
}

/* Placeholder styles to ensure consistency between input and textarea */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    color: #999;
}

/* Vendor prefixes for better cross-browser compatibility */
.contact-form input::-webkit-input-placeholder,
.contact-form textarea::-webkit-input-placeholder {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    color: #999;
}

.contact-form input::-moz-placeholder,
.contact-form textarea::-moz-placeholder {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    color: #999;
    opacity: 1; /* Firefox sets opacity to 0.54 by default */
}

.contact-form input:-ms-input-placeholder,
.contact-form textarea:-ms-input-placeholder {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    color: #999;
}

/* CAPTCHA Styles */
.captcha-container {
    margin-top: 15px;
}

.captcha-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.captcha-challenge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.captcha-challenge span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.captcha-challenge input {
    width: 80px;
    text-align: center;
}

.captcha-error {
    margin-top: 5px;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 70px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.footer-logo h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer-logo span {
    color: var(--secondary-color);
}

.footer-logo .logo-img {
    max-height: 100px; /* Increased from 85px for better resolution */
    width: auto;
    margin-bottom: 15px;
    mix-blend-mode: darken; /* Best for white backgrounds */
    filter: contrast(1.5) brightness(1.2) saturate(1.3) hue-rotate(0deg); /* Enhanced for better visibility and sharpness */
    background-color: transparent !important;
    -webkit-background-clip: content-box; /* Additional support for transparency */
    background-clip: content-box;
    opacity: 1; /* Full opacity for better clarity */
    box-shadow: none !important; /* Removes any shadow that might show the background */
    image-rendering: -webkit-optimize-contrast; /* Improves the appearance of the image */
    image-rendering: crisp-edges; /* Improves the appearance of the image in Firefox */
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-links h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-newsletter h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-newsletter h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-newsletter form {
    display: flex;
    margin-top: 20px;
}

.footer-newsletter input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 30px 0 0 30px;
    font-size: 0.9rem;
}

.footer-newsletter button {
    border-radius: 0 30px 30px 0;
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    transition: var(--transition);
}

.footer-newsletter button:hover {
    background: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

@keyframes heroRouteShift {
    0% {
        background-position: 0 0, 0 0, 0% 50%;
    }
    100% {
        background-position: 72px 72px, -72px 72px, 100% 50%;
    }
}

@keyframes heroTextIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroPanelIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes panelSweep {
    0%, 48% {
        transform: translateX(-115%);
    }
    72%, 100% {
        transform: translateX(115%);
    }
}

/* Privacy notice */
.privacy-consent {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 1200;
    display: none;
}

.privacy-consent.visible {
    display: block;
}

.privacy-consent__content {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 22px;
    border: 1px solid rgba(19, 34, 56, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 70px rgba(19, 34, 56, 0.22);
    backdrop-filter: blur(18px);
}

.privacy-consent__eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--secondary-color);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.privacy-consent h2,
.privacy-modal h2 {
    color: var(--dark-color);
    font-size: 1.45rem;
    line-height: 1.2;
    margin-bottom: 8px;
}

.privacy-consent p {
    max-width: 760px;
    color: var(--text-light);
    font-size: 0.98rem;
}

.privacy-consent__actions,
.privacy-modal__actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.privacy-consent .btn,
.privacy-modal .btn {
    padding: 10px 16px;
    font-size: 0.82rem;
    white-space: nowrap;
}

.privacy-manage {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 1100;
    display: none;
    padding: 9px 12px;
    border: 1px solid rgba(19, 34, 56, 0.12);
    border-radius: 8px;
    background: #fff;
    color: var(--dark-color);
    box-shadow: 0 12px 30px rgba(19, 34, 56, 0.16);
    font-weight: 700;
    cursor: pointer;
}

.privacy-manage.visible {
    display: inline-flex;
}

.privacy-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(19, 34, 56, 0.68);
}

.privacy-modal.open {
    display: flex;
}

.privacy-modal__panel {
    position: relative;
    width: min(760px, 100%);
    max-height: min(760px, 90vh);
    overflow: auto;
    padding: 30px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
}

.privacy-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(19, 34, 56, 0.1);
    border-radius: 8px;
    background: #f7fbff;
    color: var(--dark-color);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.privacy-policy {
    margin: 18px 0 24px;
}

.privacy-policy h3 {
    margin: 18px 0 6px;
    color: var(--dark-color);
    font-size: 1.02rem;
}

.privacy-policy p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: left;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 20px;
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: flex-start;
    }

    .hero-proof,
    .integration-band {
        grid-template-columns: 1fr;
    }

    .showcase-card {
        position: static;
        width: 100%;
        margin-top: 12px;
    }

    .hero-showcase {
        width: 100%;
        min-width: 0;
        max-width: 620px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin: 0 auto;
        padding-bottom: 0;
    }

    .showcase-panel {
        width: 100%;
        transform: none;
    }

    .showcase-card {
        justify-content: flex-start;
        min-width: 0;
        margin-top: 0;
    }

    .hero-layout > * {
        min-width: 0;
    }

    .about-content {
        flex-direction: column;
    }

    .about-image {
        margin-bottom: 30px;
    }

    .stats {
        flex-wrap: wrap;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .logo-img {
        max-height: 90px; /* Increased from 75px for better resolution */
        transform: translateY(-12px); /* Adjusted shift for mobile */
        margin-bottom: -14px; /* Adjusted negative margin for mobile */
        filter: contrast(1.5) brightness(1.2) saturate(1.3) hue-rotate(0deg); /* Enhanced for better visibility and sharpness */
        image-rendering: -webkit-optimize-contrast; /* Improves the appearance of the image */
        image-rendering: crisp-edges; /* Improves the appearance of the image in Firefox */
    }

    .language-selector {
        margin-right: 50px; /* Make room for hamburger menu */
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero {
        min-height: auto;
        padding: 118px 0 58px;
    }

    .hero-proof,
    .product-highlights,
    .integration-logos {
        grid-template-columns: 1fr;
    }

    .integration-band {
        padding: 24px;
    }

    .privacy-consent {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .privacy-consent__content {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .privacy-consent__actions,
    .privacy-modal__actions {
        justify-content: stretch;
    }

    .privacy-consent .btn,
    .privacy-modal .btn {
        width: 100%;
        text-align: center;
    }

    .privacy-modal__panel {
        padding: 24px 18px;
    }
}

@media (max-width: 576px) {
    .hero .container {
        width: 100%;
        padding-left: 16px;
        padding-right: 16px;
        overflow: hidden;
    }

    .hero-content {
        max-width: calc(100vw - 48px);
        width: 100%;
    }

    .hero-kicker {
        width: min(100%, calc(100vw - 48px));
        align-items: flex-start;
        border-radius: 8px;
        font-size: 0.82rem;
        line-height: 1.45;
        white-space: normal;
    }

    .footer-logo .logo-img {
        max-height: 80px; /* Increased from 65px for better resolution */
        filter: contrast(1.5) brightness(1.2) saturate(1.3) hue-rotate(0deg); /* Enhanced for better visibility and sharpness */
        image-rendering: -webkit-optimize-contrast; /* Improves the appearance of the image */
        image-rendering: crisp-edges; /* Improves the appearance of the image in Firefox */
    }

    .hero-content h1 {
        max-width: 100%;
        font-size: 1.84rem;
        line-height: 1.1;
        overflow-wrap: anywhere;
    }

    .hero-content p {
        max-width: 100%;
        font-size: 1.02rem;
        line-height: 1.55;
    }

    .hero-buttons .btn {
        width: min(100%, calc(100vw - 48px));
        text-align: center;
    }

    .showcase-panel {
        padding: 12px;
    }

    .showcase-panel span {
        font-size: 0.72rem;
        line-height: 1.35;
    }

    .showcase-panel h3 {
        font-size: 1.05rem;
        line-height: 1.28;
        margin-bottom: 10px;
    }

    .showcase-card {
        padding: 12px;
        font-size: 0.92rem;
        line-height: 1.28;
    }

    .hero-proof div {
        min-height: auto;
        width: min(100%, calc(100vw - 48px));
    }

    .btn {
        padding: 10px 20px;
    }

    .service-card,
    .portfolio-item,
    .team-member {
        margin-bottom: 20px;
    }

    .footer-newsletter form {
        flex-direction: column;
    }

    .footer-newsletter input,
    .footer-newsletter button {
        border-radius: 30px;
    }

    .footer-newsletter button {
        margin-top: 10px;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}


/* DPP About Image Composition (scoped) */
.dpp-about-image {
    position: relative;
    min-height: 360px;
}
.dpp-about-image .dpp-image-stack {
    position: relative;
    width: 100%;
    height: 100%;
}
.dpp-about-image .dpp-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.dpp-about-image .dpp-image.active {
    opacity: 1;
    z-index: 1;
}
.dpp-about-image .dpp-overlays {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}
.dpp-about-image .dpp-pill {
    position: absolute;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.9rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4px);
}
.dpp-about-image .dpp-pill.tl { top: 12px; left: 12px; }
.dpp-about-image .dpp-pill.tr { top: 12px; right: 12px; }
.dpp-about-image .dpp-pill.br { bottom: 12px; right: 12px; }

@media (max-width: 768px) {
    .dpp-about-image { min-height: 260px; }
    .dpp-about-image .dpp-pill { font-size: 0.8rem; padding: 6px 12px; }
}


/* DPP image stack (three overlapping images in About DPP section) */
.about-image .image-stack {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image .image-stack img {
    /* Zwiększ rozmiar grafik DPP (na stronie głównej) */
    width: 48%;
    height: auto;
    max-width: 520px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.about-image .image-stack img:not(:first-child) {
    /* nieco większe nakładanie, aby kompozycja wyglądała podobnie po powiększeniu */
    margin-left: -16%; /* slight overlap, responsive */
}

@media (max-width: 992px) {
    .about-image .image-stack img {
        width: 44%;
        max-width: 460px;
    }
    .about-image .image-stack img:not(:first-child) {
        margin-left: -14%;
    }
}

@media (max-width: 600px) {
    .about-image .image-stack {
        justify-content: flex-start;
    }
    .about-image .image-stack img {
        width: 42%;
        max-width: 340px;
    }
    .about-image .image-stack img:not(:first-child) {
        margin-left: -12%;
    }
}

/* Mobile-first boost for DPP thumbnails on homepage (fill available space) */
@media (max-width: 600px) {
    /* Remove extra padding to allow images to use full card width */
    #dpp-card .about-image {
        padding: 0;
    }

    /* Stack images vertically and make each one full-width */
    #dpp-card .about-image .image-stack {
        width: 100%;
        flex-direction: column;
        align-items: stretch; /* let images span full width */
        justify-content: flex-start;
        gap: 12px;
    }

    #dpp-card .about-image .image-stack img {
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        margin-left: 0 !important; /* cancel any overlap */
    }
}


/* DPP (homepage) vertical image list to the right of about-text */
#dpp .about-image .image-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px; /* small spacing between images */
}
#dpp .about-image .image-stack img {
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: 10px; /* keep consistent styling */
    box-shadow: var(--box-shadow);
    margin-left: auto !important;
    margin-right: auto !important;
}
#dpp .about-image .image-stack img:not(:first-child) {
    margin-left: 0; /* cancel horizontal overlap for DPP */
}
@media (max-width: 992px) {
    #dpp .about-image .image-stack img {
        max-width: 360px;
    }
}
@media (max-width: 600px) {
    #dpp .about-content {
        flex-direction: column; /* stack text and images vertically on small screens */
        gap: 16px;
    }
    #dpp .about-image .image-stack img {
        max-width: 100%;
    }
}
