/* Add these styles to your existing CSS */

/* Special styling for the featured timeline item (Complete Film Pipeline) */
.timeline-item.featured {
  /* Remove the normal timeline positioning */
  justify-content: center !important; 
  width: 100%;
  margin-top: 60px; /* Extra space between this and previous items */
  margin-bottom: 40px;
}

/* Make the content wider */
.timeline-item.featured .timeline-content {
  width: 70%; /* Larger than the default 40% */
  max-width: 800px;
  /* background: linear-gradient(145deg, rgba(40, 40, 40, 0.9), rgba(25, 25, 25, 0.95)); */
  /* border: 4px solid rgba(255, 255, 255, 0.08); */
  padding: 2rem;
  background: #111;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);

}

/* Override the positioning of the timeline bullet for the featured item */
.timeline-item.featured .timeline-content:before {
  top: -8px !important; /* Position at the top instead of the side */
  left: 50% !important; /* Center it */
  right: auto !important;
  transform: translateX(-50%) !important;
}

/* Make the video larger */
.timeline-item.featured .timeline-image {
  height: 350px; /* Taller than the default */
}

/* Make the video full-width */
.timeline-item.featured .timeline-image.video-scalable {
  width: 100%;
  margin: 0 auto 1.5rem;
}

.timeline-item.featured .timeline-image video {
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Add a special highlight effect to the title */
.timeline-item.featured h3 {
  font-size: 1.5rem; /* Larger font */
  background: linear-gradient(90deg, var(--gold), var(--highlight));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-align: center;
  margin-bottom: 1rem;
}

.timeline-item.featured p {
  text-align: center;
  font-size: 1rem;
  max-width: 80%;
  margin: 0 auto;
}

/* Remove the vertical line behind the featured item */
.timeline-item.featured:before {
  display: none;
}

/* Add special hover effects */
.timeline-item.featured .timeline-content:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .timeline-item.featured .timeline-content {
    width: 85%;
  }
  
  .timeline-item.featured .timeline-image {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .timeline-item.featured .timeline-content {
    width: calc(100% - 50px);
    margin-left: 50px;
  }
  
  .timeline-item.featured .timeline-image {
    height: 250px;
  }
  
  .timeline-item.featured h3 {
    font-size: 1.3rem;
    text-align: left;
  }
  
  .timeline-item.featured p {
    text-align: left;
    max-width: 100%;
  }
  
  /* Reposition the bullet for mobile */
  .timeline-item.featured .timeline-content:before {
    left: -30px !important;
    top: 50% !important;
  }
}

@media (max-width: 576px) {
  .timeline-item.featured .timeline-image {
    height: 200px;
  }
}


/* Podstawowe style dla kontenera wideo */
.video-scalable {
    position: relative;
    width: 100%;
    overflow: hidden;
    transition: all 0.3s ease;
}

.video-scalable video {
    width: 100%;
    height: auto;
    display: block;
}

/* Rozmiary */
.video-scalable.size-small {
    max-width: 300px;
    margin: 0 auto;
}

.video-scalable.size-medium {
    max-width: 500px;
    margin: 0 auto;
}

.video-scalable.size-large {
    max-width: 800px;
    margin: 0 auto;
}

/* Responsywność */
@media (max-width: 768px) {
    .video-scalable.size-large {
        max-width: 100%;
    }
    
    .video-scalable.size-medium {
        max-width: 90%;
    }
    
    .video-scalable.size-small {
        max-width: 80%;
    }
}

/* Hover efekt (opcjonalnie) */
.video-scalable:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}





/* Style dla sekcji kompatybilności z kamerami */
.camera-compatibility {
    margin: 1.5rem auto;
    padding: 1.2rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    position: relative;
    max-width: 90%;
    overflow: hidden; /* Zapobiega wyjściu gradientów poza zaokrąglone narożniki */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Dodajemy gradienty zamiast jednolitych kolorów */
.camera-compatibility::before,
.camera-compatibility::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
}

/* Gradient po lewej stronie */
.camera-compatibility::before {
    left: 0;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    background: linear-gradient(to bottom, var(--highlight), var(--accent));
}

