*{
    cursor: url('./assets/mouse.png'), auto;
    -webkit-tap-highlight-color: transparent;
}
:root {
    --header-bg-color: #1E1E1E;
    --header-text-color: #EAEAEA;
    --profile-border-color: #ae2dff;
    --accent-color: #00b50f;
    --main-text-color: #EAEAEA;
    --section-bg-color: #333333;
    --para-bg-color: #333333;
    --btn-text-color: black;
    --para-text-color:rgba(255, 255, 255, 0.1);
    --para-grad-color:linear-gradient(90deg, #00b50f, #00b50f);
    --proj-box-shadow: 0 0px 30px rgb(0, 255, 94);
    --proj-border:rgb(88, 88, 88);
    --google-map: invert(100%);
}

body.light-theme {
    --header-bg-color: #d7d7d7;
    --header-text-color: #252623;
    --profile-border-color: #ae2dff;
    --accent-color: #00720a;
    --main-text-color: #252623;
    --section-bg-color: #ffffff;
    --para-bg-color: #ffffff;
    --btn-text-color: white;
    --para-text-color:rgba(0, 0, 0, 0.1);
    --para-grad-color:linear-gradient(90deg, #00720a, #00720a);
    --proj-box-shadow:0 0px 30px rgb(0, 174, 73);
    --proj-border:rgb(218, 218, 218);
    --google-map: invert(0%);
}

body {
    margin: 0;
    background-color: var(--section-bg-color);
    color: var(--main-text-color);
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

html, body {
    scroll-behavior: smooth;
    cursor: url('./assets/mouse.png'), auto;
}
/* Ensure proper display behavior */
#sun {
    height: 45px;
    border-radius: 50px;
    border: 1px solid var(--accent-color);
    cursor: url('./assets/pointer.png'), auto !important;
}

#moon {
    height: 45px;
    border-radius: 50px;
    border: 1px solid var(--accent-color);
    cursor: url('./assets/pointer.png'), auto !important;
}
.light{
    display: none;
}
.dark{
    display: block;
}
/* Header styles */
header {
    border-bottom: 0.1px solid darkgray;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    z-index: 2;
    width: 100%;
    background-color: var(--header-bg-color);
    color: var(--header-text-color);
}

.left {
    height: 45px;
    display: flex;
    margin-left: 30px;
    align-items: center;
    gap: 20px;
}

.profile-toggle { 
    height: 45px;
    
}

.profile-main{
    height: 45px;
    border-radius: 50px;
    border: 1px solid var(--accent-color);
    
}

.proj-names{
    margin: 0;
    padding: 5px 2px;
    text-align: center;
    border-radius: 5px;
}

.right {
    display: flex;
    gap: 40px;
    margin-right: 30px;
}
  .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links > a{
    text-decoration: none;
  }
  
  h3 {
    font-size: 15px;
    color: var(--header-text-color);
    position: relative;
    padding-bottom: 2px;
    transition: color 0.3s ease;
  }
  
  h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: transparent;
  }
  
  h3:hover::after {
    background-color: var(--accent-color);
  }
  
  h3:hover {
    color: var(--accent-color);
    cursor: url('./assets/pointer.png'), auto !important;
  }
  
  /* Hamburger Menu */
  .hamburger {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    cursor: url('./assets/pointer.png'), auto !important;
    color: var(--header-text-color);
    width: 50px;
  }
  
  .hamburger svg {
    width: 30px;
    height: 30px;
  }
main {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50rem;
    text-align: center;
    color: var(--main-text-color);
}

.intro {
    position: relative;
    top: -5rem;
    width: 60%;
    height: 10rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 4rem ;
}
.intro > p{
    font-size: 1.3rem;
    height: 3rem;
}



h1 {
    color: var(--main-text-color);
    font-size: 4rem;
    text-align: center;
}

.btn {
    background-color: var(--accent-color);
    height: 40px;
    width: 150px;
    font-size: 1.5rem;
    border-radius: 5px;
    transition: transform 0.3s ease;
    border: 1px solid white;
    cursor: url('./assets/mouse.png'), auto !important;
}

.btn > a{
    text-decoration: none;
    color: var(--btn-text-color);
}

.btn:hover {
    transform: scale(0.95);
}


@keyframes appear {
    from {
        opacity: 0;
        scale: 0.5;
    }
    to {
        opacity: 1;
        scale: 1;
    }
}

.scroll {
    animation: appear linear;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
}

#about {
    padding-top: 50px;
    height: 48rem;
}

.about-main {
    position: relative;
    top: 50px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    height: 100%;
}

.sizee {
    height: 30rem;
    width: 40%;
    background-color: var(--header-bg-color);
    color: var(--main-text-color);
    border-radius: 10px;
}

