
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Ubuntu:wght@400;500;700&display=swap');
*{
    margin:0 ;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins',sans-serif;
    text-decoration: none;
    scroll-behavior: smooth;
}

body{
    width: 100%;
    height: auto;
    background-color: black;
    overflow-x: hidden;
}

/* Custom Scroll Bar CSS */
::-webkit-scrollbar{
    width: 10px;
}
::-webkit-scrollbar-track{
    background-color: #f1f1f1;
}
::-webkit-scrollbar-thumb{
    background: #077b32;
    border-radius: 12px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover{
    background: #077b32; 
}
/* navba styling */
nav{
    width: 100%;
    height: 10vh;

}

.nav-container{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.logo{
    color: white;
    font-size: 2rem;
    font-weight: bold;
}

.logo span{
    color: #077b32;
    text-shadow: 0 0 10px #077b32;
}

.hamburg,
.cancel{
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 15px;
    color: white;
    opacity: 0;
    pointer-events: none;
    font-size: clamp(2rem,0.5rem + 3vw,3rem);
}

.nav-container .links {
    display: flex;
}

.nav-container .link a{
    position: relative;
    font-size: 1.5rem;
    color: white;
    margin: 0 20px;
    text-decoration: none;
    font-weight: 550;
    transition: 0.3s linear;
}

.nav-container .links a::before{
    position: absolute;
    content: "";
    bottom: -3px;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: #077b32;
    transition: 0.2s linear;
}

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

.nav-container .links a:hover{
    color: #077b32;
}

.dropdown{
    z-index: 100;
    position: absolute;
    top: 0;
    transform: translateY(-500px);
    width: 100%;
    height: auto;
    backdrop-filter: blur(4px) brightness(40%);
    box-shadow: 0 0 20px black;
    transition: 0.2s linear;
}

.dropdown .links a{
    display: flex;
    color: white;
    text-decoration: none;
    justify-content: center;
    padding: 15px 0;
    align-items: center;
    transition: 0.2s linear;
}

.dropdown .links a:hover{
    background-color: #077b32;
}

section{
    width: 100%;
    min-height: 90vh;
}

section .main-container{

    display: flex;
    justify-content: space-between;
    padding-left: 100px;
    align-items: center;
    padding-top: 50px;
}

.main-container .image{
    width: 450px;
    height: 80vh;
    border-radius: 100%;
    overflow: hidden;
    box-shadow: 0 0 50px 10px #077b32,0 0 50px #077b32 ;
}

.main-container .image img{
    width:100%;
    scale: 1.2;
}

.main-container .image:hover{
    animation: animate 1.5s ease-in-out infinite;
}

@keyframes animate {
    0%{
        scale: 1;
    }

    50%{
        scale: 1.05;
    }

    100%{
        scale: 1;
    }
}

.main-container .content{
    color: white;
    width: 40%;
}

.content h1{
    font-size: clamp(1rem,1rem +5vw,1.8rem);
    line-height: 1.2rem;

}

.content h1 span{
    color: #077b32;
    text-shadow: 0 0 10px #077b32;
}

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

.content .typewriter-text{
    color: #077b32;
    text-shadow: 0 0 10px #077b32;
}

.content p{
    font-size: clamp(0.4rem,0.2rem + 9vw,1rem);
    margin:10px 0;
    color: white;

}

.social-links i{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    background-color: transparent;
    border: 0.2rem solid #077b32;
    border-radius: 50%;
    color: #077b32;
    margin: 5px 15px;
    font-size: 1.5rem;
    transition: 0.2s linear;
}

.social-links i:hover{
    scale: 1.3;
    color: white;
    background-color: #077b32;
    filter: drop-shadow(0 0 10px #077b32);
}

.content button{
    width: 50%;
    height: 8vh;
    font-size: 100%;
    margin: 30px 0;
    background-color: #077b32;
    color: white;
    border: none;
    outline: none;
    font-weight: 700;
    border-radius: 5px;
    transition: 0.2 linear;
}

.content button:hover{
    scale: 1.1;
    color: #077b32;
    border: 2px solid #077b32;
    background-color: transparent;
    font-weight: 700;
    box-shadow: 0 0 40px #077b32;
}

section .content {
    width: 80%;
    margin: 0px auto;
    font-family: 'Poppins', sans-serif;
}

.about .about-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

section .title {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

section .title span {
    color: white;
    font-size: 30px;
    font-weight: 600;
    position: relative;
    padding-bottom: 8px;
}

section .title span::before,
section .title span::after {
    content: '';
    position: absolute;
    height: 3px;
    width: 100%;
    background: #b74b4b;
    left: 0;
    bottom: 0;
}

section .title span::after {
    bottom: -7px;
    width: 70%;
    left: 50%;
    transform: translateX(-50%);
}

.about .about-details .left {
    width: 45%;
}

.about .left img {
    height: 400px;
    width: 400px;
    object-fit: cover;
    border-radius: 5px 50%;
    position: relative;
    box-shadow: 0 0 20px 5px #077b32, 0 0 40px 10px #077b32;
}

.about-details .right {
    width: 55%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* vertically center content */
    align-items: center; /* horizontally center content */
    text-align: center; /* center text within each element */
    gap: 15px; /* spacing between elements */
}

.right p span {
    color: #077b32;
}

.about-details .right .exp-area {
    display: flex;
    flex-direction: column;
    align-items: center; /* center each line horizontally */
    color: white;
    gap: 8px; /* space between each line */
}

.exp-area .exp {
    font-size: 1.2rem;
}

section .topic {
    color: white;
    font-size: 25px;
    font-weight: 500;
    margin-bottom: 10px;
}

.about-details .right p {
    text-align: justify;
    color: white;
}

section .button {
    margin: 1px 0;
    display: flex;
    justify-content: center; /* center the buttons */
    gap: 20px;
    width: 100%;
}

section .button button {
    outline: none;
    width: fit-content;
    border-radius: 4px;
    padding: 1px 20px;
    font-size: 100%;
    font-weight: 400;
    background: #077b32;
    color: white;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.4s ease;
}

section .button button:hover {
    border-color: #077b32;
    background-color: #fff;
    color: #077b32;
}

.resume-btn {
    padding: 10px 20px;
    background-color: #077b32;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.resume-btn:hover {
    background-color: white;
    color: #077b32;
    border: 2px solid #077b32;
    box-shadow: 0 0 10px #077b32;
}


.skills{
    background: black;
}
.skills .content{
    padding: 40px 0;
}
.skills .skills-details{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.skills-details .text{
    width: 50%;
}
.skills-details p{
    color: white;
    text-align: justify;
}
.skills .skills-details .experience{
    display: flex;
    align-items: center;
    margin: 0 10px;
}
.skills-details .experience .num{
    color: white;
    font-size: 80px;
}
.skills-details .experience .exp{
    color: white;
    margin-left: 20px;
    font-size: 18px ;
    font-weight: 500;
    margin: 0 6px;
}
.skills-details .boxes{
    width: 45%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.skills-details .box.skill-logo {
    width: calc(100% / 2 - 20px);
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.skill-logo {
    text-align: center;
}

.skill-logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px #077b32);
    transition: transform 0.3s ease;
}

.skill-logo p {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.skill-logo img:hover {
    transform: scale(1.1);
}


.projects .boxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);  /* Two equal columns */
    gap: 20px; /* Space between boxes */
}

.projects .boxes .box {
    /* Remove width because grid defines the size */
    margin: 0; /* Reset margin since gap handles spacing */
    text-align: center;
    border-radius: 12px;
    padding: 30px 10px;
    box-shadow: 0 0px 10px 2px white;
    cursor: default;
    color: white;
    border: 1px solid white;
    transition: all 0.4s ease;
}

.projects .boxes .box:hover {
    background: #077b32;
    border: 1px solid;
    box-shadow: 0 0 30px 10px #077b32;
    color: #fff;
}

.projects .boxes .box .icon {
    height: 50px;
    width: 50px;
    background: #077b32;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 18px;
    color: #fff;
    margin: 0 auto 10px auto;
    transition: all 0.4s ease;
}

.boxes .box:hover .icon {
    background-color: #fff;
    color: #077b32;
}

.projects .boxes .box:hover .topic,
.projects .boxes .box:hover p {
    color: white;
    transition: all 0.4s ease;
}
 
/* Contact Me Css */
.contact{
    background:black;
}
.contact .content{
    margin: 0 auto;
    padding: 30px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.contact .text{
    width: 80%;
    text-align: center;
    margin: auto;
}


.contact-form-container{
    width: 100%;
    max-width: 500px;
    padding: 20px;
}

.contact-form{
    background-color: transparent;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0,1);
    border-radius: 8px;
}

.contact-form h2{
    margin-bottom: 15px;
    font-size: 2rem;
    text-align: center;
    color: #077b32;
}

.contact-form label{
    display: block;
    color: #077b32;
    margin-bottom: 8px;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea{
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.contact-form .input:focus,
.contact-form .textarea:focus{
    border-color: #3498db;
    outline: none;
}

.contact-btn{
    width: 100%;
    padding: 12px;
    background-color: #3498db;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    transition: backgroumd-color 0.3s ease;
}

.contact-btn:hover{
    background-color: #2980b9;
}


/* Responsive Desing */


@media(max-width:480px){
    .contact-form h2{
        padding:10px;
    }
}

@media(max-width:480px){
    .contact-form h2{
        font-size: 20px;
    }

    .contact-form{
        padding: 0px;
    }

    .contact-btn{
        font-size: 16px;
    }
}

footer{
    background: #077b32;
    padding: 15px 0;
    text-align: center;
    font-family: 'Poppins',sans-serif;
}
footer .text span{
    font-size: 17px;
    font-weight: 400;
    color: #fff;    
}
footer .text span a {
    font-weight: 500;
    color: #fff;
}
footer .text span a:hoverl {
    text-decoration: underline;
}
.scroll-button a{
    position: fixed; 
    bottom: 20px;
    right: 20px;
    color:#fff;
    background:#077b32;
    padding: 7px 12px;
    font-size: 18px; 
    border-radius: 6px;
    box-shadow: rgba(0, 0, 0, 0.15);
    display:none;
}


@media (max-height: 1000px){
.about .about-details{
    justify-content: center;
    flex-direction: column;
}
.about .about-details.left{
    display: flex;
    justify-content: center;
    width: 100%;
}
.about-details .right{
    width: 90%;
    margin: 40px 0;  
}
.projects .boxes .box{
    margin: 20px 0;
    width: calc(100%/2-20px);
}
}

@media (max-width: 900px) { 
    .about .left img{ 
    height: 350px;
    width: 350px;
}
}

@media (max-width: 968px) {

    nav .logo{
    position: absolute;
    top:16px;
    left: 15px;
    font-size: 1.5rem;
}

section .main-container{
    padding-left: 0px;
    display: flex;
    flex-direction: column;
}

.nav-container .links{
    display: none;
}

.hamburg,
.cancel{
    opacity: 1;
    pointer-events: visible;
}

.main-container .contact{
    margin-top: 20px;
    width: 80%;
}

.social-links i{
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
}

.main-container .image{
    z-index: -1;
    width: 50%;
    height: 60%;
}

.skills .skills-details {
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.skills-details .text{
    width: 100%;
    margin-bottom: 50px;
}
.skills-details .boxes{
    justify-content: center;
    align-items: center;
    width: 100%;
}
.projects .boxes .box{
    margin: 20px 0;
    width: 100%;
}
.contact .text{
    width: 100%;
}
}

@media(max-width:500px){
    .main-container .image{
        width: 50%;
        height: 60%;
        margin-bottom: 0px;
    }

    .main-container .content{
        width: 80%;
    }

    .main-container .button{
        margin-top: 15px;
    }
    
    .skills-details .boxes .per{
        font-size: 50px;
        color: #077b32;
    }
    .about-img img{
        text-align: center;
        width: 100%;
        height: 300px;
        border-radius: 50%;
        object-fit: cover;
        margin: 0 auto;
    }
}
@media (max-width: 500px) {
  .logo {
    font-size: 1.3rem;
  }

  .content .typewriter {
    font-size: 1.5rem;
  }

  .content p {
    font-size: 1.2rem;
    line-height: 1.5;
  }

  .skills-details .boxes .topic {
    font-size: 1.5rem;
  }

  .skills-details .boxes .per {
    font-size: 1.5rem;
  }
}
@media (max-width: 968px) {
  nav .logo {
    position: relative; /* changed from absolute */
    top: 0;
    left: 15px;
    font-size: 1.5rem;
    z-index: 101; /* keep it on top */
  }

  .dropdown {
    width: 100%;
    box-sizing: border-box;
    padding-top: 60px; /* so dropdown menu does not overlap logo */
  }

  .nav-container .links {
    display: none; /* keep desktop nav hidden */
  }

  .hamburg, .cancel {
    opacity: 1;
    pointer-events: auto;
    right: 15px;
    top: 15px;
    position: absolute;
    font-size: clamp(2rem, 0.5rem + 3vw, 3rem);
    z-index: 102;
  }
}
.nav-container {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping */
  justify-content: space-around;
  align-items: center;
}

@media (max-width: 768px) {
  .nav-container .links {
    display: none; /* Hide links by default */
    flex-direction: column; /* Vertical stack */
    width: 100%;
    align-items: center;
  }
  /* Hamburger menu active styles handled separately */
}
@media (max-width: 768px) {
  .about .about-details {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .about .left img {
    margin: 0 auto;
  }
}
.project-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.project-link:hover .box {
  background: #077b32;
  color: white;
  box-shadow: 0 0 30px 10px #077b32;
  border-color: #077b32;
}

.project-link:hover .box .icon {
  background-color: #fff;
  color: #077b32;
}
@media (max-width: 768px) {
  .projects .boxes {
    grid-template-columns: 1fr; /* Single column on small screens */
  }
}

