/* All your existing CSS goes here */

:root {
  /* New Color Scheme: Professional Burnt Orange & Blue */
  --primary-accent: #C0522B; /* Burnt Orange - for main buttons, links, strong accents */
  --secondary-accent: #D7E1E7; /* Soft Blue-Grey - for lighter accents, tags, secondary elements */
  --dark-text: #2B3A42; /* Charcoal Blue - for main headings and strong text */
  --light-text: #6D7F8F; /* Slate Grey - for secondary text, paragraphs */
  --background-light: #F4F6F8; /* Light Grey - for general page background */
  --card-background: #FFFFFF; /* Crisp White - for card backgrounds */
  --border-color: #E2E8F0; /* Off-White - for borders */
  --shadow-light: rgba(43, 58, 66, 0.05); /* Subtle shadow */
  --shadow-medium: rgba(43, 58, 66, 0.1); /* Slightly stronger shadow */
  --footer-background: #1C262C; /* Dark Blue - for footer */

  /* Particle background colors (subtle) */
  --particle-color-1: rgba(192, 82, 43, 0.2); /* Primary Burnt Orange with transparency */
  --particle-color-2: rgba(215, 225, 231, 0.15); /* Secondary Blue-Grey with transparency */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--background-light);
  color: var(--dark-text);
  line-height: 1.7;
  padding-bottom: 6em; /* Adjust this value to match your footer's height */
}
a {
  color: var(--primary-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: var(--dark-text); /* Darker text on hover for links */
}

/* News Cards Section */
.news-cards-section {
    padding: 5em 2.5em;
    background-color: var(--background-light);
    text-align: center;
}

.news-cards-section h2 {
    margin-bottom: 1.5em;
    font-size: 2em;
    color: var(--dark-text);
}

.cards-container {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
    max-width: 2000px;
    margin: 0 auto;
}

.news-card {
    background-color: var(--card-background);
    padding: 1.8em;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-light);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    border: 1px solid var(--border-color);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.news-card h3 {
    margin-top: 0;
    margin-bottom: 0.8em;
    font-size: 1.5em;
    color: var(--primary-accent);
}

.news-card p {
    font-size: 1.2em;
    line-height: 2;
    color: var(--light-text);
    margin-bottom: 1em;
    flex-grow: 1;
}

.card-link {
    display: inline-block;
    margin-top: 1em;
    color: var(--primary-accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.card-link:hover {
    color: var(--dark-text);
    text-decoration: underline;
}

/* Card Specific Colors (examples, adjusted to new palette) */
.news-card.card-primary {
    background-color: var(--card-background);
    border-left: 5px solid var(--primary-accent);
}

.news-card.card-primary h3 {
    color: var(--dark-text);
}

.news-card.card-secondary {
    background-color: var(--card-background);
    border-left: 5px solid var(--secondary-accent);
}

.news-card.card-secondary h3 {
    color: var(--dark-text);
}

.news-card.card-tertiary {
    background-color: var(--card-background);
    border-left: 5px solid #C0522B; /* Using primary accent */
}

.news-card.card-tertiary h3 {
    color: var(--dark-text);
}

.news-card.card-quaternary {
    background-color: var(--card-background);
    border-left: 5px solid #6D7F8F; /* Using light text color */
}

.news-card.card-quaternary h3 {
    color: var(--dark-text);
}

.news-card.card-info {
    background-color: var(--card-background);
    border-left: 5px solid var(--primary-accent); /* Using the primary accent color */
}

.news-card.card-info h3 {
    color: var(--dark-text);
}

/* Responsive adjustments for cards (simplified as they are always single column) */
@media (max-width: 768px) {
    .news-cards-section {
        padding: 3em 1.5em;
    }
    .cards-container {
        max-width: 100%;
    }
}
@media (max-width: 480px) {
    .news-cards-section {
        padding: 2em 1em;
    }
}

nav {
  background: var(--card-background);
  padding: 1.2em 2.5em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px var(--shadow-light);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}
nav .nav-links a {
  margin-left: 1.8em;
  font-weight: 500;
  color: var(--dark-text);
  transition: color 0.3s ease;
}
nav .nav-links a:hover {
  color: var(--primary-accent);
}

/* Highlight current page */
nav .nav-links a.active {
  color: var(--primary-accent);
  font-weight: 600;
  border-bottom: 2px solid var(--primary-accent);
  padding-bottom: 0.2em;
}

header {
  position: relative; /* Needed for absolute positioning of canvas */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 5em 2.5em;
  background: linear-gradient(to right, #F4F6F8, #D7E1E7);
  text-align: center;
  color: var(--dark-text);
  overflow: hidden; /* Hide overflowing particles */
}

/* Canvas for dynamic background */
#header-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* Behind content */
}

header .intro {
  position: relative; /* Ensure content is above canvas */
  z-index: 1;
  max-width: 55%;
  margin-right: 2em;
  text-align: justify;
}
header .intro h1 {
  font-size: 3em;
  margin-bottom: 0.2em;
  color: var(--dark-text); /* Dark text for main heading */
  font-weight: 700;
}
header .intro h2 {
  font-size: 1.5em;
  color: var(--light-text); /* Light text for subtitle */
  margin-bottom: 1.5em;
  font-weight: 400;
}
header .intro p {
  margin-bottom: 2em;
  max-width: 90%;
  font-size: 1.1em;
  color: var(--dark-text); /* Dark text for paragraph */
}
header .intro button {
  margin-right: 1.2em;
  padding: 0.9em 1.8em;
  border: none;
  background: var(--primary-accent); /* Primary buttons are burnt orange */
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px var(--shadow-light);
  width: auto;
}
header .intro button:hover {
  background: #A04221; /* Darker orange for hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px var(--shadow-medium);
}
header .intro button.secondary {
  background: var(--card-background); /* Secondary buttons are white */
  color: var(--dark-text); /* Dark text for readability on white background */
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 10px var(--shadow-light); /* Add shadow for prominence */
}
header .intro button.secondary:hover {
  background: var(--secondary-accent); /* Soft blue-grey on hover */
  color: var(--dark-text);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px var(--shadow-medium); /* Stronger shadow on hover */
}
header img {
  position: relative; /* Ensure image is above canvas */
  z-index: 1;
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 8px 25px var(--shadow-medium);
  border: 5px solid var(--card-background);
}

section {
  padding: 5em 2.5em;
  max-width: 1200px;
  margin: auto;
  flex-grow: 1;
}
section h2 {
  text-align: center;
  font-size: 2.8em;
  margin-bottom: 0.6em;
  color: var(--dark-text);
  font-weight: 700;
}
section .subtext {
  text-align: center;
  margin-bottom: 3em;
  color: var(--light-text);
  font-size: 1.1em;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.cards {
  display: flex;
  flex-direction: column;
  gap: 2em;
}
.card {
  background: var(--card-background);
  padding: 2em;
  border-radius: 12px;
  box-shadow: 0 4px 15px var(--shadow-light);
  width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow-medium);
}
.card h3 {
  font-size: 1.5em;
  margin-bottom: 0.6em;
  color: var(--primary-accent);
  font-weight: 600;
}
.card p {
  font-size: 0.95em;
  color: var(--light-text);
  margin-bottom: 0.8em;
}
.card p:last-of-type {
  margin-bottom: 0;
}
.card em {
  font-weight: 500;
  color: var(--dark-text);
}

/* Research Item Layout - Side by Side with Tags in Description Column */
.research-item {
    display: flex; /* Use flexbox for side-by-side layout */
    flex-direction: row; /* Default to row for side-by-side */
    gap: 25px; /* Slightly more space between columns */
    align-items: center; /* Center items vertically for better symmetry */
    margin-top: 15px;
}

.image-column {
    flex: 0 0 40%; /* Image column takes 35% width */
    max-width: 40%; /* Ensure it doesn't exceed 35% */
    display: flex;
    justify-content: center; /* Center image horizontally */
    align-items: center; /* Center image vertically within its column */
}

.image-column img {
    width: 100%; /* Image fills its column */
    height: auto;
   
    display: block; /* Remove extra space below image */
}

.description-column {
    flex: 1; /* Description column takes remaining space, can grow/shrink */
    text-align: justify; /* Justify the text */
    line-height: 1.6;
    color: var(--light-text); /* Ensure text color is consistent */
    display: flex; /* Make description column a flex container */
    flex-direction: column; /* Stack its content vertically */
    justify-content: center; /* Center content vertically within its column */
}

/* Tags styling */
.tags {
  margin-top: 1em; /* Add space above tags */
  text-align: left; /* Align tags to the left with the text */
}

.tag {
  display: inline-block;
  background: var(--secondary-accent); /* Soft blue-grey background for tags */
  color: var(--dark-text); /* Charcoal text for contrast on grey tag */
  padding: 0.4em 0.8em;
  margin: 0.3em;
  border-radius: 6px;
  font-size: 0.8em;
  font-weight: 500;
}


.two-column {
  display: flex;
  gap: 5em;
  flex-wrap: wrap;
  justify-content: center;
}
.two-column > div {
  flex: 1;
  min-width: 300px;
  padding: 1em;
}
.two-column h3 {
  font-size: 1.8em;
  margin-bottom: 1em;
  color: var(--primary-accent);
  font-weight: 600;
}
.two-column p {
  margin-bottom: 0.8em;
  line-height: 1.6;
}
.two-column ul {
  list-style: none;
  padding: 0;
  margin-top: 1em;
}
.two-column ul li {
  margin-bottom: 0.5em;
  padding-left: 1.5em;
  position: relative;
  color: var(--dark-text);
}
.two-column ul li::before {
  content: '•';
  color: var(--primary-accent);
  position: absolute;
  left: 0;
  font-size: 1.2em;
  line-height: 1;
}
.two-column img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px var(--shadow-light);
}

footer {
  background: var(--footer-background);
  color: white;
  padding: 1.5em;
  text-align: center;
  font-size: 0.9em;
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 999;
}
footer a {
  color:white; /* Footer link color */
  margin: 0 0.8em;
  transition: color 0.3s ease;
}
footer a:hover {
  color: white;
}

.contact-form {
  padding: 1.5em;
  background: var(--card-background);
  border-radius: 12px;
  box-shadow: 0 4px 15px var(--shadow-light);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9em;
  margin-bottom: 1.2em;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 1em;
  color: var(--dark-text);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 3px rgba(192, 82, 43, 0.2); /* Adjusted shadow color */
  outline: none;
}
.contact-form textarea {
  resize: vertical;
}
.contact-form button {
  background: var(--primary-accent); /* Contact form button is burnt orange */
  color: white;
  padding: 0.9em 1.8em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px var(--shadow-light);
  width: auto;
/* New properties for centering */
  display: block; /* Make the button a block-level element */
  margin: 0 auto; /* Auto margins for left/right will center it horizontally */
}
.contact-form button:hover {
  background: #A04221; /* Darker orange for hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px var(--shadow-medium);
}

section ul {
  margin-left: 20px;
  list-style: disc;
}
section ul li {
  margin-bottom: 0.5em;
}

.section-button {
  padding: 0.9em 1.8em;
  border: none;
  background: var(--primary-accent); /* Section button is burnt orange */
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px var(--shadow-light);
  width: auto;
}
.section-button:hover {
  background: #A04221; /* Darker orange for hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px var(--shadow-medium);
}

.brief-section {
    padding: 3em 2.5em;
    max-width: 1200px;
    margin: 2em auto;
    background: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow-light);
}

/* --- New styles for About Me page --- */
.about-intro-container {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    align-items: center;
    gap: 30px;
    margin-bottom: 3em;
    background: var(--card-background);
    padding: 2em;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow-light);
    border: 1px solid var(--border-color);
}

