/* General Styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f4f4f4, #e2e2e2);
    color: #333;
  }
  
  header {
    background-color: #333;
    color: #fff;
    padding: 0.5rem 0; /* Reduced padding to make it thinner */
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    height: 50px; /* Fixed height for the header */
    display: flex;
    align-items: center; /* Vertically center the content */
    justify-content: center; /* Horizontally center the content */
  }
  
  nav ul {
    list-style: none;
    padding: 0;
  }
  
  nav ul li {
    display: inline;
    margin: 0 10px;
  }
  
  nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  
  nav ul li a:hover {
    background-color: #0077b5;
    color: #fff;
    border-radius: 5px;
  }
  
  footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 0.5rem 0; /* Reduced padding to make it thinner */
    position: fixed;
    width: 100%;
    bottom: 0;
    height: 40px; /* Fixed height for the footer */
    display: flex;
    align-items: center; /* Vertically center the content */
    justify-content: center; /* Horizontally center the content */
  }
  
  /* Home Page Layout */
  .home-container {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
  }
  
  .left-section {
    flex: 1;
    margin-right: 20px;
    padding: 20px;
  }
  
  .right-section {
    flex: 1;
    margin-left: 20px;
    padding: 20px;
  }
  
  .portrait {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
  }
  
  .portrait:hover {
    transform: scale(1.05);
  }
  
  /* Social Icons Styles */
  .social-icons {
    margin-top: 20px;
  }
  
  .social-icons a {
    text-decoration: none;
    color: #333;
    font-size: 24px;
    margin-right: 15px;
    transition: color 0.3s ease;
  }
  
  .social-icons a:hover {
    color: #0077b5;
  }
  
  .social-icons a:nth-child(2):hover {
    color: #333;
  }
  
  .social-icons a:nth-child(3):hover {
    color: #d44638;
  }
  
  /* Skill Section Styles */
  .skill-category {
    margin-bottom: 40px;
  }
  
  .skill-category h3 {
    font-size: 1.75rem;
    margin-bottom: 15px;
    color: #333;
  }
  
  .skill-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .skill-icons a {
    text-decoration: none;
    color: #333;
    font-size: 3.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    border-radius: 10px;
    background-color: #f4f4f4;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
  }
  
  .skill-icons a:hover {
    color: #0077b5;
    transform: scale(1.1);
    background-color: #e2e2e2;
  }
  
  /* Tooltip effect */
  .skill-icons a::after {
    content: attr(title);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .skill-icons a:hover::after {
    opacity: 1;
  }
  
  /* Experience Page Styles */
  .experience {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
  }
  
  .project {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .project:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .home-container {
      flex-direction: column;
    }
  
    .left-section, .right-section {
      margin: 0;
    }
  
    .right-section {
      margin-top: 20px;
    }
  
    .portrait {
      margin-left: 0;
      margin-top: 20px;
    }
  }
  
  /* Dark Mode Styles */
  .dark-mode {
    background: linear-gradient(135deg, #333, #222);
    color: #fff;
  }
  
  .dark-mode header {
    background-color: #222;
  }
  
  .dark-mode .home-container,
  .dark-mode .experience {
    background-color: #444;
    color: #fff;
  }
  
  .dark-mode .project {
    background-color: #555;
    color: #fff;
  }
  
  .dark-mode .skill-icons a {
    background-color: #555;
    color: #fff;
  }
  
  .dark-mode .skill-icons a:hover {
    background-color: #666;
  }