/*---------------------------------------- Body ------------------------------------------*/ 
* {
    margin: 1px;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

html{
    font-size: 100%;
    overflow-x: hidden;
}

body {
   
     background: rgb(0, 0, 0); 
    color: #fff;

}  



 /* -----------------------------------------Header Contents -------------------------------------------- */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 3%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
}



 /* ------------------------------------------Logo in upper-left corner  ----------------------------------------------------*/

.logo {
    font-size: 2rem;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease;
}
.logo:hover{
    transform: scale(1.1);
}
.logo span{
    text-shadow: 0 0 25px aqua;
}
    

/*-------------------------------------- Navbar Like  Home, About ,Skils, projects, Contact----------------------------------- */

.navbar a{
    margin-left:0.5rem;
    font-size: 1.2rem;
    color: rgb(255, 255, 255);
    font-weight: 800;
    transition: 0.3 ease;
    border-bottom: 2px solid transparent;
   

}
.navbar a:hover,
.navbar a.active {
    color: aqua;
    border-bottom: 2px solid aqua ;
    
}



/*--------------------------------------- menu Icon ------------------------------------------ */
#menu-icon{
    font-size: 2.6rem;
    color:rgb(0, 0, 0)

}

section{
    padding: 1rem 10% 2rem;

}



/*---------------------------Home-Page---------------------Greeting and Profession---------------------------  */

.home {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 70px 10% 0;

}

.home-content {
    max-width: 600px;
}


.home-content h3 {
    font-size: 28px;
    font-weight: 700;
    opacity: 0;
    animation: slideBottom 1s ease forwards;
    animation-delay: .7s;

}

.home-content h3:nth-of-type(2) {
    margin-bottom: 30px;
    opacity: 0;
    animation: slideTop 1s ease forwards;
    animation-delay: .7s;

}

.home-content h3 span {
    color: #0ef;
}

/* My Name  "Shashikant Sharma " */

.home-content h1 {
    font-size: 50px;
    font-weight: 700px;

    opacity: 0;
    animation: slideRight 1s ease forwards;
    animation-delay: 1s;

}
/* Paragraph about me on Home page  */

.home-content p {
    font-size: 13px;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: 1s;
}

/* My Image on Home Page  */
.home-img img {
    width:350px;
    box-shadow: 0 0 100px rgb(0, 255, 200);
    border:2px ;
    background: linear-gradient(to right, red, blue, purple, red);
    border-radius: 50%;
    margin-right: -19px;
    opacity: 0;
    animation: zoomIn 1s ease forwards, floatImage 4s ease-in-out infinite;
    animation-delay: 0s, 1s;

}



/*-------------------------------------------------- Social Media Icons ----------------------------------------------------- */

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid #0ef;
    border-radius: 50%;
    font-size: 20px;
    color: #0ef;
    text-decoration: none;
    margin: 30px 15px 30px 0;
    transition: 1s ease;
    opacity: 0;
    animation: slideBottom 1s ease forwards;
    animation-delay: .7s;

}

.social-media a:hover {
    background: #0ef;
    color: #1f242d;
    box-shadow: 0 0 20px #0ef;

}

.btn {
    position: relative;
    background-color: rgba(255, 255, 255, 0.9);
    color: black;
    box-shadow: 0 0 0px #0ef;
    padding: 10px 20px;
    font-size: 10px;
    font-weight: bold;
    border-radius: 50px;
    margin-right: 20px;
    cursor: pointer;
    outline: none;
    z-index: 1; 
    opacity: 1; 
    
}
.resume a{
    position: relative;
    background-color: rgba(234, 255, 0, 0.9);
    color: black;
    box-shadow: 0 0 30px #0ef;
    padding: 10px 20px;
    font-size: 20px;
    font-weight: bold;
    border-radius: 50px;
    margin-right: 20px;
    cursor: pointer;
    outline: none;
    z-index: 1; 
    opacity: 1; 
}



 /*----------------------------------------------- About Section----------------------------------------------- */

.about {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    padding: 4rem 2rem;
    background: #000000;
    color: #fff;
}

.about-img img {
    width:350px;
    box-shadow: 0 0 50px rgb(0, 255, 55);
    border:7px ;
    border-radius: 50%;

}

