/* Custom styles can be added here */
.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  width: 2px;
  height: 100%;
  background-color: #0ea5e9;
  left: 0;
  top: 0;
}

/* Header Styles */
#main-header {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  padding-top: 0.5rem;
}

#main-header .header-container {
  max-width: 100%;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#main-header.scrolled {
  padding-top: 1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

#main-header.scrolled .header-container {
  max-width: calc(100% - 2rem);
  border-radius: 1rem;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 1px 5px rgba(0, 0, 0, 0.03), 0 4px 6px rgba(0, 0, 0, 0.05);
  transform: translateY(0);
}

.dark #main-header.scrolled .header-container {
  background-color: rgba(17, 24, 39, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 1px 5px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.15);
}

/* Navbar hide animation */
#main-header.nav-hidden {
  transform: translateY(-100%);
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #0ea5e9;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active::after {
  width: 100%;
}

/* Mobile menu animation */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
  opacity: 0;
}

#mobile-menu.open {
  max-height: 300px;
  opacity: 1;
}

/* Dark mode transition */
.dark-mode-transition {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Tech Cards Styles */
.tech-card {
  min-width: 120px;
  position: relative;
  overflow: hidden;
}

.tech-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(14, 165, 233, 0.05), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.tech-card:hover::before {
  transform: translateX(100%);
}

/* Certificate & Award Card Styles */
.certificate-card,
.award-card {
  position: relative;
  overflow: hidden;
}

.certificate-card::after,
.award-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #0ea5e9, #38bdf8);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.certificate-card:hover::after,
.award-card:hover::after {
  transform: scaleX(1);
}

/* Enhanced Professional Experience Card Styles */
.experience-card {
  position: relative;
}


/* Achievement bullet points */
.experience-card .achievement-bullet {
  width: 8px;
  height: 8px;
  background-color: #0ea5e9;
  border-radius: 50%;
  margin-top: 6px;
  margin-right: 12px;
  flex-shrink: 0;
}

/* Technology tags */
.experience-card .tech-tag {
  transition: all 0.2s ease;
}

.experience-card .tech-tag:hover {
  background-color: #0ea5e9;
  color: white;
  transform: translateY(-1px);
}

.dark .experience-card .tech-tag:hover {
  background-color: #0ea5e9;
  color: white;
}

/* Company logo container */
.experience-card .company-logo {
  transition: transform 0.3s ease;
}

.experience-card:hover .company-logo {
  transform: scale(1.05);
}

/* Expandable content animation */
.experience-card .expandable-content {
  transition: all 0.3s ease;
  overflow: hidden;
}

/* Grid responsive adjustments */
@media (max-width: 1024px) {
  .experience-card {
    margin-bottom: 1.5rem;
  }
}

/* Enhanced hover effects */
.experience-card {
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.experience-card:hover {
  border-color: rgba(14, 165, 233, 0.2);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.dark .experience-card:hover {
  border-color: rgba(14, 165, 233, 0.3);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

/* Experience Card Styles */
.experience-card {
  position: relative;
}

.experience-card:last-child::before {
  display: none;
}

/* Interactive Background Styles */
#about {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

#about-bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  pointer-events: none;
}

#about.interactive #about-bg-canvas {
  pointer-events: auto;
}

#about .max-w-3xl {
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#about .max-w-3xl:hover {
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.1);
  transform: translateY(-5px);
}

.dark #about .max-w-3xl {
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.dark #about .max-w-3xl:hover {
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.15);
}

/* Scroll Animation Styles */
[data-animation] {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-animation="fade-up"] {
  transform: translateY(30px);
}

[data-animation="fade-down"] {
  transform: translateY(-30px);
}

[data-animation="fade-left"] {
  transform: translateX(30px);
}

[data-animation="fade-right"] {
  transform: translateX(-30px);
}

[data-animation="zoom-in"] {
  transform: scale(0.9);
}

[data-animation="zoom-out"] {
  transform: scale(1.1);
}

[data-animation="rotate-in"] {
  transform: rotate(-10deg) scale(0.9);
}

/* Animate in state */
[data-animation].animate-in {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1) rotate(0);
}

