*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    scroll-behavior: smooth;
    font-family: "Poppins";
}
:root {
  --bg-color: #ffffff;
  --second-bg-color: #f4f4f4;
  --text-color: #111111;
  --main-color: #ea580c;
}
body.dark-mode {
  --bg-color: #080808;
  --second-bg-color: #101010;
  --text-color: #ffffff;
}
html{
    font-size: 60%;
    overflow-x: hidden;
}
body{
    background: var(--bg-color);
    color: var(--text-color);
}
.header{
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    padding: 4rem 15%;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

/* Navbar */
#menu-icon{
    font-size:3.5rem;
    color: var(--main-color);
    display: none;
}
.logo{
    font-size: 3rem;
    color: var(--text-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3 ease-in-out;
}
.logo:hover{
    transform: scale(1.1);
}
span{
    background: linear-gradient(
        270deg,
        #df8908 10%,
        #ff1d15 100%
    );
    background-clip: text;
    color: transparent;
}
.navbar{
    font-size: 1.8rem;
    color: var(--text-color);
    margin-left: 8rem;
    font-weight: 500;
    transition: 0.3s ease-in-out;
    border-bottom: 3px solid transparent;

    display: flex;
    align-items: center;
    flex-wrap: nowrap; 
}
.navbar a {
    margin-left: 3rem;
    color: var(--text-color);
    transition: 0.3s;
}
.navbar a:hover{
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}
#toggle-mode {
    background: none;
    border: none;
    outline: none;
    padding: 0;
    margin-left: 3rem; /* gleicht Abstand mit Navbar-Links an */
    cursor: pointer;
    font-size: 2.5rem;
    color: var(--text-color); /* weiß im Dark Mode */
    display: flex;
    align-items: center;
    transition: 0.3s ease-in-out;
}
#toggle-mode:hover {
    color: var(--main-color);
}
.gradient-btn{
    font-size: 1.8rem;
    padding: 1rem 2rem;
    border-radius: 3rem;
     background: linear-gradient(
        270deg,
        #df8908 10%,
        #ff1d15 100%
    );
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    color: white;
    border: none;
    text-wrap: nowrap;
}
.gradient-btn:hover{
    transform:scale(1.05);
}
section{
    min-height: 100vh;
    padding: 10rem 15%;
}

/* Home */
.home{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15rem;
}
.home-content{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}
.home-content h1{
    font-size: 8rem;
    font-weight: 700;
    margin-top: 1.5rem;
    line-height: 1;
    white-space: nowrap;
}
.home-content h3{
    margin: 1rem 0;
    font-size: 4rem;
    white-space: nowrap;
}
.home-content p{
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.8;
}
.home-img img{
    width: 32vw;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    transition: 0.4s ease-in-out;
}
.home-img img:hover {
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color),
                0 0 100px var(--main-color);
}

/* Buttons */
.social-icons a{
display: inline-flex;
justify-content: center;
align-items: center;
font-size: 3rem;
padding: 1rem;
background:transparent;
border: 2px solid var(--main-color);
border-radius: 50%;
color: var(--main-color);
margin: 3rem 0.5rem;
transition: 0.3s ease-in-out;
}
.social-icons a:hover{
color: var(--text-color);
background-color: var(--main-color);
transform: scale(1.2)translateY(-5px);
box-shadow: 0 0 25px var(--main-color);

}
.btn-group{
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}
.btn{
    display: inline-block;
    padding: 1rem 3rem;
    background-color: var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
    border-radius: 3rem;
    font-size: 1.8rem;
    color: black;
    border:2px solid transparent;
    font-weight: 600;
    transition: 0.3s ease-in-out;
}
.btn:hover{
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color);
}
.btn-group a:nth-of-type(2){
    background-color: black;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    box-shadow: 0 0 25px transparent;
}
.btn-group a:nth-of-type(2):hover{
    box-shadow: 0 0 25px var(--main-color);
    background-color: var(--main-color);
    color: black;
}

/* About */
.about{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10rem;
    background: var(--second-bg-color);
}
.about-img img{
    width: 32vw;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    transition: 0.4s ease-in-out;
}
.about-img img:hover{
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color),
                0 0 100px var(--main-color);
}
.about-content h2{
    font-size: 7rem;
    text-align: left;
}
.about-content p{
    font-size:1.8rem;
}
.about-content .btn{
    margin: 3rem 0;
}
.heading{
    font-size: 8rem;
    text-align: center;
    margin: 5rem 0;
}

/* Education */
.education{
    padding: 100px 15px;
    background: var(--second-bg-color)
}
.education h2{
    margin-bottom: 5rem;
}
.timeline-items{
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    position: relative;
}
.timeline-items::before{
    content:"";
    position: absolute;
    width: 5px;
    height: 100%;
    background-color: var(--main-color);
    left: calc(50% - 1px);
}
.timeline-item {
    margin-bottom: 40px;
    width: 100%;
    position: relative;

    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}
