/* --- 1. ZMIENNE I RESET --- */
:root {
    /* Paleta kolorów */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    --text-dark: #2d3748;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --white: #ffffff;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 2. NAGŁÓWEK (HEADER) --- */
.main-header {
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.main-nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    font-weight: 600;
    color: var(--text-dark);
}

.main-nav a:hover {
    color: #764ba2;
}

/* --- 3. PRZYCISKI (Ogólne) --- */
.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-gradient);
    color: white !important;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(118, 75, 162, 0.6);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background: white;
    color: var(--text-dark);
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-weight: 700;
    margin-right: 15px;
}

.btn-secondary:hover {
    border-color: #764ba2;
    color: #764ba2;
}

/* --- 4. HERO SECTION --- */
.hero {
    padding: 100px 0;
    text-align: center;
    background: radial-gradient(circle at top right, #f3f4f6, #fff);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- 5. USP (ZALETY) --- */
.features {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    border-top: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-top: 4px solid #764ba2;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* --- 6. PORTFOLIO --- */
.portfolio {
    padding: 80px 0;
}

.portfolio h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 50px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.project-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: white;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    height: 250px;
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    margin-bottom: 10px;
}

.project-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.project-info a {
    color: #764ba2;
    font-weight: 700;
    font-size: 0.9rem;
}

/* --- 7. O MNIE --- */
.about-me {
    padding: 100px 0;
    background-color: var(--white);
    overflow: hidden;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.about-text strong {
    color: #764ba2;
}

.about-list {
    margin: 30px 0;
}

.about-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.image-circle {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: var(--secondary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
    overflow: hidden; /* Przycina zdjęcie do koła */
}

.my-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 2px dashed #e2e8f0;
    z-index: 0;
    animation: spin 20s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- 8. KONTAKT (ZAKTUALIZOWANY) --- */
.contact {
    padding: 100px 0;
    text-align: center;
    background: var(--primary-gradient);
    color: white;
}

.contact h2 {
    margin-bottom: 20px;
}

.contact p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* Kontener na przyciski kontaktowe */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    margin-top: 30px;
}

/* Wspólny styl przycisków kontaktowych */
.contact-btn {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Styl dla Telefonu (Przezroczysty z ramką) */
.phone-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid white;
}

/* Styl dla Emaila (Podkreślony) */
.email-btn {
    border: 2px solid transparent; /* Żeby nie skakało */
    border-bottom: 2px solid rgba(255,255,255,0.4);
}

.contact-btn:hover {
    transform: translateY(-3px);
    background: white;
    color: #764ba2;
    border-color: white;
}

/* Układ przycisków na komputerze */
@media (min-width: 768px) {
    .contact-details {
        flex-direction: row;
        justify-content: center;
        gap: 40px;
    }
}

/* --- 9. STOPKA --- */
footer {
    padding: 20px 0;
    text-align: center;
    background: #1a202c;
    color: #718096;
    font-size: 0.85rem;
}

/* --- 10. MENU MOBILNE (HAMBURGER) --- */

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-dark);
}

@media (max-width: 900px) {
    .hero h1 { font-size: 2.5rem; }
    .hero-buttons { display: flex; flex-direction: column; gap: 15px; }
    .btn-secondary { margin-right: 0; }
    
    .about-content {
        flex-direction: column-reverse;
        text-align: center;
    }
    .about-list {
        text-align: left;
        display: inline-block;
    }
    .image-circle {
        width: 250px;
        height: 250px;
    }
    .about-image::before {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
        z-index: 1002;
    }

    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .main-nav ul {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: white;
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        z-index: 1001;
        justify-content: center;
        display: flex;
    }

    .main-nav.active ul {
        left: 0;
    }

    .main-nav ul li {
        margin: 25px 0;
    }
    
    .main-nav a {
        font-size: 1.5rem;
    }
}

/* --- 11. PASEK COOKIES (Nowość) --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #2d3748;
    color: white;
    padding: 20px;
    text-align: center;
    z-index: 9999;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
    display: none; /* Domyślnie ukryty, JS go pokaże */
    border-top: 4px solid #764ba2;
}

.cookie-banner p {
    margin-bottom: 15px;
    font-size: 0.9rem;
    display: inline-block;
    margin-right: 20px;
}

.cookie-banner button {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 8px 25px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 700;
    transition: opacity 0.3s;
}

