:root {
    /* ===== CAŁKOWITY CZAS ANIMACJI ===== */
    /* Pełna symetria: 1s czarno -> 3s logo -> 1s czarno -> 3s zdjęcie = 8s */
    --hero-anim-time: 8s; 
    /* Pełny cykl dla 4 zdjęć (4 * 8s) = 32s */
    --hero-bg-anim-time: 32s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: Arial, sans-serif;
}

body {
    background: black;
    color: white;
}

.home {
    position: relative;
    overflow: hidden;
}

/* ===== HEADER ===== */

header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 18px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;

    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 5px solid rgba(255,0,0,0.3); /*Sterowanie linią pod menu*/
}

/* subtelna szachownica */
header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(45deg, rgba(255,255,255,0.05) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,0.05) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.05) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.05) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    opacity: 0.15;
    pointer-events: none;
}

/* LOGO */

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo-container img {
    height: 38px;
}

.logo-container span {
    color: inherit;
    font-size: 18px;
}

/* ===== BRAND DWUKOLOROWY ===== */

.brand {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    letter-spacing: 2px;
}

.brand-photo {
    color: white;
}

.brand-moto {
    color: red;
}

/* Burger (ukryty domyślnie na desktopie) */
.burger {
    display: none;
}


/* MENU */

nav {
    display: flex;
    gap: 40px;
}

nav a {
    position: relative;
    text-decoration: none;
    color: white;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 1px;
    transition: 0.3s;
}

/* animowana linia */

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: red;
    transition: 0.4s ease;
}

nav a:hover {
    color: red;
}

nav a:hover::after {
    width: 100%;
}

nav a.active {
    color: red;
}


main {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    height: 100vh;
}

.panel {
    height: 100vh;
    scroll-snap-align: start;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 40px 40px 40px;
    position: relative;
}

/* ===== HERO SECTION ===== */

.hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: hero-bg-fade-multi var(--hero-bg-anim-time) infinite linear;
}

.hero-bg.bg1 { background-image: url('img/horizontal/back1.webp'); animation-delay: 0s; }
.hero-bg.bg2 { background-image: url('img/horizontal/back2.webp'); animation-delay: 8s; }
.hero-bg.bg3 { background-image: url('img/horizontal/back3.webp'); animation-delay: 16s; }
.hero-bg.bg4 { background-image: url('img/horizontal/back4.webp'); animation-delay: 24s; }

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none; /* Wyłączamy overlay, aby nie zakłócał animacji tła */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    opacity: 0; /* Animacja zaczyna się od czarnego ekranu */
    animation: hero-logo-fade var(--hero-anim-time) infinite linear;
}

.hero-logo {
    width: 550px;
    margin-bottom: 20px;
}

.hero-brand {
    font-family: 'Orbitron', sans-serif;
    font-size: 64px;
    letter-spacing: 6px;
    font-weight: 700;
}

.hero-photo {
    color: #ffffff !important;
}

.hero-moto {
    color: #ff0000 !important;
    text-shadow: 0 0 15px rgba(255,0,0,0.6);
}

/* ===== ANIMACJA W SEKCJI HERO ===== */

/* 
   CYKL 8s (PEŁNA SYMETRIA):
   1s = 12.5% czasu.
*/

@keyframes hero-logo-fade {
    0%      { opacity: 0; } /* 0-1s: czarne tło */
    12.5%   { opacity: 0; } 
    
    25.0%   { opacity: 1; } /* 1-2s: pojawia się logo */
    37.5%   { opacity: 1; } /* 2-3s: widoczne logo */
    
    50.0%   { opacity: 0; } /* 3-4s: logo znika */
    100%    { opacity: 0; } /* Reszta czasu logo jest ukryte */
}

/* Animacja dla 4 zdjęć (łączny czas 32s)
   Każde zdjęcie ma swoje okno 8s (25% z 32s).
   Zaczynamy pokazywać zdjęcie po 5 sekundach pętli.
   5s = 15.625%, 6s = 18.75%, 7s = 21.875%, 8s = 25% */
@keyframes hero-bg-fade-multi {
    0%      { opacity: 0; } 
    15.625% { opacity: 0; } /* 5s: Start pojawiania się zdjęcia */
    18.750% { opacity: 1; } /* 6s: Zdjęcie w pełni widoczne */
    21.875% { opacity: 1; } /* 7s: Start znikania zdjęcia */
    25.000% { opacity: 0; } /* 8s: Koniec znikania (powrót do początku) */
    100%    { opacity: 0; } 
}

/* ===== SEKCJA OFERTA ===== */

