* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* ✅ Keep header fixed at top */
.header {
    position: fixed;
    /* Makes it stay in place */
    top: 0;
    /* Stick to top */
    left: 0;
    width: 100%;
    /* Full width */
    height: 80px;
    background-color: rgb(138, 180, 185);
    z-index: 1000;
    /* Keeps it above other sections */
}

/* ✅ Add padding to body or main section so content doesn’t hide under navbar */
body {
    padding-top: 100px;
    /* Equal to navbar height */
    background: #e6f2f7;
   
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 6%;
    text-align: center;
}


.logo img {
    height: 100px;
}

.nav-list {
    flex: 1;
    text-align: right;
    justify-content: space-between;
}

.nav-list ul li {
    list-style: none;
    position: relative;
    display: inline-block;
    padding: 8px 12px;
    font-size: 1.5rem;
}

.nav-list ul li a {
    color: rgb(60, 60, 201);
    text-decoration: none;
}

.nav-list ul li a::after {
    content: "";
    width: 0%;
    height: 2px;
    background: rgba(248, 5, 215, 0.987);
    display: block;
    margin: auto;
    transition: width 0.3s ease;
    /* smoother hover animation */
}

.nav-list ul li a:hover::after {
    width: 100%;
}

.main {
    height: 800px;
}
.main h1{
    top: 0;
    opacity: 0;
    position: relative;
    animation: slideUp 2s ease-in-out 0.3s forwards;
    transform: translateY(100px);
}
.default1 {
    height: 90vh;
    display: flex;
    padding: 10px 0px;
    flex-wrap: wrap;
}

.default2{
    height: 50vh;
    background-color:rgb(23, 101, 197);
    position: relative;
    color: rgb(32, 28, 28);
    display: flex;
    flex-wrap: wrap;
    border-radius: 10%;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
}
.home-default2right{
 border: 3px solid red;
  width: 30vw;
  height: 40vh;
  border-radius: 25%;
  flex-wrap: wrap;
  

}
.home-default2left{
 border: 3px solid red;
  width: 30vw;
  height: 40vh;
  border-radius: 25%;
  flex-wrap: wrap;
  margin-left: -200px;
 

}
.home-default2left h4,.home-default2right h4{
    font-size: 1.4em;
}
.home-default2left ul li,.home-default2right ul li{
    font-size: 0.7em;
    text-align: center;
    flex: 1;
    text-decoration: none;
    list-style: none;
    padding-top: 4vh;
    color: rgb(17, 1, 1);
    text-align: center;
   

}
.home-default2left ul li a,.home-default2right ul li a{
    text-decoration: none;
    color: inherit;
}
.home-default2left ul li i,.home-default2right ul li i{
    align-items: left;
}
.home-default2right ul{
    display: flex;
    padding-top: 10%;
}
.ri-html5-line{
    font-size: 50px;
}
.ri-css3-fill{
font-size: 50px;
}
.ri-javascript-fill{
font-size: 50px;
}
.ri-php-fill{
font-size: 50px;
}


.default1 .myphotoleft img {
    margin-top: 24px;
    height: 60vh;
    border-radius: 50px;
    position: relative;
    left: -60%;
    animation:move 2s forwards ;
     animation-name: slide;
    animation-delay: 0.2s;
}

.myphotoleft {
    width: 700px;
    padding-left: 20vw;
}

.default1 .right {
    height: 400px;
    padding-left: 0px;
    padding-top: 130px;
    font-size: 1.2rem;
    text-align: center;
    align-items: center;
    top: 0;
    opacity: 0;
    position: relative;
    animation: slideUp 2s ease-in-out 0.3s forwards;
    transform: translateY(100px);

}

.default1 .right button {
    height: 40px;
    margin: 5px 0px;
    width: 80px;
    border-radius: 9px;
    background-color: blueviolet;

}

.default1 .right button a {
    text-decoration: none;
    color: rgb(255, 255, 255);

}

/* this code is for the about page */
.main {
    font-size: 2em;
    height: 400vh;
}

.main hr {
    text-align: center;
    justify-content: center;
    width: 12vw;
    color: white;
}

.default-about {
    height: 500px;
    padding: 4vh 5vw;
    display: flex;


}

.default-about .about1 {
    width: 35vw;
    padding-left: 7vw;


}

.default-about .about2 {
    border: 0.3vw solid red;
    width: 56vw;
    border-radius: 50px;
    height: 55vh;
    margin: 1vw 0vw;
    flex-wrap: wrap;
}