.about-img img:hover {
    transform: scale(1.05);
}

.about-content {
    max-width: 600px;
}

.about-content .heading {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-content h3 {
    font-size: 1.8rem;
    color: #00bfff;
    margin-bottom: 1rem;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: #ccc;
}

.about-content .btn {
    padding: 0.8rem 1.6rem;
    font-size: 1rem;
    background: #007acc;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
}

.about-content .btn:hover {
    background: #00bfff;
    transform: translateY(-3px);
}




/* ------------------------------------------Skills Section-------------------------------------------  */

.skills {
    padding: 1px 3%;
    background: #000000;
    text-align: center;
}

.skills .heading {
    font-size: 2.8rem;
    margin-bottom: 40px;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.skills-box {
    background: #000000;
  
    border-radius: 25px;
    box-shadow: 5px 5px 15px rgba(255, 0, 0, 0.1);
    transition: 0.3s ease;
}


.skills-box i {
    font-size: 4rem;
    color: #007acc;
    margin-bottom: 10px;
}

.skills-box h3 {
    font-size: 1.3rem;
    margin: 10px 0;
}

.skills-box .btn {
    display: inline-block;
    padding: 8px 20px;
    margin-top: 10px;
    background: #007acc;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s;
}

.skills-box .btn:hover {
    background: #005fa3;
}




/*--------------------------------------------Project_Section ----------------------------------------------------- */

.projects {
    background: #000000;
    padding: 4rem 0; /* Added padding for better spacing */
}

.projects h2 {
    margin-bottom: 4rem;
    text-align: center; /* Centered the heading */
    color: #ffffff; /* Changed text color for better contrast */
    font-size: 2.5rem; /* Increased font size */
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    align-items: center;
    gap: 2rem;
    padding: 0 2rem; /* Added padding for better spacing */
}

.projects-container .projects-box {
    position: relative;
    border-radius:2rem; /* Adjusted border radius */
    box-shadow: 0 0 20px rgba(0, 251, 88, 0.5); /* Softer shadow */
    display: flex;
    flex-direction: row; /* Ensure content stacks vertically */
    transition: transform 0.3s ease; /* Smooth scaling effect */
    padding: 1rem; /* Added padding for content */
    background: #000000; /* Background color for the card */
}

.projects-box:hover {
    transform: scale(1.05); /* Slightly scale up on hover */
}

.projects-box::before,
.projects-box::after {
    content: '';
    position: absolute;
    border: 4px solid transparent; /* Transparent border */
    border-radius: 1rem; /* Match the card's border radius */
    pointer-events: none; /* Prevent interaction */
}
.projects-box::before {
    top: -3px; /* Position above */
    left: -3px; /* Position to the left */
    right: -3px; /* Position to the right */
    bottom: -3px; /* Position below */
    border-color: rgba(0, 238, 255, 0.7); /* Color for the half border */
    z-index: -1; /* Send behind the card */
}
.projects-box::after {
    top: 0; /* Position at the top */
    left: 0; /* Position at the left */
    right: 0; /* Position at the right */
    bottom: 0; /* Position at the bottom */
    border-color: rgba(0, 238, 255, 0.3); /* Lighter color for the inner border */
}
.projects-box img {
    width: 100%;
    height: 130px; /* Maintain aspect ratio */
    opacity: 60%;
    transition: transform 0.5s ease; /* Smooth transition for image scaling */
}
.projects-box:hover img {
    transform: scale(1.1);
}

.projects-box .projects-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 1rem; 
   
}
.projects-box:hover .projects-layer {
    opacity: 1; 
}
.projects-layer h4 {
    font-size: 1.5rem; 
    color: #ffffff; 
    margin-bottom: 0.5rem; 
}
.projects-layer p {
    font-size: 1rem;
    margin: 0.3rem 0 1rem;
    color: #ffffff; 
}
.projects-layer a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 6.5rem; 
    height: 6.5rem; 
    background: rgb(123, 255, 0);
    border-radius: 30%;
    transition: background 0.3s ease; 

}



/* ------------------------------------------------Certificate Section-----------------------------------------------  */

.certificate {
    padding: 4rem 2rem;
    background-color: #000000;
}

