body{
    margin: 0;
    padding: 0;
    background-color: #404552;
    scroll-behavior: smooth;
    font-family: Arial, Helvetica, sans-serif;
    color: white;
}

p, a, h1, h2, h3, span, li{
    color:black;
}
.container{
    display: flex;
    flex-direction: column;
    position: relative;
    align-items: center;
}

header{
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 40px;
    z-index: 999;
    background-color: #4b4b4b5b;
    backdrop-filter: blur(10px);
}

.head-left{
    display: flex;
    align-items: center;
}

.head-left img{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: contain;
    background-color: rgb(14, 17, 21);
}

.head-right{
    display: flex;
    align-items: center;
}


.head-left a {
    text-decoration: none;
    padding-left: 10px;
    text-transform: uppercase;
    font-size: 15px;
    align-items: center;
}


.head-right a{
    text-decoration: none;
    padding-left: 25px;
    text-transform: uppercase;
    font-size: 15px;
    align-items: center;
}

.head-right label{
    width:80px;
    height: 30px;
    position:relative;
    display: block;
    background-color: #ebebeb;
    border-radius: 200px;
    box-shadow: inset 0px 5px 15px rgba(0, 0, 0, 0.4), inset 0px -5px 15px rgba(255, 255, 255, 0.4) ;
    cursor: pointer;
    transition: 0.5s;
}

