@import url('https://fonts.googleapis.com/css?family=Poppins');


body{
    width: 100%;
    background: linear-gradient(to right,rgb(255,255,255),rgb(254,215,173));
    min-height: 100vh;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

nav{
    width: 100%;
    height: 70px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: linear-gradient(to right,rgb(255,255,255),rgb(254,215,173));
    box-shadow: 0 2px 8px rgba(109,67,0,0.07);
}


.nav-container{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 0 auto;
    max-width: 1200px;
}


.logo{
    color: black;
    font-size: 2rem;
    font-weight: bolder;

}

.logo span{
color: rgb(109,67,0);
text-shadow: 0 0 10px rgb(109,67,0);
}




.nav-container .links{
    display: flex;
    gap: 3rem;
    align-items: center;

}


.nav-container .links a{
    position: relative;
    font-size: 1.2rem;
    color: black;
    text-decoration: none;
    font-weight: 500;
    transform: 0.3s linear;
}

.nav-container .links a::before{
    position: absolute;
    content: "";
    bottom: -3px;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: rgb(109,67,0);
    transition: 0.2s linear;
}


.nav-container .links a:hover::before{
    width: 100%;
}

.nav-container .contact-btn{
    background-color: transparent;
    padding: 5px 20px;
    border-radius: 20px;
    border: 2px solid rgb(109,67,0);
    transition: 0.2s linear;
}


.nav-container .contact-btn a{
    color: white;
    transition: 0.3s linear;

}

.nav-container .contact-btn:hover, .nav-container.contact-btn:hover a{
    background-color: rgb(109,67,0);
    color: white;
}

.nav-container.links a:hover{
    color: rgb(109,67,0);

}




section{
    width: 100%;
    min-height: 60vh;
    padding: 2rem 0;
    margin-top: 80px; 
}

.main-container{
    padding-top: 100px;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.main-container .image{
    z-index: -1;
    width: 50%;
    margin-left: 80px;
}
.main-container .image img{
    width:50%;
  padding-bottom: 2rem;
    border-radius: 50px;
}
.main-container .image img:hover {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 16px 48px rgba(109,67,0,0.28), 0 3px 16px rgba(247,200,115,0.23);
}

.main-container .content{
    color: black;
    width: 40%;
    min-height: 200px;
}

.content h1{
    font-size: clamp(1rem,2rem + 5vw,3rem);
}

.content h1 span{
    color: rgb(109,67,0);
    text-shadow: 0 0 20px rgb(109,67,0);
}

.content .typewriter{
    font-weight: 600;
    font-size: clamp(1rem,1rem + 5vw,2rem);
}

.content .typewriter span{
    color: rgb(109,67,0);
    font-size: 2.5rem;
    text-shadow: 0 0 5px rgb(109,67,0);
    position: relative;
    transition: 0.3s linear;

}

.typewriter span::before{
    content: "Web Developer";
    animation: words 15s infinite;
}

.typewriter span::after{
    content: "";
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid black;
    animation: cursor 0.6s linear infinite;
}

@keyframes cursor {
    to{
    border-left:3px solid #b74b4b
    }
}

@keyframes words {
    0%, 50%{
    content: "Web Developer";
    }
    
    51%, 100%{
    content: "Youtuber";
    }
}
.content p{
    font-size: clamp(0.4rem,0.2rem + 9vw,1rem);
    margin: 10px 0;
}

.social-links i{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    background-color: transparent;
    border: 0.2rem solid rgb(109,67,0);
    border-radius: 50%;
    color: rgb(109,67,0);
    margin: 5px 10px;
    font-size: 1rem;
    transition: 0.2s linear;
}

.social-links i:hover{
    scale: 1.3;
    color: white;
    background-color: rgb(109,67,0);
    filter: drop-shadow(0 0 10px rgb(109,67,0));
}

.btn a {
    display: inline-block;
    padding: 8px 20px;
    width: 10%;
    height: 3vh;
    margin: 50px;
    background-color: rgb(109,67,0);
    color: white;
    border-radius: 10px;
    outline: none;
    font-size: 100%;
    font-weight: 700;
    border: none;
    transition: 0.2s linear;
}

.btn a:hover {
    scale: 1.1;
    color: rgb(109,67,0);
    border: 2px solid rgb(109,67,0);
    background-color: transparent;
    font-weight: 700;
    box-shadow: 0 0 50px rgb(109,67,0);
}
.btn button a{
    color: #fff;
}


@media (max-width: 1200px) {
    
    html, body {
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        box-sizing: border-box;
        margin: 0 !important;
        overflow-x: clip !important;
        overflow-y: auto !important;
        position: relative;
        padding: 0 !important;
        touch-action: pan-y;
    }

    .about-container,
    .project-container,
    .nav-container {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box;
    }
    
  nav .nav-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    background-color: transparent;
  }
  .nav-container span{
    font-size: 1.4rem;
    padding-left: 10px;
    margin-bottom: 30px !important;
  }

  .nav-container .links{
    display: flex;
    gap: 1rem;
    align-items: center;

}


.nav-container .links a{
    position: relative;
    font-size: 0.8rem;
    color: black;
    text-decoration: none;
    font-weight: 400;
    transform: 0.3s linear;
}
.nav-container .links a::before{
    position: absolute;
    content: "";
    bottom: -3px;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: rgb(109,67,0);
    transition: 0.2s linear;
}


.nav-container .links a:hover::before{
    width: 100%;
}



  
  .main-container {
    flex-direction: column;
    align-items: center;
    padding-top: 1rem;
    padding-right: 5rem !important;
  }
  .main-container .image{
    padding-right: 7rem;
  }
  .main-container .content h1{
    padding-right: 3rem;
  }

  .main-container .image img {
    width: 250px;
    height: 200px;
    object-fit: contain;
    border-radius: 400px;
  }
  
  .btn a {
   width : 70px;
    height: 30px;
    padding: 5px 10px 5px 10px;
   margin-bottom: 5rem ;
  }
  .btn a{
    color: #fff;
  }
    .typewriter span::after {
        border-left: none !important;
        animation: none !important;
    }

  .content h1 {
    font-size: 1.5rem;
    text-align: center;
  }

  .content p {
    font-size: 1rem;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}



.about-container h1{
    color: rgb(109,67,0);
  font-size: 2.5rem;
  text-align: center;
}
.about-container p{
    padding-right: 20px;
    text-align: center;

    font-size: 1.4rem;
}

    .about-flex-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}
.about-flex-row .about-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}
.about-flex-row img {
    max-width: 100px;
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(109,67,0,0.07);
}
.about-flex-row h3 {
    margin-top: 0.5rem;
    font-size: 1rem;
    color: #6d4300;
    text-align: center;
}
 @media screen and (max-width: 1200px) {
    .about-container{
        padding: 0.5rem;
    }
    .about-container h1{
        font-size: 1.6rem;
        padding-bottom: 3rem;
    }
    .about-container p{
        font-size: 0.9rem;
        text-align: start;
        margin-left: 40px;
        padding-bottom: 30px;
    }
    .about-flex-row {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
        overflow-x: unset;
        overflow-y: unset;
        scroll-behavior: unset;
        margin: 0 !important;
        padding: 0 !important;
    }
    .about-flex-row .about-flex {
        min-width: 120px;
        flex: 1 1 120px;
    }
    .about-flex-row::-webkit-scrollbar {
        display: none;
    }
    .about-flex-row img{
        width: 50px ;
        height: 50px;
    }
}
/* ...existing code... */

