@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@200;300;400;600&display=swap');

:root{
    --gray:rgba(128, 128, 128, 0.815);
    --black: #eee;
    --hover-color: #0dc00dc4; /* Hover color */
    --active-hover-color: #FF6347; /* Hover color when active */
}

*{
    font-family: 'Nunito', sans-serif;
    margin:0; padding:0;
    box-sizing: border-box;
    text-decoration: none;
    outline: none; border:none;
    text-transform: capitalize;
    transition: all .2s linear;
}
*::selection{
    background:var(--yellow);
    color:#333;
}
html{
    font-size: 62.5%;
    overflow-x: hidden;
}

html::-webkit-scrollbar{
    width:1.4rem;
}

html::-webkit-scrollbar-track{
    background:#222;
}

html::-webkit-scrollbar-thumb{
    background:var(--yellow);
}
body{
    background:rgb(35, 108, 110);
    overflow-x: hidden;
    padding-left: 35rem;
}
/* General styling for sections */
section{
    min-height: 40vh;
    padding:1rem;
}
header{
    position: fixed;
    top:0; left:0;
    z-index: 1000;
    height:100%;
    width:35rem;
    background:#1a1a1a;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-flow: column;
    text-align: center;
    overflow-y: auto;
    padding: 2rem;
}
header::-webkit-scrollbar {
    width: 8px;
}

header::-webkit-scrollbar-thumb {
    background: var(--yellow);
    border-radius: 10px;
}
.user {
    text-align: center;
    color: #eee;
    padding: 2rem;
    background-color: #333;
}

.user img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.user .post {
    font-size: 1.5rem;
    color: var(--yellow);
    margin-bottom: 1rem;
}

.user h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #eee;
    margin: 0.5rem 0;
}

.user h3 i {
    margin-right: 0.8rem;
    color: var(--yellow); /* Customize the color */
}

.user a {
    color: var(--yellow); /* Customize link color */
    text-decoration: none;
}

.user a:hover {
    text-decoration: underline;
}

/* Email icon */
.user h3.email i {
    font-size:x-large;
    color: #1da1f2; /* Example: blue color for email */
}

/* LinkedIn icon */
.user h3.linkedin i {
    font-size: large;
    color: #0077b5; /* Example: LinkedIn blue */
}

/* Phone icon */
.user h3.phone i {
    font-size: large;
    color: #34a853; /* Example: green for phone */
}

/* Address icon */
.user h3.address i {
    font-size: large;
    color: #ff6347; /* Example: tomato red for address */
}

/* Optional: Hover effect to make icons slightly lighter on hover */
.user h3 i:hover {
    filter: brightness(1.2);
}

.btn i{
    padding:0 .5rem;
    font-size: 1.8rem;
} 

.btn {
   
    padding:.7rem 3rem;
    color: white;
    background-color: #131518;
    cursor: pointer;
    margin-top: 1rem;
    font-size: 2rem;
    border-radius: 5rem;
}

.heading{
    text-align: center;
    margin:0 6rem;
    font-size: 4rem;
    padding:1rem;
    border-bottom: .1rem solid #fff4;
    color:#fff;
}

.heading span{
    color:var(--yellow);
}
.btn:hover{
    background:rgb(3, 136, 14);
}
.user h2{
    font-size: 2rem;
    color:rgb(15, 67, 136);
}
.post{
    font-size: 2rem;
    color:gray;
}
.navbar{
    width:100%;
}
.navbar ul{
    list-style: none;
    padding:1rem 3rem;
}
.navbar ul li a{
    display: block;
    padding:1rem;
    margin:1.5rem 0;
    background:#333;
    color:#fff;
    font-size: 2rem;
    border-radius: 5rem;
}
.navbar ul li a:hover{
    background:rgb(3, 136, 14);
}
#menu{
    position: fixed;
    top:2rem; right:2rem;
    background:#333;
    color:#fff;
    cursor: pointer;
    font-size: 2.5rem;
    padding:1rem 1.5rem;
    z-index: 1000;
    display: none;
}
.Home{
    display: flex;
    justify-content: center;
    flex-flow: column;
    padding:0 15rem;
}
.Home h3{
    font-size: 2.5rem;
    color:blue;
}

.Home h1{
    font-size:5rem;
    color:#fff;
}

.Home h1 span{
    color:var(--yellow);
}
body{
    background:black;
    overflow-x: hidden;
    padding-left: 35rem;
}
.Home{
    display: flex;
    justify-content: center;
    flex-flow: column;
    padding:0 15rem;
}
.Home h3{
    font-size: 2.5rem;
    color:#eee;
}

.Home h1{
    font-size:5rem;
    color:rgb(79, 114, 34);
}

