/* === Ustawienia ogólne - NOWA PALETA === */
:root {
    --kolor-tla-srodek: #ffffff;      /* Tło kart */
    --kolor-tla-stopki: #F0E1DC;       /* Tło główne (body, karty drugorzędne) */
    --kolor-tekstu-glowny: #181D45;   /* Ciemny granat */
    --kolor-tekstu-pomocniczy: #5A5E7A;/* Zgaszony granat */
    --kolor-ramki: #D9C0B9;           /* Ciemniejszy beż/taupe */
    --kolor-shadow: rgba(24, 29, 69, 0.05); /* Cień na bazie granatu */
    
    --kolor-akcentu: #5670A3;         /* Główny błękit */
    --kolor-akcentu-hover: #4A618E;    /* Ciemniejszy błękit */
    --kolor-cytatu: #926F89;             /* Zgaszony fiolet/mauve */
    
    --font-family-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Usunięto tryb ciemny body[data-theme="dark"] */

html {
    scroll-behavior: smooth;
}

/* === SEKCJA INTRO === */
.intro-hero {
    height: 100vh;
    width: 100%;
    background-color: var(--kolor-tla-srodek); /* Białe tło */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 20px;
    box-sizing: border-box;
}

.intro-content {
    animation: fadeIn 1.2s ease-out 0.2s;
    animation-fill-mode: backwards;
    position: relative;
    z-index: 2;
}

.intro-hero h1 {
    font-size: clamp(4rem, 15vw, 10rem);
    font-weight: 800;
    color: var(--kolor-tekstu-glowny);
    margin: 0;
    line-height: 1;
    text-transform: uppercase;
}

.intro-hero p {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--kolor-tekstu-pomocniczy);
    margin-top: 1rem;
    font-weight: 500;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0; 
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, 
            var(--kolor-tla-srodek) 0%,        
            var(--kolor-tla-srodek) 30%,       
            rgba(255, 255, 255, 0.6) 50%,    
            rgba(255, 255, 255, 0) 60%       
        ),
        url('Uploaded_10_CNV00010.jpg');
    background-size: cover;
    background-position: right center; 
    z-index: 1; 
    filter: grayscale(100%);
}


.scroll-down-prompt {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--kolor-tekstu-pomocniczy);
    font-weight: 500;
    font-size: 1rem;
    animation: bounce 2.5s infinite ease-in-out;
    z-index: 2;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -10px); }
    60% { transform: translate(-50%, -5px); }
}

/* === ANIMACJA PRZEWIJANIA === */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === RESZTA STYLÓW === */
body {
    font-family: var(--font-family-system);
    margin: 0;
    padding: 0;
    background-color: var(--kolor-tla-stopki); /* Tło główne (Beż) */
    color: var(--kolor-tekstu-glowny);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

.main-content {
    background-color: var(--kolor-tla-srodek); /* Tło kart (Biel) */
}

.container {
    width: 90%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0;
}

h1, h2, h3 {
    color: var(--kolor-tekstu-glowny);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

h3 { font-size: 1.6rem; }

p {
    margin-bottom: 1rem;
    color: var(--kolor-tekstu-pomocniczy);
}

a {
    color: var(--kolor-akcentu);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--kolor-akcentu-hover);
}

/* Usunięto .btn-toggle-theme */

/* === Nawigacja (Navbar) === */
.navbar {
    background-color: rgba(255, 255, 255, 0.85); /* Tło kart (Biel) z przezroczystością */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid var(--kolor-ramki);
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}


.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--kolor-tekstu-glowny);
}
.navbar .logo:hover {
    text-decoration: none;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links li {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: var(--kolor-tekstu-glowny);
    font-weight: 500;
    position: relative;
    padding-top: 5px;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: var(--kolor-akcentu);
    transition: width 0.2s ease;
}

.nav-links a:hover::after {
    width: 100%;
}
.nav-links a:hover {
    text-decoration: none;
    color: var(--kolor-tekstu-glowny);
}

.btn-nav-cv {
    background-color: transparent;
    border: 2px solid var(--kolor-akcentu);
    color: var(--kolor-akcentu);
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-left: 15px;
}

.btn-nav-cv:hover {
    background-color: var(--kolor-akcentu);
    color: #ffffff;
    text-decoration: none;
}

.btn-nav-cv::after {
    display: none;
}

.language-switcher {
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 600;
    border: 1px solid var(--kolor-ramki);
    margin-left: 10px;
    background-color: var(--kolor-tla-srodek);
    color: var(--kolor-tekstu-glowny);
}


/* === Sekcje ogólne === */
.section-padding {
    padding-top: 80px;
    padding-bottom: 80px;
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    border-bottom: 1px solid var(--kolor-ramki); /* Zmieniono z tla-stopki na ramki */
    padding-bottom: 80px;
}

#toolkit .section-grid, #education .section-grid, #now .section-grid {
    border-bottom: 1px solid var(--kolor-ramki); /* Zmieniono z tla-stopki na ramki */
}