.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}
.timeline-item:last-child{
    margin-bottom: 0;
}
.timeline-item:nth-child(odd){
    padding-right: calc(50% + 30px);
    text-align: right;
}
.timeline-item:nth-child(even){
    padding-left:calc(50% + 30px);
}
.timeline-dot{
    height: 21px;
    width: 21px;
    background-color: var(--main-color);
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color);
    position: absolute;
    left: calc(50% - 8px);
    border-radius: 50%;
    top: 10px;
}
.timeline-date{
    font-size: 20px;
    font-weight: 800;
    color:var(--text-color);
    margin: 6px 0 15px;
}
.timeline-content{
background-color: var(--bg-color);
border: 3px solid var(--main-color);
padding: 30px 50px;
border-radius: 4rem;
box-shadow: 0 0 10px var(--main-color);
cursor: pointer;
transition: 0.3s ease-in-out;
}
.timeline-content:hover{
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--main-color);
}
.timeline-content h3{
    font-size: 20px;
    color: var(--text-color);
    margin: 0 0 10px;
    font-weight: 500;
}
.timeline-content p{
    color: var(--text-color);
    font-size: 16px;
    font-weight: 300;
    line-height: 22px;
}
::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-thumb {
    background-color: var(--main-color);
    border-radius: 10px;
    border: 3px solid var(--bg-color); 
}
::-webkit-scrollbar-track {
    background-color: var(--bg-color);
}
html {
    scrollbar-width: auto; 
    scrollbar-color: var(--main-color) var(--bg-color); 
    
}
.heading{
    text-align: center;
    font-size: 7rem;
    margin: 5rem 0;
}

/* Skill */
.skill{
     background-color: var(--bg-color);
    color: var(--text-color);
}
.skill-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2.5rem;
  justify-content: center;
}
.skill-box{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--main-color);
    height: 600px;
    border-radius: 3rem;
    cursor: pointer;
    border: 5px solid transparent;
    transition: 0.4s ease-in-out;
    max-width: 100%;
}
.skill-box:hover{
    background: var(--second-bg-color);
    color: var(--main-color);
    border: 5px solid var(--main-color);
    transform: scale(1.03);
}
.skill-info{
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    padding: 5rem;
}
.skill-info h4{
    font-size: 4rem;
    margin: 2rem 0;
    font-weight: 800;
}
.skill-info p{
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.7;
}
.skill-info i{
    font-size:  8rem;
}
.skill-box {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--main-color);
    height: 600px;
    border-radius: 3rem;
    cursor: pointer;
    border: 5px solid transparent;
    transition: 0.4s ease-in-out;
    max-width: 100%;
}
.skill-box:hover {
    background: var(--second-bg-color);
    color: var(--main-color);
    border: 5px solid var(--main-color);
    transform: scale(1.03);
}
.skill-info {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    padding: 5rem;
}
.skill-info h4 {
    font-size: 4rem;
    margin: 2rem 0;
    font-weight: 800;
}
.skill-info p {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.7;
}
.skill-info i {
    font-size: 8rem;
}
.skill2 {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    
    transform: translateY(70px);
}

