@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

/* Base Styles */
body {
  font-family: "Poppins", sans-serif;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Light/Dark Mode Variables */
:root {
  --primary-color: #4a6bff;
  --secondary-color: #6c63ff;
  --accent-color: #ff6b6b;
  --text-color: #333;
  --bg-color: #ffffff;
  --card-bg: #ffffff;
  --section-bg: #f8f9fa;
  --border-color: #e9ecef;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --hover-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

.dark-mode {
  --primary-color: #6c63ff;
  --secondary-color: #4a6bff;
  --accent-color: #ff6b6b;
  --text-color: #f8f9fa;
  --bg-color: #121212;
  --card-bg: #1e1e1e;
  --section-bg: #1a1a1a;
  --border-color: #2a2a2a;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  --hover-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: var(--transition);
}

/* Section Styles */
section {
  padding: 80px 0;
  background-color: var(--bg-color);
  transition: var(--transition);
}

section:nth-child(even) {
  background-color: var(--section-bg);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 15px;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 3px;
  background-color: var(--accent-color);
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-color);
  opacity: 0.8;
  margin-bottom: 40px;
}

/* Navigation */
.navbar {
  background-color: rgba(0, 0, 0, 0.8);
  padding: 15px 0;
  transition: var(--transition);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff !important;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 500;
  margin: 0 10px;
  padding: 8px 0;
  position: relative;
  transition: var(--transition);
}

.navbar-nav .nav-link:hover {
  color: #fff !important;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

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

/* Theme Switch Toggle */
.theme-switch {
  display: inline-block;
  height: 28px;
  position: relative;
  width: 50px;
  margin-bottom: 0;
  cursor: pointer;
  margin-left: 10px;
}

.theme-switch input {
  display: none;
}

.theme-switch .slider {
  background-color: #ccc;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: 0.4s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px;
}

.theme-switch .slider:before {
  background-color: #fff;
  bottom: 3px;
  content: "";
  height: 22px;
  left: 3px;
  position: absolute;
  transition: 0.4s;
  width: 22px;
  z-index: 2;
}

.theme-switch input:checked+.slider {
  background-color: var(--primary-color);
}

.theme-switch input:checked+.slider:before {
  transform: translateX(22px);
}

.theme-switch .slider.round {
  border-radius: 34px;
}

.theme-switch .slider.round:before {
  border-radius: 50%;
}

.theme-switch .toggle-icon-sun {
  color: #f39c12;
  font-size: 12px;
  z-index: 1;
}

.theme-switch .toggle-icon-moon {
  color: #f1c40f;
  font-size: 12px;
  z-index: 1;
}

/* Hero Section */
.hero-section {
  height: 100vh;
  min-height: 600px;
  background: linear-gradient(135deg, #4a6bff 0%, #6c63ff 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.1) 100%);
  opacity: 0.1;
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease;
}

.hero-section h3 {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.typing-text {
  border-right: 3px solid #fff;
  white-space: nowrap;
  overflow: hidden;
  animation: typing 3.5s steps(30, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes blink-caret {

  from,
  to {
    border-color: transparent;
  }

  50% {
    border-color: #fff;
  }
}

.hero-section .lead {
  font-size: 1.2rem;
  margin-bottom: 30px;
  animation: fadeInUp 1s ease 0.3s;
  animation-fill-mode: both;
}

.hero-buttons {
  margin-top: 30px;
  animation: fadeInUp 1s ease 0.6s;
  animation-fill-mode: both;
}

.hero-buttons .btn {
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 30px;
  margin: 0 10px;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline-light:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-down a {
  color: #fff;
  font-size: 1.5rem;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-20px);
  }

  60% {
    transform: translateY(-10px);
  }
}

/* About Section */
.profile-img-container {
  position: relative;
  display: inline-block;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  margin-bottom: 30px;
}

.big-square-img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--bg-color);
  transition: var(--transition);
}

.about-stats {
  display: flex;
  justify-content: space-around;
  margin-top: 30px;
  text-align: center;
}

.stat-item {
  padding: 15px;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.stat-label {
  font-size: 1rem;
  color: var(--text-color);
}

/* What I Do Cards */
.skill-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  border: none;
  box-shadow: var(--shadow);
  transition: var(--transition);
  overflow: hidden;
}

.skill-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--hover-shadow);
}

.skill-card .card-title {
  color: var(--primary-color);
  font-weight: 600;
}

.tech-icons {
  flex-wrap: wrap;
}

.tech-icon {
  width: 80px;
  /* Increase from default size */
  height: 80px;
  /* Increase from default size */
  object-fit: contain;
  transition: transform 0.3s ease;
}

.tech-icon:hover {
  transform: scale(1.2);
}

.what-i-do-list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 5px;
}

.feature-icon {
  color: var(--accent-color);
  margin-right: 8px;
}

/* Active Projects Section */
.active-project-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}

.active-project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