.Home h1 span{
    color:var(--yellow);
}
/* About Me Section */
.About {
    margin-top: 50px;
    text-align: center;
    padding: 20px;
    border: 4px solid #0056b3;
  }
  
  .About .heading {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
    
  }
  
  .about-container {
    padding: 20px;
    text-align: left;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
  
  .trait-container {
    border: 3px solid #500539;
    border-radius: 5px;
    padding: 15px;
    width: 100%;
    transition: box-shadow 0.3s ease;
    background: #fff;
  }
  
  .trait-container:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  .trait {
    font-size: 20px;
    font-weight: bold;
    color: #000;
    cursor: pointer;
    margin-bottom: 10px;
    transition: color 0.3s ease;
  }
  
  .trait:hover {
    color: #09e727; /* Highlight color */
  }
  
  .description {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease-in-out;
    font-size: 16px;
    color: #222006;
    font-weight: bold; 
  }
  
  .trait-container:hover .description {
    max-height: 200px; /* Adjust height as needed */
    opacity: 1;
  }
.trait-container h3 i,
.skill h3 i {
  margin-right: 10px; /* Add spacing between the icon and the text */
  color: var(--primary-color); /* Use a consistent color for the icons */
}
.Education .box-container{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding:1rem 0;
    padding-left: 3rem;
}
.Education .box-container .box{
    width:27rem;
    margin:4rem 1rem;
    padding-left: 4rem;
    border-left: .5rem solid #b81212;
    position: relative;
}
.Education .box-container .box span{
    font-size: 1.3rem;
    background:#222;
    color:rgb(83, 75, 5);
    border-radius: 5rem;
    padding:.5rem 2.5rem;
}
.Education .box-container .box h3{
    font-size: 2rem;
    color:#04c444;
    padding-top: 1.5rem;
}
.Education .box-container .box h2{
    font-size: 1.4rem;
    padding: 1rem 0;
    color:#eeee;
    
}
.Education .box-container .box i{
    position: absolute;
    top:-1.5rem; left:-2.5rem;
    height:5rem;
    width: 5rem;
    border-radius: 50%;
    line-height: 5rem;
    text-align: center;
    font-size: 5rem;
    background:var(--yellow);
}
/* Specific icon colors */
.Education .box-container .box:nth-child(1) i {
    color: #fff; /* Green for the first icon */
}

.Education .box-container .box:nth-child(2) i {
    color: #0480d3; /* Blue for the second icon */
}

.Education .box-container .box:nth-child(3) i {
    color: #380feb; /* Red for the third icon */
}
.Education .box-container .box:nth-child(4) i {
    color: #09e727; /* Green for the first icon */
}

.Education .box-container .box:nth-child(5) i {
    color: #dbd80a; /* Blue for the second icon */
}

.Education .box-container .box:nth-child(6) i {
    color: #e6220c; /* Red for the third icon */
}
.Experience .box-container .box .icon-work {
    font-size: 24px;
    color: #4CAF50;
}
.skills h1{
    color: #eee;
}
.skills {
    margin-top: 50px;
    text-align: center;
    padding: 20px;
  }
  
  .skills .heading {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
  }
  
  
  .skills-container {
    padding: 20px;
    text-align: left;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
  
  .skill {
    margin: 10px 0;
    padding: 15px;
    border: 4px solid #0056b3;
    padding: 15px;
    border-radius: 8px;
    background: #fff;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
  }
  .skill:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
  }
  .skill .trait {
    font-size: 20px;
    font-weight: bold;
    color: #000;
    cursor: pointer;
    margin-bottom: 10px;
    position: relative;
    transition: color 0.3s ease;
  }
  .skill .trait:hover {
    font-weight: bold;
    color: #0be241; /* Highlight color on hover */
  }
  
  /* Description Styling */
  .skill .description {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease-in-out;
    font-size: 16px;
    color: #1307bb;
    margin-top: 10px;
  }
  
  .skill:hover .description {
    max-height: 150px; /* Adjust height as needed */
    opacity: 1;
  }
  
.Projects .box-container{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding:1rem 0;
    padding-left: 3rem;
}
.Projects .box-container .box{
    width:27rem;
    margin:4rem 1rem;
    padding-left: 4rem;
    border-left: .5rem solid #fff;
    position: relative;
    
}
.Projects .box-container .box h3{
    font-size: 2rem;
    color:#fff;
    padding-top: 1.5rem;
}
.Projects .box-container .box img{
    height:10%;
    width:10%;
    object-fit: cover;
}

.Projects .box-container .box:hover img{
    transform: scale(1.2);
}
.Contact .row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.Contact .row .content h3 {
    display: flex;
    align-items: center;
    font-size: 2rem;
    color: #92af0f;
    padding: 1rem 0;
    font-weight: normal;
}

.Contact .row .content h3 i {
    padding-right: 1rem;
    color: var(--yellow);
}

.Contact .row .content a {
    color: var(--yellow); /* Set the color of links to match the icon */
    text-decoration: none;
}

.Contact .row .content a:hover {
    text-decoration: underline; /* Underline link on hover */
}

/* Chatbox Icon Styling */
.chatbox-icon {
    width: 60px;
    height: 60px;
    background: #007bff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 20px;
    right: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 1000;
  }
  .chatbox-icon i {
    color: #2c0505;
    font-size:3rem;
  }
 /* Hide chatbox initially */
.chatbox {
    display: flex; /* Use flexbox for positioning */
    flex-direction: column; /* Stack children vertically */
    width: 300px;
    height: 300px;
    background: #e3e7e2;
    border: 2px solid #007bff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(211, 226, 5, 0.952);
    position: fixed;    
    bottom: 90px;
    right: 20px;
    z-index: 999;
}

/* Chat messages styling */
.chatbox-messages {
    color: #000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    max-height: 400px;
    padding: 10px;
    flex-grow: 1; /* Makes the message area grow to take up remaining space */
}

/* Input area */
.chatbox-input {
    display: flex;
    padding: 10px;
    background: #080101;
    border-top: 1px solid #160707;
    align-items: center; /* Aligns the input and button vertically */
}

/* Input field */
.chatbox-input input {
    flex: 1; 
    font-weight: bold;
    padding: 10px;
    border: 1px solid #1d1b1b;
    border-radius: 5px;
    outline: none;
}

/* Send button */
.chatbox-input button {
    margin-left: 10px;
    padding: 10px;
    border: none;
    background: #09a557;
    border-radius: 5px;
    cursor: pointer;
}

/* Button hover effect */
.chatbox-input button:hover {
    background: #1e0285;
}

/* Scrollbar customization */
.chatbox-messages::-webkit-scrollbar-thumb {
    background-color: #bfd30f;
    border-radius: 5px;
}

/* Sent message styling */
.message-sent {
    background-color: #06c01f;
    color: rgb(29, 31, 29);
    padding: 10px;
    border-radius: 8px;
    margin: 5px;
    align-self: flex-end;
    max-width: 70%;
}

/* Received message styling */
.message-received {
    background-color:gray;
    color: #eee;
    padding: 10px;
    border-radius: 8px;
    margin: 5px;
    align-self: flex-start;
    max-width: 70%;
}

/* footer */
/* Footer Styling */
.footer {
    background-color: #333; /* Dark background */
    color: #fff; /* White text */
    padding: 20px 0;
    text-align: center;
    font-family: Arial, sans-serif;
  }
  
  .footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
  }
  
  .footer-left, .footer-middle, .footer-right {
    flex: 1 1 300px;
    margin: 10px;
  }
  
  .footer h4 {
    font-size: 18px;
    margin-bottom: 10px;
    text-transform: uppercase;
    color: #04c444;
  }
  
  .footer p {
    font-size: 14px;
    line-height: 1.6;
  }
  
  .footer-bottom {
    border-top: 1px solid #444;
    padding-top: 10px;
    margin-top: 20px;
    font-size: 12px;
  }
  
  .footer-bottom p {
    margin: 0;
  }
  
  @media (max-width: 768px) {
    .footer-container {
      flex-direction: column;
      text-align: center;
    }
  }