.profile-photo {
    width: 400px; /* Fixed width for the profile photo */
    height: 400px; /* Fixed height to make it a circle */
    border-radius: 0%; /* Makes the image circular */
    object-fit: cover; /* Ensures the image covers the area without distortion */
    border: 0px solid var(--primary-accent); /* A subtle border */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    flex-shrink: 0; /* Prevent photo from shrinking */
}

.intro-text {
    flex: 1; /* Allows text to take up remaining space */
    min-width: 300px; /* Ensures text doesn't get too narrow */
    line-height: 1.8;
    color: var(--dark-text);
text-align: justify;
}

.intro-text p {
    margin-bottom: 1em;
text-align: justify;
}

.about-section {
    background: var(--card-background);
    padding: 2em;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow-light);
    margin-bottom: 2em;
    border: 1px solid var(--border-color);
}

.about-section h3 {
    color: var(--primary-accent);
    font-size: 1.8em;
    margin-bottom: 1em;
    font-weight: 600;
text-align: justify;
}

.about-section ul {
    list-style: disc;
    margin-left: 2em;
    margin-bottom: 1em;
}

.about-section ul li {
    margin-bottom: 0.5em;
    color: var(--dark-text);
}

.research-graphics {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 2em;
}

.research-graphics img {
    max-width: 45%; /* Adjust as needed for 2 images per row */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.research-graphics .image-caption {
    width: 100%;
    text-align: center;
    font-style: italic;
    font-size: 0.9em;
    color: var(--light-text);
    margin-top: 10px;
}

/* Media Queries (keep them from original and add new ones if needed) */
@media (max-width: 900px) { /* Adjust breakpoint for columns stacking */
    .research-item {
        flex-direction: column; /* Stack image and text vertically on smaller screens */
        align-items: center; /* Center items when stacked */
    }

    .image-column {
        flex: 0 0 auto; /* Reset flex properties */
        max-width: 80%; /* Allow image to be wider when stacked */
        margin-bottom: 15px; /* Add space below image when stacked */
    }

    .image-column img {
        max-width: 400px; /* Limit max width for readability */
    }

    .description-column {
        text-align: justify; /* Align text to the left when stacked */
    }

    .description-column .tags {
        text-align: center; /* Center tags when stacked if preferred */
    }

    /* General responsive for other sections (from your original file) */
    nav {
        padding: 1em 1.5em;
    }
    nav .nav-links a {
        margin-left: 1em;
        font-size: 0.9em;
    }
    header {
        flex-direction: column;
        padding: 3em 1.5em;
        text-align: center;
    }
    header .intro {
        max-width: 100%;
        margin-right: 0;
        margin-bottom: 2em;
        text-align: center;
    }
    header .intro h1 {
        font-size: 2.5em;
    }
    header .intro h2 {
        font-size: 1.2em;
    }
    header .intro p {
        font-size: 1em;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    header .intro button {
        padding: 0.8em 1.5em;
        font-size: 0.9em;
    }
    header img {
        width: 200px;
        height: 200px;
    }
    section {
        padding: 3em 1.5em;
    }
    section h2 {
        font-size: 2em;
    }
    section .subtext {
        font-size: 1em;
        margin-bottom: 2em;
    }
    .cards {
        flex-direction: column;
        gap: 1.5em;
    }
    .card {
        flex: 1 1 100%;
    }
    .two-column {
        flex-direction: column;
        gap: 2em;
    }
    .two-column > div {
        min-width: unset;
        width: 100%;
    }
    .two-column h3 {
        font-size: 1.5em;
    }
    .two-column p {
        font-size: 1em;
    }
    .two-column ul li {
        font-size: 1em;
    }
    .contact-form {
        padding: 1em;
    }
    .contact-form input,
    .contact-form textarea {
        padding: 0.8em;
    }
    .contact-form button {
        padding: 0.8em 1.5em;
        font-size: 0.9em;
    }

    /* About Me specific responsive adjustments */
    .about-intro-container {
        flex-direction: column;
        text-align: center;
    }

    .profile-photo {
        margin-bottom: 1em;
    }

    .intro-text {
        text-align: justify; /* Keep text left-aligned even when stacked */
    }

    .research-graphics img {
        max-width: 80%; /* Allow images to be larger when stacked vertically */
    }
}

@media (max-width: 480px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.8em 1em;
  }
  nav .nav-links {
    display: flex;
    flex-wrap: wrap;
    margin-top: 0.8em;
  }
  nav .nav-links a {
    margin: 0.3em 0.5em 0.3em 0;
    font-size: 0.85em;
  }
  header {
    padding: 2em 1em;
  }
  header .intro h1 {
    font-size: 2em;
  }
  header .intro h2 {
    font-size: 1em;
  }
  header .intro p {
    font-size: 0.9em;
  }
  header .intro button {
    display: block;
    width: 100%;
    margin-right: 0;
    margin-bottom: 0.8em;
  }
  header img {
    width: 150px;
    height: 150px;
  }
  section {
    padding: 2em 1em;
  }
  section h2 {
    font-size: 1.8em;
  }
  section .subtext {
    font-size: 0.9em;
    margin-bottom: 1.5em;
  }
  .card h3 {
    font-size: 1.3em;
  }
  .card p {
    font-size: 0.85em;
  }
  .tag {
    font-size: 0.7em;
    padding: 0.3em 0.6em;
  }
  .two-column h3 {
    font-size: 1.3em;
  }
  .two-column p {
    font-size: 0.9em;
  }
  .two-column ul li {
    font-size: 0.9em;
  }
  footer {
    padding: 1.5em;
    font-size: 0.8em;
  }

  /* About Me specific responsive adjustments */
  .profile-photo {
      width: 150px;
      height: 150px;
  }
  .about-section h3 {
      font-size: 1.5em;
  }
  .research-graphics img {
      max-width: 100%; /* Single column for images on very small screens */
  }
}