/* About Page Styles */
.about-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 30px 60px; /* Increased horizontal and bottom padding */
}

/* Ensure proper navbar styling for this page */
.site-header {
  position: fixed;
  top: 42px; /* Match base.css positioning */
  left: 0;
  width: 100%;
  background-color: var(--terminal-bg);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: all 0.3s ease;
  border-bottom: 1px solid var(--terminal-border);
}

/* Reset any conflicting styles in the about section navbar */
.site-header.terminal-style .nav-item.terminal-style::before,
.site-header.terminal-style .nav-item.terminal-style::after,
.site-header.terminal-style .nav-link.terminal-style::before {
  display: none;
}

.site-header.terminal-style .nav-link.terminal-style::before {
  content: none;
}

/* Fix for any circles appearing in the navbar */
.nav-item, .nav-link {
  list-style-type: none;
}

.nav-item::before,
.nav-item::after,
.nav-link::before,
.nav-link::after {
  display: none;
  content: none;
}

/* For terminal theme consistency */
.site-header.terminal-style {
  position: fixed;
  top: 15px; /* Match terminal-theme.css positioning */
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

/* Ensure correct prompt styles in navbar */
.terminal-prompt {
  color: #888 !important;
  margin-right: 4px !important; /* Reduced margin */
  display: inline-block !important;
  font-size: 0.7rem !important; /* Added smaller font size */
}

.nav-link.terminal-style .terminal-prompt {
  margin-right: 4px !important; /* Reduced margin */
  font-size: 0.7rem !important; /* Added smaller font size */
}

/* Mobile adaptations for consistent navbar */
@media (max-width: 768px) {
  .site-header {
    top: 30px; /* Match base.css mobile positioning */
  }
  
  .site-header.terminal-style {
    top: 10px; /* Match terminal-theme.css mobile positioning */
  }
  
  .about-container {
    padding: 0 20px 40px;
  }
  
  .page-title {
    font-size: 2.2rem;
    margin-top: 90px; /* Increased top margin to account for fixed header */
    margin-bottom: 40px;
  }
  
  .page-title::after {
    width: 90px;
  }
  
  .profile-section {
    padding: 25px;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .skills-section, .education-section {
    padding: 25px;
  }
}

@media (max-width: 480px) {
  .about-container {
    padding: 0 15px 30px;
  }
  
  .page-title {
    font-size: 1.9rem;
    margin-top: 80px;
    margin-bottom: 35px;
  }
  
  .page-title::after {
    width: 80px;
    height: 3px;
    bottom: -12px;
  }
  
  .profile-section, .skills-section, .education-section {
    padding: 20px;
    border-radius: 15px;
  }
  
  .profile-name {
    font-size: 1.7rem;
  }
  
  .profile-tagline {
    font-size: 1.1rem;
  }
  
  .profile-bio p {
    font-size: 0.95rem;
  }
  
  .badge {
    font-size: 0.8rem;
    padding: 5px 12px;
  }
  
  .section-title {
    font-size: 1.6rem;
    margin-bottom: 15px;
  }
  
  .section-title i {
    font-size: 1.4rem;
  }
  
  .skill-category {
    padding: 15px;
    margin-bottom: 15px;
  }
  
  .category-title {
    font-size: 1.2rem;
  }
  
  tag {
    font-size: 0.8rem;
    padding: 5px 10px;
  }
}

@media (max-width: 900px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
  }
  
  .profile-img-container {
    margin-right: 0;
    margin-bottom: 25px; /* Increased margin for mobile */
  }
  
  .profile-badges {
    justify-content: center;
  }
  
  .skills-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    margin-left: 40px;
  }
  
  .timeline-item:before {
    left: -36px;
  }
}

@media (max-width: 600px) {
  .profile-card {
    padding: 20px;
  }
  
  .profile-img {
    width: 120px;
    height: 120px;
  }
  
  .timeline {
    padding-left: 5px;
  }
  
  .timeline::before {
    left: 15px;
  }
  
  .timeline-item {
    margin-left: 30px;
    padding: 15px;
  }
  
  .timeline-item:before {
    left: -30px;
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 360px) {
  .profile-name {
    font-size: 1.5rem;
  }
  
  .profile-tagline {
    font-size: 1rem;
  }
  
  .profile-bio p {
    font-size: 0.9rem;
  }
  
  .badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    margin: 0 3px 6px 0;
  }
  
  .section-title {
    font-size: 1.4rem;
  }
  
  .category-title {
    font-size: 1.1rem;
  }
  
  tag {
    font-size: 0.75rem;
    padding: 4px 8px;
  }
}

.page-title {
  text-align: center;
  margin-top: 40px; /* Increased margin */
  font-size: 2.6rem;
  color: #333;
  position: relative;
  margin-bottom: 60px; /* Increased margin */
  font-weight: 700;
}

.page-title::after {
  content: '';
  position: absolute;
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #4a6cf7, #8a94ff, #a78bfa);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 4px;
}

/* Profile Section */
.profile-section {
  margin-bottom: 70px; /* Increased margin */
}

