@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

*{
    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:#1f242d;
    --second-bg-color:#323946;
    --text-color:#fff;
    --main-color:#0ef; 
 }

 html{
    font-size: 62.5%;
    overflow-x:hidden;

 }

 body{
    background: var(--bg-color);
    color: var(--text-color);
 }

 section{
    min-height: 100vh;
    padding: 10rem 9% 2rem;
 }



 .header{
    position: fixed;
    top:0;
    left:0;
    width: 100%;
    padding: 2rem 9%;
    background: var(--bg-color);
    display: flex;
    justify-content:space-between;
    align-items: center;
    z-index:100 ;

 }

 .header.sticky{
   border-bottom: .1rem solid rgba(0, 0,0, .2);
 }
 .logo{
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight:600;
    cursor:default;
 }
 .navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    margin-left: 4rem;
    transition: .3s;
 }

 .navbar a:hover,
 .navbar a.active{
    color: var(--main-color);
 }
 #menu-icon{
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
 }

 .home {
   display: flex;
   justify-content: center;
   align-items: center;
   gap: 1rem; /* Reduced gap */
   padding: 1rem;
   max-width: 1200px;
   margin: 0 auto; /* Centered the section */
}

.home-content {
   flex: 1 1 60%;
   max-width: 60%; /* Ensured equal width for both sections */
   padding: 1rem; /* Adjusted padding */
   font-size: 2.5rem;
}

.multiple-text {
   color: var(--main-color);
}


.home-img {
   flex: 1 1 50%;
   max-width: 50%; /* Ensured equal width for both sections */
   display: flex;
   justify-content: center;
   align-items: center;
}

.home-img img {
   width: 280px;
   height: 350px;
   object-fit: cover;
   border-radius: 20px;
   box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
   animation: floatImage 4s ease-in-out infinite;
}

@keyframes floatImage {
   0% { transform: translateY(0); }
   50% { transform: translateY(-10px); }
   100% { transform: translateY(0); }
}


 .social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: .5s ease;
 }
 .social-media a:hover{
    background: var(--main-color);
    color: var(--second-bg-color);
    box-shadow: 0 0 1rem var(--main-color);
 }


 
 .btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 1.6rem;
    color: var(--second-bg-color);
    letter-spacing: .1rem;
    font-weight: 600;
    transition: .5s ease;
 }

 .btn:hover {
    box-shadow: none;
 }

 .heading {
   text-align: center; /* Centers the main heading */
   font-size: 4rem;
   font-weight: 700;
   text-transform: uppercase;
   width: 100%;
}

/* About Section */
.about {
    padding: 6rem 10%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    width: 100%;
    max-width: 1200px;
}

/* Unique Image Style */
.about-img {
    position: relative;
    flex: 1;
}

.about-img img {
    width: 100%;
    max-width: 350px;
    border-radius: 20px;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.3);
    transform: rotate(-5deg);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Hover Effect */
.about-img:hover img {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 15px 15px 30px rgba(0, 0, 0, 0.5);
}

/* About Content */
.about-content {
    flex: 1;
    text-align: left;
}

.heading {
    font-size: 4rem;
    text-transform: uppercase;
    font-weight: 700;
}

.about-content h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-top: 1rem;
}

.about-content p {
    font-size: 1.6rem;
    line-height: 1.6;
    margin: 1.5rem 0;
    color: var(--text-color);
}

/* Button */
.btn {
   display: inline-block;
   padding: 12px 24px;
   font-size: 1.5rem;
   color: #fff;
   background: var(--primary-color);
   border-radius: 8px;
   transition: all 0.3s ease;
   text-decoration: none;
}

.btn:hover {
   background: #3ada47;
   transform: scale(1.05);
}
.skills-tabs {
   display: flex;
   justify-content: center;
   gap: 15px;
   margin-bottom: 20px;
}

.tab-button {
   background-color: #137697;
   border: none;
   color: white;
   padding: 15px 20px;
   font-size: 2rem;
   cursor: pointer;
   border-radius: 10px;
   transition: background 0.3s ease;
}

.tab-button:hover,
.tab-button.active {
   background-color: 24748f;
}

