*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration:none;
    border: none;
    outline:none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}
:root{
--bg-color: #0f0f0f;
--text-color: #ffffff;
--main-color: #d23d49;        /* Coral Red Accent */
--snd-bg-color: #1c1c1c;



}
html{
    font-size: 62.5%;
    overflow-x: hidden;
}
body{
    background:var(--bg-color);
    color:var(--text-color);
    overflow-x: hidden;

}
section{
    min-height: 100vh;
    padding:10rem 9% 2rem;
}
/*header code*/
.header{
    top:0;
    width: 100%;
    position:fixed;
    right: 0;
    z-index:1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 5%;
    background-color: var(--main-color);
    backdrop-filter: blur(10px);
    transition: all 0.5s ease;
}
.logo{
    font-size: 2.5rem;
    color: var(--bg-color);
    font-family: 'luckiest guy', cursive;
  letter-spacing: 2px;
font-weight: 400;
    cursor: pointer;
    transition:0.3s ease;
    align-items: center;
    line-height: 1;
}
.logo .name{
    color: whitesmoke;
        font-family: 'luckiest guy', cursive;
  letter-spacing: 2px;
  font-weight: 500;
  align-items: center;
}
.logo:hover{
    transform: scale(1.05);
}
.navbar a{
    font-size: 1.9rem;
    color: var(--bg-color);
    margin-left: 4rem;
    font-weight: 700;
    transition:0.3s ease;
}
.navbar a:hover,
.navbar a.active{
    color:var(--text-color);
}
#menu-icon{
    font-size: 3.6rem;
    color: var(--bg-color);
    cursor: pointer;
    display: none;
}

/* Home section code*/
.home{
    display: flex;
    justify-content: center;
    align-items: center;
}
.home-img img {
      width: 25vw;  
      height: 25vw;     /* pehle 25vw tha */
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    cursor: pointer;
    animation: floatImage 4s ease-in-out infinite;
    transition: 0.4s ease;
}

.home-img img:hover {
    box-shadow: 0 0 25px var(--main-color),
                0 0 35px var(--main-color),
                0 0 45px var(--main-color);
}
@keyframes floatImage {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2.4rem);
    }
    100% {
        transform: translateY(0);
    }
}
.home-content{
    margin-left:5rem;
}
.home-content h3{
    font-size: 3.7rem;
     font-weight: 700;
}
.home-content h3:nth-of-type(2){
    margin-bottom: 2rem;
}
span{
    color: var(--main-color);
}
.home-content h1{
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content p {
font-size: 1.6rem;
}
.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 0.2em solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color:var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
}
.social-media a:hover {
    transform: scale(1.2) translateY(-10px);
    background-color: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 25px var(--main-color);
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: none;
    font-size: 1.6rem;
    color: var(--bg-color);
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease;
}
.btn:hover{
    box-shadow: 0 0 1.6rem var(--main-color);
}
.about{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background-color: var(--snd-bg-color);
}
.heading{
    font-size: 6rem;
    text-align: left;
}
.about-content{
    padding: 0 4rem;

}
.about-content h2{
    text-align: left;
    line-height: 1.2;
}
.about-content h3{
    font-size: 3rem;
}
.about-content p{
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
}
.about-img img{
    width: 25vw;
    border: 2px solid var(--main-color);
    border-radius: 10%;
    box-shadow: 0 0 25px var(--main-color);
    cursor: pointer;
    transition: 0.4s ease;
}
.about-img img:hover{
    box-shadow: 0 0 25px var(--main-color),
                0 0 35px var(--main-color),
                0 0 45px var(--main-color);;
}
/* skills section*/
/*.skills h2{
    margin-bottom: 5rem;
}
.skills-container{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}
.skills-container .skills-box {
background-color: var(--snd-bg-color);
padding: 6rem 2rem 6rem;
border-radius: 2rem;
text-align: center;
border: 0.3rem solid var(--bg-color);
transition: 0.3s ease;
}
*/
/* Skills Section */
.heading {
    text-align: center;
    font-size: 6rem;
}
.heading .my {
    color: var(--text-color); /* My ka color */
}
.heading .skills-text {
    color: var(--main-color); /* Skills ka color */
}


.skills {
    padding: 5rem 9%;
    background: var(--bg-color);
    color: var(--text-color);
    text-align: center;
    
}

.skills h2 {
    font-size: 5rem;
    margin-bottom: 3rem;
    color: var(--main-color);

}

/* Skills Container Grid

/* Skills Container Grid 
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    justify-content: center;
}

/* Skill Box Card 
.skills-box {
    background: var(--snd-bg-color);
    padding: 4rem 3rem;
    border-radius: 2rem;
    text-align: center;
    border: 0.3rem solid var(--bg-color);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
    max-width: 320px;
}
*/
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    justify-content: center;
}

/* Skill Box Card */
.skills-box {
    background: var(--snd-bg-color);
    padding: 4rem 3rem;
    border-radius: 2rem;
    text-align: center;
    border: 0.3rem solid var(--bg-color);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
    max-width: 320px;
}

.skills-box:hover {
    border-color: var(--main-color);
    box-shadow: 0 0 20px var(--main-color);
    transform: translateY(-8px);
}