#about.section-padding, #toolkit.section-padding, #education.section-padding, #now.section-padding, #collaboration.section-padding, #contact.section-padding {
    padding-bottom: 0;
}

#journey.section-padding, #projects.section-padding, #details.section-padding, #contact.section-padding, #collaboration.section-padding {
     border-bottom: 1px solid var(--kolor-ramki); /* Zmieniono z tla-stopki na ramki */
     padding-bottom: 80px;
     padding-top: 80px;
}


.section-title-left {
    font-size: 2.8rem;
    font-weight: 700;
    margin: 0;
    position: sticky;
    top: 100px;
    align-self: start;
}

.section-content-right {
    padding-top: 5px;
}

/* === Sekcja "About" === */
.about-text {
    font-size: 1.15rem;
    line-height: 1.7;
    flex-grow: 1;
}
.about-text:last-of-type {
    margin-bottom: 0;
}

.about-quote {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--kolor-cytatu); /* NOWY KOLOR CYTATU */
    border-left: 4px solid var(--kolor-cytatu); /* NOWY KOLOR CYTATU */
    padding-left: 1.5rem;
    margin: 2.5rem 0;
    font-style: italic;
}

/* === Sekcje "Now" & "Education" & "Skills" === */
.skills-list, .education-list, .now-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    z-index: 2;
}

.skill-item, .education-item, .now-item {
    text-align: left;
    border-left: 4px solid var(--kolor-akcentu); /* BŁĘKITNA LINIA */
    padding-left: 20px;
    padding-top: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--kolor-ramki);
}

.skill-item:last-child, .education-item:last-child, .now-item:last-child {
    border-bottom: none;
}

.skill-item h3, .education-item h3, .now-item h3 {
    margin: 0 0 5px 0;
    font-weight: 600;
    font-size: 1.4rem;
}
.skill-item p, .education-item p, .now-item p {
    font-size: 0.95rem;
    margin: 0;
}

/* === SEKCJA "TOOLKIT" (HEATMAP) === */
.skill-heatmap {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.skill-bar {
    width: 100%;
}

.skill-bar-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 600;
}

.skill-bar-info span:first-child {
    color: var(--kolor-tekstu-glowny);
}
.skill-bar-info span:last-child {
    color: var(--kolor-tekstu-pomocniczy);
    font-size: 0.9rem;
}

.skill-bar-track {
    width: 100%;
    height: 8px;
    background-color: var(--kolor-tla-stopki); /* Tło główne (Beż) */
    border-radius: 4px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    background-color: var(--kolor-akcentu); /* Błękit */
    width: 0;
    border-radius: 4px;
    transition: width 1s ease-out 0.3s;
}

.visible .skill-bar-fill {
    width: var(--skill-level);
}

/* === SEKCJA "JOURNEY" (TIMELINE) === */
#journey.section-padding {
    border-bottom: 1px solid var(--kolor-ramki); 
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: var(--kolor-ramki);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 10px 40px;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 50px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 50px;
    text-align: left;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--kolor-akcentu); /* Błękit */
    border: 3px solid var(--kolor-tla-srodek); /* Tło kart (Biel) */
    top: 25px;
    z-index: 1;
}

.timeline-item:nth-child(odd)::after {
    right: -8px;
}

.timeline-item:nth-child(even)::after {
    left: -8px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--kolor-tla-stopki); /* Tło główne (Beż) */
    border-radius: 12px;
    border: 1px solid var(--kolor-ramki);
}

.timeline-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    color: var(--kolor-akcentu); /* Błękit */
}

.timeline-content p {
    margin: 0;
    font-size: 0.95rem;
}


/* === Sekcja "Projects" === */
#projects.section-padding {
    border-bottom: 1px solid var(--kolor-ramki);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    justify-items: center;
    gap: 30px;
    margin: 0 auto;
}

.project-card {
    position: relative; 
    background-color: var(--kolor-tla-srodek); /* Tło kart (Biel) */
    border-radius: 20px;
    color: var(--kolor-tekstu-glowny);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 4px 15px var(--kolor-shadow);
    border: 1px solid var(--kolor-ramki);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--kolor-shadow);
}

.project-logo {
    width: 100%;
    height: 250px;
    object-fit: contain;
    padding: 20px;
    box-sizing: border-box;
    background-color: var(--kolor-tla-srodek); /* Tło kart (Biel) */
}

