/* About Page Styles */
.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Hero Section */
.about-hero {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
  align-items: start;
}

.about-avatar {
  position: relative;
}

.avatar-image {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.avatar-image:hover {
  transform: scale(1.02);
}

.avatar-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.avatar-initials {
  font-size: 3rem;
  font-weight: 700;
  color: white;
}

.about-header-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-color, #333);
  margin: 0;
  line-height: 1.1;
}

.about-subtitle {
  font-size: 1.5rem;
  color: var(--brand-color, #4158D0);
  margin: 0;
  font-weight: 600;
}

.about-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-color, #333);
  margin: 0;
}

.about-social {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--border-color, #e1e5e9);
  border-radius: 8px;
  background: var(--bg-lighter, #ffffff);
  color: var(--text-color, #333);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: var(--brand-color, #4158D0);
}

.social-icon {
  font-size: 1.25rem;
}

.social-text {
  font-size: 0.875rem;
}

/* Content Sections */
.about-content {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.about-section {
  scroll-margin-top: 2rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-color, #333);
  margin: 0 0 2rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--brand-color, #4158D0);
}

/* Timeline */
.experience-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
}

.experience-timeline::before {
  content: '';
  position: absolute;
  left: 150px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color, #e1e5e9);
}

.timeline-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 2rem;
  position: relative;
}

.timeline-date {
  font-weight: 600;
  color: var(--brand-color, #4158D0);
  text-align: right;
  padding-top: 0.5rem;
}

.timeline-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color, #333);
  margin: 0 0 0.5rem 0;
}

.timeline-content p {
  color: var(--text-muted, #666);
  line-height: 1.6;
  margin: 0;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.skill-category {
  background: var(--bg-light, #f8f9fa);
  border: 1px solid var(--border-color, #e1e5e9);
  border-radius: 8px;
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skill-category:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.skill-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-color, #333);
  margin: 0 0 1rem 0;
}

.skill-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skill-item {
  padding: 0.5rem 0;
  color: var(--text-color, #333);
  position: relative;
  padding-left: 1.5rem;
}

.skill-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--brand-color, #4158D0);
  font-weight: 600;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--bg-light, #f8f9fa);
  border: 1px solid var(--border-color, #e1e5e9);
  border-radius: 8px;
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.project-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-color, #333);
  margin: 0;
  flex: 1;
}

.project-status {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #28a745;
  color: white;
}

.project-status:not(.completed) {
  background: #ffc107;
  color: #212529;
}

.project-description {
  color: var(--text-color, #333);
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.project-tag {
  padding: 0.25rem 0.75rem;
  background: var(--brand-color, #4158D0);
  color: white;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Education Grid */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.education-item {
  background: var(--bg-light, #f8f9fa);
  border: 1px solid var(--border-color, #e1e5e9);
  border-radius: 8px;
  padding: 1.5rem;
}

.education-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-color, #333);
  margin: 0 0 0.5rem 0;
}

.education-institution {
  color: var(--brand-color, #4158D0);
  font-weight: 500;
  margin: 0 0 0.25rem 0;
}

.education-period {
  color: var(--text-muted, #666);
  font-size: 0.875rem;
  margin: 0 0 0.5rem 0;
}

.education-details {
  color: var(--text-color, #333);
  margin: 0;
}

.certifications {
  background: var(--bg-light, #f8f9fa);
  border: 1px solid var(--border-color, #e1e5e9);
  border-radius: 8px;
  padding: 1.5rem;
}

.certifications-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-color, #333);
  margin: 0 0 1rem 0;
}

.certification-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.certification-item {
  padding: 0.5rem 0;
  color: var(--text-color, #333);
  position: relative;
  padding-left: 1.5rem;
}

.certification-item::before {
  content: '🏆';
  position: absolute;
  left: 0;
}

/* Blog Areas */
.blog-areas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.area-card {
  background: var(--bg-light, #f8f9fa);
  border: 1px solid var(--border-color, #e1e5e9);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.area-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.area-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.area-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-color, #333);
  margin: 0 0 0.75rem 0;
}

.area-description {
  color: var(--text-color, #333);
  line-height: 1.6;
  margin: 0;
}

/* Contact Section */
.contact-section {
  text-align: center;
}

.contact-text {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-color, #333);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-light, #f8f9fa);
  border: 1px solid var(--border-color, #e1e5e9);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-color, #333);
  transition: all 0.2s ease;
}

.contact-method:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: var(--brand-color, #4158D0);
}

.contact-icon {
  font-size: 1.5rem;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-color, #4158D0);
  color: white;
  border-radius: 50%;
}

.contact-info h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
}

.contact-info p {
  color: var(--text-muted, #666);
  margin: 0;
}

/* Responsive Design */
@media (max-width: 968px) {
  .about-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .about-avatar {
    margin: 0 auto;
  }
  
  .timeline-item {
    grid-template-columns: 120px 1fr;
    gap: 1.5rem;
  }
  
  .experience-timeline::before {
    left: 60px;
  }
  
  .timeline-date {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .about-container {
    padding: 1rem 0.5rem;
  }
  
  .about-title {
    font-size: 2rem;
  }
  
  .about-subtitle {
    font-size: 1.25rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .about-social {
    justify-content: center;
  }
  
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .experience-timeline::before {
    display: none;
  }
  
  .timeline-date {
    text-align: center;
    background: var(--bg-light, #f8f9fa);
    padding: 0.5rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
  }
  
  .skills-grid,
  .projects-grid,
  .education-grid,
  .blog-areas,
  .contact-methods {
    grid-template-columns: 1fr;
  }
  
  .certification-list {
    grid-template-columns: 1fr;
  }
}

/* Dark theme */
[data-theme="dark"] .about-container {
  color: #e0e0e0;
}

[data-theme="dark"] .about-title {
  color: #e0e0e0;
}

[data-theme="dark"] .about-subtitle {
  color: #667eea;
}

[data-theme="dark"] .about-description {
  color: #e0e0e0;
}

[data-theme="dark"] .social-link {
  background: #2a2a2a;
  border-color: #444;
  color: #e0e0e0;
}

[data-theme="dark"] .social-link:hover {
  border-color: #667eea;
}

[data-theme="dark"] .section-title {
  color: #e0e0e0;
  border-color: #667eea;
}

[data-theme="dark"] .experience-timeline::before {
  background: #444;
}

[data-theme="dark"] .timeline-date {
  color: #667eea;
}

[data-theme="dark"] .timeline-content h3 {
  color: #e0e0e0;
}

[data-theme="dark"] .timeline-content p {
  color: #aaa;
}

[data-theme="dark"] .skill-category {
  background: #2a2a2a;
  border-color: #444;
}

[data-theme="dark"] .skill-title {
  color: #e0e0e0;
}

[data-theme="dark"] .skill-item {
  color: #e0e0e0;
}

[data-theme="dark"] .project-card {
  background: #2a2a2a;
  border-color: #444;
}

[data-theme="dark"] .project-title {
  color: #e0e0e0;
}

[data-theme="dark"] .project-description {
  color: #e0e0e0;
}

[data-theme="dark"] .education-item {
  background: #2a2a2a;
  border-color: #444;
}

[data-theme="dark"] .education-title {
  color: #e0e0e0;
}

[data-theme="dark"] .education-details {
  color: #e0e0e0;
}

[data-theme="dark"] .certifications {
  background: #2a2a2a;
  border-color: #444;
}

[data-theme="dark"] .certifications-title {
  color: #e0e0e0;
}

[data-theme="dark"] .certification-item {
  color: #e0e0e0;
}

[data-theme="dark"] .area-card {
  background: #2a2a2a;
  border-color: #444;
}

[data-theme="dark"] .area-title {
  color: #e0e0e0;
}

[data-theme="dark"] .area-description {
  color: #e0e0e0;
}

[data-theme="dark"] .contact-text {
  color: #e0e0e0;
}

[data-theme="dark"] .contact-method {
  background: #2a2a2a;
  border-color: #444;
  color: #e0e0e0;
}

[data-theme="dark"] .contact-method:hover {
  border-color: #667eea;
}

[data-theme="dark"] .contact-info h4 {
  color: #e0e0e0;
}

[data-theme="dark"] .contact-info p {
  color: #aaa;
}

/* Print styles */
@media print {
  .about-container {
    margin: 1rem 0;
    padding: 0;
  }
  
  .about-hero {
    margin-bottom: 2rem;
  }
  
  .about-social {
    display: none;
  }
  
  .contact-methods {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .avatar-image,
  .social-link,
  .skill-category,
  .project-card,
  .area-card,
  .contact-method {
    transition: none;
  }
  
  .avatar-image:hover,
  .social-link:hover,
  .skill-category:hover,
  .project-card:hover,
  .area-card:hover,
  .contact-method:hover {
    transform: none;
  }
}