.profile-card {
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  padding: 35px; /* Increased padding */
  transition: transform 0.3s ease;
  border-top: 5px solid #4a6cf7;
}

.profile-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.profile-header {
  display: flex;
  align-items: center;
  margin-bottom: 35px; /* Increased margin */
}

.profile-img-container {
  width: 150px;
  height: 150px;
  flex-shrink: 0;
  margin-right: 35px; /* Increased margin */
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 5px solid #fff;
}

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

.profile-info {
  flex-grow: 1;
}

.profile-name {
  margin: 0 0 15px 0; /* Increased margin */
  font-size: 2.2rem;
  font-weight: 700;
  color: #333;
}

.profile-tagline {
  margin: 0 0 20px 0; /* Increased margin */
  color: #666;
  font-size: 1.1rem;
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px; /* Increased gap */
  margin-top: 20px; /* Increased margin */
}

.badge {
  display: inline-block;
  background-color: #eef4ff;
  color: #4a6cf7 !important;
  padding: 8px 16px; /* Increased padding */
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  margin: 5px; /* Increased margin */
  transition: all 0.2s ease;
}

.badge:hover {
  background-color: #4a6cf7;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(74, 108, 247, 0.2);
}

.profile-bio {
  color: #444 !important; /* Important to override any inline styles */
  line-height: 1.7;
  font-size: 1.05rem;
}

.profile-bio p {
  margin-bottom: 25px; /* Increased margin */
}

.profile-bio a {
  color: #4a6cf7;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.profile-bio a:hover {
  text-decoration: underline;
}

/* Skills Section */
.skills-section {
  margin-bottom: 70px; /* Increased margin */
}

.section-title {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  color: #333 !important;
  margin-bottom: 30px; /* Increased margin */
  gap: 12px; /* Increased gap */
}

.section-title i {
  color: #4a6cf7;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 35px; /* Increased gap */
}

.skill-category {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 25px; /* Increased padding */
  transition: all 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-top: 3px solid #4a6cf7;
}

.category-title {
  font-size: 1.3rem;
  color: #333 !important;
  margin-top: 0;
  margin-bottom: 20px; /* Increased margin */
  padding-bottom: 12px; /* Increased padding */
  border-bottom: 2px solid #eef4ff;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px; /* Increased gap */
}

tag {
  display: inline-block;
  background-color: #f0f7ff;
  color: #3a5cd7;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px; /* Increased padding */
  border-radius: 20px;
  transition: all 0.3s ease;
  border: 1px solid rgba(58, 92, 215, 0.1);
  margin: 0 5px; /* Increased margin */
}

tag:hover {
  background-color: #3a5cd7;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(58, 92, 215, 0.2);
}

/* Education Section */
.education-section {
  background-color: #0e0e0e;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  padding: 35px; /* Increased padding */
  margin-bottom: 70px; /* Increased margin */
  transition: transform 0.3s ease;
  border-top: 5px solid #cdd2dc;
}

.education-section:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.section-title {
  display: flex;
  align-items: center;
  color: #333 !important;
  font-size: 1.8rem;
  margin: 0 0 30px 0; /* Increased margin */
  padding-bottom: 18px; /* Increased padding */
  border-bottom: 2px solid #f0f0f0;
}

.section-title i {
  margin-right: 12px; /* Increased margin */
  color: #4a6cf7;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px; /* Increased gap */
}

.skill-category {
  margin-bottom: 30px; /* Increased margin */
}

.category-title {
  color: #333 !important;
  font-size: 1.25rem;
  margin: 0 0 15px 0;
  font-weight: 600;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px; /* Increased gap */
}

tag {
  display: inline-block;
  background-color: #f0f5ff;
  color: #4a6cf7;
  padding: 6px 12px; /* Increased padding */
  border-radius: 4px;
  font-size: 0.9rem;
  margin: 2px;
  font-weight: 500;
}

/* Education Timeline */
.timeline {
  position: relative;
  padding-left: 35px; /* Increased padding */
}

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

.timeline-item {
  position: relative;
  margin-bottom: 35px; /* Increased margin */
}

.timeline-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: #4a6cf7;
  border-radius: 50%;
  left: -38px;
  top: 5px;
  z-index: 1;
  box-shadow: 0 0 0 5px #eef4ff;
}

.timeline-content {
  background-color: #ffffff;
  padding: 30px; /* Increased padding */
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.timeline-content h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #333 !important;
  font-size: 1.3rem;
}

.timeline-institution, .timeline-description, .timeline-date {
  color: #444 !important;
}

/* CTA Section */
.cta-section {
  text-align: center;
  margin-top: 40px; /* Increased margin */
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 25px; /* Increased gap */
  flex-wrap: wrap;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px; /* Increased gap */
  background-color: #4a6cf7;
  color: white;
  font-size: 1rem;
  font-weight: 500;
  padding: 15px 30px; /* Increased padding */
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(74, 108, 247, 0.3);
}

.cta-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(74, 108, 247, 0.4);
}

.cta-button i {
  font-size: 1.2rem;
}

