/* =====================================
   ITFix s.r.o.
   style.css
===================================== */

:root{
    --bg:#0b0f14;
    --bg2:#121922;
    --card:#181f2b;
    --blue:#2ca9ff;
    --blue2:#58c3ff;
    --white:#ffffff;
    --text:#cfd8e3;
    --border:#2b3646;
    --shadow:0 15px 40px rgba(0,0,0,.35);
}

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

html{
    scroll-behavior:smooth;
}

body{
    background:var(--bg);
    color:var(--white);
    font-family:'Poppins',sans-serif;
    overflow-x:hidden;
    line-height:1.6;
}

a{
    text-decoration:none;
    color:white;
}

img{
    max-width:100%;
}

/* ================= NAV ================= */

nav{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:80px;

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

    padding:0 8%;

    background:#10679d;
    backdrop-filter:blur(10px);

    z-index:1000;

    border-bottom:1px solid rgba(255,255,255,.05);
}

.logo img{
    height:58px;
}

nav ul{
    display:flex;
    list-style:none;
    gap:40px;
}

nav li a{

    font-weight:500;

    transition:.3s;
}

nav li a:hover{

    color:var(--blue);

}

/* ================= HERO ================= */

.hero{

    min-height:100vh;

    display:flex;

    align-items:center;

    padding:150px 10% 80px;

}

.hero-text{

    max-width:700px;

}

.hero h1{

    font-size:58px;

    line-height:1.15;

    margin-bottom:30px;

}

.hero p{

    font-size:21px;

    color:var(--text);

    margin-bottom:40px;

}

/* ================= BUTTONS ================= */

.buttons{

    display:flex;

    gap:20px;

}

.btn-primary{

    background:linear-gradient(90deg,var(--blue),var(--blue2));

    padding:18px 35px;

    border-radius:40px;

    color:white;

    font-weight:600;

    transition:.35s;

}

.btn-primary:hover{

    transform:translateY(-4px);

    box-shadow:0 10px 25px rgba(44,169,255,.4);

}

.btn-secondary{

    border:2px solid var(--blue);

    color:var(--blue);

    padding:18px 35px;

    border-radius:40px;

    transition:.35s;

}

.btn-secondary:hover{

    background:var(--blue);

    color:white;

}

/* ================= SECTIONS ================= */

section{

    padding:110px 10%;

}

section h2{

    text-align:center;

    font-size:42px;

    margin-bottom:70px;

}

/* ================= CARDS ================= */

.cards{

    display:grid;

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

    gap:30px;

}

.card{

    background:var(--card);

    padding:35px;

    border-radius:18px;

    border:1px solid var(--border);

    transition:.35s;

    box-shadow:var(--shadow);

}

.card:hover{

    transform:translateY(-10px);

    border-color:var(--blue);

}

.card h3{

    margin-bottom:15px;

    color:var(--blue2);

}

.card p{

    color:var(--text);

}

/* ================= FEATURES ================= */

.features{

    display:grid;

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

    gap:20px;

}

.features div{

    background:var(--card);

    padding:25px;

    border-radius:15px;

    text-align:center;

    border:1px solid var(--border);

}

/* ================= FORM ================= */

form{

    max-width:700px;

    margin:auto;

}

input,
textarea{

    width:100%;

    background:var(--card);

    color:white;

    border:1px solid var(--border);

    padding:18px;

    margin-bottom:20px;

    border-radius:10px;

    font-size:16px;

}

textarea{

    min-height:180px;

    resize:vertical;

}

button{

    background:linear-gradient(90deg,var(--blue),var(--blue2));

    color:white;

    border:none;

    padding:18px 35px;

    border-radius:40px;

    font-size:17px;

    cursor:pointer;

    transition:.3s;

}

button:hover{

    transform:translateY(-4px);

}

/* ================= FOOTER ================= */

footer{

    background:#070a0d;

    padding:70px 20px;

    text-align:center;

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

}

footer img{

    width:180px;

    margin-bottom:20px;

}

footer p{

    color:#9ca8b6;

    margin-top:10px;

}

/* ================= PARTICLES ================= */