.skills-grid {
   display: none;
   grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
   gap: 15px;
   justify-content: center;
   max-width: 900px;
   margin: 0 auto;
}

.skills-grid.active {
   display: grid;
}

.skill-card {
   background: #02586c;
   padding: 15px;
   border-radius: 10px;
   text-align: center;
   transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card img {
   width: 60px;
   height: 60px;
   margin-bottom: 10px;
}

.skill-card p {
   font-size: 1.5rem;
   font-weight: normal;
}

.skill-card:hover {
   transform: scale(1.1);
   box-shadow: 0px 0px 10px rgba(0, 123, 255, 0.5);
}


 .timeline {
   position: relative;
   max-width: 800px;
   margin: auto;
}

.edu-box {
   padding: 1rem;
   position: relative;
   width: 70%;
   background: var(--bg-color);
   box-shadow: 0 0 10px var(--main-color);
   border-radius: 10px;
   margin: 10px 0;
}

.left {
   left: 0;
   text-align: right;
}

.right {
   left: 50%;
   text-align: left;
}

.edu-box .content {
   padding: 10px;
}

.edu-box {
   padding: 20px; /* Increased padding for height */
   min-height: 150px; /* Adjust height */
   font-size: 18px; /* Increased font size */
}

.edu-box h3 {
   font-size: 22px; /* Increase heading size */
}

.edu-box h3 {
   color: var(--main-color);
}

.edu-box:hover {
   transform: scale(1.05); /* Slightly enlarge */
   box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Shadow effect */
   transition: all 0.3s ease-in-out;
}

 
.experience-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Experience Box */
.experience-box {
   background: var(--second-bg-color);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 0 1rem var(--main-color);
    text-align: center;
    width: 45rem;
    height: 45rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.experience-box:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); 
}

/* Experience Image */
.experience-box img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.experience-box ul {
    list-style-type: disc;
    padding-left: 2rem;
    text-align: left;
}

.experience-box li {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.experience-box h3 {
    font-size: 2.4rem; /* Increase font size */
    font-weight: bold; /* Make it bold */
    color: var(--main-color); /* Highlight it with your main theme color */
    margin-bottom: 1rem; /* Add spacing below */
    text-align: center; /* Center align */
}


 /* Responsive Adjustments */
 @media (max-width: 768px) {
    .skills-container {
        flex-direction: column;
        align-items: center;
    }

    .skills-box {
        flex: 1 1 100%;
        margin-bottom: 2rem;
    }
 }

 @media (max-width: 450px) {
    html {
        font-size: 50%;
    }
 }

 .projects-container {
   display: flex; /* Aligns items in a row */
   margin: 3rem;
   flex-wrap: wrap; /* Ensures responsiveness */
   justify-content: center; /* Centers the project boxes */
   align-items: stretch;
   gap: 1rem; /* Adds space between boxes */
}

 .project-box {
   background: var(-bg-color);
   border-radius: 1rem;
   width: 35rem;
   height: 45rem;
   text-align: center;
   box-shadow: 0 0 1rem var(--main-color);
   transition: transform 0.3s ease-in-out;
   display: flex;
   flex-direction: column;
   overflow: hidden;
}

.project-box img {
   width: 100%;
   height: 60%;
   object-fit: cover;
   display: block;
   border-radius: 1rem 1rem 0 0;
}

.project-content {
   padding: 1.5rem;
   flex: 1;
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   height: 40%;
}

.project-box:hover {
   transform: scale(1.05);
   box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); 
}

.project-box h3 {
   font-size: 2.3rem;
   color: var(--main-color);
   margin-bottom: 2rem;
}

.project-box p {
   font-size: 1.5rem;
   color: var(--text-color);
   margin-bottom: 1rem;
}

.project-box .btn {
   display: inline-block;
   padding: 0.8rem 1.8rem;
   background: var(--main-color);
   border-radius: 2rem;
   font-size: 1.4rem;
   color: var(--second-bg-color);
   font-weight: 600;
   transition: 0.3s ease;
}

/* GitHub Logo Styling */
.github-link {
   display: flex;
   align-items: center;
   justify-content: center;
   margin-top: 0.5rem;
}

