body {
    margin: 0 20%;
    margin-top: 5%;
    margin-bottom: 5%;
    font-family: "Poppins", sans-serif;
    font-weight: 100;
    font-style: normal;
}


.parent {
    display: grid;
    grid-template-columns: 2fr 5fr 1fr;
    grid-template-rows: 1fr;
    grid-column-gap: 10px;
    grid-row-gap: 0px;
    }

    .parent h1{
        color: #049CB3;
    }

    .div1 { grid-area: 1 / 1 / 2 / 2; }
    .div2 { grid-area: 1 / 2 / 2 / 3; }
    .div3 { grid-area: 1 / 3 / 2 / 4; }

    .div1 img {
        width: 100%;
        height: auto;
        padding: 0px;
        object-fit: contain;
        border-radius: 50%; 
    }
  

  .div2{
    margin-top: 20px;
    padding: 0;
    line-height: 25px;
    justify-content: center;    
    align-items: center;        
    padding: 20px;              
  }
  .div2 h1{
    padding: 0;
    margin: 0;
  }
  .div2 p{
    padding: 0;
    margin: 0;
    font-weight: 300;
    font-style: normal;
  }

  .div2 h3{
    padding: 0;
    margin-top: 10px;
    font-size: 1.1rem;
    font-weight: 400;
  }

  .div3 {
    display: flex;                                  
    justify-content: flex-end;                       
    align-items: flex-start;                         
}

button {
    background-color: #5272F8;        
    color: white;                     
    border: none;                     
    padding: 5px 20px;               
    text-align: center;               
    text-decoration: none;            
    display: inline-block;            
    font-size: 16px;                  
    border-radius: 5px;               
    cursor: pointer;                 
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-family: "Poppins", sans-serif;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
}

.dark-mode {
    background-color: black;
    color: white;
  }

.dark-mode button{
    background-color: #5272F8;        
    color: rgb(255, 255, 255);  
}

button:hover {     
    transform: scale(1.05);            
}

button:focus {
    outline: none;                    
}

/* From Uiverse.io by Madflows */
.toggle-switch {
    position: relative;
    width: 52px; 
    height: 23px; 
    --light: #F2F2F5;
    --dark: #5272F8;
    --link: rgb(27, 129, 112);
    --link-hover: rgb(24, 94, 82);
    display: flex;
    justify-content: center;
    align-items: center;
}

.switch-label {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--dark);
    border-radius: 15px;
    cursor: pointer;
    border: 3px solid var(--dark);
}

.checkbox {
    position: absolute;
    display: none;
}

.slider {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    -webkit-transition: 0.3s;
    transition: 0.3s;
}

.checkbox:checked ~ .slider {
    background-color: var(--light);
}

.slider::before {
    content: "";
    position: absolute;
    top: 2px; /* Adjust for smaller size */
    left: 2px; /* Adjust for smaller size */
    width: 18px; /* Smaller circle */
    height: 18px; /* Smaller circle */
    border-radius: 50%;
    -webkit-box-shadow: inset 12px -4px 0px 0px var(--light);
    box-shadow: inset 12px -4px 0px 0px var(--light);
    background-color: var(--dark);
    -webkit-transition: 0.3s;
    transition: 0.3s;
}

.checkbox:checked ~ .slider::before {
    -webkit-transform: translateX(30px); /* Adjust for smaller size */
    -ms-transform: translateX(30px);
    transform: translateX(30px);
    background-color: var(--dark);
    -webkit-box-shadow: none;
    box-shadow: none;
}

.container{
    border: 0.5px solid #0464AE;
    padding: 3%;
    border-radius: 10px;
    margin-top: 3%;
}

.about p{
    font-weight: 300;
    text-align: justify;
    font-size: 15px;
}

.about h2, .content h2, .connect h2{
    color: #049CB3;
}

