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

body {
  background-color: #121212;
  color: #e0e0e0;
}

.gradient-text {
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #10b981);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  transition: width 0.3s ease;
}

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

.active-nav::after {
  width: 100%;
}

.project-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.3);
}

.skill-pill {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skill-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px -3px rgba(99, 102, 241, 0.4);
}

.section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.typing-effect::after {
  content: "|";
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.scroll-down {
  animation: bounce 2s infinite;
}

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

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

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

/* Loading Animations */
.loading-container {
  min-height: 200px;
}

.spinner-border {
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.section-loader {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Skeleton Loading Animation */
.skeleton-loader {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* Fade in animation for content */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

/* Error state styling */
.error-state {
  color: #ef4444;
  text-align: center;
  padding: 2rem;
}

.error-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}

/* Contact Form Styling */
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.contact-form input.ng-touched.ng-invalid,
.contact-form textarea.ng-touched.ng-invalid {
  border-color: #ef4444;
}

.contact-form input.ng-touched.ng-valid,
.contact-form textarea.ng-touched.ng-valid {
  border-color: #10b981;
}

/* Form status messages */
.form-message {
  padding: 1rem;
  border-radius: 0.375rem;
  margin-top: 1rem;
  font-weight: 500;
}

.form-message.success {
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.form-message.error {
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

/* Loading spinner for form */
.form-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Disabled form elements */
.contact-form input:disabled,
.contact-form textarea:disabled,
.contact-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Experience Timeline Styles */
.timeline-container {
  position: relative;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, #6366f1, #8b5cf6, #10b981);
  opacity: 0.3;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  opacity: 0;
  animation: slideUpTimeline 0.6s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }

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

.timeline-content {
  position: relative;
  background: #1e1e1e;
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.timeline-content:hover {
  border-color: #6366f1;
  box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.3);
  transform: translateY(-5px);
}

.timeline-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  background: #6366f1;
  border: 4px solid #121212;
  border-radius: 50%;
  top: 1.5rem;
  z-index: 10;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
  background: #8b5cf6;
  box-shadow: 0 0 0 8px rgba(139, 92, 246, 0.2);
  transform: scale(1.2);
}

.timeline-dot.current {
  background: #10b981;
  border-color: #121212;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.3);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.3);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(16, 185, 129, 0.1);
  }
}

/* Desktop Timeline (Left-Right Alternating) */
@media (min-width: 768px) {
  .timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: calc(50% + 2rem);
  }

  .timeline-item:nth-child(even) .timeline-content {
    margin-left: calc(50% + 2rem);
    margin-right: 0;
  }

  .timeline-item:nth-child(odd) .timeline-dot {
    right: calc(50% - 8px);
  }

  .timeline-item:nth-child(even) .timeline-dot {
    left: calc(50% - 8px);
  }

  .timeline-item:nth-child(odd) .timeline-content::before {
    content: '';
    position: absolute;
    top: 1.5rem;
    right: -10px;
    width: 0;
    height: 0;
    border-left: 10px solid rgba(99, 102, 241, 0.2);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    transition: all 0.3s ease;
  }

  .timeline-item:nth-child(odd):hover .timeline-content::before {
    border-left-color: #6366f1;
  }

  .timeline-item:nth-child(even) .timeline-content::before {
    content: '';
    position: absolute;
    top: 1.5rem;
    left: -10px;
    width: 0;
    height: 0;
    border-right: 10px solid rgba(99, 102, 241, 0.2);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    transition: all 0.3s ease;
  }

  .timeline-item:nth-child(even):hover .timeline-content::before {
    border-right-color: #6366f1;
  }
}

/* Mobile Timeline (Vertical Left-Aligned) */
@media (max-width: 767px) {
  .timeline-line {
    left: 1rem;
  }

  .timeline-content {
    margin-left: 3rem;
  }

  .timeline-dot {
    left: 0.5rem;
  }

  .timeline-content::before {
    content: '';
    position: absolute;
    top: 1.5rem;
    left: -10px;
    width: 0;
    height: 0;
    border-right: 10px solid rgba(99, 102, 241, 0.2);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    transition: all 0.3s ease;
  }

  .timeline-item:hover .timeline-content::before {
    border-right-color: #6366f1;
  }
}

.experience-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 9999px;
  font-size: 0.75rem;
  color: #8b5cf6;
  transition: all 0.2s ease;
}

.experience-badge:hover {
  background: rgba(99, 102, 241, 0.2);
  transform: translateY(-2px);
}

.experience-badge.current {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.tech-tag {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  background: rgba(139, 92, 246, 0.1);
  color: #a78bfa;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  transition: all 0.2s ease;
}

.tech-tag:hover {
  background: rgba(139, 92, 246, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px -2px rgba(139, 92, 246, 0.3);
}
