*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Inter',sans-serif;
}

html{
    scroll-behavior:smooth;
}

body{
    background:#0a0a0a;
    color:white;
    overflow-x:hidden;
}

/* TŁO */

body::before{
    content:"";
    position:fixed;
    width:500px;
    height:500px;
    background:#ff6b00;
    filter:blur(250px);
    opacity:.12;
    top:-150px;
    right:-100px;
    z-index:-1;
}

body::after{
    content:"";
    position:fixed;
    width:400px;
    height:400px;
    background:#ff8c00;
    filter:blur(220px);
    opacity:.08;
    bottom:-100px;
    left:-100px;
    z-index:-1;
}

/* NAVBAR */

nav{
    position:fixed;
    top:0;
    width:100%;
    backdrop-filter:blur(15px);
    background:rgba(0,0,0,.55);
    border-bottom:1px solid rgba(255,255,255,.08);
    z-index:1000;
}

.nav-container{
    max-width:1400px;
    margin:auto;
    padding:20px 40px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.menu{
    display:flex;
    gap:30px;
}

.menu a{
    color:white;
    text-decoration:none;
    font-weight:500;
    transition:.3s;
}

.menu a:hover{
    color:#ff6b00;
}

/* LOGO */

.logo-container{
    display:flex;
    flex-direction:column;
}

.logo{
    display:flex;
    align-items:center;
    gap:15px;
}

.zwd,
.spaw{

    font-family:'Orbitron',sans-serif;

    font-size:2.3rem;

    font-weight:900;

    letter-spacing:6px;

    text-transform:uppercase;
}
.zwd{
    color:white;
}

.spaw{
    color:#ff6b00;

    text-shadow:
    0 0 10px #ff6b00,
    0 0 20px #ff6b00,
    0 0 40px #ff6b00;
}

.subtitle{
    color:#999;
    font-size:.75rem;
    letter-spacing:4px;
}

/* SPOINA */

.weld-core{

    width:90px;
    height:5px;

    border-radius:999px;

    background:
    linear-gradient(
    90deg,
    #ff6b00,
    #ffd700,
    white,
    #ffd700,
    #ff6b00
    );

    background-size:300% 100%;

    box-shadow:
    0 0 10px #ff6b00,
    0 0 20px #ff6b00,
    0 0 40px #ff6b00;

    animation:weldFlow 2s linear infinite;

    position:relative;
}

@keyframes weldFlow{

    from{
        background-position:0%;
    }

    to{
        background-position:300%;
    }
}

/* ISKRY */

.spark{

    position:absolute;

    width:7px;
    height:7px;

    border-radius:50%;

    background:#ffd700;

    box-shadow:
    0 0 10px #ffd700,
    0 0 20px #ffd700;
}

.spark1{
    top:-10px;
    left:10px;
    animation:spark1 1.2s infinite;
}

.spark2{
    top:-15px;
    left:40px;
    animation:spark2 1.7s infinite;
}

.spark3{
    top:-12px;
    right:10px;
    animation:spark3 1.4s infinite;
}

@keyframes spark1{

    from{
        opacity:1;
        transform:translate(0,0);
    }

    to{
        opacity:0;
        transform:translate(30px,-40px);
    }
}

@keyframes spark2{

    from{
        opacity:1;
        transform:translate(0,0);
    }

    to{
        opacity:0;
        transform:translate(-20px,-50px);
    }
}

@keyframes spark3{

    from{
        opacity:1;
        transform:translate(0,0);
    }

    to{
        opacity:0;
        transform:translate(40px,-45px);
    }
}

/* HERO */

.hero{

    min-height:100vh;

    display:flex;
    justify-content:center;
    align-items:center;

    text-align:center;

    padding:120px 20px;
}

.hero-wrapper{

    width:100%;

    max-width:1400px;

    display:flex;

    justify-content:center;

    align-items:center;
}
.hero-content{

    max-width:900px;

    width:100%;

    margin:0 auto;
}

.hero h1{

    font-size:5rem;
    line-height:1.1;
    margin-bottom:25px;
}

.hero span{
    color:#ff6b00;
}

.hero p{

    font-size:1.2rem;
    color:#cfcfcf;

    margin-bottom:40px;
}

/* BUTTONS */

.buttons{
    display:flex;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;
}

.btn{

    border:none;
    cursor:pointer;

    padding:16px 35px;

    border-radius:14px;

    font-weight:700;

    transition:.3s;
}

.btn-primary{

    background:#ff6b00;
    color:white;
}

.btn-primary:hover{

    transform:translateY(-5px);

    box-shadow:
    0 0 20px #ff6b00,
    0 0 40px #ff6b00;
}

.btn-secondary{

    background:transparent;

    border:1px solid #ff6b00;

    color:#ff6b00;
}

.btn-secondary:hover{

    background:#ff6b00;
    color:white;
}

/* SEKCJE */

section{
    padding:120px 20px;
}

.container{
    max-width:1300px;
    margin:auto;
}

.section-title{

    font-size:3rem;
    text-align:center;

    margin-bottom:60px;
}

.section-title span{
    color:#ff6b00;
}

.about{

    max-width:900px;

    margin:auto;

    text-align:center;

    color:#cfcfcf;

    line-height:1.8;
}

/* USŁUGI */

.services{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(260px,1fr));

    gap:25px;
}

.card{

    background:
    rgba(255,255,255,.03);

    backdrop-filter:blur(10px);

    border:
    1px solid rgba(255,255,255,.08);

    border-radius:20px;

    padding:35px;

    transition:.4s;
}