/* Gradient po prawej stronie */
.camera-compatibility::after {
    right: 0;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    background: linear-gradient(to bottom, var(--accent), var(--highlight));
}

/* Tytuł sekcji kompatybilności */
.compatibility-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    text-align: center;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

/* Wyróżniony tekst */
.highlight-text {
    background: linear-gradient(90deg, var(--highlight) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Kontener dla marek kamer */
.camera-brands {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
    font-size: 1.1rem;
    padding: 0.5rem 0;
}

/* Pojedyncza marka kamery */
.camera-brand {
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.2s ease;
    position: relative;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

/* Efekt hover na marce kamery */
.camera-brand:hover {
    color: var(--highlight);
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Subtelne podświetlenie aktualnej marki kamery */
.camera-brand.active {
    color: var(--highlight);
    font-weight: 600;
}

/* Subtelne separatory między markami */
.camera-brands span:not(:last-child)::after {
    content: '•';
    margin-left: 1rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Dostosowanie do mniejszych ekranów */
@media (max-width: 992px) {
    .camera-compatibility {
        max-width: 95%;
        padding: 1rem;
    }
    
    .compatibility-title {
        font-size: 1.3rem;
    }
}

/* Responsywność dla urządzeń mobilnych */
@media (max-width: 768px) {
    .camera-compatibility {
        padding: 1rem 1.5rem;
        max-width: 100%;
    }
    
    .compatibility-title {
        font-size: 1.2rem;
    }
    
    .camera-brands {
        font-size: 1rem;
        gap: 0.4rem 0.8rem;
    }
    
    /* Zmniejszenie marginesów na separatorach na małych ekranach */
    .camera-brands span:not(:last-child)::after {
        margin-left: 0.8rem;
    }
}

/* Wersja dla bardzo małych ekranów */
@media (max-width: 480px) {
    .camera-brands {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    /* Usunięcie separatorów w układzie pionowym */
    .camera-brands span:not(:last-child)::after {
        display: none;
    }
    
    .camera-brand {
        padding: 0.3rem 0.8rem;
        background-color: rgba(255, 255, 255, 0.05);
        border-radius: 4px;
        width: 80%;
        text-align: center;
    }
}

/* Zoptymalizowany CSS dla CineCraft Pro+ */

/* Zmienne i podstawowe style */
:root {
    --dark-bg: #1a1a1a;
    --darker-bg: #0f0f0f;
    --text: #ffffff;
    --highlight: #e67e22;
    --accent: #3498db;
    --gold: #c9a87c;
    --neutral: #6c6c6c;
    --spacing: clamp(1rem, 3vw, 3rem);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: var(--dark-bg);
    overflow-x: hidden;
    position: relative;
}

/* Zoptymalizowany film grain effect */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.4; /* zmniejszona z 0.03 */
    pointer-events: none;
    z-index: 10; /* zmniejszony z 1000 */
    mix-blend-mode: overlay;
}


/* Typografia i podstawowe elementy */
a {
    text-decoration: none;
    color: var(--accent);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--highlight);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
}

p {
    margin-bottom: 1.5rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Kontenery i przyciski */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing);
    position: relative;
    z-index: 1;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover:after {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--highlight), var(--accent));
    color: white;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(230, 126, 34, 0.4);
    color: white;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), #dfc296);
    color: var(--darker-bg);
    box-shadow: 0 4px 15px rgba(201, 168, 124, 0.3);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(201, 168, 124, 0.4);
    color: var(--darker-bg);
}

/* Sekcje */
.section {
    padding: calc(var(--spacing) * 1) 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: calc(var(--spacing) * 2);
    position: relative;
}

.section-title:after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--highlight), var(--accent));
    margin: 1rem auto 0;
    border-radius: 3px;
}

