.intro-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 1rem;
  }
  
  .profile-pic {
    width: 280px;        /* Adjust size */
    height: 280px;
    object-fit: cover;
    border-radius: 100px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
  }
  
  .intro-text {
    flex: 1;
    min-width: 250px;
  }
  
/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa;
    color: #212529;
    padding: 0 20px;
  }
  
  /* Header and Navigation */
  .header {
    background-color: #343a40;
    padding: 20px 0;
    color: #fff;
  }
  
  .nav {
    display: flex;
    justify-content: space-between;
    align-items: left;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 3.5rem;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  .nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
  }
  
  .nav-links li a{
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    
  }
  
  .nav-links li a:hover {
    text-decoration: underline;
  }
  
  /* Sections */
  section {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  section h2, section h3, section h4 {
    color: #343a40;
    margin-bottom: 15px;
  }
  
  /* Button */
  .button {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 15px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
  }
  
  .button:hover {
    background-color: #0056b3;
  }
  
  /* Publications */
  .pub-section {
    margin-bottom: 20px;
  }
  
  .pub-section ul {
    padding-left: 20px;
    list-style-type: disc;
  }
  
  /* Work cards */
  .works {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  
  .work-card {
    background-color: #e9ecef;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
  }
  
  .work-card h4 {
    margin-bottom: 10px;
    color: #212529;
  }
  
  .work-card a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
  }
  
  .work-card a:hover {
    text-decoration: underline;
  }
  
  /* Footer */
  .footer {
    text-align: center;
    padding: 30px 0;
    background-color: #343a40;
    color: white;
    margin-top: 60px;
  }
  
  .footer .social {
    margin-top: 10px;
  }
  
  .footer a {
    color: #f8f9fa;
    margin: 0 10px;
    text-decoration: none;
  }
  
  .footer a:hover {
    text-decoration: underline;
  }
  

    /* Dark mode */
  :root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --accent-color: #0077cc;
  }
  
  body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  
  a {
    color: var(--accent-color);
  }
  
  /* DARK MODE VARIABLES OVERRIDE */
  body.dark-mode {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --accent-color: #1e90ff;
  }
  

  /* Dark mode overrides */
body.dark-mode {
  --bg-color: #121212;
  --text-color: #e0e0e0;
  --accent-color: #4dabf7;
  --card-bg: #1e1e1e;
  --button-bg: #4dabf7;
  --button-text: #ffffff;
}

/* Apply base background and text */
body {
  background-color: var(--bg-color);
  color: var(--text-color);
}

/* Update sections like .home, .about, etc. */
.home, .about, .publications, .portfolio, .footer {
  background-color: var(--bg-color);
  color: var(--text-color);
}

/* Make cards (like .home) pop with soft dark backgrounds */
.home, .work-card, .pub-section {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 0 12px rgba(0,0,0,0.3);
}

/* Fix button styles */
.button {
  background-color: var(--accent-color);
  color: var(--button-text);
  padding: 0.25rem 0.5rem;
  border: none;
  border-radius: 0.5rem;
  text-decoration: none;
  font-size: 10px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: #339af0;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4 {
  color: #ffffff;
}

#theme-toggle {
    position: fixed;
    top: 2rem;
    right: 4rem;
    z-index: 1000;
    font-size: 1.75rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);

    color: transparent;
    text-shadow: 0 0 0 var(--text-color);

  }
  