.main-left > h2 {
    text-align: center;
    font-size: 2rem;
}
.para-bg {
    background-color: var(--para-bg-color);
    margin: 20px;
    padding: 20px;
    border-radius: 10px;
    /* transition: background-color 0.3s ease, color 0.3s ease; */
}

.para-bg span {
    color: var(--para-text-color);
    background-clip: text;
    background-repeat: no-repeat;
    background-size: 0% 100%;
    background-image: var(--para-grad-color);
    animation: scroll-reveal linear;
    animation-timeline: view();
    animation-fill-mode: forwards; /* Ensure the animation stays at the last keyframe */
}

.para-bg p span {
    font-size: 1.3rem;
    padding-top: 0px;
    margin-top: 0px;
    animation-range-start: cover 0vh;
    animation-range-end: cover 60vh;
}

@keyframes scroll-reveal {
    to {
        background-size: 100% 100%;
    }
}

.main-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.boxes > p{
    margin-left: 20px;
    
}

.main-right > .skill-heading{
    padding-top: 20px;

}

.skill-heading {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    text-align: center;
}



.bar-box{
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.boxes {
    margin-right: 20px;
    padding-right:10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.5rem;
    height: 3.5rem;
    background-color: var(--para-bg-color);
    color: var(--accent-color);
    border-radius: 5px;
}

.b1 { width: 90%; }
.b2 { width: 75%; }
.b3 { width: 60%; }
.b4 { width: 70%; }
.b5 { width: 80%; }
.b6 { width: 70%; }

@keyframes slidee {
    from {
        clip-path: inset(0 100% 0 0);
    }
    to {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

.boxes{
    animation: slidee linear;
    animation-timeline: view();
    animation-timing-function: ease-in;
    animation-range: entry 0% cover 25vh;
}



#project{
    padding-top: 50px;
    height: 55rem;
}

.rectangle{
    display: flex;
    justify-content: center;
    width: 90%;
    margin-left: 5%;

}

.project-box {
    display: flex;
    justify-content: space-around;
    flex-direction: row-reverse;
    height: 35rem;
    padding: 10px;
    width: 100%;
    border-radius: 20px;
    background: var(--header-bg-color);
    transition: box-shadow 0.9s ease;
}

.project-box:hover {
    box-shadow: var(--proj-box-shadow); /* No initial delay on hover */
}

.proj-bg{
    background-color: var(--accent-color);
    border-radius: 5px;
    transition: transform 0.3s ease;
    border: 1px solid white;
    color: rgb(255, 255, 255);
}
.proj-bg:hover{
    color: rgb(255, 255, 255) !important;
}

button > a{
    color: white !important;
}

.number-of-proj{
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 15%;
}


.number-of-proj p:hover {
    cursor: url('./assets/pointer.png'), auto !important;
    color: #00b50f;
}


.number-of-proj > p{
    font-size: 1.5rem;

}

.project-file{
    scroll-behavior: smooth;
    width: 80%;
    height: 96%;
    display: flex;
    justify-content : space-around;
    align-items: center;
    flex-wrap: wrap;
    overflow-x: hidden;
    overflow-y: auto;
    text-align: justify;
    gap: 15px;
}

.proj{
    text-align: center;
    position: relative;
    top: 2rem;
    background-color: var(--para-bg-color);
    height: 27rem;
    width: 300px;
    border-radius: 20px;
    margin-bottom: 5%;
    transition: transform 0.2s ease;

}
hr{
    display: none;
}
.proj-data{
    padding:10px 10px 10px 10px;
}

.proj:hover {
    transform: scale(1.05);
    box-shadow: 0 0px 4px rgb(91, 255, 9);
}

.marg{
    margin-right: 30px;
}

.btn-proj{
    width: 100px !important;
}

.b-w{
    color: #a7a7a7 !important;
    background-color: #464646;
    border: none;
}

.b-w:hover{
    transform: none;
}

.proj-data > img{
    width: 100%;
    aspect-ratio: 7/4;
    border: 1px solid var(--proj-border);
}

.proj-data > button{
    width: 30%;
    height: 2rem;
    color: white;
}

.proj-data > h2{
    margin: 10px;
}

.proj-data > p{
    height: 7.5rem !important;
}

svg{
    color: green;
}

#contact{
    height: 55rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-box{
    background: var(--header-bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2rem;
    width: 65%;
    height: 40rem;
    border-radius: 30px;
    transition: box-shadow 3s ease;
}

.contact-box:hover {
    border: none;
    box-shadow: var(--proj-box-shadow);
     /* No initial delay on hover */
}

.contact-name{
    width: 90%;
    
}

#msgg{
    height: 10rem;
    width: 99%;
    border-radius: 5px;
}

.descr{
    width: 99%;
    height: 3rem;
    font-size: 1.5rem;
    color: var(--accent-color);
    border-radius: 5px;
    border:none;
}

.sub-btn{
    color: white;
}


footer{
    height: 26rem;
    background-color: var(--header-bg-color);
    display: flex;
    flex-direction: column;
    text-align: center;
    border-top: 1px solid green;
}
.social-display{
    height: 25rem;
    display: flex;
    justify-content: space-around;
}

.map{
    height: 100%;
    width: 40%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

iframe{
    filter: var(--google-map);
    height: 90%;
    width: 100%;
    border: 1px solid var(--accent-color);

 }

.right-footer{
    width: 40%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-right: 5%;
}

.social-box{
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.social-box > a{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--main-text-color);
    width: 40%;
}

.scale-hover:hover{
    transform: scale(1.10);
}

hr{
    width: 100%;
}


.social-links{
    font-size: 30px;
}






/* Medium screens (tablets) */
@media (max-width: 1124px) {
    .sizee{
        width: 44%;
        height: 35rem;
        margin: 0;
    }
    .boxes{
        margin-bottom: 10px;
    }

}

/* Small screens (phones) */
@media(max-width: 768px) {
    dotlottie-player{
        display: none !important;
    }
    hr{
        display: block;
        margin: 0;
        border:1px solid green;
    }

    .hidee{
        display: none;
    }
    #main{
        height: 35rem;
    }

    .intro{
        position: relative;
        top: 7rem;
        width: 85%;
        height: 30rem;
        justify-content:flex-start;
        gap: 10px !important;
    }
    .intro > h1{
        font-size: 2.5rem;
        margin: 0;
    }

    .intro > p{
        height: 10rem;
        font-size: 1.2rem;
        font-weight: 100;
        color:#23b12f;
    }

    h1{
        font-size: 3rem;
    }
    .sizee{
        width: 90%;
        height: 35rem;
        margin: 0;
    }

    .right {
        display: none; /* Hidden by default */
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 20px;
        background: var(--header-bg-color);
        padding: 10px;
        border-radius: 5px;
        gap: 10px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
      }
    
      .nav-links.active {
        display: flex; /* Show when active */
      }
      h3::after {
        display: none;
      }
      .hamburger {
        display: block; /* Show hamburger button on smaller screens */
      }

    .main-left{
        height: 38.5rem;
    }

    .para-bg > p{
        font-size: 1rem;
    }
    .boxes{
        margin-bottom: 10px;
    }
    #about{
        height: 90rem;
    }

    .about-main{
        top: 2rem;
        justify-content: space-evenly;
        align-content: start;
        gap: 10vh;

    }

    #project{
        height: 45rem;
    }
    
    .project-box{
        height: 38rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
    }
    .number-of-proj{
        flex-direction: row;
        width: 80%;
        padding-bottom: 0;
        margin: 0;
        height: 6rem;
        flex-wrap: wrap;
        padding: 1rem;
        padding-bottom: 0;
        gap: 10px;
        
    }
    .number-of-proj > p{
        font-size: 1.2rem;
        margin: 0;
        padding: 0;
    
    }
    .project-file{
        padding-left: 0;
        overflow-y: auto;
        width: 100%;
        height: 100%;

        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
    }

    .proj-names{
        min-width: 100px;
    }

    #footer{
        height: 10rem;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .social-display{
        display: flex;
        margin: 0;
        padding: 0;
        
    }

    .right-footer{
        width: 100%;
        flex-direction: row;
        padding-right: 0;
        justify-content:center;
        gap: 0;  
    }

    .social-box{
        width: 48%;
        justify-content: center;

    }

    .social-box > a {
        display: flex;
        justify-content: center;
    }
/* 
    .number-of-proj{
        height: 4rem;
    } */

    .proj{
        top: 0.7rem;
        width: 300px;
        height: 100%;
        gap: 0rem;
        margin-top: 0;
    }

    .contact-box{
        width: 90%;
        height: 36rem;
        gap: 1rem;
    }

    .contact-name{
        margin-top: 1%;
    }

    .right-footer{
        height: 10vh;
    }
    .proj{
        height: 25rem;
    }

    .proj-data > button{
        width: 70px !important;
        font-size: 1rem; 
    }
    
    .proj-data > p{
        height: 6.5rem !important;
        font-size: 15px;
    }


}

@media (max-width: 530px) {
    .proj{
        height: 25rem;
    }

    .proj-data > button{
        width: 70px !important;
        font-size: 1rem; 
    }
    
    .proj-data > p{
        height: 6.5rem !important;
        font-size: 15px;
    }
    
    .project-file{
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
    }
    .number-of-proj{
        height: 6rem;
        flex-wrap: wrap;
        padding: 1rem;
        padding-bottom: 0;
        gap: 10px;
    }
}