/* Technical Bars */
.Technical-bars {
    display: flex;
    flex-direction: column;
    gap: 60px;
}
.bar {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.info span {
    color: var(--text-color);
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.progress-line {
    height: 12px;
    background: rgba(134, 134, 134, 0.2);
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}
.progress-line span {
    height: 100%;
    display: block;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    animation-duration: 2s;
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation-fill-mode: forwards;
    animation-delay: 0.5s;
    width: 0;
}
.progress-line span::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 3s infinite;
}
@keyframes shine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}
.programming .progress-line span {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    animation-name: fillBarProgramming;
}
.audio .progress-line span {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    animation-name: fillBarAudio;
}
.design .progress-line span {
    background: linear-gradient(45deg, #a8edea, #fed6e3);
    animation-name: fillBarDesign;
}
.game .progress-line span {
    background: linear-gradient(45deg, #ffecd2, #fcb69f);
    animation-name: fillBarGame;
}
.painting .progress-line span {
    background: linear-gradient(45deg, #667eea, #764ba2);
    animation-name: fillBarPainting;
}
.video .progress-line span {
    background: linear-gradient(45deg, #f093fb, #f5576c);
    animation-name: fillBarVideo;
}
@keyframes fillBarProgramming {
    from { width: 0; }
    to { width: 75%; }
}
@keyframes fillBarAudio {
    from { width: 0; }
    to { width: 80%; }
}
@keyframes fillBarDesign {
    from { width: 0; }
    to { width: 83%; }
}
@keyframes fillBarGame {
    from { width: 0; }
    to { width: 77%; }
}
@keyframes fillBarPainting {
    from { width: 0; }
    to { width: 77%; }
}
@keyframes fillBarVideo {
    from { width: 0; }
    to { width: 70%; }
}
.info::after {
    content: attr(data-percent);
    color: var(--text-color);
    font-size: 14px;
}
.bar:hover .progress-line span {
    transform: scaleY(1.2);
    transition: transform 0.3s ease;
}

/* Projects */
.projects{
    background-color: var(--second-bg-color)
}
.projects-box{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(350px,1fr));
    place-items: center;
    gap: 3rem;
    row-gap: 5rem;
}
.project-card{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--bg-color);
    border: 2px solid var(--main-color);
    border-radius: 3rem;
    gap: 2rem;
    padding: 5rem 2rem;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 0 5px var(--main-color);
    transition: 0.3s ease;
}
.project-card:hover{
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color);
    transform: scale(1.02);
}
.project-card img{
    max-width: 300px;
    border-radius: 2em;
    object-fit:cover;
}
.project-card h3{
    font-size: 3rem;
}
.project-card p{
    font-size: 1.6rem;
}

/* Contact */
.contact{
    background-color: var(--bg-color)
}
.contact h2{
    margin-bottom:3rem;
    color:var(--text-color)
}
.contact form{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin: 5rem 0;
    text-align: center;
}
.contact form .input-box input,
.contact form textarea{
    width: 100%;
    padding: 2.5rem;
    font-size: 1.8rem;
    color: var(--text-color);
    background-color: var(--bg-color);
    border-radius: 2rem;
    border: 2px solid var(--main-color);
    margin: 1.5rem 0;
    resize: none;
}

/* Footer */
.footer{
    background-color: var(--second-bg-color);
    padding: 50px 0;
}
.footer .social-icons {
    text-align: center;
}
.footer ul{
    text-align: center;
    font-size: 1.8rem;
}
.footer ul li{
    display: inline-block;
    margin-left: 20px;
}
.footer ul li a{
    color:var(--text-color);
    border-bottom: 3px solid transparent;
    transition: 0.3s ease-in-out;
}
.footer ul li a:hover{
    border-bottom: 3px solid var(--main-color);
}
.footer .copyright{
    text-align: center;
    margin-top: 40px;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 480px) {
  .home-content h1 {
    font-size: 2.5rem;  
    text-align: center;
  }
  .home-content h3 {
    font-size: 1.5rem;
    text-align: center;
  }
  .home-content p {
    font-size: 1rem;
    text-align: center;
    padding: 0 10px;  
  }
  .heading {
    font-size: 3rem;
    margin: 2rem 0;
  }
  .projects-box {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 1rem;
  }
  .project-card {
    width: 100%;
    box-sizing: border-box;
  }
  .project-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }
  .project-card h3 {
    font-size: 1.5rem;
  }
  .project-card p {
    font-size: 1rem;
  }
  .project-card .btn {
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }
  .skill-box {
    height: 400px;
    max-width: 300px;
    width: 100%;
    margin: 0 auto;
  }
  .skill-container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    justify-content: center;
    gap: 1rem;
  }
  
  
  .skill-info {
    padding: 2rem;
  }
  .skill-info h4 {
    font-size: 2rem; 
    margin: 1rem 0; 
  }
  .skill-info p {
    font-size: 1rem; 
  }
  .skill-info i {
    font-size: 4rem; 
  }
}
@media (max-width: 767px) {
  .skill-box {
    height: 350px;
    max-width: 350px;
    width: 100%;
    margin: 0 auto;
  }
     .skill {
        padding: 20px;
        margin: 20px;
    }
    
    .info span {
        font-size: 16px;
    }
 
  .skill-info {
    padding: 3rem; 
  }
  .skill-info h4 {
    font-size: 2.5rem; 
    margin: 1.5rem 0; 
  }
  .skill-info p {
    font-size: 1.3rem; 
  }
  .skill-info i {
    font-size: 5rem; 
  }
}
@media(max-width:991px){
        .timeline-item {
    width: 100%;
    padding-left: 50px !important; 
    padding-right: 0 !important; 
    text-align: left !important; 
    }
    header{
        padding: 2rem 3%;
    }
    section{
        padding: 10rem 3% 2rem;
    }
        .timeline-items::before {
    left: 15px; 
    }

    .timeline-dot {
    left: 8px; 
    }
    .timeline-item:nth-child(odd){
        padding-right:0;
        text-align: left;
    }
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even){
        padding-left: 37px;
    }
    
   
    
}
@media(max-width:1285px){
    #menu-icon{
        display: block;
    }
    .navbar{
        position: absolute;
        top: 100%;
        right: 0;
        width: 50%;
        padding: 1rem 3rem;
        background: var(--second-bg-color);
        border-bottom-left-radius: 2rem;
        border-left: 2px solid var(--main-color);
        border-bottom: 2px solid var(--main-color);
        display: none;
    }
    .navbar a{
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
        color: var(--text-color);
    }
    .navbar.active{
        display: block;
    }
    .gradient-btn{
        display: none;
    }
    .home{
        flex-direction: column-reverse;
        margin: 5rem 0 ;
        gap: 5rem
    }
    .home-content{
        align-items: center;
        text-align: center;
    }
    .home-img img{
        width: 56vw;
    }
    .about{
        flex-direction: column-reverse;
        text-align: center;
    }
    .about{
        flex-direction: column-reverse;
        text-align: center;
    }
    .about h2{
        text-align: center;
        margin: 2rem 0;
    }
    .about img{
        width: 52vw;
    }
  


    .contact form{
        flex-direction: column;
    }
}