.default-about .about2 p {
    font-size: 20px;
    padding: 30px;
    color: black;
    top: 0;
    opacity: 0;
    position: relative;
    animation: slideUp 2s ease-in-out 0.3s forwards;
    transform: translateY(100px);
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.default-about .about1 img {
    height: auto;
    width: 25vw;
    border-radius: 50%;
    border: 0.3vw solid rgb(227, 43, 43);
    position: relative;
    left: -100%;
    animation: slide 2s forwards;
   


}

.mobile {
    display: none;
}

@keyframes slide {
    to {
        left: 0;
    }

}

@keyframes slideUp {
    to {
        transform: translateY(0);
        /* final position */
        opacity: 1;
    }
}
@keyframes slidedown {
    to {
        transform: translateY(0);
        /* final position */
        opacity: 1;
    }
    
}
@keyframes move {
    to{
        left: 0;

    }
    
}

.footer {
  width: 100%;
  height: 200px;
  border-radius: 60px;
  padding: 19px;
  text-align: center;
  font-size: 1.5rem;
  font-family: Arial, sans-serif;
  background-color: rgb(0, 99, 110);
  color: white;
  z-index: 1;
}

/* Social links */
.footer .social-links {
  margin-top: 40px;
  margin-bottom: 15px;
}

.footer .social-links a {
  margin: 0 15px;
  text-decoration: none;
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer .facebook {
  color: #4267B2;
}

.footer .github {
  color: #fff;
}

.footer .linkedin {
  color: #0077B5;
}

.footer .social-links a:hover {
  transform: scale(1.2);
  opacity: 0.8;
}

.footer p {
  font-size: 14px;
  color: #eee;
  margin-top: 10px;
}


@media (max-width:768px) {
    .default2{
        
    }
    .mobile {
        display: flex;
        justify-content: space-between;
        text-align: center
        padding: 0 20px;
    }

    .nav-list-mobile {
        text-align: right;
    }

    .navlist-mobile i {
        font-size: 30px;
        color: #000;
        cursor: pointer;
    }


    /*This is for index page */
    .nav-list .menu {
        font-size: 20px;
        display: block;
    }

    .nav-list {
        display: none;

    }

    .default1 .right {
        height: 400px;
        width: 90vw;
        margin-left: 3vw;
        padding-top: 2vw;
        font-size: 1.2rem;
        text-align: center;
        justify-content: center;
    }

    .default1 .myphotoleft img {
        margin-top: 24px;
        height: 30vh;
        border-radius: 42px;
        padding: 0px 21px;
    }

    .logo {
        margin-left: -34px;
    }

    /* this code is for making responsive about page*/
    .main {
        font-size: medium;

    }

    .main .hrabout {
        width: 22vw;
    }

    .default-about {
        height: 500px;
        padding: 4vh 5vw;
        display: flex;
        flex-wrap: wrap;
    }

    /* image wala ko ho yo */
    .default-about .about1 {
        width: 35vw;
        padding-left: 32vw;
        height: 129px;
    }

    /*paragraph wala ko ho yo */
    .default-about .about2 {
        border: 0.3vw solid red;
        width: 88vw;
        border-radius: 50px;
        height: 59vh;
        margin: 1.vw 0vw;
        flex-wrap: wrap;
    }

    .default-about .about2 p {
        font-size: 15px;
        padding: 15px;
        color: black;
        top: 0;
        opacity: 0;
        position: relative;
        animation: slideUp 2s ease-in-out 0.3s forwards;
        transform: translateY(100px);
        text-align: left;
        max-width: 800px;
        margin: 0 auto;
    }

    .default-about .about1 img {
        height: auto;
        width: 25vw;
        border-radius: 50%;
        border: 0.3vw solid rgb(227, 43, 43);
        position: relative;
        animation-name: slide;
        left: -10%;
        animation: slide 2s forwards;
        animation-delay: 1s;


    }
    /* This section is  for the default2 which is the educationa and skill section*/
    .default2{
    height: 800px;
    background-color:rgb(23, 101, 197);
    position: relative;
    color: rgb(32, 28, 28);
    display: flex;
    flex-wrap: wrap;
    border-radius: 10%;
    align-items: center;
    flex-wrap: wrap;
    gap: 1px
    ;
}
.home-default2right{
 border: 3px solid red;
  width: 351px;
  height: 300px;
  border-radius: 25%;
  flex-wrap: wrap;
  

}
.home-default2left{
 border: 3px solid red;
  width: 351px;
  height: 300px;
  border-radius: 25%;
  flex-wrap: wrap;
  margin-left: 0.3px;
 

}
.home-default2left h4,.home-default2right h4{
    font-size: 1.4em;
    padding-top: 40px;
}
.home-default2left ul li,.home-default2right ul li{
    font-size: 1.2em;
    text-align: center;
    flex: 1;
    text-decoration: none;
    list-style: none;
    padding-top: 4vh;
    color: rgb(17, 1, 1);
    text-align: center;
    

}
.home-default2left ul li a,.home-default2right ul li a{
    text-decoration: none;
    color: inherit;

}


.home-default2left ul li i,.home-default2right ul li i{
    align-items: left;
}
.home-default2right ul{
    display: flex;
    padding-top: 10%;
}
}