.heading {
    text-align: center;
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 3rem;
}

.heading span {
    color: #007acc;
}

.certificate-box {
    background-color: #1a1a1a;
    color: #ffffff;
    border-radius: 20px;
    padding: 2rem;
    margin: 1rem;
    border-radius:2rem; 
    box-shadow: 0 0 40px rgba(0, 251, 88, 0.5); 
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certificate-box:hover {
    transform: scale(1.03);
    box-shadow: 0 0 25px rgba(0, 122, 204, 0.5);
}

.certificate-box i.bx {
    font-size: 5rem;
    color: #007acc;
    margin-bottom: 1rem;
}

.certificate-box h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.certificate-box a i.bx-link-external {
    font-size: 2.8rem;
    color: #007acc;
    transition: color 0.3s ease, transform 0.3s ease;
}

.certificate-box a i.bx-link-external:hover {
    color: #00bfff;
    transform: scale(1.2);
}


.certificate-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 0 1rem;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 50%;
}




/* ---------------------------------------------Contact Section----------------------------------------------- */
/* ---------------------------------------------Contact Section----------------------------------------------- */

.contact h2 {
    margin-bottom: 3rem;
    text-align: center;
    font-size: 2.8rem;
    color: #0ef;
    position: relative;
}

.contact form {
    max-width: 800px;
    margin: 0 auto;
   
    background: rgba(0, 0, 0, 0.03);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 238, 255, 0.1);
}

.contact form .input-box {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: space-between;
}

.contact form .input-box input,
.contact form textarea {
    width: 100%;
    padding: 1.2rem 1.5rem;
    font-size: 1.4rem;
    color: rgb(255, 255, 255);
    background: var(--second-bg-color);
    border: 2px solid rgba(0, 238, 255, 0.3);
    border-radius: 45px;
    outline: none;
    transition: all 0.3s ease;
}

.contact form .input-box input {
    width: 48%;
}

.contact form .input-box input:focus,
.contact form textarea:focus {
    box-shadow: 0 0 10px rgba(0, 238, 255, 0.4);
    border-color: #0ef;
}

.contact form textarea {
    resize: none;
    height: 100px;
    margin-top: 1rem;
}

.send-btn {
   margin-left: 33rem;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    background-color: white;
    color: black;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: 0.3s ease;
    
}

.send-btn:hover {
    
    color: rgb(0, 255, 170);
    box-shadow: 0 0 10x #ff0000, 0 0 15px #00ff0d;
}

