/*
  Global styles and variables
  The colour palette is inspired by dark‑mode dashboards.  It combines
  dark blues with a bright accent to convey professionalism and allow
  coloured highlights to stand out against a neutral background.
*/

:root {
  --primary-color: #0d1b2a;
  --secondary-color: #1b263b;
  --accent-color: #3282b8;
  --light-color: #e0e1dd;
  --muted-color: #778da9;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--light-color);
  background-color: var(--primary-color);
  line-height: 1.6;
}

a {
  color: var(--accent-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Container keeps content aligned and responsive */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Navigation */
header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  background: rgba(29, 47, 78, 0.8);
  backdrop-filter: blur(10px);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}

.navbar .logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent-color);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links li a {
  color: var(--light-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: var(--accent-color);
}

/* Burger icon for mobile navigation */
.burger {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--light-color);
}

/* Hero section */
.hero {
  position: relative;
  min-height: 100vh;
  background: url('assets/hero.jpg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Slightly lighter overlay to reveal the underlying hero image */
  background: rgba(13, 27, 42, 0.55);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  color: var(--light-color);
}

.hero-content h1 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--muted-color);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  background: var(--accent-color);
  color: #fff;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #4da5c8;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.section h2::after {
  content: '';
  display: block;
  width: 50%;
  height: 3px;
  background: var(--accent-color);
  margin-top: 0.5rem;
}

/* About section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--muted-color);
}

.about-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

/* Timeline */
.timeline {
  display: grid;
  gap: 2.5rem;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15px;
  width: 2px;
  height: 100%;
  background: var(--accent-color);
}

.timeline-item {
  position: relative;
  padding-left: 3rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 0.4rem;
  left: -0.1rem;
  width: 10px;
  height: 10px;
  background: var(--accent-color);
  border-radius: 50%;
}

.timeline-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  color: var(--light-color);
}

.timeline-content .date {
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  color: var(--muted-color);
}

.timeline-content ul {
  list-style: disc inside;
  color: var(--muted-color);
}

.timeline-content ul li {
  margin-bottom: 0.5rem;
}

/* Publications */
.pub-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background-color: var(--secondary-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pub-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.pub-img {
  flex-shrink: 0;
  width: 260px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  background: #111; /* fallback for transparent images */
}

.pub-text h3 {
  margin: 0;
  color: var(--light-color);
  font-size: 1.1rem;
}

.pub-text .venue {
  color: var(--muted-color);
  font-size: 0.9rem;
  margin: 0.25rem 0 0.75rem;
}

.pub-link {
  color: var(--accent-color);
  font-weight: 500;
  text-decoration: none;
}

.pub-link:hover {
  text-decoration: underline;
}

/* Mobile layout */
@media (max-width: 600px) {
  .pub-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .pub-img {
    width: 100%;
    height: auto;
  }
}


/* Education */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.edu-item {
  background: var(--secondary-color);
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.edu-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--light-color);
}

.edu-item .edu-meta {
  font-size: 0.875rem;
  color: var(--muted-color);
  margin-bottom: 0.5rem;
}

.edu-item p {
  color: var(--muted-color);
}

/* Contact */
.contact-list {
  list-style: none;
  margin-top: 1rem;
}

.contact-list li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted-color);
}

.contact-list i {
  color: var(--accent-color);
}

/* Footer */
footer {
  background: var(--secondary-color);
  padding: 1rem 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-color);
}

/* Responsive behaviour */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(29, 47, 78, 0.95);
    flex-direction: column;
    width: 200px;
    text-align: center;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .nav-links.open {
    transform: translateX(0);
  }
  .burger {
    display: block;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .timeline::before {
    left: 0;
  }
  .timeline-item {
    padding-left: 2rem;
  }
  .timeline-item::before {
    left: -0.4rem;
  }
}




.exp-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;           /* Allows icons to wrap on small screens */
}

.exp-header h3 {
  margin: 0;                 /* Remove extra spacing around the heading */
  font-size: 1.25rem;
}

.exp-logo {
  height: 24px;              /* Uniform logo height */
  width: auto;               /* Preserve aspect ratio */
  opacity: 0.8;              /* Optional: subtle styling */
}

.news-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background-color: var(--secondary-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.news-img {
  flex-shrink: 0;
  width: 260px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  background: #111; /* fallback for transparency */
}

.news-text h3 {
  margin: 0;
  color: var(--light-color);
  font-size: 1.1rem;
}

.news-text .date {
  color: var(--muted-color);
  font-size: 0.9rem;
  margin: 0.25rem 0 0.75rem;
}

@media (max-width: 600px) {
  .news-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .news-img {
    width: 100%;
    height: auto;
  }
}