:root {
  --primary-color: #1a365d;
  --text-color: #2d3748;
  --light-text: #718096;
  --bg-color: #ffffff;
  --border-color: #e2e8f0;
  --accent-color: #3182ce;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
}

.hero-banner {
  height: 300px;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), 
              url('/assets/images/quantumcomputer-illustration.jpg') center/cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 2rem;
}

.hero-overlay {
  width: 100%;
}

.hero-content {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: center;
}

.profile-section {
  display: flex;
  align-items: center;
  margin: auto;
  align-self: center;
  gap: 2rem;
}

.profile-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.9);
  background-color: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  color: white;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  margin: 0;
  letter-spacing: -0.02em;
}

.content-section {
  padding: 4rem 0;
  background: var(--bg-color);
}

.main-article {
  max-width: none;
  background: white;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-top: -2rem;
  position: relative;
  z-index: 10;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 2rem;
  line-height: 1.2;
  border-bottom: 3px solid var(--accent-color);
  padding-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 2rem 0;
  position: relative;
  z-index: 1;
  letter-spacing: -0.01em;
}

.learning-section .section-subtitle {
  color: #1e40af;
  text-shadow: 0 1px 2px rgba(30, 64, 175, 0.1);
}

.emerging-tech-section .section-subtitle {
  color: #047857;
  text-shadow: 0 1px 2px rgba(4, 120, 87, 0.1);
}

.content-text p {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.commitment-text {
  font-weight: 500;
  font-style: italic;
  margin: 2rem 0 !important;
  text-align: center;
  font-size: 1.25rem !important;
  color: var(--accent-color) !important;
}

.footnote {
  font-size: 1rem !important;
  color: var(--light-text) !important;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  margin-top: 3rem !important;
  font-style: italic;
}

.learning-section {
  background: linear-gradient(145deg, #ffffff, #fafbfc);
  padding: 3rem;
  border-radius: 20px;
  margin-top: 4rem;
  position: relative;
  box-shadow: 
    0 20px 40px rgba(26, 54, 93, 0.08),
    0 8px 16px rgba(26, 54, 93, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(49, 130, 206, 0.1);
  overflow: hidden;
}

.learning-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3182ce, #2b77cb, #1e6bb8);
  border-radius: 20px 20px 0 0;
}

.learning-section::after {
  content: '📚';
  position: absolute;
  top: -2px;
  right: 2rem;
  font-size: 3rem;
  opacity: 0.1;
  z-index: 0;
}

.emerging-tech-section {
  background: linear-gradient(145deg, #ffffff, #f8fffe);
  padding: 3rem;
  border-radius: 20px;
  margin-top: 4rem;
  position: relative;
  box-shadow: 
    0 20px 40px rgba(16, 185, 129, 0.08),
    0 8px 16px rgba(16, 185, 129, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(16, 185, 129, 0.1);
  overflow: hidden;
}

.emerging-tech-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #10b981, #059669, #047857);
  border-radius: 20px 20px 0 0;
}

.emerging-tech-section::after {
  content: '🚀';
  position: absolute;
  top: -2px;
  right: 2rem;
  font-size: 3rem;
  opacity: 0.1;
  z-index: 0;
}

.course-info {
  position: relative;
  z-index: 1;
}

.course-info h4 {
  margin-bottom: 1.5rem;
  color: #1e40af;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.course-info h4::before {
  content: '🎓';
  font-size: 1.25rem;
}

.course-link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  background: linear-gradient(transparent 60%, rgba(49, 130, 206, 0.15) 60%);
  padding: 0 2px;
}

.course-link:hover {
  text-decoration: none;
  color: #1e40af;
  background: linear-gradient(transparent 60%, rgba(49, 130, 206, 0.25) 60%);
  transform: translateY(-1px);
}

.tech-guide-content {
  position: relative;
  z-index: 1;
}

.tech-guide-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  text-align: justify;
}

.tech-guide-content a {
  color: #047857;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  background: linear-gradient(transparent 60%, rgba(16, 185, 129, 0.15) 60%);
  padding: 0 2px;
}

.tech-guide-content a:hover {
  color: #065f46;
  background: linear-gradient(transparent 60%, rgba(16, 185, 129, 0.25) 60%);
  transform: translateY(-1px);
}

/* Reset styles for general navigation links */
.additional-links a,
a:not(.course-link):not(.nav-link):not(.tech-guide-content a) {
  background: none !important;
  transform: none !important;
  padding: 0 !important;
}

.closing-statement {
  font-weight: 600;
  font-style: italic;
  color: #047857 !important;
  margin-top: 2.5rem !important;
  text-align: center;
  font-size: 1.25rem !important;
  padding: 1.5rem;
  background: rgba(16, 185, 129, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(16, 185, 129, 0.1);
  position: relative;
}

/* Back link styling for history page */
.back-link,
.forward-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #4338ca;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 0;
  background: transparent;
  border: none;
  transition: all 0.3s ease;
  transform: translateY(0);
}

.back-link:hover,
.forward-link:hover {
  color: #3730a3;
  text-decoration: none;
  transform: translateX(-2px);
}

.back-link::before {
  content: '←';
  margin-right: 0.5rem;
  transition: transform 0.3s ease;
}
.forward-link::after {
  content: '→';
  margin-right: 0.5rem;
  transition: transform 0.3s ease;
}

.back-link:hover::before,
.forward-link:hover::after {
  transform: translateX(-2px);
}

.forward-link {
  margin-top: 1rem;
}

.forward-link-parent {
  text-align: right;
}

.footer {
  background: var(--primary-color);
  color: white;
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .hero-banner {
    height: 300px;
    padding-left: 1rem;
  }
  
  .profile-section {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .profile-image {
    width: 80px;
    height: 80px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .main-article {
    padding: 2rem;
    margin-top: -1rem;
  }
  
  .section-title {
    font-size: 1.875rem;
  }
  
  .content-text p {
    font-size: 1rem;
  }
  
  .learning-section,
  .emerging-tech-section {
    padding: 2rem;
    margin-top: 3rem;
    border-radius: 16px;
  }
  
  .learning-section::after,
  .emerging-tech-section::after {
    font-size: 2rem;
    right: 1rem;
  }
  
  .course-info h4 {
    font-size: 1.25rem;
  }
  
  .nav-link {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-banner {
    height: 250px;
  }
  
  .profile-image {
    width: 60px;
    height: 60px;
  }
  
  .content-section {
    padding: 2rem 0;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .main-article {
    padding: 1.5rem;
  }
  
  .learning-section,
  .emerging-tech-section {
    padding: 1.5rem;
    border-radius: 12px;
  }
  
  .section-subtitle {
    font-size: 1.5rem;
  }
  
  .course-info h4 {
    font-size: 1.125rem;
  }
  
  .tech-guide-content p {
    font-size: 1rem;
    text-align: left;
  }
  
  .nav-link {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
  }
  
  .closing-statement {
    padding: 1rem !important;
    font-size: 1.1rem !important;
  }
}
