/* General Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #f8f9fa;
}

/* Header Styles */
.header {
  background-color: #000000;
  padding: 2rem 3rem;
  width: 100%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

/* Logo Section */
.logo-section {
  flex-shrink: 0;
  padding: 0;
  user-select: none;
}

.logo {
  display: flex;
  gap: 8px;
  align-items: center;
  cursor: default;
}

.logo-letter {
  font-size: 4rem;
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 1;
  padding: 0 5px;
  transition: all 0.3s ease;
  position: relative;
}

.logo-letter:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #fff;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.logo:hover .logo-letter {
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.logo:hover .logo-letter:after {
  transform: scaleX(1);
}

/* Header Text Section */
.header-text-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  max-width: 700px;
}

.welcome-text {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: #fff;
  line-height: 1.3;
  letter-spacing: 0.02em;
  font-weight: normal;
}

.philosophy-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ddd;
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}

.philosophy-quote {
  font-style: italic;
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 
    0 0 10px rgba(255, 255, 255, 0.5),
    0 0 20px rgba(255, 255, 255, 0.3),
    0 0 30px rgba(255, 255, 255, 0.2);
  padding-left: 1rem;
  border-left: 5px solid rgba(255, 255, 255, 0.7);
  user-select: none;
  max-width: 600px;
  line-height: 1.4;
  animation: glow 2s ease-in-out infinite alternate;
}

/* Main Content Section */
.experience-section {
  padding: 2rem 0 4rem 0;
  background-color: #f8f9fa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.5rem;
  color: #333;
  font-weight: 700;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

/* Card Styles */
.card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
}

.card-header {
  background: #000;
  color: white;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Experience Card Specific */
.experience-card {
  cursor: pointer;
}

.experience-overview {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: 150px;
  text-align: center;
}

/* Skills Card Specific */
.skills-card {
  cursor: pointer;
}

.skills-overview {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: 150px;
  text-align: center;
}

.view-more {
  text-align: center;
}

.view-more p {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.view-more-icon {
  display: inline-block;
  font-size: 1.2rem;
  color: #000;
  transition: transform 0.3s ease;
}

.skills-card:hover .view-more-icon,
.experience-card:hover .view-more-icon {
  transform: translateX(5px);
}

/* Passion Card Specific */
.passion-card {
  cursor: pointer;
}

.passion-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 150px;
}

.passion-description {
  color: #555;
  line-height: 1.6;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.agentx-link {
  margin-top: auto;
  padding-top: 1rem;
}

.glow-text {
  display: inline-block;
  color: #000;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background: linear-gradient(45deg, #f3f3f3, #fff);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  animation: glowingText 2s ease-in-out infinite alternate;
}

/* Modal Base Styles */
.skills-modal,
.experience-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  overflow-y: auto;
}

.modal-content {
  position: relative;
  background: white;
  margin: 2rem auto;
  padding: 2.5rem 3rem;
  width: 90%;
  max-width: 1200px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  animation: modalFadeIn 0.3s ease-out;
  max-height: 90vh;
  overflow-y: auto;
}

.close-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  cursor: pointer;
  color: #333;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  border: none;
}

.close-button:hover {
  background: #f0f0f0;
  color: #000;
}

.modal-title {
  font-size: 2rem;
  color: #333;
  margin-bottom: 2rem;
  text-align: center;
  padding: 0 1rem;
}

/* Skills Modal Specific */
.skill-categories {
  columns: 3;
  column-gap: 2rem;
  orphans: 1;
  widows: 1;
}

.skill-category {
  break-inside: avoid;
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  display: inline-block;
  width: 100%;
}

.skill-category h4 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  border-bottom: 2px solid #000;
  padding-bottom: 0.5rem;
}

.skill-list {
  display: grid;
  gap: 0.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.skill-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skill-list li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.5rem;
  background: white;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  line-height: 1.4;
}

.skill-list li::before {
  content: '•';
  position: absolute;
  left: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: #666;
}

.skill-list li:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Timeline Styles - Updated */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  width: 2px;
  background: #000;
  top: 0;
  bottom: 0;
  left: 140px;  /* Aligned with dot */
  opacity: 0.2;
}