/* Skill bar animations */
.skill-bar {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.skill-bar.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.progress-fill {
  width: 0%;
  transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: 0.3s;
}

/* Counter animations */
.counter {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.counter.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Section animations */
.section-title {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-title.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.section-divider {
  width: 0;
  transition: width 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: 0.3s;
}

.section-divider.animate-in {
  width: 5rem;
}

/* Card animations */
.project-card,
.experience-card,
.certificate-card,
.award-card {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card.animate-in,
.experience-card.animate-in,
.certificate-card.animate-in,
.award-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Tech card animations */
.tech-card {
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tech-card.animate-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Timeline animations */
.timeline-item {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-item.animate-in {
  opacity: 1;
  transform: translateX(0);
}

/* Hero parallax */
#hero {
  transition: transform 0.1s ease-out;
}

/* Reduce motion for accessibility */
.reduce-motion * {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

.reduce-motion [data-animation] {
  opacity: 1 !important;
  transform: none !important;
}

/* Floating animation for hero elements */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

/* Pulse animation for accent elements */
@keyframes pulse-accent {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(14, 165, 233, 0);
  }
}

.pulse-accent {
  animation: pulse-accent 2s infinite;
}

/* Gradient animation for backgrounds */
@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.gradient-animated {
  background-size: 200% 200%;
  animation: gradient-shift 3s ease infinite;
}

/* Enhanced Chatbot Styles */
#chat-button {
  animation: pulse-chat 2s infinite;
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  position: fixed !important;
  bottom: 1.5rem !important;
  right: 1.5rem !important;
  z-index: 1000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: #0ea5e9 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#chat-button:hover {
  animation: none;
  transform: scale(1.05) !important;
  background-color: rgba(14, 165, 233, 0.9) !important;
}

#chat-button:active {
  transform: scale(0.98) !important;
}

/* Ensure the notification dot doesn't block clicks */
#chat-notification {
  pointer-events: none !important;
  z-index: 10;
  position: absolute !important;
  top: -4px !important;
  right: -4px !important;
  width: 16px !important;
  height: 16px !important;
  background-color: #ef4444 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

@keyframes pulse-chat {
  0%,
  100% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(14, 165, 233, 0.4);
  }
  50% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 10px rgba(14, 165, 233, 0);
  }
}

/* Chat container styles */
#chat-container {
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  backdrop-filter: blur(10px) !important;
  z-index: 999 !important;
  position: fixed !important;
  bottom: 6rem !important;
  right: 1.5rem !important;
  width: 350px !important;
  height: 450px !important;
  background-color: white !important;
  border-radius: 0.5rem !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

.dark #chat-container {
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background-color: rgb(31 41 55) !important;
}

/* Ensure chat button is always visible and properly positioned */
body #chat-button {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: fixed !important;
}

/* Mobile responsiveness for chatbot */
@media (max-width: 640px) {
  #chat-container {
    width: calc(100vw - 2rem) !important;
    right: 1rem !important;
    left: 1rem !important;
    bottom: 5rem !important;
  }

  #chat-button {
    bottom: 1rem !important;
    right: 1rem !important;
    width: 56px !important;
    height: 56px !important;
  }
}

/* Focus states for accessibility */
#chat-button:focus {
  outline: 2px solid rgba(14, 165, 233, 0.5) !important;
  outline-offset: 2px !important;
}

#chat-button:focus:not(:focus-visible) {
  outline: none !important;
}

/* Remove any conflicting styles */
#chat-button * {
  pointer-events: none;
}

#chat-button {
  pointer-events: auto !important;
}

/* GitHub Contribution Chart Styles */
.github-chart-wrapper {
  overflow-x: auto;
  margin: 0 auto;
  max-width: 100%;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 0.5rem;
  padding: 1rem;
}

.dark .github-chart-wrapper {
  background-color: rgba(31, 41, 55, 0.5);
}

.github-chart-wrapper img {
  min-width: 700px;
  width: 100%;
  height: auto;
}

#github-contributions-grid.loading {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* reCAPTCHA v3 badge positioning */
.grecaptcha-badge {
  visibility: hidden;
}

/* Additional hover states for better UX */
#chat-button:active {
  transform: scale(0.98) !important;
}

/* Ensure smooth transitions */
#chat-button,
#chat-button * {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus states for accessibility */
#chat-button:focus {
  outline: 2px solid rgba(14, 165, 233, 0.5);
  outline-offset: 2px;
}

#chat-button:focus:not(:focus-visible) {
  outline: none;
}

/* Enhanced Education Card Styles */
.education-card {
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.education-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #0ea5e9, #38bdf8, #06b6d4);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.education-card:hover::before {
  transform: scaleX(1);
}

.education-card:hover {
  border-color: rgba(14, 165, 233, 0.2);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(14, 165, 233, 0.05);
}

.dark .education-card:hover {
  border-color: rgba(14, 165, 233, 0.3);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(14, 165, 233, 0.1);
}

/* Icon container animation */
.education-card .icon-container {
  transition: all 0.3s ease;
}

.education-card:hover .icon-container {
  transform: scale(1.1) rotate(5deg);
}

/* GPA Progress Bar Animation */
.education-card .gpa-progress {
  animation: fillProgress 2s ease-out 0.5s both;
}

@keyframes fillProgress {
  from {
    width: 0%;
  }
  to {
    width: var(--progress-width);
  }
}

/* Skill tags hover effect */
.education-card .skill-tag {
  transition: all 0.2s ease;
  cursor: default;
}

.education-card .skill-tag:hover {
  background-color: #0ea5e9;
  color: white;
  transform: translateY(-1px);
}