/* Specjalne tła dla logo, które ich wymagają */
.project-logo[src*="image_5a0506"] { /* Namaste */
    background-color: #000;
}
.project-logo[src*="image_5a0241"] { /* Aberdeen */
    background-color: #fff;
}
.project-logo[src*="comet.png"] { /* Comet */
    background-color: #fff;
}


.card-content {
    position: relative;
    z-index: 2;
    padding: 0 30px 30px 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
}

.card-content .project-links {
    margin-top: auto;
}

.project-card h3 {
    margin-top: 0;
    font-size: 1.8rem;
}

.project-card p {
    margin-bottom: 1.5rem;
}

.project-links .btn {
    display: inline-block;
    background-color: var(--kolor-akcentu);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    border: 2px solid var(--kolor-akcentu);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.project-links .btn:hover {
    background-color: var(--kolor-akcentu-hover);
    border-color: var(--kolor-akcentu-hover);
    color: #ffffff;
    text-decoration: none;
}

/* === SEKCJA "COLLABORATION" === */
#collaboration.section-padding {
    border-bottom: 1px solid var(--kolor-ramki);
}

.collab-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.collab-form label {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    color: var(--kolor-tekstu-glowny);
}

.collab-form input,
.collab-form select,
.collab-form textarea {
    padding: 12px;
    border: 1px solid var(--kolor-ramki);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-family-system);
    background-color: var(--kolor-tla-srodek);
    color: var(--kolor-tekstu-glowny);
}

.collab-form input:focus,
.collab-form select:focus,
.collab-form textarea:focus {
    outline: 2px solid var(--kolor-akcentu);
    border-color: var(--kolor-akcentu);
}

.collab-form button.btn-contact {
    margin-top: 10px;
}


/* === Sekcja "Languages & Interests" === */
#details {
    background-color: var(--kolor-tla-stopki); /* Tło główne (Beż) */
    border-bottom: 1px solid var(--kolor-ramki);
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.details-column h3 {
    font-size: 1.8rem;
    border-bottom: 2px solid var(--kolor-ramki);
    padding-bottom: 10px;
}

.details-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.details-column li {
    font-size: 1.1rem;
    margin-bottom: 10px;
}


/* === Sekcja "Contact" === */
#contact.section-padding {
    border-bottom: none;
    text-align: center;
}

.section-description-center {
    text-align: center;
    font-size: 1.15rem;
    margin-bottom: 3rem;
    color: var(--kolor-tekstu-pomocniczy);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-buttons-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: transparent;
    border: 2px solid var(--kolor-akcentu);
    color: var(--kolor-akcentu);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-contact:hover {
    background-color: var(--kolor-akcentu);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-3px);
}

.btn-contact svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: currentColor;
}


/* === Stopka (Footer) === */
.footer {
    background-color: #D9C0B9; /* Tło stopki (Ciemniejszy beż) */
    padding: 40px 0;
    text-align: center;
    color: var(--kolor-tekstu-glowny); /* Ciemny granatowy tekst */
    font-size: 0.9rem;
}

/* === Responsywność === */
@media (max-width: 1080px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
    }
    .navbar .nav-links {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .btn-nav-cv {
        margin-left: 0;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
    
    .language-switcher {
        width: 100%;
        text-align: center;
        margin-left: 0;
    }

    .section-padding {
        padding-top: 60px;
    }
    
    .section-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-bottom: 60px;
    }
    
    #toolkit .section-grid, #education .section-grid, #now .section-grid {
        width: 100%;
    }

    .section-title-left {
        position: static;
        text-align: center;
        font-size: 2.2rem;
    }
    .section-content-right {
        padding-top: 0;
    }
    
    .about-text, .section-description-center {
        text-align: center;
    }
    
    .section-title-center {
        font-size: 2.2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-logo {
        height: 200px;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }
    
    /* === RESPONSIVE TIMELINE === */
    .timeline::before {
        left: 20px;
        transform: translateX(0);
    }
    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        width: 100%;
        left: 0;
        padding-left: 60px;
        padding-right: 15px;
        text-align: left;
    }
    .timeline-item::after,
    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
        left: 12px;
    }
    
    .hero-image-overlay {
        background-position: center bottom; 
        background-image: 
            linear-gradient(to top, 
                var(--kolor-tla-srodek) 0%,        
                var(--kolor-tla-srodek) 20%,       
                rgba(255, 255, 255, 0.6) 40%,    
                rgba(255, 255, 255, 0) 60%       
            ),
            url('Uploaded_10_CNV00010.jpg');
    }
}
