:root {
    --primary-color: #2E8B57;
    --bg-light: #f5f5f5;
    --bg-dark: #121212;
    --text-light: #333;
    --text-dark: #eee;
    --card-bg-light: #fff;
    --card-bg-dark: #1f1f1f;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: var(--bg-light);
    color: var(--text-light);
    transition: background 0.3s, color 0.3s;
  }
  
  [data-theme="dark"] body {
    background: var(--bg-dark);
    color: var(--text-dark);
  }
  
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 60px;
    height: 100%;
    background: var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
  }
  
  .sidebar .logo {
    font-size: 24px;
    color: white;
    margin-bottom: 20px;
  }
  
  .sidebar .nav-links {
    list-style: none;
    padding: 0;
    width: 100%;
  }
  
  .sidebar .nav-links li {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
  }
  
  .sidebar .nav-links a {
    color: white;
    font-size: 20px;
    display: block;
    transition: 0.3s;
  }
  
  .sidebar .nav-links a:hover {
    background: rgba(255,255,255,0.1);
  }
  
  main {
    margin-left: 80px;
    padding: 20px;
  }
  
  section {
    padding: 60px 0;
  }
  
  .hero {
    text-align: center;
    margin-top: 40px;
  }
  
  .profile-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 20px;
  }
  
  .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
  
  .portfolio-item {
    background: var(--card-bg-light);
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: background 0.3s, transform 0.3s;
  }
  
  .portfolio-item:hover {
    transform: translateY(-5px);
  }
  
  [data-theme="dark"] .portfolio-item {
    background: var(--card-bg-dark);
  }
  

  .contact-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
  }
  
  .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
  }
  
  .contact-item i {
    font-size: 24px;
    color: var(--primary-color);
  }
  
  .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
  }
  
  .skill-item {
    background: var(--card-bg-light);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-weight: 600;
    transition: background 0.3s;
  }
  
  [data-theme="dark"] .skill-item {
    background: var(--card-bg-dark);
  }
  


  @media (max-width: 768px) {
    .sidebar {
      width: 50px;
    }
    
    .sidebar .logo {
      font-size: 20px;
      margin-bottom: 15px;
    }
  
    .sidebar .nav-links a {
      font-size: 18px;
    }
  
    main {
      margin-left: 65px;
      padding: 15px;
    }
  
    .profile-img {
      width: 120px;
      height: 120px;
    }
  
    section {
      padding: 40px 0;
    }
  }
  
  @media (max-width: 480px) {
    .sidebar {
      width: 45px;
    }
    
    .sidebar .logo {
      font-size: 18px;
    }
  
    .sidebar .nav-links a {
      font-size: 16px;
    }
  
    main {
      margin-left: 60px;
      padding: 10px;
    }
  
    .profile-img {
      width: 100px;
      height: 100px;
    }
  
    h1 {
      font-size: 22px;
    }
  
    h2 {
      font-size: 20px;
      margin-bottom: 10px;
    }
  
    .portfolio-item img {
      height: 150px;
    }
  }

  .portfolio-icon {
    font-size: 60px;
    margin-bottom: 15px;
    color: var(--primary-color);
  }
  
  .portfolio-icon-svg {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    color: var(--primary-color);
    fill: currentColor;
  }
  
  .language-switch {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 18px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: background 0.3s, transform 0.2s;
    z-index: 9999;
  }
  
  .language-switch:hover {
    background-color: #256d47;
    transform: scale(1.05);
  }
  
  .theme-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
  }
  
  .theme-controls button {
    background-color: var(--primary-color);
    border: none;
    color: white;
    font-size: 22px;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: background 0.3s, transform 0.2s;
  }
  
  .theme-controls button:hover {
    background-color: #256d47;
    transform: scale(1.1);
  }
  
  .skills-group {
    margin-bottom: 40px;
  }
  
  .skill {
    margin-bottom: 15px;
  }
  
  .skill span {
    font-weight: 600;
    font-size: 16px;
  }
  
  .skill-bar {
    background: #ddd;
    height: 10px;
    border-radius: 8px;
    margin-top: 5px;
    overflow: hidden;
  }
  
  .skill-progress {
    height: 100%;
    background: var(--primary-color);
    border-radius: 8px;
    transition: width 0.5s ease;
  }
  
  [data-theme="dark"] .skill-bar {
    background: #333;
  }
  
  a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
  }
  
  a:hover {
    color: #aaa;
  }
  
  .skills-category {
    margin-bottom: 40px;
  }
  
  .skills-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
  }
  
  .skill {
    background: var(--card-bg-light);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: background 0.3s;
  }
  
  .skill span {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
  }
  
  .skill-bar {
    background: #ccc;
    border-radius: 10px;
    height: 6px;
    overflow: hidden;
    width: 100%;
  }
  
  .skill-progress {
    background: var(--primary-color);
    height: 100%;
    border-radius: 10px 0 0 10px;
    transition: width 0.5s ease;
  }
  

  [data-theme="dark"] .skill {
    background: var(--card-bg-dark);
  }
