/* --- Podstawowe Style i Reset --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px; /* Dostosuj do wysokości nagłówka */
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    background-color: #ffffff;
    color: #333333;
    overflow-x: hidden;
}

/* --- Zmienne Kolorystyczne (Inspiracja NetApp) --- */
:root {
    --netapp-blue: #0067C5;
    --netapp-light-blue: #4daaff;
    --text-dark: #333333;
    --text-light: #f8f9fa;
    --bg-white: #ffffff;
    --bg-light-gray: #f8f9fa;
    --bg-medium-gray: #e9ecef;
    --bg-dark-gray: #343a40;
    --hero-gradient-start: #003a70;
    --hero-gradient-end: #0067C5;
    --hero-overlay-color-base: 0, 57, 110;
    --accent-cyan: #22d3ee;
}

/* --- Kontener i Nagłówki --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    margin-bottom: 1rem;
    font-weight: 600;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--bg-medium-gray);
    margin-bottom: 2.5rem;
    color: var(--netapp-blue);
}

p {
    margin-bottom: 1rem;
    color: #555;
}

a {
    color: var(--netapp-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: var(--netapp-light-blue);
}

ul {
    list-style: none;
}

/* --- Nagłówek i Nawigacja --- */
#main-header {
    background: var(--bg-white);
    color: var(--text-dark);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0; /* Zmniejszony padding dla niższej wysokości */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease;
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Ustaw wysokość kontenera, aby ograniczyć wysokość headera */
    min-height: 50px; /* Wysokość nagłówka = 2*padding + wysokość logo */
}

/* ZMIANA: Style dla logo jako linku */
#main-header .logo {
    display: inline-block; /* Lub flex, jeśli potrzebujesz bardziej złożonego wyrównania */
    vertical-align: middle;
    line-height: 1; /* Zapobiega dziwnym odstępom */
    /* Usunięto style tekstowe */
}

/* ZMIANA: Style dla obrazka logo */
#main-header .logo img {
    display: block; /* Zapobiega dodatkowym marginesom */
    height: 45px;   /* Ustawiona wysokość logo - dostosuj wg potrzeb */
    width: auto;    /* Szerokość automatyczna dla zachowania proporcji */
    max-width: 100%; /* Zapobiega wyjechaniu poza kontener */
}


#main-header nav ul {
    display: flex;
}

#main-header nav ul li {
    margin-left: 25px;
}

#main-header nav ul li a {
    color: var(--text-dark);
    padding-bottom: 5px;
    font-weight: 500;
    position: relative;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease;
}
#main-header nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--netapp-blue);
    transition: width 0.3s ease;
}

#main-header nav ul li a:hover,
#main-header nav ul li a.active {
    color: var(--netapp-blue);
}
#main-header nav ul li a:hover::after,
#main-header nav ul li a.active::after{
     width: 100%;
}


/* --- Sekcja Hero (Tło Obrazkowe z Overlay 75%) --- */
#hero {
    min-height: 95vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px; /* Odsunięcie od headera */
    overflow: hidden;

    /* --- Tło Obrazkowe (AKTYWNE) --- */
    background: var(--hero-gradient-end) url('images/hero-background.jpg') no-repeat center center/cover;

    /* --- Animowany Gradient (Zakomentowany) --- */
    /*
    background-color: var(--hero-gradient-end);
    background-image: linear-gradient(...);
    background-size: 300% 300%;
    animation: gradientShift 18s ease infinite;
    */
}
/* Animacja dla gradientu tła */
@keyframes gradientShift {
	0% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
	100% { background-position: 0% 50%; }
}

/* Warstwa overlay dla tła obrazkowego (CIEMNA, 75% krycia) */
#hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(var(--hero-overlay-color-base), 0.75); /* 75% krycia */
    z-index: 1;
}


.hero-content {
    position: relative;
    z-index: 2; /* Nad overlay */
    max-width: 750px;
}

/* Animacje wejścia dla elementów Hero */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

#hero h2 {
    font-size: 3rem; margin-bottom: 1rem; color: var(--text-light); border: none; line-height: 1.2;
    animation: slideUp 0.8s ease-out forwards; opacity: 0;
}
#hero p {
    font-size: 1.1rem; margin-bottom: 2rem; color: var(--text-light); opacity: 0;
    animation: slideUp 0.8s 0.2s ease-out forwards;
}
#hero .btn {
     opacity: 0; animation: fadeIn 0.5s 0.5s ease-out forwards;
}


