/* ==========================================================================
   Profesjonalny Styl CSS dla Portfolio - Ciemny Motyw
   ========================================================================== */

/* -------------------------------------------------------------------------- */
/* Zmienne globalne i podstawowe style */
/* -------------------------------------------------------------------------- */

:root {
    /* Paleta kolorów */
    --color-background: #121212; /* Głęboka czerń tła */
    --color-surface: #1e1e1e;    /* Kolor tła dla kart i sekcji */
    --color-primary: #007BFF;    /* Główny kolor akcentu (np. linki, przyciski) */
    --color-primary-hover: #0056b3; /* Kolor akcentu po najechaniu */
    --color-text-primary: #e0e0e0; /* Główny kolor tekstu */
    --color-text-secondary: #a0a0a0; /* Drugorzędny kolor tekstu (np. opisy) */
    --color-border: #333333;       /* Kolor ramek i separatorów */

    /* Typografia */
    --font-family-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-size-base: 16px;
    --font-weight-normal: 400;
    --font-weight-bold: 700;

    /* Inne zmienne */
    --border-radius: 8px;
    --transition-speed: 0.3s;
    --container-width: 1140px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Resetowanie i ogólne style body */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-sans);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Animowane tło */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Za treścią, ale nad tłem */
}

main, footer {
    position: relative;
    z-index: 1;
}

main {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

/* Sekcja Hero (główna) */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 0;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out .5s forwards;
    opacity: 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: var(--font-weight-bold);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-title span {
    color: var(--color-primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Odliczanie */
#countdown {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.countdown-item {
    background-color: var(--color-surface);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    text-align: center;
    min-width: 100px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1);
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
}

.countdown-label {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
}

/* Stopka (Footer) */
.footer {
    padding: 2rem 0;
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    width: 100%;
}

.footer-socials {
    margin-bottom: 1rem;
}

.footer-socials a {
    color: var(--color-text-secondary);
    margin: 0 0.75rem;
    font-size: 1.5rem;
    transition: color var(--transition-speed);
}

.footer-socials a:hover {
    color: var(--color-primary);
}

/* Animacje */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsywność */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    #countdown {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    .countdown-item {
        padding: 0.75rem 1rem;
        min-width: 80px;
    }
    .countdown-number {
        font-size: 2rem;
    }
}