.project-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.project-header h4 {
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.project-stage {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.idea-stage {
  background-color: #e3f2fd;
  color: #1976d2;
}

.planning {
  background-color: #e8f5e9;
  color: #388e3c;
}

.in-progress {
  background-color: #fff8e1;
  color: #ffa000;
}

.testing {
  background-color: #f3e5f5;
  color: #7b1fa2;
}

.completed {
  background-color: #e8f5e9;
  color: #388e3c;
}

.project-body {
  padding: 20px;
}

.project-progress {
  margin: 15px 0;
}

.progress {
  height: 8px;
  border-radius: 4px;
  background-color: #e9ecef;
  margin-bottom: 5px;
}

.progress-bar {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 4px;
}

.progress-text {
  font-size: 0.8rem;
  color: var(--text-color);
  opacity: 0.8;
}

.project-tech {
  margin-top: 15px;
}

.tech-tag {
  display: inline-block;
  padding: 5px 10px;
  background-color: var(--section-bg);
  color: var(--text-color);
  border-radius: 20px;
  font-size: 0.8rem;
  margin-right: 5px;
  margin-bottom: 5px;
}

/* Projects Section */
.project-grid {
  margin-top: 30px;
}

.project-card .card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition);
  background-color: var(--card-bg);
}

.project-card .card:hover {
  transform: translateY(-10px);
  box-shadow: var(--hover-shadow);
}

.project-img-container {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.project-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.project-img-container:hover img {
  transform: scale(1.1);
}

.project-img-container:hover .project-overlay {
  opacity: 1;
}

.project-card .card-title a {
  color: var(--primary-color);
  transition: var(--transition);
}

.project-card .card-title a:hover {
  color: var(--secondary-color);
}

.skill-badge {
  background-color: var(--section-bg);
  color: var(--primary-color);
  font-size: 0.7rem;
  padding: 5px 10px;
  border-radius: 20px;
  transition: var(--transition);
}

.skill-badge:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* Category Filter Buttons */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.filter-btn {
  padding: 8px 20px;
  background-color: rgba(0, 0, 0, 0.1);
  color: var(--text-color);
  border: none;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.filter-btn.active {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Dark mode styles for filter buttons */
.dark-mode .filter-btn {
  background-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .filter-btn:hover,
.dark-mode .filter-btn.active {
  background-color: var(--primary-color);
}

/* Area Tags */
.area-tag {
  display: inline-block;
  padding: 5px 10px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-right: 5px;
  margin-bottom: 5px;
  font-weight: 500;
}

/* Active Project Card Styles */
.active-project-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}

.active-project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

.active-project-img {
  height: 180px;
  overflow: hidden;
}

.active-project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.active-project-card:hover .active-project-img img {
  transform: scale(1.1);
}

.active-project-content {
  padding: 20px;
}

.active-project-content h4 {
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.learn-more {
  display: inline-block;
  margin-top: 15px;
  color: var(--primary-color);
  font-weight: 500;
  transition: var(--transition);
}

.learn-more i {
  margin-left: 5px;
  transition: var(--transition);
}

.learn-more:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

.learn-more:hover i {
  transform: translateX(5px);
}

/* Education Section */
.education-cards {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.education-card {
  display: flex;
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.education-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

.education-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  font-size: 1.5rem;
}

.education-content {
  padding: 20px;
  flex-grow: 1;
}

.education-content h3 {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.education-info {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 10px;
}

.institution,
.location,
.period {
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.8;
}

.institution {
  font-weight: 500;
}

.education-details p {
  margin: 0;
  text-align: left;
}

/* Articles Section */
.article-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}

.article-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--hover-shadow);
}

.article-img {
  position: relative;
  height: 200px;
}

.article-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-date {
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  color: #fff;
  padding: 5px 15px;
  font-size: 0.8rem;
  border-top-right-radius: 10px;
}

.article-content {
  padding: 20px;
}

.article-content h4 {
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-color);
  transition: var(--transition);
}

.article-card:hover .article-content h4 {
  color: var(--primary-color);
}

.read-more {
  display: inline-block;
  margin-top: 15px;
  color: var(--primary-color);
  font-weight: 500;
  transition: var(--transition);
}

.read-more i {
  margin-left: 5px;
  transition: var(--transition);
}

.read-more:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

.read-more:hover i {
  transform: translateX(5px);
}

/* Certifications & Publications Section */
.certification-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 25px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-left: 4px solid var(--primary-color);
  height: 100%;
}

.certification-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

.cert-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
}

.cert-header h5 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-color);
  line-height: 1.4;
  flex: 1;
}

.cert-status {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.cert-status.in-progress {
  background: linear-gradient(135deg, #ff9800, #f57c00);
  color: white;
}

.cert-status.published {
  background: linear-gradient(135deg, #4caf50, #388e3c);
  color: white;
}

.cert-status i {
  margin-right: 5px;
  font-size: 0.7rem;
}

.article-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.article-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .cert-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .cert-status {
    align-self: flex-end;
  }
}

/* Contact Section */
.contact-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
}

.contact-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  width: 250px;
}

