* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body{
    background-color:#08353e;
}

/* Navbar */

.header{
    position: fixed;
    margin: 0;
    padding: 18px 10%;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: 0.5s ease-in-out;
}

.header.scrolled {
    background-color: #08353e; 
}

span{
    color: #66fcf1;
}

.name{
    position: relative;
    font-size: 35px;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.navbar a{

    color: rgb(255, 255, 255);
    font-size: 18px;
    text-decoration: none;
    font-weight: 500;
    margin-left: 35px;
    transition: 0.3s ease-in-out;
}

.navbar a:hover{
    color: #66fcf1;
}

nav a.active {
    color: #66fcf1; 
}

.animate-heading {
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.75s ease, transform 0.75s ease;
}
  
.animate-heading.active {
    opacity: 1;
    transform: translateY(0);
}

/* Home Page */

.home{
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 7.5%;
    color: #66fcf1;
    background: url("home.jpg");
    background-size: cover;
    background-position: center;
}

.home-content{
    max-width: 700px;
    margin-top: 3rem;
}

.home-content h1{
    justify-content:right ;
    color: #ffffff;
    font-size: 65px;
    font-weight: 700;
    margin-bottom: 2%;
    display: inline-block;
    opacity: 0;
    animation: fadeIn 2s ease-in-out forwards;
    white-space: nowrap;
}

.home-content h2{
    justify-content:right ;
    color: #ffffff;
    font-size: 40px;
    font-weight: 700;
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
    white-space: nowrap;
}

.home-content h3{
    justify-content:right ;
    font-size: 35px;
    font-weight: 550;
    display: inline-block;
    opacity: 0;
    animation: fadeIn 4s ease-in-out forwards;
    white-space: nowrap;
}

.home-content p{
    justify-content:right ;
    margin: 20px 0 40px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 400;
}


.image-container {
    position: relative;
    /* overflow: hidden; */
}
  
.image-container img {
    left: 50px;
    margin-top: 2rem;
    max-width: 100%;
    height: auto; 
    transform: translateX(-50%);
    animation: bounce 3s infinite;
}

.animated-paragraph {
  opacity: 0;
  animation: fadeIn 6s ease-in-out forwards;
}

  
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  @keyframes bounce {
    0%, 100% {
        transform: translateX(0%) translateY(0);
    }
    50% {
        transform: translateX(0%) translateY(-40px);
    }
}




/* About Page */

.about{
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content:center ;
    padding: 0 7.5%;
    color: #66fcf1;
    background-color:#66fcf1;
   
}

.sec2{

    align-items: center;
    justify-content:center ;
    color: #08353e;
    font-size: 50px;
    font-weight: 700;
    margin-top: 4rem;
    margin-bottom: 2.5rem;
}

.image-container2 {
    text-align: center;
    position: relative;
}
  
.image-container2 img {
 
    width: 300px;
    height: auto; 
    margin-bottom: 10rem;
    margin-right: 25%;
    border-radius: 20px;
}

.para2{
    justify-content:left ;
    margin: 20px 0 40px;
    color: #08353e;
    font-size: 30px;
    font-weight: 400;
    list-style-type:square;
}

.new{
    display: flex;
}

li {
    list-style-type:square;
}
  

/* Education Page */

.education{
    display: flex;
    flex-direction: column;
    justify-content:center ;
    align-items: center;
    color: #0b4550;
    background-color: #08353e;
}

.sec3{
    align-items: center;
    justify-content:center ;
    color: #ffffff;
    font-size: 50px;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.educ_row{
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 5rem;
    margin-top: 2rem;
}

.cal .fa-solid{
    color: #66fcf1;
}

.box-content{
    position: relative;
}

.box-content .content{

    position: relative;
    padding-left: 1.2rem;
    padding-top: 0.7rem;
    border: .2rem solid #66fcf1;
    border-radius: .6rem;
    margin-bottom: 1.2rem;
    width: 390px;
    height: 460px;
    color: #ffffff;
    overflow: hidden;
    background: linear-gradient(to bottom, #08353e, #2f9fa9); 
    background-size: 200% 100%; 
    transition: 0.3s ease-in-out
}

.content:hover{
    background-position: right center;
    background-color: #00717c;
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(21, 158, 158, 0.71);
}


.content h1{
    color: #66fcf1;
    font-size: 28px;
}


.smhs{

    max-width: 75%;
    margin-top: 2.5rem;
    margin-left: 2rem;
}

.vdvs{

    max-width: 75%;
    margin-top: 2.5rem;
    margin-left: 2rem;
}

.iit{

    max-width: 75%;
    margin-top: 2.5rem;
    margin-left: 2rem;
}

.linked-content-box {
    display: block; 
    text-decoration: none; 
}



/* Skills Page */

.sec4{
    align-items: center;
    justify-content:center ;
    color: #08353e;
    font-size: 50px;
    font-weight: 700;
    margin-top: 1rem;
    margin-bottom: 3.5rem;
}

.skills {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding: 40px;
    background-color:#66fcf1;
}

.skill {
    display: flex;
    margin-bottom: 9rem;
    margin-right: 5rem;
    text-align: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease-in-out
}

.skill i {
    font-size: 40px;
    color: #3498db;
}

.skill:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.all{
    display: flex;
    flex-direction: row;
    gap: 50px;
    flex-wrap: wrap;
    justify-content:center;
    align-items: center;
}
.code{
    width: 170px;
    transition: 0.3s ease-in-out;
}

.htmlcode2{
    width: 230px;
}

.code:hover{
    transform: scale(1.15);
}


/* Projects Page */

.sec5{

    align-items: center;
    justify-content:center ;
    color: #ffffff;
    font-size: 50px;
    font-weight: 700;
    margin-bottom:1.5rem;
}


.projects {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding: 40px;
    background-color:#08353e;
}

.proj_row{
    display: flex;
    gap: 3rem;
}

.proj_col1{
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.proj_box{
    position: relative;

}

.proj_box .proj_content{

    position: relative;
    padding-left: 1.2rem;
    padding-top: 0.7rem;
    border: .2rem solid #66fcf1;
    border-radius: .6rem;
    margin-bottom: 1.5rem;
    width: 500px;
    height: 120px;
    color: #ffffff;
    overflow: hidden;
    background:#08353e;
    background-size: 200% 100%; 
    transition: 0.3s ease-in-out;
}

.proj_content:hover{
    background-position: right center;
    background-color: #08353e;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(21, 158, 158, 0.71);
}


.proj_content h2{
    font-size: 26px;
    color: #66fcf1;
}

.proj_content .temp{
    margin-top: 0.7rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.proj_content .temp2{
    margin-top: 0.7rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.proj_content .temp3{
    margin-top: 0.7rem;
    display: flex;
    align-items: center;
}

.temp img{
    width: 45px;
    margin-right: 0.5rem;
}

.temp2 img{
    width: 45px;
    margin-right: 0.65rem;
}

.temp h3{
    margin-right: 1rem;
    font-size: 25px;

}

.temp3 img{
    width: 45px;
    margin-right: 0.65rem;
}

.temp3 h3{
    margin-left: 6rem;
    font-size: 25px;

}

.temp2 h3{
    /* margin-top: 1rem; */
    margin-right: 1rem;
    font-size: 25px;

}

.temp2 .t1{
    margin-right: 0.65rem;
    width: 40px;
    margin-top: -0.5rem;
}

.temp2 .t2{
    width: 45px;
    margin-top: -0.5rem;
    margin-right: 0.65rem;
}

.proj_content::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #02464c;
    transition: 0.5s;
    z-index: -1;
} 

.proj_content:hover::before{
    width: 100%;
}


/* Contact Me Page */

.sec6{

    align-items: center;
    justify-content:center ;
    color: #08353e;
    font-size: 50px;
    font-weight: 700;
    margin-top: 1rem;
    margin-bottom: 3rem;
}


.contact {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding: 40px;
    background-color:#66fcf1;
  }

.contact_row{
    display: flex;
    gap: 6rem;
}

.contact_col1{
    display: flex;
    flex-direction: column;
    margin-right: 10rem;
    gap: 2rem;
}

.con_main{
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.email .fa-solid{
    margin-top: 0.85rem;
}
.email{
    display: flex;
    font-size: 17.5px;
    color: #08353e;
    gap: .75rem;
}

.social{
    margin-top: 0.75rem;
    font-size: 18px;
    display: flex;
    color: #08353e;
    gap: 1.5rem;
}

.social a{
    text-decoration: none;
    color: #08353e;
    transition: transform 0.5s;
    display: inline-block;
}

.social a:hover{
    color: #08353e;
    background:#ffffff;
    transform: translateY(-7px);
}

.email a{
    text-decoration: none;
    color: #08353e;
    transition: transform 0.5s;
    display: inline-block;
}

.email a:hover{
    color: #08353e;
    transform: translateY(-7px);
}

.soc_img{
    color: #08353e;
}

.contact_col2{
    display: flex;
    flex-direction: column;
    flex-basis: 60%;
    gap: 2rem;

}

.btn{
    position: relative;
    display: block;
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
    font-size: 21px;
    width: fit-content;
    border: 5px solid #08353e;
    overflow: hidden;
    padding: 10px 30px;
    border-radius: 10px;
    background: #08353e;
    text-decoration: none;
    color: #66fcf1;
    transition: background 0.6s, box-shadow 0.5s ease, 0.3s ease-in-out;
}
.btn:hover{
    background: #66fcf1;
    color: #08353e;
    box-shadow: 0 0 10px #08353e;
}

.btn:active{
    scale: 0.9;
}


.contact_col2 form{
    width: 100%;
}

form input, form textarea{
    width: 100%;
    border: 0;
    outline: none;
    background: #08353e;
    padding: 15px;
    margin: 3px 0;
    color: #ffffff;
    font-size: 18px;
    border-radius: 6px;
}

form .btn2{
    cursor: pointer;
    margin-top: 1rem;

}

#msg{
    display: block;
    margin-bottom: 1.5rem;
    font-size: 20px;
    color: #098d16;
}


/* Footer Section  */

footer {
    background-color: #08353e;
    color: #ffffff;
    padding: 20px 0;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}


/* Add these media query rules at the end of your existing CSS */

/* General Responsive Adjustments */
@media screen and (max-width: 768px) {
    /* Navbar Adjustments */
    .header {
        padding: 15px 5%;
    }

    .name {
        font-size: 28px;
    }

    .navbar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #08353e;
        padding-top: 60px;
        transition: 0.3s ease-in-out;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .navbar.active {
        right: 0;
    }

    .navbar a {
        display: block;
        margin: 20px 0;
        font-size: 20px;
    }

    /* Home Section Adjustments */
    .home {
        padding: 0 5%;
        text-align: center;
    }

    .home-content h1 {
        font-size: 40px;
    }

    .home-content h2 {
        font-size: 30px;
    }

    .home-content h3 {
        font-size: 25px;
    }

    .home-content p {
        font-size: 16px;
    }

    .image-container img {
        width: 80%;
        max-width: 300px;
        margin-top: 1rem;
    }

    /* About Section Adjustments */
    .new {
        flex-direction: column;
    }

    .image-container2 img {
        margin-right: 0;
        width: 250px;
        margin-bottom: 3rem;
    }

    /* Education Section Adjustments */
    .educ_row {
        flex-direction: column;
        gap: 1rem;
    }

    .box-content .content {
        width: 100%;
        max-width: 350px;
        height: auto;
        min-height: 400px;
    }

    /* Skills Section Adjustments */
    .all {
        gap: 25px;
    }

    .code {
        width: 120px;
    }

    .htmlcode2 {
        width: 160px;
    }

    /* Projects Section Adjustments */
    .proj_row {
        flex-direction: column;
        gap: 2rem;
    }

    .proj_box .proj_content {
        width: 100%;
        max-width: 350px;
        height: auto;
        min-height: 120px;
    }

    .proj_content:hover{
        transform: scale(1);
    }

    .proj_content h2 {
        font-size: 22px;
    }

    .temp h3, .temp2 h3 {
        font-size: 20px;
        margin-left: 1rem;
    }

    /* Contact Section Adjustments */
    .contact_row {
        flex-direction: column;
        gap: 3rem;
    }

    .contact_col1 {
        margin-right: 0;
    }

    .contact_col2 {
        width: 100%;
    }

    form input, form textarea {
        font-size: 16px;
    }

    .content:hover{
        transform: scale(1);
    }
}

/* Additional adjustments for very small screens */
@media screen and (max-width: 480px) {

    .home{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .box-content{
        scale: 0.9;
    }

    .para2{
        font-size: 20px;
    }
    .home-content h1 {
        font-size: 32px;
    }

    .home-content h2 {
        font-size: 24px;
    }

    .home-content h3 {
        font-size: 20px;
    }

    .content:hover{
        transform: scale(1);
    }

    .proj_content:hover{
        transform: scale(1);
    }

    .sec2, .sec3, .sec4, .sec5, .sec6 {
        font-size: 34px;
    }

    .code {
        width: 100px;
    }

    .htmlcode2 {
        width: 140px;
    }

    .btn {
        font-size: 18px;
        padding: 8px 24px;
    }

    .footer{
        padding: 13px;
    }
    .footer-content{
        font-size: 13px;
    }
}

/* Add a hamburger menu button for mobile */
.menu-btn {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 101;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    .menu-btn {
        display: block;
    }

    .menu-btn .bar {
        width: 25px;
        height: 3px;
        background: #66fcf1;
        margin: 5px auto;
        transition: 0.3s ease-in-out;
    }

    .menu-btn.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-btn.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-btn.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}