.content{
    display: grid;
    grid-template-columns: 2fr 2fr;
    grid-template-rows: 1fr;
    grid-column-gap: 20px;
    grid-row-gap: 0px;
    margin-top: 3%;
}

@keyframes appear {
    from{
      opacity: 0;
      scale: 0.5;
    }
    to{
      opacity: 1;
      scale: 1;
    }    
  }

.recent-project{
    border: 0.5px solid #0464AE;
    padding: 5%;
    border-radius: 15px;
    grid-column: span 1;
}

.projects{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    gap: 10px;
    grid-row-gap: 0px;
}

.no-link-style {
    text-decoration: none;
}

.colored {
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 10px;
    margin: 0;
    border-radius: 15px;
    text-align: left;
    border: 0.5px solid #0464AE;
}

.fa-solid, .dark-mode .fa-solid{
    color: #049CB3;
}

.colored:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.colored h3 {
    font-size: 0.8rem;
    color: black;
    margin-bottom: -10px;
}

.dark-mode .colored h3 {
    color: rgb(255, 255, 255);
}

.colored p {
    font-size: 10px;
    color: #000000;
    margin-bottom: 5px;
    font-weight: 300;
    text-align: left;
    font-style: italic;
}

.dark-mode .colored p {
    color: white;
}

.dark-mode .link {
    background-color: #ffffff7e;
    font-weight: 200;
}

.dark-mode .link p{
    color: rgb(0, 0, 0);
}

.link {
    background-color: #96969681;
    border-radius: 50px;
    color: #000000;
    width: auto;
    display: inline-block;
}

.link p {
    color: #000000;
    padding: 2px;
    margin: 5px;
    font-size: 9px;
    font-style: normal;
}

.connect{
    border: 0.5px solid #0464AE;
    margin-top: 3%;
    padding: 3%;
    border-radius: 10px;
}

