* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
  }
  
  .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  header {
    background: #2c3e50;
    color: white;
    padding: 1rem 0;
  }
  
  header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
  }
  
  .language-switcher button {
    background: #34495e;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    margin-left: 0.5rem;
    cursor: pointer;
    border-radius: 4px;
  }
  
  .language-switcher button:hover {
    background: #3d566e;
  }
  
  section {
    padding: 4rem 0;
    border-bottom: 1px solid #eee;
  }
  
  h2 {
    margin-bottom: 2rem;
    color: #2c3e50;
  }
  
  /* Timeline */
  .timeline-item {
    margin-bottom: 2rem;
    padding-left: 2rem;
    border-left: 3px solid #3498db;
  }
  
  .timeline-item h3 {
    color: #2c3e50;
  }
  
  .timeline-item .company {
    font-weight: bold;
    color: #3498db;
  }
  
  .timeline-item .date {
    font-size: 0.9rem;
    color: #7f8c8d;
    display: block;
    margin: 0.5rem 0;
  }
  
  /* Project grid */
  .project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }
  
  .project-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s;
  }
  
  .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
  
  .project-card img {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
  }
  
  .project-card h3 {
    margin: 1rem 0 0.5rem;
  }
  
  .project-card .details-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    cursor: pointer;
  }
  
  .project-links a {
    display: inline-block;
    margin: 0.5rem;
    color: #3498db;
    text-decoration: none;
  }
  
  /* Modal */
  .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
  }
  
  .modal-content {
    background-color: var(--modal-bg);
    color: var(--modal-text);
    margin: 10% auto;
    padding: 2rem;
    border-radius: 8px;
    max-width: 600px;
    position: relative;
    transition: background-color 0.3s, color 0.3s;
  }
  
  .close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--modal-close);
  }
  
  /* Footer */
  footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0;
    text-align: center;
  }
  
  footer a {
    color: #3498db;
    text-decoration: none;
    margin: 0 0.5rem;
  }
  
  /* RTL support */
  [dir="rtl"] {
    text-align: right;
  }
  
  [dir="rtl"] .timeline-item {
    border-left: none;
    border-right: 3px solid #3498db;
    padding-left: 0;
    padding-right: 2rem;
  }

  .language-switcher select {
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: white;
    font-size: 1rem;
  }

  .modal-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    margin: 0.5rem;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
  }
  
  .modal-btn:hover {
    background: #2980b9;
  }
  
  .modal-btn.repo-btn {
    background: #2c3e50;
  }
  
  .modal-btn.repo-btn:hover {
    background: #1a252f;
  }
  
  .modal-btn.demo-btn {
    background: #27ae60;
  }
  
  .modal-btn.demo-btn:hover {
    background: #219653;
  }

  footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0;
    text-align: center;
  }
  
  footer a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
  }
  
  footer a:hover {
    color: #3498db;
  }
  
  .footer-email {
    margin-bottom: 1rem;
    font-size: 1.1rem;
  }
  
  .footer-social {
    margin-bottom: 1rem;
  }
  
  .footer-social a {
    display: inline-block;
    margin: 0 1rem;
    font-size: 2rem;
  }
  
  .footer-copyright {
    font-size: 0.9rem;
    opacity: 0.8;
  }
  #theme-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 1rem;
  }
  
  #theme-toggle:hover {
    color: #3498db;
  }
  :root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --heading-color: #2c3e50;
    --card-bg: #ffffff;
    --card-border: #ddd;
    --footer-bg: #2c3e50;
    --footer-text: #ffffff;
    --link-color: #3498db;
    --link-hover: #2980b9;
    --modal-bg: #ffffff;
    --modal-text: #333333;
    --modal-close: #333333;
  }
  
  body.dark-theme {
    --bg-color: #1a1a1a;
    --text-color: #f0f0f0;
    --heading-color: #bb86fc;
    --card-bg: #2d2d2d;
    --card-border: #444;
    --footer-bg: #000000;
    --footer-text: #f0f0f0;
    --link-color: #bb86fc;
    --link-hover: #9b6bdb;
    --modal-bg: #2d2d2d;
    --modal-text: #f0f0f0;
    --modal-close: #f0f0f0;
  }
  
  body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
  }
  
  .project-card {
    background-color: var(--card-bg);
    border-color: var(--card-border);
  }
  
  footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
  }
  
  a {
    color: var(--link-color);
  }
  
  a:hover {
    color: var(--link-hover);
  }

  .company-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-right: 1rem;
    float: left;
    border-radius: 4px;
  }
  
  .timeline-content {
    overflow: auto; /* clearfix to contain floated image */
  }
  .btn {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
  }
  .btn:hover {
    background: #2980b9;
  }
  .resume-btn {
    margin-left: 1rem;
  }