.gradient-text {
    background: linear-gradient(90deg, var(--highlight) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    font-weight: 800;
}

.gold-text {
    background: linear-gradient(90deg, var(--gold) 0%, #dfc296 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* Zoptymalizowany Header & Navigation */
.header {
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    z-index: 100;
    background: rgba(15, 15, 15, 0.95);
    display: flex;
    justify-content: center;
    transform: translateZ(0); /* Dodano dla akceleracji GPU */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--spacing);
    width: 100%;
    max-width: 1200px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--highlight), var(--accent));
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.nav-links a:hover:after {
    width: 100%;
}

/* Zoptymalizowane tło i efekty */
.bg-blur {
    position: fixed; /* zmienione z absolute dla lepszej wydajności */
    border-radius: 50%;
    opacity: 0.08; /* zmniejszona z 0.1 */
    z-index: -1;
    transform: translateZ(0); /* włączenie akceleracji GPU */
    pointer-events: none;
}

.blur-1 {
    top: -15%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(230, 126, 34, 0.4) 0%, rgba(230, 126, 34, 0) 70%);
    filter: blur(40px); /* zmniejszona wartość blur */
}

.blur-2 {
    bottom: -25%;
    right: -15%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.4) 0%, rgba(52, 152, 219, 0) 70%);
    filter: blur(60px);
}

.blur-3 {
    top: 30%;
    right: 20%;
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, rgba(201, 168, 124, 0.4) 0%, rgba(201, 168, 124, 0) 70%);
    filter: blur(30px);
}

/* Zoptymalizowana Hero Section z wideo */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    z-index: 1;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background: var(--darker-bg) url('/wp-content/uploads/fallback-image.jpg') no-repeat center center;
    background-size: cover;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(0); /* Dodanie translateZ dla akceleracji GPU */
    filter: brightness(0.7);
    will-change: transform;
}

.hero::before {
    opacity: 0;
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(15, 15, 15, 0.8), rgba(234, 161, 17, 0.689));
    z-index: 1;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.03; /* Zmniejszona z 0.05 */
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: soft-light;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 3;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    margin-bottom: 2rem;
    font-weight: 300;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Zoptymalizowana Features Timeline z mniejszymi kartami */
.features {
    background-color: var(--darker-bg);
    position: relative;
    overflow: hidden;
    padding: 60px 0;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 0;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: linear-gradient(to bottom, var(--highlight), var(--accent));
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 1.5rem; /* Zmniejszone z 6rem dla mniejszych odstępów */
    position: relative;
    width: 100%;
    display: flex;
}

.timeline-item:nth-child(odd) {
    justify-content: flex-start;
}

.timeline-item:nth-child(even) {
    justify-content: flex-end;
}

.timeline-content {
    width: 40%; /* Zmniejszone z 45% dla mniejszych kart */
    padding: 1.5rem; /* Zmniejszone z 2rem dla mniejszych wewnętrznych odstępów */
    background: #111111; /* Ciemniejsze tło jak w film stocks */
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
}

.timeline-content h3 {
    color: #c9a87c;
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.timeline-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.timeline-content:before {
    content: '';
    position: absolute;
    top: 50%;
    width: 16px; /* Zmniejszone z 20px */
    height: 16px; /* Zmniejszone z 20px */
    background: linear-gradient(135deg, var(--highlight), var(--accent));
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 10px rgba(230, 126, 34, 0.5);
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-content:before {
    right: -32px; /* Zmniejszone z -40px */
}

.timeline-item:nth-child(even) .timeline-content:before {
    left: -32px; /* Zmniejszone z -40px */
}

.timeline-image {
    width: 100%;
    height: 220; /* Zmniejszone z 200px */
    margin-bottom: 1.0rem; /* Zmniejszone z 1.5rem */
    border-radius: 5px;
    background-position: center;
    background-size: cover;
    background-color: var(--neutral);
    position: relative;
    overflow: hidden;
}

.timeline-image:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 50%);
}