/* Responsive Styles */
@media (max-width: 900px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
  }
  
  .profile-img-container {
    margin-right: 0;
    margin-bottom: 25px; /* Increased margin for mobile */
  }
  
  .profile-badges {
    justify-content: center;
  }
  
  .skills-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    margin-left: 40px;
  }
  
  .timeline-item:before {
    left: -36px;
  }
}

@media (max-width: 600px) {
  .profile-card {
    padding: 20px;
  }
  
  .profile-img {
    width: 120px;
    height: 120px;
  }
  
  .timeline {
    padding-left: 5px;
  }
  
  .timeline::before {
    left: 15px;
  }
  
  .timeline-item {
    margin-left: 30px;
    padding: 15px;
  }
  
  .timeline-item:before {
    left: -30px;
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 360px) {
  .profile-name {
    font-size: 1.5rem;
  }
  
  .profile-tagline {
    font-size: 1rem;
  }
  
  .profile-bio p {
    font-size: 0.9rem;
  }
  
  .badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    margin: 0 3px 6px 0;
  }
  
  .section-title {
    font-size: 1.4rem;
  }
  
  .category-title {
    font-size: 1.1rem;
  }
  
  tag {
    font-size: 0.75rem;
    padding: 4px 8px;
  }
}

.skill-list-2 {
  margin-top: 35px;
  padding: 25px;
  border-radius: 12px;
  background-color: #f8f9fa;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
}

.skill-list-2:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

chip {
  display: inline-block;
  padding: 0.6em 1.2em;
  margin: 0.4em;
  border-radius: 30px;
  background-color: #f0f4ff;
  color: #4a6cf7;
  font-size: 0.95em;
  font-weight: 500;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(74, 108, 247, 0.2);
  cursor: pointer;
}

tag {
  display: inline-block;
  padding: 0.4em 0.8em;
  margin: 0.3em;
  border-radius: 6px;
  background-color: #4a6cf7;
  color: white;
  font-size: 0.9em;
  font-weight: 500;
  box-shadow: 0 3px 6px rgba(0,0,0,0.12);
  transition: all 0.3s ease;
  border: none;
}

tag:hover {
  background-color: #3a5cd7;
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0,0,0,0.18);
}

chip:hover {
  background-color: #4a6cf7;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(74, 108, 247, 0.3);
}

.about a {
  font-weight: 600;
  cursor: pointer;
  color: #4a6cf7;
  transition: all 0.3s ease;
  text-decoration: none;
}

.about a:hover {
  text-decoration: underline;
  color: #3a5cd7;
}

:root {
  line-height: 1.8;
}

li {
  text-align: left;
  margin-bottom: 12px;
}

div.skill {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
  padding: 0;
  justify-content: center;
}

div.skill a tag {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 1em 1.5em;
  font-size: 1em;
  font-weight: 500;
  border-radius: 35px;
  background-color: #4a6cf7;
  color: white;
  transition: all 0.4s ease;
  box-shadow: 0 6px 15px rgba(74, 108, 247, 0.25);
}

div.skill a tag:hover {
  background-color: #3a5cd7;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(74, 108, 247, 0.35);
}

div.skill a tag i {
  font-size: 1.3em;
}

hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
  margin: 35px 0;
}

.semester-projects {
  list-style-type: none;
  padding-left: 0;
}

.semester-projects li {
  position: relative;
  padding: 18px 22px 18px 45px;
  margin-bottom: 18px;
  background-color: #f8faff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.semester-projects li:hover {
  transform: translateX(8px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.semester-projects li:before {
  content: '•';
  position: absolute;
  left: 20px;
  color: #4a6cf7;
  font-size: 22px;
}

.semester-projects li strong {
  display: block;
  color: #222;
  font-size: 1.1em;
  margin-bottom: 8px;
}

ul:not(.semester-projects) {
  padding-left: 25px;
}

ul:not(.semester-projects) li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 8px;
  list-style-type: circle;
}

ul:not(.semester-projects) li strong {
  color: #222;
  font-weight: 600;
}

.skill-list {
  text-align: left;
  width: fit-content;
  margin: auto 8px;
  border: none;
  background-color: transparent;
  color: #333;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease-in;
  vertical-align: middle;
}

div.skill tag,
div.skill chip {
  font-size: 1.1rem;
  margin: 3px;
}

/* Animation Styles */
.profile-card, .skill-category, .timeline-item {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.timeline-item {
  transform: translateX(20px);
}

/* Project list item styles */
.skills-section ul {
  margin-left: 0;
  padding-left: 20px;
  list-style-type: none;
}

.skills-section ul li {
  position: relative;
  padding-left: 5px;
  margin-bottom: 18px;
  line-height: 1.6;
}

.skills-section ul li:before {
  content: "•";
  color: #4a6cf7;
  font-weight: bold;
  font-size: 1.2rem;
  position: absolute;
  left: -15px;
  top: 0px;
}

.skills-section ul li tag {
  font-size: 0.85rem;
  padding: 3px 8px;
  margin: 0 2px;
}

/* Fix for white font color in profile bio and other sections */
.about-container p, 
.about-container li, 
.about-container ul, 
.about-container ol {
  color: #444 !important;
}
