/* HDA SOLUTIONS - MASTER STYLESHEET 
   Obsługuje: Stronę główną, Podstronę pobierania oraz Panel Admina
*/

/* 1. ZMIENNE I RESET */
:root {
    --bg-dark: #040a18;
    --bg-card: #0a192f;
    --accent: #00b4d8;
    --blue-light: #0077b6;
    --text-white: #ffffff;
    --text-dim: #ccd6f6;
    --transition: 0.3s ease;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-dim);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 2. NAWIGACJA */
header {
    background: rgba(10, 25, 47, 0.95);
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--blue-light);
    position: sticky;
    top: 0;
    z-index: 9999;
}

.logo {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-white);
    text-transform: uppercase;
    text-decoration: none;
}

.logo span { color: var(--accent); }

nav a {
    color: var(--text-white);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
}


nav a:hover { color: var(--accent); }

/* 3. HERO SLIDER (STRONA GŁÓWNA) */
.hero {
    position: relative;
    width: 100%;
    height: 40vh; /* Tutaj kontrolujesz wysokość widoczną zdjęcia */
    min-height: 500px;
    overflow: hidden;
    background-color: var(--bg-dark);
    margin-bottom: 0; /* GWARANCJA: brak marginesu pod sliderem */
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.slide-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient przyciemniający dół zdjęcia, by płynnie łączył się z tłem strony */
    background: linear-gradient(rgba(4,10,24,0.6), rgba(4,10,24,1));
}

#slide-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 10px;
    color: var(--text-white);
}

/* Przycisk w sliderze */
#slide-content .btn-consult {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: var(--accent);
    color: var(--bg-dark);
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: var(--transition);
}

#slide-content .btn-consult:hover {
    background: var(--text-white);
    box-shadow: 0 0 15px var(--accent);
}

/* 4. USŁUGI / KARTY */
.services {
    /* REGULACJA SZPARY: Zmniejszyłem górny padding z 80px na 40px. 
       Jeśli chcesz jeszcze mniejszą szparę, zmień 40px na 0. */
    padding: 40px 5% 80px 5%; 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    background-color: var(--bg-dark); /* Zapewnia spójność tła */
    margin-top: -20px; /* Delikatne podciągnięcie sekcji pod slider */
    position: relative;
    z-index: 20;
}

.card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 10px;
    border-bottom: 4px solid var(--blue-light);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--accent);
}

.card h3 {
    color: var(--text-white);
    font-family: 'Exo 2', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 10px;
    display: inline-block;
    width: 100%;
}

/* 5. STRONA POBIERANIA */
.page-header {
    padding: 80px 5% 40px 5%;
    background: linear-gradient(rgba(4,10,24,0.9), rgba(10,25,47,1));
}

.page-header h1 {
    font-family: 'Exo 2', sans-serif;
    font-size: 2.5rem;
    color: var(--text-white);
    margin-bottom: 15px;
}

.page-header p {
    max-width: 800px;
    font-size: 1.1rem;
    border-left: 3px solid var(--accent);
    padding-left: 20px;
}

.container {
    padding: 40px 5% 100px 5%;
}

.download-item {
    background: var(--bg-card);
    border: 1px solid rgba(0, 180, 216, 0.1);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    transition: 0.3s;
}

.download-item:hover {
    border-color: var(--accent);
    transform: translateX(10px);
    background: rgba(0, 180, 216, 0.05);
}

.icon-box {
    background: var(--blue-light);
    color: white;
    min-width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-family: 'Exo 2', sans-serif;
    font-weight: 800;
    margin-right: 30px;
    font-size: 1.2rem;
}

.details { flex-grow: 1; }

.details h3 {
    color: var(--text-white);
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.details p {
    font-size: 0.95rem;
    margin-bottom: 12px;
    max-width: 900px;
}

.meta {
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.btn-download {
    background: var(--accent);
    color: var(--bg-dark);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    white-space: nowrap;
    transition: 0.3s;
    margin-left: 20px;
}

.btn-download:hover {
    background: var(--text-white);
    box-shadow: 0 0 15px rgba(0, 180, 216, 0.4);
}

/* 6. KONTAKT I SOCIAL MEDIA */
.contact {
    padding: 100px 10%;
    background-color: var(--bg-card);
}

.contact h2 {
    color: var(--text-white);
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.info-box, .social-box {
    flex: 1;
    min-width: 300px;
}

.social-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-dark);
    border: 1px solid rgba(0, 180, 216, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--text-dim);
    text-decoration: none;
    transition: var(--transition);
}

.social-icon.wa:hover { background: #25D366; color: white; border-color: #25D366; transform: translateY(-5px); }
.social-icon.tt:hover { background: #000000; color: white; border-color: #ff0050; transform: translateY(-5px); }
.social-icon.fb:hover { background: #1877F2; color: white; border-color: #1877F2; transform: translateY(-5px); }
.social-icon.gh:hover { background: #333; color: white; border-color: #333; transform: translateY(-5px); }

/* 7. WHATSAPP FLOAT */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #25d366;
    color: #fff;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 10000;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.05);
    color: #fff;
}

.whatsapp-float span { display: none; }
@media (min-width: 768px) {
    .whatsapp-float:hover span { display: inline; }
    
}
@media (max-width: 768px) {
    /* Wywala ostatni link (Do pobrania) z nawigacji na mobilkach */
    header nav a:last-of-type {
        display: none !important;
    }

    /* Jeśli w Hero też masz ten przycisk i chcesz go wywalić: */
    .hero-btns a:last-of-type {
        display: none !important;
    }
}

/* 8. STOPKA */
footer {
    padding: 40px 10%;
    text-align: left;
    font-size: 0.8rem;
    color: #555;
    border-top: 1px solid #112240;
}

/* 9. RESPONSYWNOŚĆ */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    header { flex-direction: column; text-align: center; }
    nav { margin-top: 20px; }
    nav a { margin: 0 10px; }
    .contact, footer { text-align: center; padding: 50px 5%; }
    .contact-container { flex-direction: column; }
    .social-icons { justify-content: center; }
    .download-item { flex-direction: column; text-align: center; }
    .icon-box { margin-right: 0; margin-bottom: 15px; }
    .btn-download { margin-top: 20px; width: 100%; }
}