/* Dodanie efektu hover podobnego do film stocks */
.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Responsywność */
@media (max-width: 992px) {
    .timeline:before {
        left: 20px;
    }
    
    .timeline-item {
        justify-content: flex-start !important;
    }
    
    .timeline-content {
        width: calc(100% - 50px);
        margin-left: 50px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content:before,
    .timeline-item:nth-child(even) .timeline-content:before {
        left: -30px;
    }
}

@media (max-width: 576px) {
    .timeline-content {
        padding: 1rem;
    }
    
    .timeline-image {
        height: 140px;
    }
}

/* Film Stocks Section */
.film-stocks {
    background-color: #0a0a0a; /* Ciemniejsze tło */
    position: relative;
    padding: 60px 0;
}

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

/* Karty filmów */
.stock-item {
    border-radius: 8px;
    overflow: hidden;
    background: #111111; /* Ciemniejsze tło dla kart */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.stock-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Kontener na wideo */
.stock-image {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.stock-image video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Zawartość tekstowa */
.stock-content {
    padding: 25px;
}

/* Tytuł filmu */
.stock-title {
    color:#c9a87c; /* Pomarańczowy kolor (e67e22) */
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-transform: uppercase; /* Wielkie litery jak na zrzucie */
    letter-spacing: 0.5px;
}

/* Paragraf opisu */
.stock-item p {
    color: rgba(255, 255, 255, 0.7); /* Lekko przezroczysty biały */
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.stock-item p:last-child {
    margin-bottom: 0;
}

/* Ideal for */
.ideal-for {
    color: var(--gold); /* Złoty kolor */
    font-weight: 600;
    display: inline-block;
    margin-right: 5px;
}

/* Optymalizacja dla urządzeń mobilnych */
@media (max-width: 768px) {
    .stock-content {
        padding: 20px;
    }
    
    .stock-title {
        font-size: 1.1rem;
    }
    
    .stock-item p {
        font-size: 0.9rem;
    }
}
/* Components Section */
.components {
    background-color: var(--darker-bg);
    position: relative;
}

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

.component-card {
    padding: 2rem;
    border-radius: 10px;
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.component-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.component-card h3 {
    margin-bottom: 1rem;
    /* color: var(--gold); */
    color: #c9a87c;
}

.component-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--highlight), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

/* DCTL Scripts Section - Zoptymalizowana */
.dctl-scripts {
    background-color: var(--darker-bg);
    position: relative;
    padding: var(--spacing);
}

.dctl-script-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

/* Zoptymalizowany styl dla obrazka */
.dctl-script-image {
    height: 400px;
    overflow: hidden;
    border-radius: 15px;
    transform: translateY(0);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
    transition: 0.3s ease-out transform, 0.3s ease-out box-shadow;
    will-change: transform; /* Optymalizacja dla GPU */
}

.dctl-script-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 40px rgba(0, 0, 0, 0.3);
}

.dctl-script-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dctl-script-title {
    font: helvetica;
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 1rem;
}

/* ---------- Workflow Grid Layout ---------- */

.workflow-diagram h3 {
    text-align: center;
    margin-bottom: 30px;
}
.workflow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
    position: relative;
}

.workflow-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    width: 1px;
    background: linear-gradient(to bottom, 
        rgba(230, 126, 34, 0), 
        rgba(230, 126, 34, 0.5) 10%, 
        rgba(52, 152, 219, 0.5) 90%, 
        rgba(52, 152, 219, 0));
    z-index: 0;
    display: none;
}

@media (min-width: 1024px) {
    .workflow-grid::before {
        display: block;
    }
}

/* ---------- Workflow Cards ---------- */
.workflow-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(40, 40, 40, 0.8), rgba(25, 25, 25, 0.9));
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
}

.workflow-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.workflow-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--highlight), var(--accent));
    z-index: 1;
}

/* ---------- Workflow Card Headers ---------- */
.workflow-header {
    padding: 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(20, 20, 20, 0.5);
}

.workflow-number {
    color: rgb(0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 16px;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
    background: rgba(25, 25, 25, 0.8);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.workflow-number::before {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--highlight), var(--accent));
    z-index: -1;
}