.oferta {
    background: linear-gradient(180deg, #000 0%, #0a0a0a 100%);
}

.oferta-wrapper {
    max-width: 1200px;
    width: 100%;
}

.oferta-wrapper h2 {
    font-size: 40px;
    margin-bottom: 60px;
    position: relative;
    color: red;
}

.oferta-wrapper h2::after {
    content: "";
    width: 80px;
    height: 3px;
    background: red;
    display: block;
    margin: 15px auto 0;
}

.oferta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.oferta-card {
    background: #111;
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #222;
    transition: 0.4s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.oferta-card h3 {
    color: red;
    margin-bottom: 15px;
}

.oferta-card p {
    color: #ccc;
    line-height: 1.6;
}

.oferta-card::before {
    content: "";
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle at top left, rgba(255,0,0,0.15), transparent 70%);
    top: -50%;
    left: -50%;
    transition: 0.5s;
}

.oferta-card:hover {
    transform: translateY(-10px);
    border: 1px solid red;
}

.oferta-card:hover::before {
    top: -30%;
    left: -30%;
}

.oferta-footer {
    margin-top: 60px;
    font-size: 18px;
    color: #aaa;
}

/* ===== SEKCJA O MNIE ===== */

.about {
    background: linear-gradient(180deg, #0a0a0a 0%, #000 100%);
}

.about-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    max-width: 1200px;
    width: 100%;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 380px;
    border-radius: 20px;
    filter: grayscale(100%);
    transition: 0.6s ease;
}

.about-image::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid red;
    border-radius: 20px;
    transform: translate(15px, 15px);
    z-index: -1;
}

.about-image:hover img {
    filter: grayscale(0%);
    transform: scale(1.03);
}

.about-content {
    max-width: 600px;
    text-align: left;
    position: relative;
}

.about-content h2 {
    font-size: 42px;
    margin-bottom: 20px;
    color: red;
}

.about-line {
    width: 60px;
    height: 3px;
    background: red;
    margin-bottom: 30px;
}

.about-lead {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.about-lead span {
    color: red;
}

.about-content p {
    color: #bbb;
    line-height: 1.7;
    margin-bottom: 15px;
}

/* ===== SEKCJA WSPÓŁPRACA ===== */

.process {
    background: linear-gradient(180deg, #000 0%, #0d0d0d 100%);
}

.process-wrapper {
    max-width: 1000px;
    width: 100%;
    position: relative;
}

.process-wrapper h2 {
    font-size: 42px;
    margin-bottom: 15px;
    text-align: center;
    width: 100%;
    position: relative;
    color: red;
}

/* cienka linia pod nagłówkiem */
.process-wrapper h2::after {
    content: "";
    width: 70px;
    height: 3px;
    background: red;
    display: block;
    margin: 15px auto 0;
}

.process-subtitle {
    color: #888;
    margin-bottom: 60px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 14px;
    text-align: center;
}

/* ===== TIMELINE ===== */

.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-left: 80px;
}

/* pionowa linia */

.timeline::before {
    content: "";
    position: absolute;
    left: 25px;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, red, transparent);
}

/* item */

.timeline-item {
    position: relative;
}

/* numer + strzałka */

.timeline-step {
    position: absolute;
    left: -80px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===== KOŁKO NUMER + STRZAŁKA ===== */

.timeline-circle{
    width:50px;
    height:50px;
    border:2px solid red;
    border-radius:50%;
    background:black;

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    color:red;
    font-size:14px;
    font-weight:600;

    transition:0.3s;
}

.timeline-circle svg{
    margin-top:2px;
}

.timeline-item:hover .timeline-circle{
    background:red;
    color:black;
}

/* karta */

.timeline-content {
    background: #111;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #222;
    transition: 0.3s;
}

.timeline-content h3 {
    color: red;
    margin-bottom: 10px;
}

.timeline-content p {
    color: #bbb;
    line-height: 1.6;
}

.timeline-item:hover .timeline-content {
    border: 1px solid red;
    transform: translateY(-4px);
}

/* ===== SEKCJA KONTAKT ===== */

.contact {
    background: radial-gradient(circle at center, #111 0%, #000 70%);
}

.contact-wrapper {
    max-width: 900px;
    width: 100%;
    text-align: center;
}

.contact-wrapper h2 {
    font-size: 48px;
    margin-bottom: 30px;
    position: relative;
    color: red;
}

.contact-wrapper h2::after {
    content: "";
    width: 80px;
    height: 3px;
    background: red;
    display: block;
    margin: 20px auto 0;
}

.contact-lead {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

.contact-lead span {
    color: red;
}

.contact-text {
    color: #aaa;
    margin-bottom: 50px;
    font-size: 18px;
}

/* ===== BUTTONY ===== */

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-btn {
    display: grid;
    grid-template-columns: 24px 1fr;
    align-items: center;
    column-gap: 10px;
    padding: 16px 40px;
    font-size: 16px;
    text-decoration: none;
    border-radius: 40px;
    transition: 0.4s ease;
    border: 2px solid red;
    color: white;
    position: relative;
    overflow: hidden;
}

.contact-btn:hover i {
    color: white;
}

/* efekt glow */
.contact-btn::before {
    content: "";
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255,0,0,0.4), transparent 70%);
    top: -10%;
    left: -10%;
    opacity: 0;
    transition: 0.4s;
}

.contact-btn:hover::before {
    opacity: 1;
}

.contact-btn:hover {
    background: red;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255,0,0,0.3);
}