.card:hover{

    transform:translateY(-10px);

    border-color:#ff6b00;

    box-shadow:
    0 0 25px rgba(255,107,0,.3);
}

.card h3{

    color:#ff6b00;

    margin-bottom:15px;
}

/* LICZNIKI */

.stats{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(220px,1fr));

    gap:30px;
}

.stat{

    text-align:center;

    padding:30px;
}

.stat h2{

    font-size:3rem;

    color:#ff6b00;

    margin-bottom:10px;
}

/* GALERIA */

.gallery{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(320px,1fr));

    gap:20px;
}

.gallery-item{

    height:250px;

    border-radius:20px;

    background:
    linear-gradient(
    135deg,
    #181818,
    #252525
    );

    display:flex;

    justify-content:center;
    align-items:center;

    color:#888;

    transition:.4s;
}

.gallery-item:hover{

    transform:scale(1.04);

    box-shadow:
    0 0 25px rgba(255,107,0,.3);
}

/* KONTAKT */

.contact-box{

    max-width:700px;

    margin:auto;

    background:
    rgba(255,255,255,.03);

    padding:40px;

    border-radius:20px;

    text-align:center;
}

.contact-box h3{

    color:#ff6b00;

    margin-bottom:20px;
}

.contact-box p{
    margin-bottom:10px;
}

/* STOPKA */

footer{

    padding:40px;

    text-align:center;

    color:#888;

    border-top:
    1px solid rgba(255,255,255,.08);
}

/* ANIMACJE */

.reveal{

    opacity:0;

    transform:translateY(50px);

    transition:1s;
}

.reveal.active{

    opacity:1;

    transform:translateY(0);
}

/* MOBILE */

@media(max-width:768px){

    .menu{
        display:none;
    }

    .hero h1{
        font-size:3rem;
    }

    .section-title{
        font-size:2rem;
    }

    .zwd,
    .spaw{
        font-size:1.4rem;
    }

    .weld-core{
        width:60px;
    }
}


/* ANIMACJA PLAZMY CNC */

.welder-animation{

    position:fixed;

    top:65px;
    left:0;

    width:120px;
    height:150px;

    z-index:9999;

    pointer-events:none;
}

/* GŁOWICA */

.torch{

    position:absolute;

    top:-55px;
    left:10px;

    width:200px;   /* +22% */

    height:auto;

    z-index:2;

    animation:torchGlow .12s infinite alternate;
}

.arc::before{

    content:"";

    position:absolute;

    left:50px;
    top:100px;

    width:5px;
    height:5px;

    border-radius:50%;


    animation:sparkStars 0.35s infinite linear;
}

/* ROZPRYSK ISKIER CNC */


.sparks{

    position:absolute;

    left:109px;
    top:180px;

    width:0;
    height:0;
}

.sparks::before{

    content:"";

    position:absolute;

    left:20;
    top:0;

    width:4px;
    height:4px;

    border-radius:50%;

    background:#ffffff;

    box-shadow:

    /* środek */
    0 0 0 #ffffff,

    /* górne */
    -4px 8px 0 #fff700,
    4px 8px 0 #fff700,

    /* środkowe */
    -10px 16px 0 #ffd700,
    10px 16px 0 #ffd700,

    -18px 22px 0 #ffb300,
    18px 22px 0 #ffb300,

    /* szeroki rozprysk */
    -28px 30px 0 #ff6b00,
    28px 30px 0 #ff6b00,

    -40px 40px 0 #ffb300,
    40px 40px 0 #ffb300,

    /* dół */
    -12px 50px 0 #ffd700,
    12px 50px 0 #ffd700,

    0px 20px 0 #ff6b00,
    0px 20px 0 #ffb300;

    filter:
        drop-shadow(0 0 4px #fff700)
        drop-shadow(0 0 10px #ff6b00);

    animation:sparkExplosion .18s infinite;
}

@keyframes sparkExplosion{

    0%{

        opacity:1;

        transform:
        scale(.8);
    }

    100%{

        opacity:.2;

        transform:
        scale(1.25);
    }
}

@keyframes sparkFlash{

    from{

        filter:
        brightness(.9);
    }

    to{

        filter:
        brightness(1.4);
    }
}

/* PROWADNICA CNC */

.cnc-rail{

    position:fixed;

    top:90px;

    left:0;

    width:100%;

    height:24px;

    z-index:9990;

    pointer-events:none;
}

/* GŁÓWNA BELKA */

.rail-track{

    position:absolute;

    left:0;
    top:0;

    width:100%;
    height:45px;

    border-radius:6px;

    background:
    linear-gradient(
        180deg,
        #2d2d2d 0%,
        #505050 30%,
        #181818 55%,
        #444444 100%
    );

    border-top:1px solid #000000;
    border-bottom:1px solid #111;

    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.15),
        inset 0 -3px 6px rgba(0,0,0,.8),
        0 0 10px rgba(0,0,0,.4);

}

/* ŚWIECĄCA LINIA CIĘCIA */

.rail-highlight{

    position:absolute;

    left:0;
    top:8px;

    width:100%;
    height:3px;

    background:
    linear-gradient(
        90deg,
        transparent,
        rgba(255,107,0,.15),
        transparent
    );
}

.rail-track::before{

    content:"";

    position:absolute;

    left:0;
    top:10px;

    width:100%;
    height:6px;

    background:#d8d8d8;

    box-shadow:
        0 18px #d8d8d8;

}

.rail-track::after{

    content:"";

    position:absolute;

    inset:0;

    background:
    radial-gradient(
        circle,
        #111 3px,
        transparent 4px
    );

    background-size:90px 45px;

    opacity:.75;
}