/* Global Styles */
:root {
  --bg-color: #0f172a;
  /* Deep Slate Blue */
  --card-bg: rgba(30, 41, 59, 0.7);
  /* Lighter blue, semi-transparent */
  --text-primary: #f1f5f9;
  /* Off-white */
  --text-secondary: #94a3b8;
  /* Light gray */
  --accent-color: #38bdf8;
  /* Sky Blue */
  --hover-color: #0ea5e9;
  /* Darker Sky Blue */
  --border-color: rgba(255, 255, 255, 0.1);
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --transition-speed: 0.3s;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

/* Background Animation Effect (Subtle Gradient) */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, rgba(15, 23, 42, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

/* Layout Container */
.container {
  max-width: 900px;
  width: 90%;
  margin: 50px auto;
  padding-bottom: 50px;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 40px;
  animation: fadeInDown 0.8s ease-out;
}

header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #fff, var(--accent-color));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Navigation - Tabs */
.tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 500;
  padding: 10px 20px;
  cursor: pointer;
  position: relative;
  transition: color var(--transition-speed);
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width var(--transition-speed) ease, left var(--transition-speed) ease;
}

.tab-btn:hover,
.tab-btn.active {
  color: var(--text-primary);
}

.tab-btn.active::after {
  width: 100%;
  left: 0;
}

/* Content Sections */
.content-section {
  display: none;
  /* Hidden by default */
  animation: fadeIn 0.5s ease-out;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.content-section.active {
  display: block;
}

/* Home Section Styles */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent-color);
  margin-bottom: 25px;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

.profile-intro h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.profile-intro p {
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
}

/* Publication List Styles */
ul.publication-list {
  list-style: none;
}

.publication-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.publication-item:last-child {
  border-bottom: none;
}

.publication-content {
  flex-grow: 1;
}

.publication-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
  display: block;
}

.publication-meta {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 8px;
}

/* Publication Buttons */
.publication-buttons {
  display: flex;
  gap: 10px;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: rgba(56, 189, 248, 0.1);
  color: var(--accent-color);
  text-decoration: none;
  transition: all var(--transition-speed);
  border: 1px solid transparent;
}

.btn-icon:hover {
  background-color: var(--accent-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.4);
}

.btn-icon svg {
  width: 16px;
  height: 16px;
}

/* Talks and Home Link Styles */
.publication-meta a,
.profile-intro a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.2s;
}

.publication-meta a:hover,
.profile-intro a:hover {
  text-decoration: underline;
  color: var(--hover-color);
}

/* CV Section Styles */
.cv-container {
  text-align: center;
  padding: 30px 0;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--accent-color);
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color var(--transition-speed), transform 0.2s;
}

.download-btn:hover {
  background-color: var(--hover-color);
  transform: translateY(-2px);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 600px) {
  .tabs {
    flex-wrap: wrap;
    gap: 10px;
  }

  .content-section {
    padding: 25px;
  }

  header h1 {
    font-size: 2rem;
  }

  .publication-item {
    padding: 15px 0;
  }
}