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

:root {
  --primary: #1a1a2e;
  --accent: #e94560;
  --highlight: #ff6b81;
  --secondary: #16213e;
  --text: #eaeaea;
  --muted: #a0a0b0;
  --card-bg: #0f3460;
  --link: #53d8fb;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--primary);
  color: var(--text);
  line-height: 1.7;
}

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

a:hover {
  text-decoration: underline;
}

/* Navigation */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(22, 33, 62, 0.95);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(83, 216, 251, 0.15);
}

nav .logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: 0.5px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul li a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s;
}

nav ul li a:hover {
  color: var(--link);
  text-decoration: none;
}



/* Hero */
#hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  overflow: hidden;
  color: white;
}

/* Full background image */
#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)), /* overlay */
    url("background.jpg"); /* your image */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* Keep content above background */
#hero .hero-container,
#hero .hero-content,
#hero .hero-image {
  position: relative;
  z-index: 2;
}

/* ---- TEXT STYLING (UNCHANGED) ---- */

#hero .hero-content h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
}

#hero .hero-content h1 span {
  color: var(--accent);
}

#hero .hero-content .subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--muted);
  margin-bottom: 1rem;
}

#hero .hero-content .affiliation {
  font-size: 1rem;
  color: var(--link);
  margin-bottom: 2.5rem;
}

/* ---- IMAGE (UNCHANGED STYLE) ---- */

#hero .hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

/* Circular Profile Image */
.hero-image img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;   /* makes it circular */
  border: 4px solid white;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #c73652;
  text-decoration: none;
}

.btn-outline {
  border: 2px solid var(--link);
  color: var(--link);
  background: transparent;
}

.btn-outline:hover {
  background: var(--link);
  color: var(--primary);
  text-decoration: none;
}

/* Sections */
section {
  padding: 5rem 1.5rem;
}

section:nth-child(even) {
  background: var(--secondary);
}

.section-inner {
  max-width: 900px;
  margin: 0 auto;
}

h2.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  position: relative;
  display: inline-block;
}

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

/* About */
#about p {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 1rem;
  max-width: 720px;
}

.highlight {
  font-weight: 600;
  color: var(--accent);
}

/* Generic spacing for both Academic Vita and Main Responsibilities */
.vita-item,
.responsibility-item {
  margin-bottom: 2rem;    /* space BETWEEN blocks */
}

.vita-item p,
.responsibility-item p {
  margin: 0;              /* no extra spacing inside block */
  line-height: 1.6;       /* consistent line spacing for readability */
}

.vita-item h3,
.responsibility-item h3 {
  margin-bottom: 0.4rem;  /* small spacing under title */
}

.responsibility-item {
  margin-bottom: 2rem;
}

.responsibility-item p {
  margin: 0;
  line-height: 1.6;
}

.responsibility-item h3 {
  margin-bottom: 0.4rem;
}

/* Space below the introductory paragraph */
#publications p {
  margin-bottom: 2rem;   /* adjust value as needed */
}

/* Space above section subtitles */
#publications h3 {
  margin-top: 2.5rem;    /* space before the h3 */
  margin-bottom: 1rem;   /* space before the list */
}

/* Optional: space between lists */
#publications .publication-list {
  margin-bottom: 2rem;
}

#publications .publication-list {
  padding-left: 2rem;   /* controls indentation */
}

/* Research interests */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.tag {
  background: rgba(83, 216, 251, 0.12);
  border: 1px solid rgba(83, 216, 251, 0.3);
  color: var(--link);
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  font-size: 0.85rem;
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 1.5rem;
  border: 1px solid rgba(83, 216, 251, 0.1);
  transition: transform 0.2s, border-color 0.2s;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(83, 216, 251, 0.4);
}

.project-card h3 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.project-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.project-card .lang {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.lang-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3572A5;
  display: inline-block;
}

.lang-dot.shell {
  background: #89e051;
}

/* Contact */
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 450px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--card-bg);
  border-radius: 8px;
  border: 1px solid rgba(83, 216, 251, 0.1);
  transition: border-color 0.2s;
}

.contact-item:hover {
  border-color: rgba(83, 216, 251, 0.4);
}

.contact-item svg {
  flex-shrink: 0;
  color: var(--link);
}

.contact-item span {
  font-size: 0.95rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

@media (max-width: 600px) {
  nav ul {
    gap: 1rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }
}