.social-media {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.social-media a {
    display: inline-flex;
    justify-content:center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid #0ef;
    border-radius: 50%;
    font-size: 20px;
    color: rgb(15, 219, 233);
    text-decoration:dashed;
    margin: 30px 15px 30px 0;
    transition: 1s ease;
    opacity: 0;
    animation: slideBottom 1s ease forwards;
    animation-delay: .7s;

}

.social-media a:hover {
    background: rgb(0, 255, 26);
    color: #1f242d;
    box-shadow: 0 0 20px #0ef;

}

/* ---------------------------------------Footer Section----------------------------------------------- */

.footer{
    display: flex;
    justify-content: space-between;
    align-items:center;
    flex-wrap: wrap;
    padding: 1px 5%;
    border-radius: 2rem;
    background: #141e20

}
.footer-text p{
    font-size: 1rem;


}.footer-iconTop a{
     display: inline-flex;
     justify-content: center;
     align-items:center;
     padding:.8rem;
     background: #0ef;
     border-radius: .8rem;
     transition: .5s ease;
}.footer-iconTop a i{
    font-size: 2.4rem;
    color:rgb(0, 0, 0)
}




/* ----------------------------------KEYFRAMES ANIMATION----------------------------------------------------*/

@keyframes slideRight {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideLeft {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideTop {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideBottom {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes zoomIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes floatImage {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-24px);
    }

    100% {
        transform: translateY(0);
    }

}



/*------------------------------ Breakpoints ---------------------RESPONSIVE-------------------------------------------*/

@media(max-width: 1200px) {
    html {
        font-size: 55%;
    }
    .header {
        padding: 2rem 3%;
    }
    section {
        padding: 10rem 3% 2rem;
    }
    .skills, .projects {
        padding-bottom: 7rem;
    }
    .contact {
        min-height: auto;
    }
    .about {
        flex-direction: column;
        text-align: center;
    }
}


/* Responsive */
@media (max-width: 768px) {
    

    .contact form .input-box {
        flex-direction: column;
    }

    .contact form .input-box input {
        width: 100%;
    }
    .certificate-container {
        grid-template-columns: 1fr;
    }
    .certificate-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr); 
        gap: 2rem;
        padding: 0 1rem;
        max-width: 1200px;
        margin: 0 auto;
    }
    #menu-icon {
    position: fixed;
    top: 10px;

    right: 15px;
    font-size: 30px;
    color: cyan;
    cursor: pointer;
    z-index: 1000;
  }
  .navbar {
    position: fixed;
    top: 12px;
    right: 6px;               
    background: transparent;
    
    display: none;
    flex-direction: row;
    align-items: center;
    gap: 8px;                  
    z-index: 999;
  }
  
  .navbar.active {
    display: flex;
  }
  
  .navbar a {
    color: white;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
  }
  .navbar a.active {
    color: cyan;
    border-bottom: 2px solid cyan;
  }
  .skills-container,
  .project-container {
      grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
      
  }
  
    .skills-box .btn {
        display: inline-block;
        font-size: 8px;
        padding: 5px 4px;
        margin-top: 1px;
        margin-left: 1rem;
        background: transparent;
        color: rgb(0, 247, 255);
       
       
      
    }


   
    .navbar {
        display: none;
    }
    .navbar.active {
        display: flex; 
    }
    .navbar a {
        display: flex; 
        font-size: 2rem;
        margin: 3rem 0;
    }
    .home {
        flex-direction: column;
        font-size: 50%;
    }
    .home-content h3 {
        font-size: 2.6rem;
    }
    .home-content h1 {
        font-size: 5rem;
    }
    .home-img img {
        width: 50vw;
        margin-top: 4rem;
    }
    .about {
        flex-direction: column-reverse;
    }
    .about img {
        width: 0vw;
        
    }
    .skills h2, .projects h2 {
        margin-bottom: 3rem;
    }

    .projects-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .send-btn {
        margin-left: 17rem;
        margin-top: 1rem;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        background-color: white;
        color: black;
        border-radius: 30px;
        font-weight: bold;
        cursor: pointer;
        border: none;
        transition: 0.3s ease;
     
    }
    
    .send-btn:hover {
        
        color: rgb(0, 255, 170);
        box-shadow: 0 0 10x #ff0000, 0 0 15px #00ff0d;
    }
    
    .social-media1{
        margin-left:8rem;
    
    }
    .social-media1 a {
        display: inline-flex;
        justify-content:center;
        align-items: center;
        width: 40px;
        height: 40px;
        background: transparent;
        border: 2px solid #0ef;
        border-radius: 50%;
        font-size: 20px;
        color: rgb(15, 219, 233);
        text-decoration:dashed;
        margin: 30px 15px 30px 0;
        transition: 1s ease;
        opacity: 0;
        animation: slideBottom 1s ease forwards;
        animation-delay: .7s;
    
    }
    
    .social-media1 a:hover {
        background: rgb(0, 255, 26);
        color: #1f242d;
        box-shadow: 0 0 20px #0ef;
    
    }
}

.container{
    position: absolute;
    top : 0%;
    height : 30%;
    display : flex;
    justify-content: center;
    align-items: center;
}

.circle{
    position:absolute;
    background: transparent;
    width: calc(var(--i)* 1.5vmin);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 3px solid rgb(0, 255, 13);
    transform-style: preserve-3d;
    transform: rotateX(70deg) translateZ(50px);
    animation: animate 3s ease-in-out calc(var(--i)* 0.08s) infinite;
    box-shadow: 0 0 15px rgb( 124, 124,124),inset 0 0 15px rgb( 124, 124,124);




}
@keyframes animate{
    0%,
    100%{transform: rotateX(70deg) translateZ(50px) translateY(0);
        filter: hue-rotate(0);
        }
        50%{transform: rotateX(70deg) translateZ(50px) translateY(-50vmin);
            filter: hue-rotate(360deg);
            }
        }