#particles{

    position:fixed;

    inset:0;

    z-index:-1;

    opacity:.25;

    pointer-events:none;

    background:
        radial-gradient(circle at 20% 30%, rgba(44,169,255,.20), transparent 220px),
        radial-gradient(circle at 80% 70%, rgba(88,195,255,.15), transparent 250px);
}

/* =====================================
   HAMBURGER MENU
===================================== */

.hamburger{

    display:none;

    width:35px;

    cursor:pointer;

}

.hamburger span{

    display:block;

    height:4px;

    margin:7px 0;

    background:white;

    border-radius:20px;

    transition:.35s;

}

.hamburger.active span:nth-child(1){

    transform:rotate(45deg) translate(8px,8px);

}

.hamburger.active span:nth-child(2){

    opacity:0;

}

.hamburger.active span:nth-child(3){

    transform:rotate(-45deg) translate(8px,-8px);

}

/* =====================================
   SERVICES
===================================== */

.services{

display:grid;

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

gap:35px;

margin-top:70px;

}

.service-card{

background:linear-gradient(
145deg,
#171f29,
#0d141d);

padding:45px;

border-radius:22px;

text-align:center;

transition:.45s;

border:1px solid #243241;

position:relative;

overflow:hidden;

box-shadow:
0 20px 50px rgba(0,0,0,.35);

}

.service-card::before{

content:"";

position:absolute;

top:-60%;

left:-40%;

width:220px;

height:220px;

background:rgba(44,169,255,.08);

border-radius:50%;

transition:.5s;

}

.service-card:hover::before{

transform:scale(2);

}

.service-card:hover{

transform:
translateY(-12px)
rotateX(4deg);

border-color:#2ca9ff;

box-shadow:

0 0 30px rgba(44,169,255,.18),

0 25px 60px rgba(0,0,0,.45);

}

.icon{

font-size:60px;

margin-bottom:25px;

}

.service-card h3{

font-size:28px;

margin-bottom:20px;

color:#58c3ff;

}

.service-card p{

color:#cfd8e3;

line-height:1.8;

}


/* =====================================
   LIGHTBOX GALERIE
===================================== */

.lightbox{
    position:fixed;
    inset:0;
    display:none;
    justify-content:center;
    align-items:center;
    background:rgba(0,0,0,.95);
    z-index:999999;
}

.lightbox.show{
    display:flex;
}

.lightbox-image{
    display:block;
    max-width:90%;
    max-height:85vh;
    border-radius:15px;
    box-shadow:0 0 40px rgba(0,0,0,.5);
}

.close{
    position:absolute;
    top:25px;
    right:40px;
    font-size:46px;
    line-height:1;
    color:white;
    cursor:pointer;
    z-index:20;
    transition:color .25s ease, opacity .25s ease;
}

.close:hover{
    color:var(--blue2);
    opacity:.9;
}

/* Navigační šipky - bez jakéhokoli posunu při hoveru */

button.prev,
button.next,
.prev,
.next{
    position:absolute !important;
    top:50% !important;
    width:54px !important;
    height:54px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    padding:0 !important;
    margin:0 !important;
    border:1px solid rgba(255,255,255,.28) !important;
    border-radius:50% !important;
    background:rgba(44,169,255,.90) !important;
    color:#fff !important;
    font-size:32px !important;
    font-weight:400 !important;
    line-height:1 !important;
    cursor:pointer;
    box-shadow:0 8px 24px rgba(0,0,0,.38), 0 0 16px rgba(44,169,255,.18);
    transform:translateY(-50%) !important;
    transition:background-color .22s ease, border-color .22s ease, box-shadow .22s ease, filter .22s ease !important;
    z-index:20;
}

button.prev,
.prev{
    left:35px !important;
}

button.next,
.next{
    right:35px !important;
}

button.prev:hover,
button.next:hover,
.prev:hover,
.next:hover{
    transform:translateY(-50%) !important;
    background:#58c3ff !important;
    border-color:rgba(255,255,255,.60) !important;
    box-shadow:0 8px 26px rgba(0,0,0,.42), 0 0 24px rgba(44,169,255,.42) !important;
    filter:brightness(1.08);
}

button.prev:active,
button.next:active,
.prev:active,
.next:active{
    transform:translateY(-50%) !important;
    background:#168fd8 !important;
    filter:brightness(.95);
}

.lightbox-caption{
    position:absolute;
    left:50%;
    bottom:18px;
    transform:translateX(-50%);
    width:auto;
    max-width:80%;
    margin:0;
    padding:9px 16px;
    background:rgba(5,12,20,.92);
    color:#fff;
    border:1px solid rgba(255,255,255,.18);
    border-radius:8px;
    text-align:center;
    font-size:18px;
    font-weight:600;
    line-height:1.3;
    text-shadow:0 2px 5px rgba(0,0,0,.85);
    box-shadow:0 5px 18px rgba(0,0,0,.35);
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
    z-index:20;
}


/* ==========================================
   MODERNÍ GALERIE
========================================== */

.gallery{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:30px;
}

.gallery .photo{
    position:relative;
    height:260px;
    overflow:hidden;
    border:1px solid var(--border);
    border-radius:18px;
    cursor:pointer;
    background:#111;
    box-shadow:0 15px 35px rgba(0,0,0,.35);
    transform:none !important;
    transition:border-color .3s ease, box-shadow .3s ease;
}

.gallery .photo:hover{
    transform:none !important;
    border-color:var(--blue);
    box-shadow:0 15px 35px rgba(0,0,0,.40), 0 0 0 1px rgba(44,169,255,.20);
}

.gallery .photo img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    transform:none !important;
    transition:filter .3s ease;
}

