html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Raleway', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
    background: #f6f8f8;
}

.main-content {
    margin-left: 0;
    transition: margin-left .3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.section-title {
    font-size: 25px; 
    color: #333;
    margin-bottom: 10px;
    margin-top: 20px;
    text-align: center;
}

hr {
    border: 0;
    height: 2px;
    background-color: rgb(152, 191, 204);
    margin-top: 30px;
}

/* Navigation */
nav {
    width: 100%;
    height: 60px;
    background-color: #5a5a5a;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

nav ul li a {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 15px;
    transition: background 0.3s ease, color 0.3s ease;
}

nav ul li a:hover {
    background-color: rgb(152, 191, 204);
    color: #fff;
}

.menu-icon {
    display: none;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

/* Header */
header#portfolio {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(45deg, rgb(152, 191, 204), rgb(220, 235, 238), rgb(152, 191, 204));
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
    position: relative;
    width: 100%;
    margin-top: 50px;
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
}

@keyframes typing {
    0% { width: 0; }
    100% { width: 100%; }
}

@keyframes blink {
    0%, 100% { border-color: #333; }
    50% { border-color: transparent; }
}

@keyframes removeCursor {
    100% { border-right: none; }
}

.header-title {
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    border-right: 2.5px solid #333;
    animation: typing 5s steps(40) 1s forwards, 
               blink 0.5s steps(2) infinite, 
               removeCursor 0s linear 1.7s forwards;
}

#portfolio .header-container h3 {
    font-size: 1.2rem;
    color: #444;
    font-weight: bold;
    text-align: center;
    margin-top: 5px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/*about*/
.about-text-container {
    flex: 2;
    padding: 20px;
    margin: 0 auto;  
}

.about-container {
    display: flex;
    margin-top: 40px;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    position: relative;
    left: -20px; 
    text-align: center;
    padding: 10px;
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
    animation-delay: 0.2s; 
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.about-text {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Image */
.about-img-container {
    flex: 1;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.about-img {
    width: 100%;
    height: auto; 
    border-radius: 50%;
    max-width: 250px;
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); 
    border: 5px solid rgb(152, 191, 204);
}

/* Button */
.cv-button {
    background-color: rgb(152, 191, 204);
    color: white;
    font-size: 16px;
    padding: 12px 18px;
    border: none;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
}

.cv-button:hover {
    background-color: rgb(122, 154, 165);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Kontakt */
.info-box {
    border: 2px solid rgb(152, 191, 204); 
    padding: 10px;
    background-color: #f9f9f9; 
    border-radius: 8px; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
    width: 300px; 
    margin: 10px auto; 
    padding-bottom: 20px;
}

.info-text strong {
    color: #555;
}

.info-text {
    font-size: 16px;
    color: #333;
    margin: 10px 0;
}

/*Skills*/
.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
}

@keyframes skillAnimate {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.skill {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    width: 120px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: skillAnimate 2s ease-out forwards, fadeIn 3s ease-in-out;
    opacity: 0;
    cursor: pointer;
}

.skill:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
}

.skill p {
    font-size: 14px;
    color: #555;
    margin: 0;
}

.tools-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
}

.tool {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    width: 120px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    animation: skillAnimate 2s ease-out forwards, fadeIn 3s ease-in-out;
    opacity: 0;
}

.tool p {
    font-size: 14px;
    color: #555;
    margin: 0;
}

.skills-list {
    list-style-type: none;
    padding: 0;
}

.skills-list li {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    color: #555;
    margin: 8px 0;
    position: relative;
}

.skills-list li::before {
    content: '✓';
    left: 0;
    top: 0;
    color: #4CAF50;
    padding: 5px;
}

/*tooltip*/
.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease; 
    padding: 5px;
}

.tooltip:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); 
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 300px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    font-size: 15px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.description-box {
    background-color:white;
    border: 1px solid rgb(202, 238, 245); 
    border-radius: 12px; 
    padding: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); 
    z-index: 1000;
    font-size: 16px;
    line-height: 1.5;
}

/* Project */
.projects {
    animation: fadeIn 1s ease-in-out forwards;
    padding-bottom: 30px;
}

.projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    text-align: center;
}

.project {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px;
    width: 40%;
    text-align: center;
}

.project-title {
    font-size: 1.4rem;
    color: rgb(152, 191, 204);
    margin-bottom: 10px;
}