.dark .education-card .skill-tag:hover {
  background-color: #0ea5e9;
  color: white;
}

/* Card content animations */
.education-card .highlight-item {
  opacity: 0;
  transform: translateX(-10px);
  animation: slideInLeft 0.6s ease forwards;
}

.education-card .highlight-item:nth-child(1) {
  animation-delay: 0.1s;
}
.education-card .highlight-item:nth-child(2) {
  animation-delay: 0.2s;
}
.education-card .highlight-item:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Status indicators */
.education-card .status-indicator {
  position: relative;
}

.education-card .status-indicator::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: currentColor;
  animation: pulse 2s infinite;
}

/* Enhanced background patterns */
.education-card .bg-pattern {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
  background-image: radial-gradient(circle at 20% 80%, #0ea5e9 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, #38bdf8 0%, transparent 50%);
  pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .education-card {
    margin-bottom: 2rem;
  }

  .education-card .timeline-connector {
    display: none;
  }
}

/* Enhanced hover effects for the entire section */
#education {
  position: relative;
}

#education::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(14, 165, 233, 0.01) 50%, transparent 100%);
  pointer-events: none;
}

/* Timeline connector enhancement */
.timeline-connector {
  position: relative;
}

.timeline-connector::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: linear-gradient(45deg, #0ea5e9, #38bdf8);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.2);
  animation: pulse 3s infinite;
}

.timeline-connector::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: linear-gradient(45deg, #0ea5e9, #38bdf8);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.2);
  animation: pulse 3s infinite 1.5s;
}

/* Category badges */
.category-badge {
  position: relative;
  overflow: hidden;
}

.category-badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.education-card:hover .category-badge::before {
  left: 100%;
}

/* Enhanced Project Card Styles - CLEAN & MODERN */
.project-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: white;
}

.dark .project-card {
  border: 1px solid rgba(55, 65, 81, 1);
  background: rgb(31, 41, 55);
}

/* Clean hover effect */
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  border-color: rgba(14, 165, 233, 0.2);
}

.dark .project-card:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  border-color: rgba(14, 165, 233, 0.3);
}

/* Technology tag hover */
.project-card .tech-tag {
  transition: all 0.2s ease;
}

.project-card .tech-tag:hover {
  background-color: #0ea5e9;
  color: white;
  transform: translateY(-1px);
}

/* Action button hover */
.project-card .action-button {
  transition: all 0.2s ease;
}

.project-card .action-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

/* Icon container hover */
.project-card .icon-container {
  transition: all 0.3s ease;
}

.project-card:hover .icon-container {
  transform: scale(1.1);
  background-color: rgba(14, 165, 233, 0.15);
}

/* Progress bar animation */
.project-card .progress-bar {
  transition: all 0.3s ease;
}

/* Remove all the horrible effects */
.project-card::before,
.project-card::after {
  display: none;
}

/* Clean section background */
#projects {
  background: rgb(249, 250, 251);
}

.dark #projects {
  background: rgb(17, 24, 39);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .project-card {
    margin-bottom: 2rem;
  }

  .project-card:hover {
    transform: translateY(-4px);
  }
}

/* Ensure no weird animations on touch devices */
@media (hover: none) {
  .project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  }
}

/* Expertise Marquee Styles */
.marquee-container {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: inline-flex;
  animation: marquee 30s linear infinite;
  gap: 3rem;
  align-items: center;
}

.expertise-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: rgba(249, 250, 251, 0.8);
  border: 1px solid rgba(229, 231, 235, 0.5);
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: rgb(55, 65, 81);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.dark .expertise-item {
  background: rgba(31, 41, 55, 0.8);
  color: rgb(209, 213, 219);
}

.expertise-item:hover {
  background: rgba(255, 255, 255, 0.9);
}

.dark .expertise-item:hover {
  background: rgba(55, 65, 81, 0.9);
}

.expertise-item i {
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Marquee animation */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Pause animation on hover */
.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .marquee-content {
    animation-duration: 25s;
    gap: 2rem;
  }

  .expertise-item {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    gap: 0.5rem;
  }

  .expertise-item i {
    font-size: 1rem;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .marquee-content {
    animation: none;
  }

  .marquee-container {
    overflow-x: auto;
  }

  .marquee-content {
    justify-content: flex-start;
    padding: 1rem;
  }
}

/* Alternative slower marquee for better readability */
.marquee-slow .marquee-content {
  animation-duration: 45s;
}

/* Gradient fade effects */
.marquee-container::before,
.marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 10;
  pointer-events: none;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, white, transparent);
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, white, transparent);
}

.dark .marquee-container::before {
  background: linear-gradient(to right, rgb(17, 24, 39), transparent);
}

.dark .marquee-container::after {
  background: linear-gradient(to left, rgb(17, 24, 39), transparent);
}