/* Headings in Each Box */
.skills-box h3 {
    font-size: 2.2rem;
    color: var(--main-color);
    margin-bottom: 1.5rem;
}

/* Icon Container */
.icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1rem;
}

/* Icon Item */
.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.icon-item i {
    font-size: 60px;
    transition: transform 0.3s ease;
}

.icon-item:hover i {
    transform: scale(1.2);
}

/* Labels Under Icons */
.icon-item p {
    margin-top: 0.6rem;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-color);
}
/* projects section*/
.projects {
    padding: 5rem 9%;
    background: var(--snd-bg-color);
    color: var(--text-color);
    text-align: center;
    overflow-x: hidden;
    width: 100%;
}
 /* projects section
.projects {
    padding: 5rem 9%;
    background: var(--snd-bg-color);
    color: var(--text-color);
    text-align: center;
}

.projects .heading {
    font-size: 5rem;
    margin-bottom: 3rem;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-box {
    background: var(--bg-color);
    padding: 3rem 2rem;
    border-radius: 1rem;
    border: 0.2rem solid transparent;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
    text-align: center;
}
*/
.projects .heading {
    font-size: 5rem;
    margin-bottom: 3rem;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-box {
    background: var(--bg-color);
    padding: 3rem 2rem;
    border-radius: 1rem;
    border: 0.2rem solid transparent;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
    text-align: center;
}

.project-box:hover {
    border-color: var(--main-color);
    box-shadow: 0 0 20px var(--main-color);
    transform: translateY(-8px);
}

.project-box h3 {
    font-size: 2rem;
    margin: 1rem 0;
    color: var(--main-color);
}

.project-box p {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}
.project-box img {
    width: 100%;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}
.project-box img:hover {
    transform: scale(1.05);
}
/* contact section*/
.contact{
    background:var(--bg-color);
}
.contact .heading{
    text-align: center;
}
.contact h2{
    margin-bottom: 3rem;
    font-size: 6rem;
    
}
.contact .my{
    color: var(--text-color);
}
.contact .me{
    color: var(--main-color);
}
.contact form{
    max-width: 80rem;
    margin: 1rem auto;
    text-align: center;
}
.contact form .input-box{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.contact form .input-box input,
.contact form textarea{
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--snd-bg-color);
    border-radius: 0.8rem;
    border: .25rem solid var(--main-color);
    margin: 0.7rem 0;
    resize: none;
}
.contact form .input-box input{
    width: 49%;
    margin: 0.7rem 0.35rem;
}
.contact form .btn{
    margin-top: 2rem;
}
/* footer section*/
.footer{
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 40px 0;
background-color: var(--snd-bg-color);
}
.footer .social{
    text-align: center;
    padding-bottom: 25px;
    color: var(--main-color);
}
.footer .social a{
    font-size: 25px;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    width: 42px;
    height: 42px;
    line-height: 42px;
    display: inline-block;
    text-align: center;
    border-radius: 50%;
    margin: 0 10px;
    transition: 0.3s ease;
}
.footer .social a:hover{
     transform: scale(1.2) translateY(-10px);
    background-color: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 25px var(--main-color);
}
.footer .copyright{
    margin-top: 20px;
    text-align: center;
    font-size: 16px;
    color: var(--text-color);
}


/* responsive design */
@media(max-width:1200px){
    html{
        font-size: 55%;
    }
}
@media(max-width:991px) {
    .header{
        padding: 2rem 3%;
    }
    section{
        padding: 10rem 3%;
    }
    .skills{
        padding: 7rem;
    }

    .contact form .input-box input{
        width: 100%;
    }
    .footer{
        padding: 2rem 3%;
    }
}
@media(max-width:991px){
    #menu-icon{
        display: block;
    }
    .navbar{
        position:absolute;
        top: 100%;
        right: -100%;
        width: 255px;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        background: var(--main-color);
        transition: all .5s ease;
        backdrop-filter: blur(10px);
    }
    .navbar a{
        display: block;
        padding: 17px;
        font-size: 22px;
    }
    .navbar.active{
        right: 0;
    }
    .home{
        flex-direction: column;
        
    }
    .home-content h3{
        font-size: 2.6rem;
    }
    .home-content h1{
        font-size: 5rem;
    }
    .home-content{
        order: 2;
        margin-left: 1rem;

    }
    .home-img img{
        width: 50vw;
        height: 50vw;
        margin-top: 4rem;

    }
    .about{
        flex-direction: column;

    }
    .about-img img{
width: 50vw;
margin-top: 4rem;
    }
    .skills h2{
        margin-bottom: 3rem;
    }
}
@media(max-width: 617px){
    .home-img img{
        width: 50vw;
height: 50vw;
margin-top: 4rem;
    }
    .about-img img{
        width: 50vw;

    }
}
@media(max-width: 617px){
html{
    font-size: 50%;
}
.logo{
    font-size: 2.3rem;
}
}




@media (max-width: 768px) {
  .skills-container {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
  }

  .skills-box {
    max-width: 100%;
    padding: 3rem 2rem;
  }

  .projects-container {
    grid-template-columns: 1fr;
  }

  .project-box {
    padding: 3rem 2girem;
  }
}

@media (max-width: 768px) {
  .logo {
    transform: translateY(2px); /* thoda neeche shift */

  }
}
