/* Custom styles to enhance Bootstrap */

:root {
  --primary-color: #0d6efd;
  --primary-dark: #0a58ca;
  --secondary-color: #6c757d;
  --light-bg: #f8f9fa;
  --dark-bg: #212529;
  --border-radius: 0.375rem;
  --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --transition: all 0.3s ease;
}

body {
  font-family: 'Roboto', sans-serif;
  color: #333;
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', serif;
}

.section-title {
  position: relative;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #212529;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 70px;
  background-color: var(--primary-color);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(to right, #f8f9fa, #e9ecef);
}

.avatar-container {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto;
}

.avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: var(--box-shadow);
}

/* Icons */
.icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(13, 110, 253, 0.1);
  color: var(--secondary-color);
}

.icon-container-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(13, 110, 253, 0.1);
  color: var(--primary-color);
}

.icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(13, 110, 253, 0.1);
  color: var(--primary-color);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 2px;
  background-color: #e9ecef;
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-icon {
  position: absolute;
  left: -2rem;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(13, 110, 253, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  z-index: 1;
}

.timeline-content {
  padding-bottom: 1.5rem;
}

.timeline-item:last-child .timeline-content {
  padding-bottom: 0;
}

/* Cards */
.card {
  border: none;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Bullet Points */
.bullet-point {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--primary-color);
  position: relative;
}

.bullet-point::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: rgba(13, 110, 253, 0.1);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Publication Items */
.publication-item {
  margin-bottom: 1rem;
}

.publication-item:last-child {
  margin-bottom: 0;
}

.publication-year {
  display: flex;
  align-items: center;
  color: var(--primary-color);
}

/* Navbar */
.navbar {
  transition: var(--transition);
}

.navbar-brand {
  font-family: 'Lora', serif;
}

.navbar-brand img {
  max-height: 40px;
  width: auto;
}

.nav-link {
  position: relative;
  font-weight: 500;
  padding: 0.5rem 1rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 70%;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 0.25rem 0.5rem rgba(13, 110, 253, 0.3);
}

/* Form Controls */
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Contact Form 7 Styling */
.wpcf7-form label {
  width: 100%;
  font-weight: 500;
}

.wpcf7-form .wpcf7-text,
.wpcf7-form .wpcf7-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ced4da;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.wpcf7-form .wpcf7-text:focus,
.wpcf7-form .wpcf7-textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
  outline: none;
}

.wpcf7-form .wpcf7-submit {
  background-color: var(--primary-color);
  border: 1px solid var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  width: 100%;
}

.wpcf7-form .wpcf7-submit:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 0.25rem 0.5rem rgba(13, 110, 253, 0.3);
}

.wpcf7-not-valid-tip {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.wpcf7-response-output {
  margin: 1rem 0 0 0 !important;
  padding: 0.75rem 1rem !important;
  border-radius: var(--border-radius);
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
  .section-title {
    font-size: 1.75rem;
  }
  
  .timeline {
    padding-left: 1.5rem;
  }
  
  .timeline-icon {
    left: -1.5rem;
    width: 30px;
    height: 30px;
  }
}

/* Academic-specific styling */
.list-group-item {
  border-left: none;
  border-right: none;
  border-top: none;
  padding-left: 0;
  padding-right: 0;
}

.list-group-item:last-child {
  border-bottom: none;
}

/* Tech-specific styling */
.nav-pills .nav-link {
  border-radius: 50rem;
  padding: 0.5rem 1.5rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
  background-color: #f8f9fa;
  transition: var(--transition);
}

.nav-pills .nav-link.active {
  background-color: var(--primary-color);
  color: white;
}

.nav-pills .nav-link:hover:not(.active) {
  background-color: #e9ecef;
}

/* Table styling */
.table {
  border-collapse: separate;
  border-spacing: 0;
}

.table th {
  font-weight: 600;
  background-color: #f8f9fa;
}

.table-hover tbody tr:hover {
  background-color: rgba(13, 110, 253, 0.05);
}

/* Footer */
footer {
  background-color: var(--dark-bg);
}

/* WordPress Specific Styles */
.wp-block-image img {
  max-width: 100%;
  height: auto;
}

.wp-caption {
  max-width: 100%;
}

.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card, .timeline-item {
  animation: fadeIn 0.6s ease-out forwards;
}

.timeline-item:nth-child(2) {
  animation-delay: 0.2s;
}

.timeline-item:nth-child(3) {
  animation-delay: 0.4s;
}

.timeline-item:nth-child(4) {
  animation-delay: 0.6s;
}