:root {
  --primary: #7E4E60;      /* Dusty rose - Ryden's signature pink */
  --secondary: #8A9A5B;    /* Sage green */
  --accent-blue: #9FB7CB;  /* Pale blue */
  --accent-terra: #D4A76A; /* Antique gold */
  --light: #F6F2EB;        /* Old paper/ivory */
  --dark: #513C3C;         /* Rich brown */
}

body {
  font-family: 'Baskerville', 'Goudy Old Style', Georgia, serif;
  color: var(--dark);
  background-color: var(--light);
  line-height: 1.7;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 20.5V18H0v-2h20v-2H0v-2h20v-2H0V8h20V6H0V4h20V2H0V0h22v20h2V0h2v20h2V0h2v20h2V0h2v20h2V0h2v20h2v2H20v-1.5zM0 20h2v20H0V20zm4 0h2v20H4V20zm4 0h2v20H8V20zm4 0h2v20h-2V20zm4 0h2v20h-2V20zm4 4h20v2H20v-2zm0 4h20v2H20v-2zm0 4h20v2H20v-2zm0 4h20v2H20v-2z' fill='%23AF9B91' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
  scroll-behavior: smooth;
}

.navbar {
  background-color: rgba(246, 242, 235, 0.97);
  box-shadow: 0 4px 12px rgba(81, 60, 60, 0.08);
  border-bottom: 1px solid rgba(126, 78, 96, 0.2);
  transition: all 0.3s ease;
}

.navbar-light .navbar-brand, .navbar-light .nav-link {
  color: var(--primary);
  font-family: 'Baskerville', 'Goudy Old Style', Georgia, serif;
  letter-spacing: 1px;
}

.navbar-light .nav-link:hover {
  color: var(--accent-terra);
}

.navbar-light .nav-link.active {
  color: var(--primary);
  font-weight: 600;
  border-bottom: 2px solid var(--primary);
}

h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--primary);
  font-family: 'Baskerville', 'Goudy Old Style', Georgia, serif;
}

.hero {
  background: linear-gradient(to bottom, #D8C1CA 0%, #E9DDD8 100%);
  color: var(--dark);
  padding: 100px 0;
  margin-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='52' height='26' viewBox='0 0 52 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23AE8A95' fill-opacity='0.1'%3E%3Cpath d='M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zm25.464-1.95l8.486 8.486-1.414 1.414-8.486-8.486 1.414-1.414z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

#cv-hero {
  padding: 130px 0 80px;
  margin-bottom: 60px;
}

#cv-hero h1 {
  font-size: 3rem;
  letter-spacing: 1.5px;
  margin-bottom: 15px;
}

#cv-hero .lead {
  font-size: 1.4rem;
  font-family: 'Baskerville', 'Goudy Old Style', Georgia, serif;
  letter-spacing: 0.5px;
}

#cv-hero .ornament {
  font-size: 1.8rem;
  margin: 15px 0;
}

.section-title {
  color: var(--primary);
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
  font-style: italic;
}

.section-title:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 70px;
  height: 2px;
  background: linear-gradient(to right, var(--primary), var(--light));
}

.cv-container {
  background-color: rgba(255, 255, 255, 0.6);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(81, 60, 60, 0.05);
  margin-bottom: 50px;
}

.cv-section {
  margin-bottom: 40px;
}

.cv-item {
  padding: 20px;
  margin-bottom: 20px;
  border-left: 3px solid var(--accent-blue);
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 0 8px 8px 0;
  box-shadow: 0 3px 10px rgba(81, 60, 60, 0.03);
  transition: all 0.3s ease;
}

.cv-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(81, 60, 60, 0.08);
}

.cv-year {
  font-weight: 600;
  color: var(--accent-terra);
  margin-bottom: 5px;
}

.pub-title {
  font-weight: 600;
  margin-bottom: 3px;
}

.pub-journal {
  font-style: italic;
  color: var(--secondary);
  margin-bottom: 5px;
}

.pub-authors {
  font-size: 0.95rem;
  color: var(--dark);
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background-color: var(--accent-terra);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(81, 60, 60, 0.2);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.ornament {
  display: block;
  text-align: center;
  color: var(--accent-terra);
  font-size: 1.5rem;
  margin: 40px 0;
  opacity: 0.6;
}

/* Divider styling */
.section-divider {
  height: 80px;
  background: linear-gradient(to bottom, rgba(246, 242, 235, 0) 0%, rgba(246, 242, 235, 0.8) 50%, rgba(246, 242, 235, 0) 100%);
  margin: 40px 0;
  position: relative;
}

.section-divider::before {
  content: "❧";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: var(--accent-terra);
  opacity: 0.5;
}

.download-cv-btn:hover {
  background-color: var(--accent-terra) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 167, 106, 0.3);
}

@media (max-width: 768px) {
  #cv-hero {
    padding: 100px 0 60px;
  }
  
  #cv-hero h1 {
    font-size: 2.5rem;
  }
  
  .cv-container {
    padding: 20px;
  }
  
  .cv-item {
    padding: 15px;
  }
}