/* ===== IKONY W PRZYCISKACH ===== */

.contact-btn i {
    font-size: 18px;
    color: #ff0000;
    text-align: center;
}


/* ===== UKRYCIE SCROLLBARA ===== */

html, body, main {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
main::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

/* Ukryj logo w menu na desktopie - najwyższy priorytet */
.nav-logo, 
nav .nav-logo, 
.nav-menu .nav-logo {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

@media (max-width: 1100px) {
    .logo-container .brand {
        display: none;
    }
}

/* ===== WERSJA MOBILNA ===== */

@media (max-width: 768px) {

.about,
.process,
.oferta {
    min-height: auto;
}

.panel {
    height: auto;
    min-height: auto;
    align-items: flex-start;
    padding: 80px 20px 50px;
}

.home {
    height: 100svh;
    min-height: 100svh;
    align-items: center;
    padding: 80px 20px 40px;
}

/* Wyłączenie snap-scroll na mobilce */
main {
    scroll-snap-type: none;
    height: auto;
    overflow-y: auto;
}

/* Header */
header {
    padding: 12px 20px;
}

.logo-container img {
    height: 28px;
}

/* Burger menu */
.burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.burger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: 0.3s;
}

/* Nav menu - pełny ekran */
.nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s ease;
    z-index: 1000;
}

.nav-menu.active {
    opacity: 1;
    visibility: visible;
}

.nav-menu a {
    font-size: 18px;
}

    .nav-logo, 
    nav .nav-logo, 
    .nav-menu .nav-logo {
        position: absolute;
        bottom: 50px;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .nav-logo img {
        width: 140px;
    }

    .nav-brand {
        font-family: 'Orbitron', sans-serif;
        font-size: 24px;
        letter-spacing: 4px;
        font-weight: 700;
    }

    .nav-brand .brand-photo {
        color: #ffffff;
    }

    .nav-brand .brand-moto {
        color: #ff0000;
        text-shadow: 0 0 15px rgba(255,0,0,0.6);
    }

/* Burger animacja */
.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero */
.hero-logo {
    width: 200px;
}

.hero-brand {
    font-size: 32px;
    letter-spacing: 3px;
}

/* bg - mobile wersion vertical */
.hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: hero-bg-fade-multi var(--hero-bg-anim-time) infinite linear;
}

.hero-bg.bg1 { background-image: url('img/vertical/back11.webp'); animation-delay: 0s; }
.hero-bg.bg2 { background-image: url('img/vertical/back12.webp'); animation-delay: 8s; }
.hero-bg.bg3 { background-image: url('img/vertical/back13.webp'); animation-delay: 16s; }
.hero-bg.bg4 { background-image: url('img/vertical/back14.webp'); animation-delay: 24s; }

/* Sekcje */
.process {
    background: black;
}

/* Oferta */
.oferta-grid {
    grid-template-columns: 1fr;
    gap: 20px;
}

.oferta-card {
    padding: 25px;
}

.oferta-wrapper h2 {
    font-size: 28px;
    margin-bottom: 30px;
}

/* O mnie */
.about-wrapper {
    flex-direction: column;
    gap: 30px;
}

.about-image img {
    width: 200px;
}

.about-content h2 {
    font-size: 28px;
    text-align: center;
}

.about-line {
    margin: 0 auto 20px;
}

.about-content {
    text-align: center;
}

.about-content p {
    font-size: 14px;
}

/* Współpraca */
.process-wrapper h2 {
    font-size: 28px;
}

.process-subtitle {
    font-size: 12px;
    margin-bottom: 30px;
}

.timeline {
    padding-left: 50px;
    gap: 25px;
}

.timeline::before {
    left: 17px;
}

.timeline-step {
    left: -50px;
    transform: translateY(-50%);
}

.timeline-circle {
    width: 35px;
    height: 35px;
    font-size: 12px;
}

.timeline-circle svg {
    width: 12px;
    height: 12px;
}

.timeline-content {
    padding: 20px;
}

.timeline-content h3 {
    font-size: 16px;
}

.timeline-content p {
    font-size: 13px;
}

/* Kontakt */
.contact-wrapper h2 {
    font-size: 32px;
}

.contact-lead {
    font-size: 18px;
}

.contact-text {
    font-size: 14px;
    margin-bottom: 30px;
}

.contact-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.contact-btn {
    width: 100%;
    max-width: 250px;
    padding: 14px 30px;
    font-size: 14px;
    grid-template-columns: 24px 1fr;
}

}
