*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: #333;
}

body{
    background-color: #f5f5f5;
}

header{
    background-color: #4CAF50;
    color: white;
    padding: 10px 0;
    text-align: left;
    position: sticky;
    top: 0;
    z-index: 1000; /* Ensure header stays above other content */
}


nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav a:focus,
nav a:hover {
    text-decoration: underline;
    color: blue;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #4CAF50;
}

#brand {
    font-size: 24px;
    font-weight: bold;
    color: white;
}

#links {
    display: flex;
    gap: 30px;
    list-style: none;/*Remove bullet points*/
    margin: 0;/*Remove margin and padding to gain complete CSS control from the browser*/
    padding: 0;
}

@media (max-width: 768px) {
    nav {
      flex-wrap: wrap;
      gap: 10px;
    }
  
    #links {
      flex-wrap: wrap;
      gap: 15px;
    }
  
    nav a {
      font-size: 0.85rem;
    }
  
    #brand {
      font-size: 1rem;
    }
}
    

#about {
    background-color: #ffffff;
    background: linear-gradient(to bottom, #ffffff, #f9f9f9);
    padding: 60px 20px;
    max-width: 800px;
    margin: 60px auto;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); 
}

#about h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333333;
}

#about p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555555;
}

#projects {
    background-color: #ffffff;
    padding: 60px 20px;
    max-width: 1100px;
    margin: 60px auto;
}

#projects h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

#projects article {
    background-color: #fafafa;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#projects img {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 10px;
}


#projects h3 {
    margin-top: 15px;
    font-size: 1.4rem;
    color: #4CAF50;
    text-align: center;
}

#projects figcaption {
    font-size: 0.95rem;
    color: #666;
    margin-top: 5px;
    text-align: center;
}
   
.project-grid {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    background-color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.project-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}
  
.project-link:hover article {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
  
.project-icon {
    font-size: 1.2rem;
    color: #333;
    margin-right: 8px;
    vertical-align: middle;
}
  

@media (min-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr 1fr; 
    }
}

@media (min-width: 1024px) {
    .project-grid {
        grid-template-columns: 1fr 1fr 1fr; 
    }
}

#skills {
    background-color: #ffffff;
    padding: 60px 20px;
    max-width: 800px;
    margin: 10px auto;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
 
#skills h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #333333;
}
  
.skill-category {
    margin-bottom: 40px;
}

  
.skill-category h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #4CAF50;
}
  
.skill-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}
  
.skill-badges li {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}
  
.skill-badges li:hover {
    background-color: #c8e6c9;
}

.skill-badges li {
    position: relative;
    cursor: help;
}
  
.skill-badges li::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 0.8rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid #ccc;
}
  
.skill-badges li:hover::after {
    opacity: 1;
}
  
.skill-badges li a {
    color: inherit;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    height: 100%;
}
  
.skill-badges li a:hover {
    text-decoration: underline;
}

.skill-badges li i {
    margin-right: 8px;
    font-size: 1.1rem;
    vertical-align: middle;
}
  
.fa-html5 { color: #e34c26; }
.fa-css3-alt { color: #264de4; }
.fa-js-square { color: #f7df1e; }
.fa-react { color: #61DBFB; }
.fa-python { color: #306998; }
.fa-node { color: #68a063; }
.fa-git-alt { color: #f1502f; }
.fa-github { color: #000000; }
.fa-code-branch { color: #007acc; }
.fa-code { color: #9b4f96; }
.fa-fire { color: #512BD4; }         
.fa-server { color: #0078D7; }   
.fa-infinity { color: #512BD4; }
.fa-bolt { color: #ffcc00; }
.fa-database { color: #f48c06; }     
.fa-superscript { color: #6c757d; }  
.fa-brain { color: #f06292; }        
.fa-chart-bar { color: #4caf50; }    
.fa-chart-pie { color: #f9a825; }    
.fa-server { color: #5c6bc0; }       
.fa-chart-line { color: #ff4b4b; }    
.fa-microsoft { color: #0078D4; }    
.fa-globe { color: #0078d4; }
.fa-chart-line { color: #ff4b4b; }

#contact {
    background-color: #ffffff;
    padding: 60px 30px;
    max-width: 700px;
    margin: 60px auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
  
#contact h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}
  
#contact form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
  
#contact label {
    font-weight: 600;
    color: #4CAF50;
    margin-bottom: 5px;
}
  
#contact input,
#contact textarea {
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
}
  
#contact input:focus,
#contact textarea:focus {
    border-color: #4CAF50;
    outline: none;
}
  
#contact button {
    padding: 12px 20px;
    font-size: 1rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    align-self: flex-start;
    transition: background-color 0.3s ease;
}
  
#contact button:hover {
    background-color: #45a049;
}

.input-group {
    display: flex;
    flex-direction: column;
}
  
.input-group label i {
    margin-right: 8px;
    color: #4CAF50;
}

#contact label i.fa-user { color: #3f51b5; }
#contact label i.fa-envelope { color: #f44336; }
#contact label i.fa-comment-dots { color: #4CAF50; }


#contact button i.fa-paper-plane {
  color: #ffffff; 
  margin-right: 6px;
}

.toast {
    visibility: hidden;
    min-width: 200px;
    max-width: 90%;
    background-color: #4CAF50;
    color: white;
    text-align: center;
    border-radius: 8px;
    padding: 12px 16px;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: visibility 0s, opacity 0.3s ease-in-out;
    opacity: 0;
}
  
.toast.show {
    visibility: visible;
    opacity: 1;
}
  

  
  
  