/* Custom animations and keyframes */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.3); }
  50% { box-shadow: 0 0 40px rgba(59, 130, 246, 0.6); }
}

@keyframes slide-in-left {
  0% { transform: translateX(-100px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes slide-in-right {
  0% { transform: translateX(100px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes fade-in-up {
  0% { transform: translateY(50px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Custom component styles */
.btn-primary {
  background: linear-gradient(135deg, #FF6600, #FF8533);
  box-shadow: 0 10px 30px rgba(255, 102, 0, 0.3);
  color: white;
  font-weight: bold;
  padding: 1rem 2rem;
  border-radius: 9999px;
  transition: all 0.3s ease;
  transform: scale(1);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #e55a00, #e55a00);
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(255, 102, 0, 0.4);
}

.btn-secondary {
  background: transparent;
  border: 2px solid white;
  color: white;
  font-weight: bold;
  padding: 1rem 2rem;
  border-radius: 9999px;
  transition: all 0.3s ease;
  transform: scale(1);
  cursor: pointer;
  backdrop-filter: blur(10px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary:hover {
  background: white;
  color: #3b82f6;
  transform: scale(1.05);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 900;
  color: #1f2937;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #FF6600, #FF8533);
  border-radius: 2px;
}

.skill-tag {
  background: #3b82f6;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s ease;
  transform: scale(1);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  display: inline-block;
}

.skill-tag:hover {
  background: #2563eb;
  transform: scale(1.1);
}

.skill-card {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border: 1px solid rgba(59, 130, 246, 0.1);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transition: all 0.5s ease;
  transform: scale(1);
}

.skill-card:hover {
  transform: scale(1.05);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.experience-card {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border-left: 6px solid #3b82f6;
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transition: all 0.5s ease;
  transform: scale(1);
}

.experience-card:hover {
  transform: scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.experience-card li {
  list-style: disc;
  margin-left: 2rem;
  margin-top: .5rem;
  line-height: 1.25;
}
.experience-card li::marker {
  color: rgb(234 88 12); /* Change 'red' to your desired color */
}

.geometric-bg {
  position: relative;
  overflow: hidden;
}

.geometric-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
  animation: float 8s ease-in-out infinite reverse;
}

.hero-bg {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
  position: relative;
  overflow: hidden;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.fade-in-up {
  animation: fade-in-up 1s ease-out forwards;
}

.subtitle-animate {
  opacity: 0;
  animation: fade-in-up 1s ease-out forwards;
  animation-delay: 0.5s;
}

.experience-tag-blue {
  background-color: #dbeafe;
  color: #1e40af;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.experience-tag-green {
  background-color: #dcfce7;
  color: #166534;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.contact-bg {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #1e3a8a 100%);
  position: relative;
}

.contact-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M20 20c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20 20-8.954 20-20zm-30 0c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10-10-4.477-10-10z'/%3E%3C/g%3E%3C/svg%3E");
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #1e40af, #1e3a8a);
}

/* Fallback styles for browsers that don't support background-clip: text */
@supports not (-webkit-background-clip: text) {
  .text-gradient {
    color: #3b82f6;
  }
  
  .section-title {
    color: #1f2937;
  }
}

/* Additional responsive and accessibility improvements */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.875rem;
  }
  
  .btn-primary,
  .btn-secondary {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }
  
  .skill-card,
  .experience-card {
    padding: 1.5rem;
  }
}

/* Focus states for accessibility */
.btn-primary:focus,
.btn-secondary:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}