.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--hover-shadow);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.contact-icon i {
  color: #fff;
  font-size: 1.5rem;
}

.contact-card h4 {
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-color);
}

.contact-card p {
  color: var(--text-color);
  opacity: 0.8;
}

.contact-card a {
  color: var(--primary-color);
  transition: var(--transition);
}

.contact-card a:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: var(--card-bg);
  border-radius: 50%;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.social-link:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
  background-color: var(--primary-color);
}

.social-link img {
  transition: var(--transition);
}

.social-link:hover img {
  transform: scale(1.1);
}

/* Footer */
.footer {
  background-color: #121212;
  color: #fff;
  padding: 30px 0;
  text-align: center;
}

.footer p {
  margin-bottom: 10px;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  border: none;
  z-index: 999;
}

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

.back-to-top:hover {
  background-color: var(--secondary-color);
  transform: translateY(-5px);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive styles for timeline and education */
@media (max-width: 768px) {
  .timeline::after {
    left: 30px;
  }

  .timeline-item {
    padding-left: 50px;
  }

  .timeline-dot {
    left: 20px;
  }

  .education-card {
    flex-direction: column;
  }

  .education-icon {
    min-width: 100%;
    height: 60px;
  }
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }

  .hero-section h3 {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .big-square-img {
    width: 250px;
    height: 250px;
  }

  .contact-cards {
    gap: 15px;
  }

  .contact-card {
    width: 220px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: auto;
    padding: 120px 0 80px;
  }

  .hero-buttons .btn {
    margin-bottom: 10px;
  }

  .about-stats {
    flex-direction: column;
  }

  .stat-item {
    margin-bottom: 20px;
  }

  .contact-card {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 576px) {
  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section h3 {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .big-square-img {
    width: 200px;
    height: 200px;
  }
}

/* Unified Timeline Styles */
.timeline-section {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 0;
}

.timeline-container {
  position: relative;
}

/* Base line */
.timeline-line-base {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: var(--border-color);
  border-radius: 2px;
  z-index: 1;
}

/* Animated fill line */
.timeline-line-fill {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 0;
  /* JS will fill this */
  background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
  border-radius: 2px;
  z-index: 2;
  box-shadow: 0 0 15px var(--primary-color);
  transition: height 0.1s ease-out;
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Alternating layout */
.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-content-wrapper {
  width: calc(50% - 40px);
}

.timeline-item:nth-child(odd) .timeline-content-wrapper {
  padding-right: 3rem;
  text-align: right;
}

.timeline-item:nth-child(even) .timeline-content-wrapper {
  padding-left: 3rem;
  text-align: left;
}

/* Bullet alignment for right-aligned text */
.timeline-item:nth-child(odd) .achievements-list li {
  padding-left: 0;
  padding-right: 2rem;
}

.timeline-item:nth-child(odd) .achievements-list li::before {
  left: auto;
  right: 0;
}

.timeline-content {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.timeline-content:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border-color: var(--primary-color);
}

.timeline-icon-wrapper {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.timeline-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border: 4px solid var(--bg-color);
  box-shadow: 0 0 0 4px rgba(74, 107, 255, 0.2);
  transition: var(--transition);
}

.timeline-item:hover .timeline-icon {
  transform: scale(1.15);
  box-shadow: 0 0 20px var(--primary-color);
}

/* Timeline Text Formatting */
.item-title {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.item-subtitle {
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.item-period {
  color: var(--text-color);
  opacity: 0.8;
  font-style: italic;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.item-description {
  color: var(--text-color);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.achievements-list {
  list-style: none;
  padding: 0;
}

.achievements-list li {
  margin-bottom: 0.8rem;
  padding-left: 2rem;
  position: relative;
  color: var(--text-color);
}

.achievements-list li::before {
  content: '🚀';
  position: absolute;
  left: 0;
  top: 0;
}

.coursework {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.item-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
  margin: 0.2rem;
  font-weight: 500;
}

/* Animations */
.timeline-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.timeline-item.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Breakpoints */
@media (max-width: 768px) {

  .timeline-line-base,
  .timeline-line-fill {
    left: 2rem;
  }

  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    flex-direction: column;
    align-items: flex-end;
  }

  .timeline-content-wrapper,
  .timeline-item:nth-child(odd) .timeline-content-wrapper,
  .timeline-item:nth-child(even) .timeline-content-wrapper {
    width: calc(100% - 4rem);
    padding: 0;
    text-align: left;
  }

  .timeline-icon-wrapper {
    left: 2rem;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .timeline-item:nth-child(odd) .achievements-list li {
    padding-left: 2rem;
    padding-right: 0;
  }

  .timeline-item:nth-child(odd) .achievements-list li::before {
    left: 0;
    right: auto;
  }
}