/* additional styling */
/* media queries  */

@media (max-width:1200px){

    html{
        font-size: 55%;
    }

    .home{
        padding:1rem 4rem;
    }

}

@media (max-width:991px){

   header{
       left:-120%;
   }

   #menu{
       display: block;
   }

   header.toggle{
    left:0%;
   }

   body{
       padding:0;
   }

}

@media (max-width:768px){

    html{
        font-size: 50%;
    }
 
 }

@media (max-width:400px){

    header{
        width: 100vw;
    }

    .heading{
        margin:0 3rem;
    }

    .about .row .counter .box{
        width: 100%;
    }
 
    .education .box-container .box{
        width:100%;
    }

    .portfolio .box-container .box{
        width:100%;
    }

    .contact .row form{
        margin:3rem 0;
    }

 }
 /* For tablets and smaller devices */
@media only screen and (max-width: 768px) {
    .navbar ul {
        justify-content: flex-start; /* Aligns items to the left on smaller screens */
        padding-left: 10px; /* Adds padding to the left */
    }

    .navbar ul li {
        margin-right: 10px; /* Reduces space between items */
    }

    .navbar ul li a {
        font-size: 16px;
        padding: 8px 12px; /* Adjust padding for smaller screens */
    }
}

/* For mobile devices */
@media only screen and (max-width: 480px) {
    .navbar ul {
        justify-content: flex-start;
        padding-left: 5px;
    }

    .navbar ul li {
        margin-right: 10px;
    }

    .navbar ul li a {
        font-size: 14px;
        padding: 8px 10px;
    }
}