/* --- Podstawowe Style --- */
:root {
    --primary-color: #007bff; /* Główny kolor akcentu (np. niebieski) */
    --primary-hover-color: #0056b3;
    --dark-bg: #1a1a1a;
    --light-bg: #2c2c2c;
    --text-color: #f0f0f0;
    --secondary-text-color: #a0a0a0;
    --border-radius: 8px;
    --success-color: #2a9d8f;
    --error-color: #e76f51;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 600;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
}

section {
    padding: 80px 0;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-hover-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background-color: #fff;
    color: var(--dark-bg);
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://print3d.guru/images/header.png?text=Header') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-buttons .btn {
    margin: 0 10px;
}

/* --- Sekcja Usługi --- */
.services-section {
    background-color: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--dark-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* --- Sekcja "Dlaczego My?" --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.feature i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* --- Sekcja Galeria --- */
.gallery-section {
    background-color: var(--light-bg);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* --- Sekcja Social Media --- */
.social-section {
    text-align: center;
}

.social-links a {
    color: var(--text-color);
    font-size: 2.5rem;
    margin: 0 20px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* --- Sekcja Kontakt --- */
.contact-section {
    background-color: var(--light-bg);
    
}

#contact > div > p {
    text-align: center;
    
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    background-color: var(--dark-bg);
    border: 1px solid #444;
    color: var(--text-color);
    padding: 15px;
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form .btn {
    width: 100%;
    border: none;
    cursor: pointer;
}

/* Stylowanie przycisku do uploadu pliku */
.file-upload-label {
    background-color: #444;
    color: var(--text-color);
    padding: 15px;
    text-align: center;
    border-radius: var(--border-radius);
    cursor: pointer;
    margin-bottom: 15px;
    transition: background-color 0.3s;
}
.file-upload-label:hover {
    background-color: #555;
}
input[type="file"] {
    display: none;
}

/* --- Style dla komunikatów formularza --- */
.form-result {
    text-align: center;
    padding: 40px;
    border-radius: var(--border-radius);
}
.form-result.success {
    background-color: var(--success-color);
    color: #fff;
}
.form-result.error {
    background-color: var(--error-color);
    color: #fff;
}
.form-result h2 {
    margin-top: 0;
}


/* --- Media Queries (Responsywność) --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem !important; }
    h2 { font-size: 2rem; }

    .services-grid, .features-grid, .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
    }
    .hero-buttons .btn {
        margin: 10px 0;
    }
}

/* --- Style dla listy wybranych plików --- */
#file-list-container {
    margin-top: 15px;
    font-size: 0.9rem;
}

.file-item {
    background-color: var(--dark-bg);
    border: 1px solid #444;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    color: var(--secondary-text-color);
}

.remove-file-btn {
    background: none;
    border: none;
    color: #ff6b6b;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    padding: 0 5px;
    transition: color 0.2s;
}

.remove-file-btn:hover {
    color: #e74c3c;
}