/* Number gradient variations */
.workflow-number-1::before { background: linear-gradient(135deg, #FF9966, #FF5E62); }
.workflow-number-2::before { background: linear-gradient(135deg, #FF5E62, #FF70AF); }
.workflow-number-3::before { background: linear-gradient(135deg, #FF70AF, #B073FE); }
.workflow-number-4::before { background: linear-gradient(135deg, #B073FE, #836FFF); }
.workflow-number-5::before { background: linear-gradient(135deg, #836FFF, #4F8FFD); }
.workflow-number-6::before { background: linear-gradient(135deg, #4F8FFD, #3AA7FF); }
.workflow-number-7::before { background: linear-gradient(135deg, #3AA7FF, #30D1FE); }
.workflow-number-8::before { background: linear-gradient(135deg, #30D1FE, #21E2B9); }
.workflow-number-9::before { background: linear-gradient(135deg, #21E2B9, #1DE590); }
.workflow-number-10::before { background: linear-gradient(135deg, #1DE590, #49E670); }

.workflow-title {
    color: var(--gold);
    font-weight: 700;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.3;
    background: linear-gradient(90deg, var(--gold), #dfc296);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Workflow Card Body ---------- */
.workflow-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.workflow-description {
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
}

/* ---------- Workflow Image Placeholders ---------- */
.workflow-image-placeholder {
    width: 100%;
    height: 140px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
}

.workflow-image-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.1), transparent);
    z-index: 1;
}

.workflow-image-text {
    color: white;
    /* color: var(--gold); */
    font-size: 0.9rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.4);
    padding: 8px 16px;
    border-radius: 4px;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .workflow-grid {
        grid-template-columns: 1fr;
    }
    
    .workflow-image-placeholder {
        height: 200px;
    }
}
/* CTA Section - Zoptymalizowana */
.cta {
    background-color: var(--darker-bg);
    position: relative;
    text-align: center;
    padding: calc(var(--spacing) * 4) 0;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Footer - Zoptymalizowany */
.footer {
    background-color: var(--darker-bg);
    padding: 4rem 0 2rem;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

/* Optymalizacja dla urządzeń o niskiej wydajności i prefers-reduced-motion */
.low-performance-device .dctl-script-image,
.low-performance-device .workflow-card,
.low-performance-device .component-card,
.low-performance-device .stock-item {
    transition: none;
}

.low-performance-device .dctl-script-image:hover,
.low-performance-device .workflow-card:hover,
.low-performance-device .component-card:hover,
.low-performance-device .stock-item:hover {
    transform: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Lazy loading dla obrazów i wideo */
.lazy-video, .lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-video.loaded, .lazy-image.loaded {
    opacity: 1;
}

/* Media Queries */
@media (max-width: 992px) {
    .timeline:before {
        left: 20px;
    }
    
    .timeline-item {
        justify-content: flex-start !important;
    }
    
    .timeline-content {
        width: calc(100% - 50px);
        margin-left: 50px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content:before,
    .timeline-item:nth-child(even) .timeline-content:before {
        left: -30px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .bg-blur {
        opacity: 0.05;
        filter: blur(30px);
    }
    
    .dctl-script-image {
        height: 300px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: 0.001ms !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
    }
    
    .bg-blur {
        display: none;
    }
    
    body::before {
        opacity: 0.01;
    }
    
    .dctl-script-image:hover {
        transform: none;
        box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
    }
}
.cart-icon {
    position: relative;
}

.cart-icon i {
    font-size: 20px;
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #e67e22, #3498db);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}
/* CineCraft Pro+ Premium Design System */
:root {
    --dark-bg: #111111;
    --darker-bg: #0a0a0a;
    --text: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --highlight: #e67e22;
    --accent: #3498db;
    --gold: #c9a87c;
    --spacing: clamp(1rem, 5vw, 4rem);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --surface-1: rgba(30, 30, 30, 0.6);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gradient-text {
    background: linear-gradient(135deg, var(--highlight), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.update-badge {
    display: inline-block;
    background: rgba(230, 126, 34, 0.15);
    border: 1px solid var(--highlight);
    color: var(--highlight);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    backdrop-filter: blur(10px);
}

.update-highlight {
    background: var(--surface-1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(230, 126, 34, 0.3);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 5rem;
    position: relative;
    overflow: hidden;
}

.cta-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin: 40px auto;
    max-width: 600px;
    padding: 50px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.price-tag {
    font-size: 4rem;
    font-weight: 900;
    color: white;
    margin: 20px 0;
    display: block;
    letter-spacing: -2px;
}

/* Reveals & Animations (Only active if JS is enabled) */
body.js-enabled .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

body.js-enabled .reveal.active {
    opacity: 1;
    transform: translateY(0);
}
