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

html, body {
    height: 100%;
    font-family: 'Roboto', sans-serif;
    scroll-behavior: smooth;
    scroll-padding-top: 200px;
}

body {
    line-height: 1.6;
    background-color: #f1f1f1;
    color: #333;
    display: flex;
    flex-direction: column;
}

section {
    padding-top: 80px;
    border-radius: 20px;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #34495e;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 5px 15px;
}

.left-side .name {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 20px;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease; 
}

.left-side .name:hover {
    background-color: #2980b9;
}

nav {
    flex-grow: 1;
    text-align: right;
}

nav ul {
    list-style-type: none;
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    display: inline-block;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: #2980b9;
}

nav .icon {
    display: block;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    border: none;
    outline: none;
    background: none;
    padding: 0;
    margin: 0 auto; 
    text-align: center;
}

#nav-list {
    display: flex;
}

/* Responsiveness */
@media screen and (min-width: 769px) {
    nav .icon {
        display: none;
    }

    header {
        padding: 20px 40px; /* Zwiększenie ogólnego paddingu */
    }

    .left-side .name {
        font-size: 28px; /* Większa nazwa */
    }

    nav ul li a {
        font-size: 18px; /* Większa czcionka w menu */
        padding: 12px 18px; /* Większe odstępy w nawigacji */
    }
}

@media screen and (max-width: 768px) {
    
    header {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    nav .icon {
        display: block;
        text-decoration: none;
        align-self: center;
    }

    #nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    #nav-list li {
        margin: 10px 0;
    }

    #nav-list li a {
        padding: 15px;
        font-size: 18px;
    }

    #nav-list.show {
        display: block;
    }
}



/* Main */
main {
    padding: 40px 20px;
    flex: 1;
    background-color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin: 80px 20px 20px 20px; 
    border-radius: 15px;
}

/* Welcome */
#welcome {
    margin-top: -100px;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #ecf0f1, #bdc3c7);
}

.welcome-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.welcome-box {
    background-color: #fff;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.welcome-box h1 {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.welcome-box p {
    font-size: 18px;
    color: #7f8c8d;
}

/* About Me */
#about {
    margin-top: 40px;
    text-align: center;
    padding: 60px 20px;
    background-color: #f8f8f8;
}


.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
    gap: 40px;
}

.about-left {
    flex: 1;
    text-align: center;
}

.about-left img {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #333;
    margin-bottom: 15px;
}

.github-link {
    display: inline-block;
    background-color: #333;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 16px;
    transition: 0.3s;
}

.github-link:hover {
    background-color: #555;
}

.about-right {
    flex: 2;
    padding-left: 20px;
}

.about-right p {
    margin-bottom: 18px;
    font-size: 18px;
    line-height: 1.6;
}

/* Responsiveness */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-right {
        padding-left: 0;
    }
}


/* Education */
#education {
    padding: 60px 20px;
    background-color: #ecf0f1;
    margin-top: 40px;
}

.education-title {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 30px;
}

.timeline-container {
    background-color: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    padding: 20px;
}

.timeline-item {
    display: flex;
    margin-bottom: 40px;
    position: relative;
    padding-left: 40px;
}

.timeline-item .timeline-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 250px;
    width: 250px;
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
}

.timeline-item .timeline-date {
    font-size: 16px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 150px;
    text-align: center;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    width: 4px;
    background-color: #3498db;
    z-index: 1;
    transform: translateX(-50%);
}

.timeline-item::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 15px;
    height: 15px;
    background-color: #3498db;
    border-radius: 50%;
    border: 3px solid #fff;
    transform: translateX(-50%);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

/* Responsiveness */
@media (max-width: 768px) {
    .timeline-item {
        flex-direction: column;
        align-items: center;
        padding-left: 0;
    }

    .timeline-item .timeline-content {
        width: auto;
        max-width: 90%;
        margin-bottom: 20px;
    }

    .timeline-date {
        position: relative;
        margin-top: 10px;
    }
}

/* Skills */
#skills {
    padding: 60px 20px;
    background-color: #f8f8f8;
    margin-top: 40px;
}

#skills h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 30px;
}

#skills p {
    text-align: center;
    font-size: 18px;
    color: #F8F8F8;
    margin-bottom: 30px;
}

.skills-container {
    display: flex;
    justify-content: space-around;
    gap: 40px;
    flex-wrap: wrap;
    text-align: left;
}

.skills-category {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.skills-category h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
}

.skills-category ul {
    list-style-type: none;
    padding: 0;
}

.skills-category ul li {
    font-size: 18px;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.skills-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

/* Responsiveness */
@media (max-width: 768px) {
    .skills-container {
        flex-direction: column;
        align-items: center;
    }

    .skills-category {
        margin-bottom: 30px;
    }

    .skills-category h3 {
        font-size: 20px;
    }

    .skills-category ul li {
        font-size: 16px;
    }
}

/* Certificates */
#certificates {
    padding: 60px 20px;
    background-color: #ecf0f1;
    margin-top: 40px;
}

#certificates h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 30px;
}

#certificates p {
    text-align: center;
    font-size: 18px;
    color: #7f8c8d;
    margin-bottom: 20px;
}

#certificates .certificate-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

#certificates .certificate-img {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    object-fit: contain; 
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

#certificates .certificate-img:hover {
    transform: scale(3) rotate(-90deg); 
    
}


/* Responsiveness */
@media (max-width: 768px) {
    #certificates ul li {
        font-size: 16px;
    }
}

/* Projects */
#projects {
    padding: 60px 20px;
    background-color: #f8f8f8;  
    margin-top: 40px;
    border-radius: 20px;
}

#projects h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 30px;
}

#projects p {
    text-align: center;
    font-size: 18px;
    color: #7f8c8d;
    margin-bottom: 20px;
}

#projects ul {
    list-style-type: none;
    padding: 0;
    text-align: center;
}

#projects ul li {
    font-size: 18px;
    margin-bottom: 10px;
    color: #2c3e50;
}

/* Responsiveness */
@media (max-width: 768px) {
    #projects ul li {
        font-size: 16px;
    }
}

/* Contact */
#contact {
    padding: 60px 20px;
    background-color: #ecf0f1; 
    margin-top: 40px;
    border-radius: 20px;
}

#contact h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 30px;
}

#contact p {
    text-align: center;
    font-size: 18px;
    color: #7f8c8d;
    margin-bottom: 20px;
}

#contact a {
    color: #3498db; 
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

#contact a:hover {
    color: #2980b9;
}


/* Footer */
footer {
    background-color: #34495e;
    color: #fff;
    text-align: center;
    padding: 20px;
    width: 100%;
    border-radius: 20px 20px 0 0;
}

/* Responsiveness */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        display: block;
        margin-top: 10px;
    }

    nav ul li {
        margin: 10px 0;
    }

    section h1, section h2 {
        font-size: 26px;
    }

    section p {
        font-size: 16px;
    }
}
