/* --- Global Styles & Variables --- */
:root {
    --bg-dark: #1a1a2e; /* Ciemne tło */
    --bg-light: #2c2c4e; /* Jaśniejsze tło dla sekcji alternatywnych */
    --text-light: #e0e0e0; /* Jasny tekst na ciemnym tle */
    --text-accent: #00bcd4; /* Kolor akcentujący - turkus */
    --text-secondary: #a0a0a0; /* Kolor pomocniczy tekstu */
    --gradient-start: #0f3460;
    --gradient-end: #1a1a2e;
    --border-radius-lg: 10px;
    --spacing-md: 20px;
    --spacing-lg: 40px;

    /* Fonts */
    --font-primary: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-primary);
    margin: 0;
    padding: 0;
    line-height: 1.7;
    color: var(--text-light);
    background-color: var(--bg-dark);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

h1, h2, h3 {
    color: var(--text-light);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-weight: 600;
}

h1 {
    font-size: 3.5em;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2.5em;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 50px;
}
h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--text-accent);
    border-radius: 2px;
}

h3 {
    font-size: 1.8em;
    font-weight: 600;
}

p {
    margin-bottom: 1em;
}

a {
    color: var(--text-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #00e5ff; /* Jaśniejszy turkus */
}

.text-center {
    text-align: center;
}

/* --- Buttons --- */
.button {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px; /* Zaokrąglone rogi */
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin: 10px;
}

.primary-btn {
    background: linear-gradient(45deg, var(--text-accent), #00aacc); /* Turkusowy gradient */
    color: var(--bg-dark);
    box-shadow: 0 5px 15px rgba(0, 188, 212, 0.3);
}
.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 188, 212, 0.4);
}

.secondary-btn {
    background-color: transparent;
    color: var(--text-accent);
    border: 2px solid var(--text-accent);
}
.secondary-btn:hover {
    background-color: var(--text-accent);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

/* --- Header & Navigation --- */
header {
    background-color: rgba(26, 26, 46, 0.9); /* Półprzezroczyste tło */
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    backdrop-filter: blur(5px); /* Efekt rozmycia tła */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--text-accent);
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

header nav ul li {
    margin-left: 30px;
}

header nav ul li a {
    color: var(--text-light);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}
header nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--text-accent);
    transition: width 0.3s ease;
}
header nav ul li a:hover::after {
    width: 100%;
}

/* --- Sections --- */
.section-content {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

.section-dark {
    background-color: var(--bg-light);
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--text-light);
    text-align: center;
    padding: 120px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 90vh; /* Większa wysokość początkowa */
}

.hero .profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--text-accent);
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    transition: transform 0.4s ease-out;
}
.hero .profile-photo:hover {
    transform: scale(1.05) rotate(2deg);
}

.hero h1 {
    margin-bottom: 20px;
}

.hero .tagline {
    font-size: 1.5em;
    max-width: 900px;
    margin: 0 auto 40px auto;
    font-weight: 300;
    color: var(--text-secondary);
}

.hero .cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px; /* Odstępy między przyciskami */
}

/* --- Experience Section --- */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.experience-item {
    background-color: var(--bg-light);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.experience-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.experience-item h3 {
    text-align: left;
    color: var(--text-accent);
    margin-bottom: 10px;
}

.experience-item .dates {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 20px;
    display: block;
}

.experience-item ul {
    list-style: none;
    padding: 0;
    margin-left: 0;
}
.experience-item ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--text-light);
}
.experience-item ul li::before {
    content: '→'; /* Nowoczesny znacznik listy */
    color: var(--text-accent);
    position: absolute;
    left: 0;
    font-weight: 700;
}

/* --- Services Section --- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.service-card {
    background-color: var(--bg-dark);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.service-card .icon {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--text-accent);
}

.service-card h3 {
    margin-top: 0;
    color: var(--text-accent);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- GitHub Section --- */
.github-btn {
    margin-top: 30px;
}

/* --- Contact Section --- */
.contact-form {
    max-width: 700px;
    margin: 0 auto 40px auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    background-color: var(--bg-light);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-light);
    padding: 15px;
    border-radius: var(--border-radius-lg);
    font-size: 1.1em;
    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 textarea:focus {
    outline: none;
    border-color: var(--text-accent);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.3);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    align-self: flex-start; /* Przycisk po lewej */
}

.contact-info {
    font-size: 1.2em;
}

/* --- Footer --- */
footer {
    background-color: var(--bg-light);
    color: var(--text-secondary);
    text-align: center;
    padding: 30px 0;
    font-size: 0.9em;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    .experience-grid, .service-grid {
        grid-template-columns: 1fr;
    }
    .experience-item, .service-card {
        margin: 0 auto;
        max-width: 550px; /* Ograniczenie szerokości na mniejszych ekranach */
    }
    .hero h1 {
        font-size: 3em;
    }
    h2 {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    header nav ul {
        display: none; /* Ukrywamy menu na mobile - do wdrożenia menu hamburgera */
    }
    header .container {
        justify-content: center;
    }
    .logo a {
        font-size: 1.5em;
    }
    .hero {
        padding: 80px 20px;
        min-height: 70vh;
    }
    .hero h1 {
        font-size: 2.5em;
    }
    .hero .tagline {
        font-size: 1.2em;
    }
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .button {
        width: 80%;
        max-width: 300px;
    }
    h2 {
        font-size: 1.8em;
    }
    .section-content {
        padding: 60px 0;
    }
    .contact-form button {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2em;
    }
    .hero .profile-photo {
        width: 150px;
        height: 150px;
    }
    h2 {
        font-size: 1.5em;
    }
    .contact-form input, .contact-form textarea, .contact-form button {
        font-size: 1em;
    }
}