/* Dark Mode Toggle Button */
#dark-mode-toggle {
  position: fixed;
  bottom: 90px;
  right: 30px;
  z-index: 9999;
  background: #fff;
  color: #6d4300;
  border: 2px solid #6d4300;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(109,67,0,0.07);
  transition: background 0.3s, color 0.3s;
}
#dark-mode-toggle:hover {
  background: #6d4300;
  color: #fff;
}

/* Scroll-to-Top Button */
#scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  background: #fff;
  color: #6d4300;
  border: 2px solid #6d4300;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(109,67,0,0.07);
  display: none;
  transition: background 0.3s, color 0.3s;
}
#scroll-to-top:hover {
  background: #6d4300;
  color: #fff;
}

/* Dark Mode Styles */
body.dark-mode {
  background: linear-gradient(to right,#232323,#3a2c0a);
  color: #fff;
}
body.dark-mode nav,
body.dark-mode footer {
  background: linear-gradient(to right,#232323,#3a2c0a);
  color: #fff;
}
body.dark-mode .logo span,
body.dark-mode .project-container h1,
body.dark-mode .side-1 h1,
body.dark-mode .side-2 h3,
body.dark-mode .side-1 h2 a,
body.dark-mode .content h1 span,
body.dark-mode .content .typewriter span,
body.dark-mode .about-flex-row h3 {
  color: #fff;
}
body.dark-mode .social-links a i {
  color: #fff;
}
body.dark-mode .about-container h1{
    color: #f7c873;
}
body.dark-mode .projects-list,
body.dark-mode .about-flex-row img {
  background: #232323;
  color: #fff;
  box-shadow: 0 2px 8px #f7c87333;
}
body.dark-mode .nav-container .links a,
body.dark-mode .nav-container .contact-btn a,
body.dark-mode .btn a {
  color: #fff !important;
}
body.dark-mode .btn a {
  background: rgb(109,67,0);
  border: 2px solid #f7c873;
}
body.dark-mode .btn a:hover {
  background: #f7c873;
  color: #232323 !important;
  border: 2px solid #232323;
}
body.dark-mode #dark-mode-toggle,
body.dark-mode #scroll-to-top {
  background: #232323;
  color: #f7c873;
  border-color: #f7c873;
}
body.dark-mode #dark-mode-toggle:hover,
body.dark-mode #scroll-to-top:hover {
  background: #f7c873;
  color: #232323;
}

