@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap');

:root {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --primary-color: #00aaff;
    --secondary-color: #333333;
}

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

/* --- POPRAWIONY GŁÓWNY LAYOUT --- */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    text-align: center;
}

.container {
    padding: 2rem;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    /* NAJWAŻNIEJSZE: Ta linia każe głównej treści rosnąć i zajmować całą wolną przestrzeń,
       wypychając dolny pasek na sam dół. */
    flex-grow: 1;
    /* Dodatkowo centrujemy zawartość wewnątrz tego kontenera */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* --- KONIEC POPRAWEK LAYOUTU --- */

header h1 {
    font-size: 2.5rem;
    /* Zmniejszono, aby lepiej pasowało */
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.1rem;
    /* Zmniejszono */
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--primary-color);
    font-weight: 500;
}

header h2 {
    font-size: 1.2rem;
    /* Zmniejszono */
    font-weight: 500;
    color: var(--secondary-color);
    background-color: var(--text-color);
    display: inline-block;
    padding: 0.25rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 2rem;
}

.progress-bar-container {
    width: 100%;
    max-width: 400px;
    height: 15px;
    background-color: var(--secondary-color);
    border-radius: 10px;
    margin: 1.5rem auto;
    position: relative;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background-color: var(--primary-color);
    border-radius: 10px;
    transition: width 3s ease-out;
}

.progress-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

footer .contact-info {
    font-weight: 500;
    margin-bottom: 1rem;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.8rem;
    /* Zmniejszono */
    margin: 0 1rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
}

.animation-container {
    position: relative;
    width: 150px;
    /* Zmniejszono */
    height: 150px;
    /* Zmniejszono */
    margin: 0 auto 2rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.center-icon {
    font-size: 2.5rem;
    /* Zmniejszono */
    font-weight: 500;
    color: var(--primary-color);
    animation: pulse 4s ease-in-out infinite;
}

.orbit {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotate 10s linear infinite;
    animation-delay: calc(var(--i) * -5s);
}

.icon-wrapper {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    /* Zmniejszono */
    color: var(--text-color);
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* --- POPRAWIONA SEKCJA KONTAKTOWA (już nie position: absolute) --- */
.contact-cta {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--secondary-color);
    padding: 1.5rem;
    /* Zmniejszono */
    box-sizing: border-box;
    flex-shrink: 0;
    /* Zapobiega kurczeniu się tej sekcji */
}

.contact-cta h3 {
    font-size: 1.2rem;
    /* Zmniejszono */
    color: white;
    font-weight: 500;
    margin: 0;
}

.contact-cta p {
    font-size: 0.9rem;
    /* Zmniejszono */
    font-weight: 300;
    margin: 0.5rem 0 1rem 0;
}

.cta-button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cta-button:hover {
    background-color: #0088cc;
}

/* --- STYLE DLA POPUPA (bez zmian) --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background-color: #2a2a2a;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 2rem;
    cursor: pointer;
}

.popup-content h2 {
    color: white;
    margin-bottom: 0.5rem;
}

.popup-content p {
    color: var(--text-color);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid var(--secondary-color);
    background-color: #333;
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

.popup-content .cta-button {
    width: 100%;
}