:root {
  --accent: #0800c6;
  --text: #333;
  --muted: #000;
  --bg: #ffffff;
  --light: #f6f8fb;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family:
    "Nunito",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px;
}

h1 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 2.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  color: var(--accent);
  /* Diagonal gradient: subtle red at top-left into deep blue bottom-right */
  background: linear-gradient(135deg, rgba(207, 7, 47, 1) 0%, #0800c6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: var(--accent);
  font-weight: 600;
  /* Diagonal gradient: subtle red at top-left into deep blue bottom-right */
  background: linear-gradient(135deg, rgba(207, 7, 47, 1) 0%, #0800c6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h3 {
  color: var(--accent);
  font-size: 1.02rem;
  margin-bottom: 8px;
  font-weight: 600;
}

p {
  margin-bottom: 18px;
  color: var(--muted);
}

.hero {
  padding: 72px 24px 56px 24px;
  text-align: center;
}

.hero p {
  font-family: "Kalam", "Segoe Script", "Brush Script MT", cursive;
  font-size: 1.18rem;
  max-width: 700px;
  margin: 0 auto;
  color: var(--muted);
  opacity: 0.95;
}

.section {
  padding: 80px 0;
  border-top: 1px solid #eee;
}

.publication {
  margin-bottom: 40px;
}

.publication a {
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
}

/* Subtle link underline / distinction for better discoverability */
a {
  text-decoration: none;
  border-bottom: 1px solid rgba(8, 0, 198, 0.12);
  padding-bottom: 2px;
  transition:
    border-color 140ms ease,
    border-width 140ms ease,
    opacity 140ms ease;
}

a:hover,
a:focus {
  border-bottom-color: rgba(8, 0, 198, 0.32);
  outline: none;
}

.interests {
  display: grid;
  gap: 40px;
}

.interest {
  display: flex;
  gap: 16px;
}

.icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.icon img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.about-photo {
  width: 200px;
  max-width: 40%;
  height: auto;
  float: right;
  margin-left: 10px;
  margin-bottom: 10px;
  border-radius: 10px;
}

@media (min-width: 700px) {
  .about-photo {
    margin-top: -50px;
    margin-left: 40px;
  }
}

.social {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.social a {
  text-decoration: none;
  font-size: 20px;
  color: var(--accent);
  display: inline-block;
  border-radius: 6px;
}

footer {
  text-align: center;
  padding: 60px 0;
  font-size: 0.9rem;
  color: #888;
}

/* Mobile / small-screen responsive tweaks */
@media (max-width: 700px) {
  .container {
    padding: 40px 16px;
  }

  .hero {
    padding: 48px 16px 32px 16px;
  }

  /* Make each primary section fill more of the viewport on mobile */
  .section {
    min-height: 65vh;
    padding: 40px 0;
  }

  /* Stack profile/social links into tappable full-width items */
  .social {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .social a {
    display: block;
    width: 100%;
    padding: 12px 14px;
    background: rgba(15, 76, 129, 0.06);
    border-radius: 8px;
    text-align: center;
    font-size: 1rem;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1116;
    --light: #151922;
    --text: #e6e8ee;
    --muted: #cfd3dc;
    --accent: #6b7cff;
  }

  body {
    background: var(--bg);
  }

  .section {
    border-top: 1px solid #242a35;
  }

  a {
    border-bottom: 1px solid rgba(120, 130, 255, 0.25);
  }

  a:hover,
  a:focus {
    border-bottom-color: rgba(120, 130, 255, 0.5);
  }

  h1,
  h2 {
    background: linear-gradient(135deg, #ff4b6e 0%, #6b7cff 100%);
    -webkit-background-clip: text;
    background-clip: text;
  }

  .icon {
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    border-radius: 8px;
  }
}