.project-description {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

.project-img1 {
    width: 80%;
    height: auto;
    margin-top: 20px;
}

.project-img2 {
    width: 25%;
    height: auto;
    margin: 10px;
}

.project-hr{
    border: 0;
    height: 2px;
    background-color: rgb(152, 191, 204);
    margin-left: 2.5%;
    margin-right: 2.5%;
}

.motivation-section {
    max-width: 1000px;
    margin-top: 20px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    justify-self: center;
    animation: fadeIn 1s ease-in-out forwards;
}
.motivation-title{
    font-size: 20px; 
    color: rgb(152, 191, 204);
    margin-bottom: 10px;
    margin-top: 20px;
    text-align: center;
}

/* Footer */
.footer {
    background: linear-gradient(45deg, rgb(152, 191, 204), rgb(220, 235, 238), rgb(152, 191, 204));
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    gap: 10px;
    color: #555;
    height: 90px;
}

.logo {
    height: 45px; 
}

.social-links {
    display: flex;
    gap: 15px; 
}

.social-links a {
    color: #555; 
    font-size: 24px; 
}

.social-links a:hover {
    color: #fff;
}


/* Media queries */
@media screen and (max-width: 768px) {
    .about-container {
        flex-direction: column;
        align-items: center;
        left: 0; 
        padding: 10px;
    }

    .about-text-container {
        padding: 10px;
        max-width: 100%;  
        margin: 0 auto;
    }

    header#portfolio {
        margin-top: 40px;  
        padding: 20px 15px; 
    }

    .header-container {
        padding-top: 15px; 
    }

    .header-title {
        font-size: 1.4rem;
    }

    #portfolio .header-container h3 {
        font-size: 1rem;
    }

    .section-title {
        font-size: 22px;
    }

    .about-text {
        font-size: 16px;
    }

    .skills-list li {
        font-size: 16px;
    }

    .cv-button {
        padding: 10px 15px;
    }

    .skill {
        width: 100px;
    }

    .tool {
        width: 100px;
    }

    .tooltip .tooltiptext {
        width: 90%;
        max-width: 180px;
        font-size: 14px;
    }

    .projects-container {
        flex-direction: column; 
        align-items: center;
    }

    .project {
        width: 80%; 
        margin-bottom: 20px; 
    }

    .project-img1, .project-img2 {
        width: 100%;
        height: auto; 
        margin-top: 10px; 
    }

    .project-img2 {
        width: 40%; 
    }
    .project-title {
        font-size: 1.1rem;
    }
    
    .project-description {
        font-size: 0.9rem;
    }
    
    .motivation-section {
        flex-direction: column;
        align-items: center;
        left: 0; 
        margin: 30px;
    }
    .ghost, .shadowFrame, .shadow {
        display: none;
    }
    .menu-icon {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: -250px;
        width: 250px;
        height: 100%;
        background-color: #333;
        text-align: center;
        padding-top: 60px;
        transition: left 0.3s ease-in-out;
    }

    nav ul li {
        padding: 15px 0;
    }

    nav ul.active {
        left: 0;
    }

    .menu-icon.active + #nav-links {
        display: flex;
    }
}

@media screen and (min-width: 1600px) {
    body {
        font-size: 20px;
    }

    .about-container {
        padding: 60px; 
        flex-direction: row; 
        margin: 0 auto; 
    }

    .header-container {
        justify-content: space-between; 
        align-items: center;
        max-width: 1200px; 
        margin: 0 auto;
        padding: 15px 10px; 
    }

    .header-title {
        font-size: 3rem; 
    }

    .about-text {
        font-size: 22px; 
        line-height: 1.8; 
    }

    .skills-container {
        gap: 50px;
        margin-top: 50px;
    }

    .skill {
        width: 200px; 
        padding: 25px; 
    }

    .tool {
        width: 200px; 
        padding: 25px; 
    }

    .cv-button {
        font-size: 20px; 
        padding: 18px 28px;
    }

    .footer {
        padding: 60px; 
    }

    .info-box {
        width: 400px; 
    }

    nav ul {
        justify-content: space-between; 
    }

    nav ul li a {
        font-size: 20px; 
    }

    .about-img {
        max-width: 300px; 
    }

    .section-title {
        font-size: 30px; 
    }
}


.ghost {
    animation: float 3s ease-out infinite;
    margin-top: 50px;
  }
  
  @keyframes float {
    50% {
       transform: translate(0, 20px);
    }
  }
  .shadowFrame {
    width: 130px;
    margin-top: 15px;
  }
  .shadow {
    animation: shrink 3s ease-out infinite;
    transform-origin: center center;
    ellipse {
      transform-origin: center center;
    }
  }
  
  @keyframes shrink {
    0% {
      width: 90%;
      margin: 0 5%;
    }
    50% {
      width: 60%;
      margin: 0 18%;
    }
    100% {
      width: 90%;
      margin: 0 5%;
    }
  }
@media (min-width: 768px) {
    .tap-indicator {
        display: none;
    }
}
.tap-indicator {
    text-align: center;
    font-size: 1rem;
    color: #666;
    margin-bottom: 10px;
}