.timeline-item {
  margin-bottom: 4rem; /* increased space */
  min-height: auto; /* avoid fixed height */
  position: relative;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap; /* allow wrapping for smaller screens */
}

.timeline-dot {
  position: absolute;
  left: 140px;  /* Aligned with vertical line */
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #000;
  box-shadow: 0 0 0 4px #fff;
  top: 6px;  /* Aligned with date text */
}

.timeline-date {
  width: 120px;
  padding-right: 2rem;
  text-align: right;
  font-weight: 600;
  color: #000;
  opacity: 0.7;
  line-height: 1.5;
  padding-top: 2px;  /* Slight adjustment for alignment */
  white-space: nowrap; 
}

.timeline-content {
  flex: 1;
  background: white;
  padding: 1.5rem 2rem;
  margin-left: 2rem;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.timeline-content h3 {
  color: #000;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.timeline-content h4 {
  color: #666;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.timeline-location {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.timeline-achievements {
  list-style: none;
  padding-left: 2rem;
  margin: 1rem 0;
}

.timeline-achievements li {
  margin-bottom: 0.75rem;
  position: relative;
}

.timeline-achievements li::before {
  content: '→';
  position: absolute;
  left: -1.5rem;
  color: #000;
  font-weight: bold;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.timeline-tags span {
  background: #f0f0f0;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  color: #666;
}

/* Footer Styles - Updated */
.footer {
  background-color: #000000;
  color: #ffffff;
  padding: 2rem 0;
  width: 100%;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.social-links {
  display: flex;
  gap: 2rem;
  margin-bottom: 0.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}

.social-link:hover {
  transform: translateY(-3px);
}

.social-link svg {
  width: 24px;
  height: 24px;
  fill: #ffffff;
  transition: opacity 0.3s ease;
}

.social-link:hover svg {
  opacity: 0.8;
}

.footer-text {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Animations (continued) */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glowingText {
  from {
    text-shadow: 0 0 5px rgba(0,0,0,0.2),
                 0 0 10px rgba(0,0,0,0.1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  to {
    text-shadow: 0 0 8px rgba(0,0,0,0.3),
                 0 0 15px rgba(0,0,0,0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  }
}

@keyframes glow {
  from {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5),
                 0 0 20px rgba(255, 255, 255, 0.3),
                 0 0 30px rgba(255, 255, 255, 0.2);
  }
  to {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.7),
                 0 0 25px rgba(255, 255, 255, 0.5),
                 0 0 35px rgba(255, 255, 255, 0.4);
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .skill-categories {
    columns: 3;
  }
}

@media (max-width: 992px) {
  .skill-categories {
    columns: 2;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }

  .header-text-section {
    margin-top: 1rem;
    text-align: center;
  }

  .section-grid {
    grid-template-columns: 1fr;
  }

  .logo-letter {
    font-size: 3rem;
  }

  .modal-content {
    margin: 1rem;
    padding: 1.5rem 2rem;
  }

  .skill-categories {
    columns: 1;
  }

  .modal-title {
    font-size: 1.5rem;
  }

  .timeline {
    padding: 0 1rem;
  }

  .timeline::before {
    left: 1rem;

  }

  .timeline-item {
    flex-direction: column;
    padding-left: 0;
    padding-right: 0;
  }

  .timeline-dot {
    left: 1rem;
    top: 10px;
  }

  .timeline-date {
    width: 100%;
    text-align: left;
    padding-right: 0;
    padding-left: 2.5rem;
    margin-bottom: 0.75rem;
    white-space: nowrap; 
  }

  .timeline-content {
    margin-left: 0;
    padding: 1.5rem;
  }

  .footer-content {
    padding: 0 1rem;
  }

  .social-links {
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 1.5rem;
  }

  .welcome-text {
    font-size: 1.3rem;
  }

  .philosophy-quote {
    font-size: 1.2rem;
    padding-left: 0.75rem;
  }

  .card-header {
    padding: 1.25rem;
  }

  .timeline-achievements {
    padding-left: 1.5rem;
  }

  .social-links {
    gap: 1rem;
  }
}