.project-container h1{
    padding-top: 90px;
text-align: center;
color: rgb(109,67,0) !important;
font: sans-serif;
font-size: 2.5rem;
}

.list {
    margin: 2rem auto;
    padding-top: 70px;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
    max-width: 1200px;
}
.projects-list {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(109,67,0,0.07);
    padding: 1rem;
    margin-bottom: 0;
    width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.projects-list h2{
    font-size: 1.6rem;
    color: rgb(109,67,0);
}
.projects-list a{
    color: rgb(109,67,0);
    font-size: 1rem;
}
.projects-list p{
   font-size: 1rem;
}

.projects-list img{
    max-width: 100%;
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(109,67,0,0.07);
    background: none;
    margin-bottom: 1rem;
}


.project-list {
  transition: all 0.3s;
}
.more-info-btn {
  margin-bottom: 8px;
  background: #6d4300;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 16px;
  cursor: pointer;
  font-size: 0.7rem;
}
.more-info-btn:hover {
  background: #f7c873;
  color: #232323;
}
 @media screen and (max-width: 1200px) {
    
    .project-container h1{
        font-size: 1.4rem;
        padding-bottom: 20px;
    }
    .list{
        padding-top: 1rem;
    }
 }

footer {
    width: 100%;
    height: 45vh;
    overflow: hidden;
    background: linear-gradient(to right, #f7c873 0%, #fffbe6 100%);
    color: #3a2c0a;
    padding: 2rem 0 7rem 0;
    margin-top: 2rem;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -2px 16px rgba(247,200,115,0.13);
    font-family: 'Poppins', Arial, sans-serif;
}

.side-1, .side-2 {
    flex: 1 1 300px;
    padding: 1rem;
}
.side-1 h1, .side-2 h3 {
    color: rgb(109,67,0);
    margin-bottom: 1rem;
}
.side-1 p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.side-1 h2 a {
    color: black;
    text-decoration: none;
    font-size: 1rem;
}
.side-2 {
    text-align: center;
    margin-right: 50px;

}
.side-2 .social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 60px;
   
}
.side-2 .social-links a {
    color: #3a2c0a;
    font-size: 1.5rem;
    transition: color 0.2s;
}
.side-2 .social-links a:hover {
    color: #f7a600;
}
@media (max-width: 1200px) {
    footer{
        height: 35vh;
    }
    .side-1 h1, .side-2 h3 {
    color: rgb(109,67,0);
}
.side-1 h1{
    font-size: 1.5rem;
}
.side-1 p {
    font-size: 0.8rem;
}
    .side-2 {
        text-align: center;
        justify-content: center;
        margin-top: 1px !important;
    }
    .side-2 .social-links {
        justify-content: center;
        margin-bottom: 150px;
        gap: 0;
        margin-left: 2.5rem;
    }
    .side-2 .social-links a {
        font-size: 0.7rem !important;
        
    }
}