.cookie-banner button:hover {
    opacity: 0.9;
}/* --- 1. ZMIENNE I RESET --- */
:root {
    /* Paleta kolorów */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    --text-dark: #2d3748;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --white: #ffffff;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 2. NAGŁÓWEK (HEADER) --- */
.main-header {
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.main-nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    font-weight: 600;
    color: var(--text-dark);
}

.main-nav a:hover {
    color: #764ba2;
}

/* --- 3. PRZYCISKI (Ogólne) --- */
.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-gradient);
    color: white !important;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(118, 75, 162, 0.6);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background: white;
    color: var(--text-dark);
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-weight: 700;
    margin-right: 15px;
}

.btn-secondary:hover {
    border-color: #764ba2;
    color: #764ba2;
}

/* --- 4. HERO SECTION --- */
.hero {
    padding: 100px 0;
    text-align: center;
    background: radial-gradient(circle at top right, #f3f4f6, #fff);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- 5. USP (ZALETY) --- */
.features {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    border-top: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-top: 4px solid #764ba2;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* --- 6. PORTFOLIO --- */
.portfolio {
    padding: 80px 0;
}

.portfolio h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 50px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.project-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: white;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    height: 250px;
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    margin-bottom: 10px;
}

.project-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.project-info a {
    color: #764ba2;
    font-weight: 700;
    font-size: 0.9rem;
}

/* --- 7. O MNIE --- */
.about-me {
    padding: 100px 0;
    background-color: var(--white);
    overflow: hidden;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.about-text strong {
    color: #764ba2;
}

.about-list {
    margin: 30px 0;
}

.about-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.image-circle {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: var(--secondary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.my-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 2px dashed #e2e8f0;
    z-index: 0;
    animation: spin 20s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- 8. KONTAKT (Poprawiony i ujednolicony) --- */
.contact {
    padding: 100px 0;
    text-align: center;
    background: var(--primary-gradient);
    color: white;
}

.contact h2 {
    margin-bottom: 20px;
}

.contact p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    margin-top: 30px;
}

/* Wspólny styl dla obu przycisków (telefon i email) */
.contact-btn {
    font-size: 1.3rem;
    font-weight: 700;
    /* Domyślny wygląd: biała ramka, przezroczyste tło */
    color: white;
    background: rgba(255, 255, 255, 0.1); 
    border: 2px solid white;
    
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Efekt po najechaniu myszką - identyczny dla obu */
.contact-btn:hover {
    transform: translateY(-3px);
    background: white; /* Tło zmienia się na białe */
    color: #764ba2;    /* Tekst zmienia się na fioletowy */
}

@media (min-width: 768px) {
    .contact-details {
        flex-direction: row;
        justify-content: center;
        gap: 40px;
    }
}

/* --- 9. STOPKA --- */
footer {
    padding: 20px 0;
    text-align: center;
    background: #1a202c;
    color: #718096;
    font-size: 0.85rem;
}

/* --- 10. MENU MOBILNE (HAMBURGER) --- */

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-dark);
}

@media (max-width: 900px) {
    .hero h1 { font-size: 2.5rem; }
    .hero-buttons { display: flex; flex-direction: column; gap: 15px; }
    .btn-secondary { margin-right: 0; }
    
    .about-content {
        flex-direction: column-reverse;
        text-align: center;
    }
    .about-list {
        text-align: left;
        display: inline-block;
    }
    .image-circle {
        width: 250px;
        height: 250px;
    }
    .about-image::before {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
        z-index: 1002;
    }

    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .main-nav ul {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: white;
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        z-index: 1001;
        justify-content: center;
        display: flex;
    }

    .main-nav.active ul {
        left: 0;
    }

    .main-nav ul li {
        margin: 25px 0;
    }
    
    .main-nav a {
        font-size: 1.5rem;
    }
}

/* --- 11. PASEK COOKIES --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #2d3748;
    color: white;
    padding: 20px;
    text-align: center;
    z-index: 9999;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
    display: none; 
    border-top: 4px solid #764ba2;
}

.cookie-banner p {
    margin-bottom: 15px;
    font-size: 0.9rem;
    display: inline-block;
    margin-right: 20px;
}

.cookie-banner button {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 8px 25px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 700;
    transition: opacity 0.3s;
}

.cookie-banner button:hover {
    opacity: 0.9;
}