.container, .recent-project, .education, .connect{
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.dark-mode .container, .dark-mode .education, .dark-mode .recent-project, .dark-mode .colored{
    background-color: rgb(22, 22, 22);
    /*animation: appear linear;
    animation-timeline: view();
    animation-range: entry 0;*/
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.dark-mode .connect{
    background-color: rgb(22, 22, 22);
}

/*.container, .education, .recent-project, .colored{
    animation: appear linear;
    animation-timeline: view();
    animation-range: entry 0;
}*/

.education{
    border: 0.5px solid #0464AE;
    padding: 5%;
    border-radius: 10px;
    align-items: center;
    text-align: left;
    justify-content: center;
}

.form-container {
    width: 100%;
    padding: auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.col {
    flex: 1;
    min-width: 200px;
}

.form-control {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 0.5px solid #0464AE;
    border-radius: 10px;
    box-sizing: border-box;
    background-color: transparent;
    font-family: "Poppins", sans-serif;
}

.form-control::placeholder {
    color: grey;
    font-size: 13px;
}

.dark-mode .form-control::placeholder {
    color: lightgrey;
    font-size: 13px;
}


.form-control:focus {
    border-color: #049CB3;
    outline: none;
}

.dark-mode .form-control:focus {
    border-color: grey;
} 

textarea.form-control {
    resize: none;
}

.timeline {
    position: relative;
    width: 90%;
    margin: 20px;
}

.timeline-item {
    position: relative;
    padding: 1px 0;
    border-left: 1px solid #000000;
}

.dark-mode .timeline-item {
    border-left: 1px solid #ffffff;
}

.dark-mode .timeline-item:before {
    background-color: #0464AE;
}


.timeline-item:before {
    content: '';
    position: absolute;
    left: -8px;
    top: 16px;
    width: 16px;
    height: 16px;
    background-color: #5272F8;
    border-radius: 50%;
}

.timeline-content {
    padding-left: 30px;
    padding-right: 20px;
    border-radius: 6px;
    font-size: 9px;
    text-align: left;
    margin: 0;
}

.timeline-content h3 {
    font-size: 1.2em;
    margin-bottom: 0px;
    font-size: 14px;
}

.timeline-content p {
    font-size: 1em;
    margin-bottom: 0px;
    font-weight: 300;
    font-size: 13px;
}

.date {
    font-size: 0.9em;
    color: #666;
    font-weight: 300;
    font-size: 11px;
}

footer {
    text-align: left;
    padding: 20px 0;
    color: #000000;
    margin-top: 3%;
}

footer hr {
    margin: 10px auto;
    border: 0;
    border-top: 1px solid #0464AE;
}

footer p {
    font-size: 14px;
    margin: 0;
    font-weight: 300;
}

.dark-mode footer hr{
    border-top: 1px solid #0464AE;
}

.dark-mode footer p{
    color: white;
}

/* Mobile view (up to 480px) */
@media screen and (max-width: 480px) {
    .chatbot-button{
        display=none;
    }
    
    body {
        margin: 0 5%;
        margin-top: 5%;
    }

    .parent {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        margin-top: 5%;
    }

    .div1, .div2, .div3 {
        grid-column: 1 / 1;
        margin: 10px 0;
    }

    .div2 {
        padding: 10px;
        line-height: 20px;
        margin-left: 50%;
        margin-top: 20%;
    }

    .div2 h1 {
        font-size: 14px;
    }

    .div2 h3 {
        font-size: 14px;
    }

    .content {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 10px;
    }

    .projects {
        grid-template-columns: 1fr;
    }

    .colored h3 {
        font-size: 0.9rem;
    }

    footer p {
        font-size: 12px;
    }

    .div1 img {
        width: 50%;
        height: auto;
        padding: 0px;
        border-radius: 50%; 
    }

    .div2 h1{
        font-size: 1rem;
      }
      .div2 p{
        font-size: 11px;
      }
    
      .div2 h3{
        font-size: 11px;
        font-weight: 200;
        margin-top: 0px;
      }

      button {                         
        padding: 5px 10px;                          
        font-size: 10px;                  
    }

    .toggle-switch {
        width: 52px; 
        height: 23px; 
    }

    .about p{
        font-weight: 300;
        font-size: 10px;
    }

    .about h2{
        font-size: 1rem;
    }

    .recent-project h2{
        font-size: 1rem;
    }

    .colored h3{
        font-size: 12px;
    }

    .colored{
        padding: 10px;
    }

    .link p{
        font-size: 8px;
    }

    .projects{
        grid-row-gap: 10px;
    }

    .education h2{
        font-size: 1rem;
    }

    .timeline-content h3{
        font-size: 13px;
    }

    .timeline-content p{
        font-size: 11px;
    }

    .date{
        font-size: 9px;
    }

    .connect h2{
        font-size: 1rem;
    }

    .form-control {
        padding: 5px;
        font-size: 12px;
    }

}

  
  
  /* Tablet view (481px to 768px) */
  @media screen and (min-width: 481px) and (max-width: 768px) {
    body {
        margin: 0 8%;
        margin-top: 5%;
    }

    .parent {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        margin-top: 5%;
    }

    .div1, .div2, .div3 {
        grid-column: 1 / 1;
        margin: 10px 0;
    }

    .div2 {
        padding: 10px;
        line-height: 20px;
        margin-left: 50%;
        margin-top: 20%;
    }

    .div2 h1 {
        font-size: 14px;
    }

    .div2 h3 {
        font-size: 14px;
    }

    .content {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 10px;
    }

    .projects {
        grid-template-columns: 1fr;
    }

    .colored h3 {
        font-size: 0.9rem;
    }

    footer p {
        font-size: 12px;
    }

    .div1 img {
        max-width: 50%;
        max-height: auto;
        padding: 0px;
        object-fit: contain;
        border-radius: 50%; 
    }

    .div2 h1{
        font-size: 1rem;
      }
      .div2 p{
        font-size: 11px;
      }
    
      .div2 h3{
        font-size: 11px;
        font-weight: 200;
        margin-top: 0px;
      }

      button {                         
        padding: 5px 10px;                          
        font-size: 10px;                  
    }

    .toggle-switch {
        width: 52px; 
        height: 23px; 
    }

    .about p{
        font-weight: 300;
        font-size: 10px;
    }

    .about h2{
        font-size: 1rem;
    }

    .recent-project h2{
        font-size: 1rem;
    }

    .colored h3{
        font-size: 12px;
    }

    .colored{
        padding: 10px;
    }

    .link p{
        font-size: 8px;
    }

    .projects{
        grid-row-gap: 10px;
    }

    .education h2{
        font-size: 1rem;
    }

    .timeline-content h3{
        font-size: 13px;
    }

    .timeline-content p{
        font-size: 11px;
    }

    .date{
        font-size: 9px;
    }

    .connect h2{
        font-size: 1rem;
    }

    .form-control {
        padding: 5px;
        font-size: 12px;
    }
  }
  
  /* Larger tablets or small desktops (769px to 1024px) */
  @media screen and (min-width: 769px) and (max-width: 1024px) {
    body {
        margin: 0 10%;
        margin-top: 5%;
    }

    .parent {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        margin-top: 5%;
    }

    .div1, .div2, .div3 {
        grid-column: 1 / 1;
        margin: 10px 0;
    }

    .div2 {
        padding: 10px;
        line-height: 20px;
        margin-left: 50%;
        margin-top: 20%;
    }

    .div2 h1 {
        font-size: 14px;
    }

    .div2 h3 {
        font-size: 14px;
    }

    .content {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 10px;
    }

    .projects {
        grid-template-columns: 1fr;
    }

    .colored h3 {
        font-size: 0.9rem;
    }

    footer p {
        font-size: 12px;
    }

    .div1 img {
        max-width: 50%;
        max-height: auto;
        padding: 0px;
        object-fit: contain;
        border-radius: 50%; 
    }

    .div2 h1{
        font-size: 1rem;
      }
      .div2 p{
        font-size: 11px;
      }
    
      .div2 h3{
        font-size: 11px;
        font-weight: 200;
        margin-top: 0px;
      }

      button {                         
        padding: 5px 10px;                          
        font-size: 10px;                  
    }

    .toggle-switch {
        width: 52px; 
        height: 23px; 
    }

    .about p{
        font-weight: 300;
        font-size: 10px;
    }

    .about h2{
        font-size: 1rem;
    }

    .recent-project h2{
        font-size: 1rem;
    }

    .colored h3{
        font-size: 12px;
    }

    .colored{
        padding: 10px;
    }

    .link p{
        font-size: 8px;
    }

    .projects{
        grid-row-gap: 10px;
    }

    .education h2{
        font-size: 1rem;
    }

    .timeline-content h3{
        font-size: 13px;
    }

    .timeline-content p{
        font-size: 11px;
    }

    .date{
        font-size: 9px;
    }

    .connect h2{
        font-size: 1rem;
    }

    .form-control {
        padding: 5px;
        font-size: 12px;
    }
  }
  

  /* Chatbot Button */
  .chatbot-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #0056b3;
    color: white;
    border-radius: 50%;
    padding: 20px; /* Ensure the padding is consistent */
    cursor: pointer;
    font-size: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 20px;  /* Set width and height to the same value */
    height: 20px; /* To make it a perfect circle */
    display: flex;
    justify-content: center;
    align-items: center;
}


.chatbot-button:hover {
    background-color: #0056b3;
}

/* Chatbot Popup */
.chatbot-popup {
    display: none;
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 400px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    z-index: 1000;
}

.popup-header {
    background-color: #5272F8;
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 300;
}

.popup-body {
    padding: 15px;
    font-size: 14px;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: none;
}

/* Show Popup */
.chatbot-popup.show {
    display: block;
}