a {
  color: #5791C9FF;           /* softer, muted grey */
  text-decoration: none;  /* no underline */
  font-weight: 400;       /* not emphasized */
}

body {
    margin:0;
    font-family:Arial, sans-serif;
    scroll-behavior:smooth;
    background:#f7f7f7;
    color:#222;
}

/* ===== Header Section ===== */
header {
    height: 350px;
    background-image: url('background.jpg'); /* <-- DROP YOUR IMAGE HERE */
    background-size: cover;
    background-position:center;
    display:flex;
    justify-content:center;
    align-items:center;
    flex-direction:column;
    color:white;
    text-shadow:0px 0px 10px rgba(0,0,0,0.6);
}

header img {
    width:150px;
    height:150px;
    border-radius:50%;
    border:4px solid #fff;
    margin-bottom:15px;
    object-fit:cover;
}

header h1 { font-size:2.5rem; margin:0; }
header h2 { font-size:1.2rem; font-weight:300; }

/* ===== Navigation Bar ===== */
nav {
    position:sticky;
    top:0;
    background:#111;
    padding:12px;
    z-index:100;
    text-align:center;
}

nav a {
    color:white;
    margin:0 15px;
    font-weight:bold;
    text-decoration:none;
    transition:0.3s;
}

nav a:hover {
    color:#00b4ff;
}

/* ===== Section Blocks ===== */
section {
    max-width:900px;
    padding:25px 20px;
    margin:auto;
}

section h2 {
    font-size:2rem;
    margin-bottom:20px;
    border-left:5px solid #00b4ff;
    padding-left:10px;
}

.pub-list li { margin-bottom:10px; line-height:1.4; }

footer {
    text-align:center;
    padding:30px;
    background:#111;
    color:#bbbbbb;
    margin-top:40px;
}

footer .contact-icons i {
  display: inline-block !important;
  font-style: normal; /* prevent italic fallback */
  color: #bbbbbb; /* subtle default color */
  /*color: #555; */       /* icon color */
}


.links a {
    color:#00b4ff;
    margin-right:15px;
    font-size:1.1rem;
}

/* subtle institutional link style */
#bio a {
  color: #5791C9FF;           /* softer, muted grey */
  text-decoration: none;  /* no underline */
  font-weight: 400;       /* not emphasized */
}

#bio a:hover {
  text-decoration: underline;
  color: #555;            /* slightly darker on hover */
}



/* Contact Icons styling */
.contact-icons ul {
  display: flex;
  gap: 1.5rem;
  justify-content: center; /* center icons */
  align-items: center;
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
  flex-wrap: wrap; /* wrap on small screens */
}

.contact-icons i {
  display: inline-block !important;
  font-style: normal; /* prevent italic fallback */
  color: whitesmoke; /* subtle default color */
  /*color: #555; */       /* icon color */
}

.contact-icons ul li a {
  font-size: 1.8rem;
  /*color: #555;*/ /* subtle default color */
  color: whitesmoke; /* subtle default color */
  transition: color 0.3s, transform 0.2s;
}

.contact-icons ul li a:hover {
  color: #0073b1; /* hover color example (LinkedIn blue) */
  transform: scale(1.2);
}

/* Optional: smaller icons on mobile */
@media (max-width: 600px) {
  .contact-icons ul li a {
    font-size: 1.5rem;
  }
}


/* Header styling */
header {
  text-align: center;
  color: white; /* default text color */
  padding: 2rem 1rem 3rem 1rem; /* reduce top and bottom padding if needed */
  position: relative;
}

header img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

header h1 {
  margin: 0.5rem 0 0.3rem 0; /* reduce space below h1 */
  font-size: 2.5rem;
}

header h2 {
  margin: 0 0 0.1rem 0; /* reduce space below h2 */
  font-weight: 400;
  font-size: 1.5rem;
}

/* Header contact icons */
header .contact-icons {
  margin-top: 0.5rem; /* small space above icons */
}

header .contact-icons ul {
  display: flex;
  justify-content: center;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

header .contact-icons ul li a {
  font-size: 1.6rem;
  color: white; /* default icon color */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
}

header .contact-icons ul li a:hover {
  transform: scale(1.3);
  background-color: rgba(255, 255, 255, 0.2); /* subtle white circle */
  color: #ffd700; /* gold hover color */
}


/* --- Projects Section --- */

#projects {
  padding: 40px 20px;
}

#projects h2 {
  /*text-align: center;*/
  margin-bottom: 32px;
}

/* Responsive grid using auto-fit and minmax */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  padding: 0 10px;
}

/* Card styling */
.project-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.project-card img {
  width: 60px;
  height: 60px;
  margin-bottom: 12px;
  object-fit: contain;
}

.project-name {
  font-weight: 600;
  font-size: 1.15em;
  margin-bottom: 8px;
}

.project-desc {
  font-size: 0.9em;
  color: #666;
  line-height: 1.35em;
}

/* Hover effect */
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* Remove underline + inherit color */
.project-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* --- Mobile Tweaks --- */
@media (max-width: 480px) {
  .project-card {
    padding: 18px 14px;
  }

  .project-card img {
    width: 50px;
    height: 50px;
  }
}

/* Teaching / Courses section */

/* Icon styling */
.course-icon {
  font-size: 1.8em;
  margin-bottom: 8px;
}

/* --- Teaching Courses Section --- */

#teaching {
  padding: 50px 20px;
}

#teaching h2 {
  /* text-align: center; */
  margin-bottom: 28px;
}

/* Smaller grid tiles */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.course-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  padding: 16px 14px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.course-name {
  font-weight: 600;
  font-size: 1.05em;
  margin-bottom: 6px;
}

.course-desc {
  font-size: 0.85em;
  color: #666;
  margin-bottom: 6px;
  line-height: 1.3em;
}

.course-id {
  font-size: 0.75em;
  color: #999;
}

/* Hover effect */
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

@media (max-width: 480px) {
  .course-card {
    padding: 14px 10px;
  }
}

.course-section-title {
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.3em;
  font-weight: 600;
  color: #333;
}


.course-grid {
  margin-top: 20px;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.course-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 15px;
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 1px solid #ddd;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.course-icon {
  font-size: 32px;
}

.course-title {
  font-size: 1rem;
  font-weight: 600;
  color: #222;
  text-align: center;
  min-height: 40px;
}

.course-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 0.9rem;
}

.level {
  color: #666;
  font-size: 0.85rem;
}

.flag {
  font-size: 18px;
}

#teaching a {
  color: #5791C9FF;           /* softer, muted grey */
  text-decoration: none;  /* no underline */
  font-weight: 400;       /* not emphasized */
}

#thesis a {
  color: #5791C9FF;           /* softer, muted grey */
  text-decoration: none;  /* no underline */
  font-weight: 400;       /* not emphasized */
}

.spoken-languages h3 {
  margin-bottom: 5px;
}

.spoken-languages p {
  font-size: 0.95em;
  margin: 0;
}

.scopus-icon i svg {
  width: 1.2em;
  height: 1.2em;
}