/* --- Przyciski --- */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-primary {
    background-color: var(--accent-cyan);
    color: var(--text-dark);
    border-color: var(--accent-cyan);
    box-shadow: 0 4px 10px rgba(34, 211, 238, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: var(--text-light);
    color: var(--netapp-blue);
    border-color: var(--text-light);
     box-shadow: 0 6px 15px rgba(255, 255, 255, 0.2);
}


/* --- Sekcje z treścią --- */
.content-section {
    padding: 70px 0;
}

.section-content {
    max-width: 850px;
    margin: 0 auto;
}
.section-content ul {
    list-style: none;
    padding-left: 0;
}
.section-content ul li {
    margin-bottom: 0.75rem;
    padding-left: 1.5em;
    position: relative;
}
.section-content ul li::before {
    content: '■';
    color: var(--netapp-blue);
    position: absolute;
    left: 0;
    top: 0.1em;
    font-size: 0.8em;
}


/* --- Specyficzne style sekcji --- */
.bg-light {
    background-color: var(--bg-light-gray);
}

.bg-dark {
    background-color: var(--bg-dark-gray);
    color: var(--text-light);
}
.bg-dark h2 {
    color: var(--text-light);
    border-bottom-color: #555;
}
.bg-dark a {
    color: var(--accent-cyan);
}
.bg-dark a:hover {
    color: var(--text-light);
}
.bg-dark p {
    color: #ccc;
}

/* --- Sekcja 'Dlaczego my' (Grid + Animacje) --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 2.5rem;
}

/* Animacja wejścia dla kafelków */
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.feature-item {
    background: var(--bg-white);
    padding: 25px;
    border: 1px solid var(--bg-medium-gray);
    border-radius: 5px;
    text-align: left;
    box-shadow: none;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    /* -- Animacja Wejścia -- */
    opacity: 0;
    animation: scaleIn 0.5s ease-out forwards;
}
/* Staggered delay (opóźnienia) */
.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }


.feature-item:hover {
    border-color: var(--netapp-blue);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 103, 197, 0.1);
}

.feature-item i {
    color: var(--netapp-blue);
    margin-bottom: 1rem;
    display: block;
    text-align: left;
    font-size: 1.8rem;
}

.feature-item h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--netapp-blue);
    font-size: 1.1rem;
}


/* --- Sekcja Kontakt --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    margin-top: 2.5rem;
    align-items: flex-start;
}

.contact-details h3, .contact-form-container h3 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contact-details p {
    margin-bottom: 1rem;
    color: #ccc;
}
.contact-details strong {
    color: var(--text-light);
}

/* --- Formularz Kontaktowy --- */
.contact-form .form-group {
    margin-bottom: 1rem;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #ccc;
    font-size: 0.9rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #555;
    border-radius: 4px;
    background-color: #495057;
    color: var(--text-light);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2);
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form button {
    width: auto;
    padding: 10px 30px;
    font-size: 1rem;
    margin-top: 1rem;
    /* Użycie stylu przycisku */
    background-color: var(--accent-cyan);
    color: var(--text-dark);
    border-color: var(--accent-cyan);
    box-shadow: none;
    /* Dostosowanie stylu :hover dla ciemnego tła */
}
.contact-form button:hover {
    background-color: var(--text-light);
    color: var(--netapp-blue);
    border-color: var(--text-light);
    transform: translateY(-2px);
}

/* --- Style dla komunikatu formularza (dymka) --- */
.form-popup {
    padding: 15px 20px;
    margin-top: 20px;
    border-radius: 5px;
    font-size: 0.95rem;
    text-align: center;
    display: none; /* Domyślnie ukryty */
    opacity: 0; /* Początkowa przezroczystość dla animacji */
    animation: fadeInPopup 0.5s ease forwards;
    position: relative;
}

@keyframes fadeInPopup {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-popup.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-popup.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


/* --- Stopka --- */
#main-footer {
    background-color: var(--bg-dark-gray);
    color: #adb5bd;
    text-align: center;
    padding: 25px 0;
    font-size: 0.9rem;
    margin-top: 0;
}


/* --- Responsywność --- */
@media (max-width: 992px) {
     h2 { font-size: 1.8rem; }
     #hero h2 { font-size: 2.5rem; }
     .container { padding: 0 15px; }
}


@media (max-width: 768px) {
     /* Dodaj style dla mobilnego menu (hamburger), jeśli je zaimplementujesz w HTML/JS */
     #main-header { padding: 10px 0; }
     #main-header .container { flex-direction: row; justify-content: space-between;}
     #main-header nav { display: none; /* Ukryj nawigację */ }

    #hero { min-height: 70vh; }
    #hero h2 { font-size: 2rem; }
    #hero p { font-size: 1rem; }

    .features-grid { grid-template-columns: 1fr; }

    .contact-grid { grid-template-columns: 1fr; }
    .contact-details { margin-bottom: 30px; text-align: left; }
     .contact-form button { width: 100%; }

     /* Poprawka dla scroll-padding na mobilnych, jeśli header ma inną wysokość */
     html { scroll-padding-top: 60px; /* Dostosuj, jeśli header mobilny ma inną wysokość */ }
}