.github-btn {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   padding: 1rem 2rem;
   background: var(--main-color);
   border-radius: 2rem;
   font-size: 1.6rem;
   color: rgb(17, 70, 126);
   font-weight: 700;
   text-decoration: none;
   transition: 0.3s ease;
   border: 2px solid white;
}

.arrow-box {
   display: flex;
   align-items: center;
   justify-content: center;
   width: 2.5rem; /* Box size */
   height: 2.5rem;
   margin-left: 0.8rem;
   background: rgb(5, 95, 146); /* White box */
   color: var(--main-color); /* Arrow color */
   font-size: 2rem; /* Bigger arrow */
   font-weight: bold;
   border-radius: 0.5rem;
   box-shadow: 0 0 8px rgba(6, 123, 146, 0.6); /* Soft glow */
}

.github-btn:hover {
   background: rgb(231, 234, 235);
   transform: translateY(-3px);
}

.github-link img:hover {
   transform: scale(1.1);
}

.project-box .btn:hover {
   background: #08d;
}


.footer{
   display: flex;
   justify-content: space-between;
   align-items: center;
   flex-wrap: wrap;
   padding: 2rem 9%;
   background: var(--second-bg-color);
}

.footer-text p{
   font-size: 1.6rem;
}

.footer-iconTop a{
   display: inline-flex;
   justify-content: center;
   align-items: center;
   padding: .8rem;
   background: var(--main-color);
   border-radius: .8rem;
   transition: .5s ease;
}

.footer-iconTop a:hover{
   box-shadow: 0 0 1rem var(--main-color);
}

.footer-iconTop a i{
   font-size: 2.4rem;
   color: var(--second-bg-color);
}

@media (max-width:1200px){
   html{
      font-size: 55%;
   }
}

@media(max-width:991px){
   .header{
      padding: 2rem 3%;
   }
   section{
      padding: 10rem 3% 2rem;
   }

   .services{
      padding-bottom: 7rem;
   }

   .portfolio{
      padding-bottom: 7rem;
   }
   .contact{
      min-height: auto;
   }
   .footer{
      padding: 2rem 3%;
   }
}

@media(max-width:768px){
   #menu-icon{
      display: block;
   }
   .navbar{
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      padding: 1rem 3%;
      background: var(--bg-color);
      border-top: .1rem solid rgba(0, 0, 0, .2);
      box-shadow: 0 .5rem 1rem rgba(0,0,0,.2);
      display: none;
   }

   .navbar.active{
      display: block;
   }
   .navbar a {
       display: block;
       font-size: 2rem;
       margin: 3rem 0;
   }
   .home{
      flex-direction: column;
   }
   .home-content h3{
      font-size: 2.6rem;
   }
   .home-content h1{
      font-size: 5rem;
   }
   .home-img img{
      width: 70vw;
      margin-top: 4rem;
   }
   .about{
      flex-direction: column-reverse;
   }

   .about img{
      width: 70vw;
      margin-top: 4rem;
   }
   .services h2{
      margin-bottom: 3rem;
   }

   .portfolio h2{
      margin-bottom: 3rem;
   }

   .portfolio-container{
      grid-template-columns: repeat(2,1fr);
   }
}

@media(max-width:617px){
   .portfolio-container{
      grid-template-columns: 1fr;
   }
}

@media(max-width:450px){
   html{
      font-size: 50%;
   }

   .contact form .input-box input{
      width: 100%;
   }
}

@media(max-width:365px){
   .home-img img{
      width: 90vw;
   }

   .about-img img{
      width: 90vw;
   }

   .footer{
      flex-direction: column-reverse;
   }

   .footer p{
      text-align: center;
      margin-top: 2rem;
   }
}

footer {
   background: var(--second-bg-color);
   color: var(--text-color);
   text-align: center;
   padding: 1rem 0;
   font-size: 1.6rem; /* Increases the text size */
   font-weight: bold;
}

#msg{
   color: #61b752;
   margin-top: -10px;
   display: block;
}


/* Make the word "My" white and the rest the main color */
.heading span {
   color: var(--main-color); /* Your main color (can be adjusted) */
}

.heading {
   color: white; /* Default color for the text */
}