.head-right label:after{
    content: "";
    width: 25px;
    height: 25px;
    position: absolute;
    top: 2px;
    left:2px;
    background: linear-gradient(180deg, #ffcc89, #d88606);
    border-radius: 180px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
    transition: 0.5s;
}

.head-right input{
    width: 0;
    height: 0;
    visibility: hidden;
}

.head-right input:checked + label{
    background: #242424;
}

.head-right input:checked + label:after{
    left: 75px;
    transform: translateX(-100%);
    background: linear-gradient(180deg, #777, #3a3a3a);
}


.head-right label:active::after{
    width: 40px;
}

.head-right input:checked + label + body,
.head-right input:checked + label + a
{
    background: #242424;
}

body.dark-mode{
    background-color: black;
    color:white;
}
body.dark-mode a,
body.dark-mode p,
body.dark-mode li,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4

{
    color: white;
}


button{
    color:black;
    background-color: white;
    border: solid 3px black;
    padding: 10px 40px;
    cursor: pointer;
    transition: 0.5s;
    border-radius: 20px;
}

button:hover{
    box-shadow: 0 0 30px black;
}

body.dark-mode button{
    border: solid 1px white;
    color: white;
    background-color: black;
}

body.dark-mode button:hover{
    box-shadow: 0 0 15px white;
}

.head-right img{
    width: 25px;
    height: 25px;
    margin-left: 10xp;
    cursor: pointer;
}


.moon{
    position: absolute;
    left:50px;
    top: 2px;
    transition: 0.5s;
    z-index: 20;
    color: white;
    display: none;
}

.sun{
    position: absolute;
    z-index: 20;
    top: 1.5px;
    left:2px;
    transition: 0.5s;
}

body.dark-mode .moon{
    display: block;
}

body.dark-mode .sun{
    display: none;
}

.head-right div{
    margin-left: 10px;
    display: flex;
    align-items: center;
}


/* hero section */




/* dark night */

@keyframes move-clouds-back {
    from{background-position: 0 0;}
    to{background-position: -10000px 0;}
}

@keyframes move-twinkle-back {
    from{background-color: 0 0;}
    to{background-position: -10000px 5000px;}
}

.dark_night{
    position: absolute;
    width: 100%;
    height: 100vh;
    z-index: 0;
}

.stars, .twinklings, .clouds{
    position: absolute;
    top:0;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: block;
}

.stars{
    background: #000 url(../img/night/stars.png) repeat top center;
    z-index: 0;
    /* background: blue; */
}

.twinklings{
    background: transparent url(../img/night/twinkling.png) repeat top center;
    z-index: 1;
    animation: move-twinkle-back 200s linear infinite;
}

.clouds{
    background: transparent url(../img/night/clouds.png) repeat top center;
    z-index: 2;
    opacity: .4;
    animation: move-clouds-back 200s linear infinite;
}

/* light-day */

.light-day{
    position: absolute;
    top:0;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: block;
    z-index: 10;
    background-color: #404552;
    /* background: white; */
}
body.dark-mode .dark_night{
    z-index: 11;
}

.clouds1{
    background-image: url("../img/day/clouds_1.png");
    animation: clouds1_loop1 20s infinite linear;
}

.clouds2{
    background-image: url("../img/day/clouds_2.png");
    animation: clouds2_loop2 20s infinite linear;
}

.clouds3{
    background-image: url("../img/day/clouds_3.png");
    animation: clouds3_loop3 20s infinite linear;
}


.clouds1,
.clouds2,
.clouds3{
    background-repeat: repeat-x;
    height: 500px;
    position: absolute;
    top:0;
    right: 0;
    left: 0;
}

@keyframes clouds1_loop1 {
    to{
        background-position: -1000px 0;
    }
}

@keyframes clouds2_loop2 {
    to{
        background-position: -1000px 0;
    }
}

@keyframes clouds3_loop3 {
    to{
        background-position: -1579px 0;
    }
}

.hero-section{
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    left:0;
    right: 0;
}

.hero_info{
    position: absolute;
    height: 100vh;
    width: 100%;
    z-index: 12;
    top: 140px;
    left:50px;
}

.hero_info h1{
    font-size: 80px;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-weight: 900;
    font-style: normal;
    margin-top: 30px;
    margin-bottom: 20px;
    max-width: 500px;
    text-transform: uppercase;

}

.hero_info p {
    max-width: 400px;
    font-size: 24px;
}


.whatido{
    font-size: 80px;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    margin: 0;
    position: absolute;
    right: 20px;
    bottom: 30px;
    z-index: 12;
}

.innovate2 {
    max-width: 500px;
}

/* new section about me maybe */

.about_me{
    /* height: 40vh; */
    width: 90%;
    display: flex;
    margin-top: 100px;
    justify-content: center;
    z-index: 12;
}

.about_intro{
    display: flex;
    /* align-items: stretch; */
    justify-content: center;
    gap: 20px;
}

.f_dive{
    display: flex;
    justify-content: center;
    align-items: center;
    border: #000 solid 2px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    transition: box-shadow 0.3s, border 0.3s;
}

.main_fdive {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    max-width: 1200px;
}

.f_dive img{
    max-width: 600px;
    /* width: 100%; */
    height: 100%;
    object-fit: cover;
}

body.dark-mode .f_dive{
    border: solid 2px white;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.main_fdive h1{
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    margin-top: 10px;
}

.main_fdive p{
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 20px;
}

.main_fdive h2{
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 40px;
    margin-bottom: 20px;
}

.skills_card{
    display: flex;
    left: 0;
    right: 0;
    gap: 10px;
}

.skill_card{
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #5a5f6b, #6e7583);
    border-radius: 15%;
    max-width: 200px;
}

body.dark-mode .skill_card{
    background: linear-gradient(135deg, #1c1c1c, #333333);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.skill_card:hover{
    transform: translateY(-5px);
}

.skill_card h3{
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 10px;
    text-align: center;
}

.skill_card p {
    font-weight: 400;
    font-size: 16px;
    text-align: center;
    line-height: 1.5;
}

.skilsline {
    font-size: 18px;
    line-height: 1.6;
}

/* timeline tree */

.timeline{
    position: relative;
    left: 0;
    right: 0;
    z-index: 12;
    max-width: 1200px;
    margin: 100px auto;
}

.timeline_container{
    padding: 10px 50px;
    position: relative;
    width: 50%;
    animation: movedown 1s linear forwards;
    opacity: 0;
}

@keyframes movedown{
    0% {
        opacity: 1;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}

.timeline_container:nth-child(1){
    animation-delay: 0s;
}
.timeline_container:nth-child(2){
    animation-delay: 1s;
}
.timeline_container:nth-child(3){
    animation-delay: 2s;
}
.timeline_container:nth-child(4){
    animation-delay: 3s;
}
.timeline_container:nth-child(5){
    animation-delay: 4s;
}
.timeline_container:nth-child(6){
    animation-delay: 5s;
}
.timeline_container:nth-child(7){
    animation-delay: 6s;
}

.text_box{
    padding: 20px 30px;
    position: relative;
    border-radius: 6px;
    font-size: 15px;
    background: linear-gradient(135deg, #7d8596, #a1a7b3);
}

body.dark-mode .text_box{
    background: linear-gradient(135deg, #2f323a, #454954);
}

.left_t{
    left : -5%;
}

.right_t{
    left: 55%;
}


.text_box img{
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    right: -80px;
    top: 32px;
    z-index: 13;
}

.right_t img{
    left: -80px;
}

.timeline::after{
    content: '';
    position: absolute;
    width: 6px;
    height: 100%;
    top:0;
    left: 55%;
    margin-left: -3px;
    z-index: -1;
    background-color: #fff;
    animation: moveline 6s linear forwards;
}

@keyframes moveline{
    0%{
        height: 0;
    }
    100%{
        height: 100%;
    }
}

.text_box h2{
    font-weight: 600;   
}

.text_box small{
    display: inline-block;
    margin-bottom: 15px;
    font-size: 16px;
}

.text_box p {
    font-size: 18px;
}

.right_arrow{
    height: 0;
    width: 0;
    position: absolute;
    top: 45px;
    z-index: 12;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 15px solid #7d8596ed;
    left: -15px;
}

.left_arrow{
    height: 0;
    width: 0;
    position: absolute;
    top: 45px;
    z-index: 12;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 15px solid #7d8596ed;
    right: -15px;
}


@media screen and (max-width: 600px) {
    .timeline_container{
        position: relative;
        width: 100%;
        left:0;
        padding: 10px 15px;
        box-sizing: border-box;
    }
    .text_box {
        width: 100%;
        position: relative;
        padding: 15px;
        white-space: normal;
        /* white-space: nowrap; */
    }

    .text_box img,
    .left_arrow,
    .right_arrow{
        display: none;
    }

    .timeline::after{
        display: none;
    }

    .timeline_container{
        width: 100%;
        max-width: 600px;
    }
    .timeline p,
    .timeline h2,
    small{
        font-size: 22px;
        line-height: 1.5;
        word-break: break-word;
    }

}

.logo_scroling{
    width: 100%;
}

.scrool_ik{
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
}

.first_slide
{
    display: inline-block;
    gap:15px;
    margin: 15px;
    animation: 15s slide_logo infinite linear;
}

.second_slide{
    display: inline-block;
    gap:15px;
    margin: 15px;
    animation: 25s slide_logo_right infinite linear;
}

.logo_scroling img{
    width: 60px;
    height: 60px;
    padding: 0 15px;
}


body.dark-mode .first_slide img,
body.dark-mode .second_slide img{
    background-color: white;
}

@keyframes slide_logo {
    from {
        transform :translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}


@keyframes slide_logo_right {
    from {
        transform :translateX(-100%);
    }
    to {
        transform: translateX(100%);
    }
}

.logo_scroling p{
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 20px;
}


.project_container{
    max-width: 800px;
    width: 90%;
    margin-inline: 1.5rem;
    min-height: 600px;
}

.project_swiper{
    padding-bottom: 7rem;
}

.Projects{
    margin-top:  100px;
    margin-bottom: 100px;
    height: 800px;
    background-color: gray;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 5%;
}

.project_title{
    text-align: center;
    margin-bottom: 3rem;
    margin-top: -90px;

}

.project_card{
    width: 90%;
    box-shadow: 0 8px 16px hsla(265, 75%, 4%, .1);
    background-color: #d9d9d9;
    border-radius: 1.5rem;
    text-align: center;
}

.project_card img{
    width: 80%;
    margin-top: 10px;
    border-radius: 5%;
}

.project_card img:hover{
    cursor: pointer;
}

body.dark-mode .project_card p,
body.dark-mode .project_card h3
{
    color: black;
}

.tech_used span {
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  margin: 0.2rem;
  display: inline-block;
}

.tech_used span{
    text-transform: uppercase;
}

.tag-html {
  background-color: #e34c26;
}
.tag-css {
  background-color: #264de4; 
}
.tag-js {
  background-color: #f0db4f; 
  color: #323330;
}
.tag-react {
  background-color: #61dafb; 
  color: #20232a;
}
.tag-spline {
  background-color: #0f172a; 
}
.tag-tailwind {
  background-color: #38bdf8; 
  color: #0f172a;
}


.project_card .about_project{
    font-size: 18px;
    line-height: 26px;
    padding: 0 24px;
}

.project-link {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 24px;
    background-color: #1a73e8;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
}
.project-link:hover {
    background-color: #155ab6;
    cursor: pointer;
}


/* ///////////////////////// */
.contact {
    background-color: #2c2c2c;
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 15px;
    margin: 50px auto 50px;
    max-width: 800px;
}

.contact_title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
}

.contact_links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact_link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    text-decoration: none;
    color: white;
    padding: 10px 20px;
    border: 2px solid white;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact_link:hover {
    background-color: white;
    color: #2c2c2c;
}