.gallery .photo:hover img{
    transform:none !important;
    filter:brightness(.94);
}

.gallery .photo::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(to bottom, rgba(0,0,0,0) 42%, rgba(0,0,0,.12) 58%, rgba(0,0,0,.72) 100%);
    pointer-events:none;
    z-index:1;
}

/* Výrazný tmavý štítek - čitelný na světlé i tmavé fotografii */

.gallery .photo .caption{
    position:absolute !important;
    left:16px !important;
    bottom:16px !important;
    display:inline-flex !important;
    align-items:center !important;
    width:auto !important;
    max-width:calc(100% - 32px) !important;
    margin:0 !important;
    padding:10px 16px !important;
    background:#0b1722 !important;
    color:#ffffff !important;
    border:1px solid rgba(88,195,255,.55) !important;
    border-radius:8px !important;
    font-size:16px !important;
    font-weight:600 !important;
    line-height:1.25 !important;
    text-align:left !important;
    text-shadow:none !important;
    box-shadow:0 5px 18px rgba(0,0,0,.45) !important;
    opacity:1 !important;
    visibility:visible !important;
    transform:none !important;
    pointer-events:none;
    z-index:5 !important;
    transition:background-color .25s ease, border-color .25s ease, box-shadow .25s ease !important;
}

.gallery .photo:hover .caption{
    transform:none !important;
    background:#10283a !important;
    color:#ffffff !important;
    border-color:var(--blue2) !important;
    box-shadow:0 5px 18px rgba(0,0,0,.45), 0 0 16px rgba(44,169,255,.18) !important;
}

/* =====================================
   O SPOLEČNOSTI
===================================== */

.about{

    display:grid;

    grid-template-columns:2fr 1fr;

    gap:50px;

    align-items:start;

}

.about-text p{

    margin-bottom:22px;

    color:var(--text);

    font-size:18px;

    line-height:1.9;

}

.about-info{

    background:var(--card);

    padding:35px;

    border-radius:18px;

    border:1px solid var(--border);

    box-shadow:var(--shadow);

}

.about-info div{

    padding:12px 0;

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

}

.about-info div:last-child{

    border:none;

}

.about-info strong{

    color:var(--blue2);

}

.success{

    margin-top:25px;

    background:#1fa34a;

    color:white;

    padding:18px;

    border-radius:10px;

    text-align:center;

    font-size:18px;

}

.error{
    margin-top:20px;
    background:#c62828;
    color:white;
    padding:18px;
    border-radius:10px;
    text-align:center;
}

.success{
    margin-top:20px;
    background:#2e7d32;
    color:white;
    padding:18px;
    border-radius:10px;
    text-align:center;
}
