.wave-animation {
  animation: wave 2s infinite;
  transform-origin: 70% 70%;
}

@keyframes wave {
  0% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
  60% { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}

.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
  color: white;
  border-radius: 20px;
  padding: 3rem 0;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  z-index: 1;
}

.hero-section > * {
  position: relative;
  z-index: 2;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-section .lead {
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 0;
  line-height: 1.6;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section h1 {
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-size: 2.8rem;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
}

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

.modern-heading {
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.section-heading {
  font-weight: 600;
  font-size: 1.8rem;
  margin: 2.5rem 0 1.5rem 0;
  color: #2c3e50;
  position: relative;
  padding-left: 1rem;
}

.section-heading::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

.intro-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.intro-card .lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #2c3e50;
  margin-bottom: 0;
  text-shadow: none;
}

.content-section {
  background: rgba(248, 249, 250, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.content-section p {
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: #495057;
}

.modern-sidebar-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
}

.modern-sidebar-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.modern-card-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 20px 20px 0 0 !important;
  border-bottom: none;
  padding: 1rem 1.5rem;
}

.modern-card-header h5 {
  margin: 0;
  font-weight: 600;
}

.profile-image {
  border: 4px solid transparent;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-clip: padding-box;
  transition: all 0.3s ease;
}

.profile-image:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.modern-links li {
  margin-bottom: 1rem;
}

.modern-link {
  display: flex;
  align-items: center;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  color: #495057;
  font-weight: 500;
}

.modern-link:hover {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  transform: translateX(5px);
}

.modern-link i {
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.modern-link:hover i {
  opacity: 1;
}

.card-body a {
  color: #667eea !important;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  display: block;
  margin-bottom: 0.5rem;
}

.card-body a:hover {
  background: rgba(102, 126, 234, 0.1);
  color: #4c5bc7 !important;
  transform: translateX(3px);
  text-decoration: none;
}

.card-body a i {
  color: #667eea;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.card-body a:hover i {
  opacity: 1;
}

.skill-card.p-3.h-100 {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.skill-card.p-3.h-100::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #667eea, transparent);
  transition: left 0.5s ease;
}

.skill-card.p-3.h-100:hover::before {
  left: 100%;
}

.skill-card.p-3.h-100:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.95);
}

.skill-card.p-3.h-100 h5 {
  color: #2c3e50;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.skill-card.p-3.h-100 .small {
  color: #6c757d;
  line-height: 1.5;
}

.tech-category {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
}

.tech-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.95);
}

.tech-category h6 {
  color: #2c3e50;
  font-weight: 600;
  font-size: 0.95rem;
}

.badge, 
span[class*="badge"] {
  font-size: 0.85rem !important;
  padding: 0.6rem 1.2rem !important;
  border-radius: 50px !important;
  font-weight: 500 !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease !important;
  display: inline-block;
}

.badge.bg-primary, .bg-primary {
  background: rgba(13, 110, 253, 0.8) !important;
  color: white !important;
}

.badge.bg-success, .bg-success {
  background: rgba(25, 135, 84, 0.8) !important;
  color: white !important;
}

.badge.bg-info, .bg-info {
  background: rgba(13, 202, 240, 0.8) !important;
  color: white !important;
}

.badge.bg-warning, .bg-warning {
  background: rgba(255, 193, 7, 0.8) !important;
  color: #000 !important;
}

.badge:hover, 
span[class*="badge"]:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2) !important;
  filter: brightness(1.1);
}

.bg-gradient {
  background: linear-gradient(145deg, #667eea 0%, #764ba2 50%, #f093fb 100%) !important;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.bg-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  z-index: 1;
}

.bg-gradient .card-body {
  position: relative;
  z-index: 2;
}

.btn-modern {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  display: inline-flex;
  align-items: center;
  margin: 0.5rem 0.25rem;
}

.btn-modern:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  color: white;
  text-decoration: none;
}

.btn-modern:active {
  transform: translateY(-1px);
}

.bg-gradient .btn-modern {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 1);
  color: #667eea !important;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  display: inline-flex;
  align-items: center;
  margin: 0.5rem 0.25rem;
  text-shadow: none;
}

.bg-gradient .btn-modern:hover {
  background: rgba(255, 255, 255, 1) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  color: #4c5bc7 !important;
  text-decoration: none;
}

.bg-gradient .btn-modern i {
  color: #667eea;
  opacity: 1;
}

.bg-gradient .btn-modern:hover i {
  color: #4c5bc7;
}

.bg-gradient .card-body h3,
.bg-gradient .card-body p {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  font-weight: 500;
}

.bg-gradient .card-body h3 {
  font-weight: 700;
}

.card:not(.modern-sidebar-card) {
  transition: all 0.4s ease;
  border-radius: 20px;
}

.card:not(.modern-sidebar-card):hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.skill-card {
  transition: all 0.4s ease;
  border-radius: 15px;
}

.skill-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
}

.tech-icons img {
  transition: all 0.3s ease;
}

.tech-icons img:hover {
  transform: scale(1.2) rotate(5deg);
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
}

.navbar-brand {
  font-weight: bold;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

footer {
  margin-top: auto;
}

.rounded-circle {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.social-links {
    font-size: 0;
}

.social-link {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    margin-right: 1rem;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.social-link:last-child {
    margin-right: 0;
}

.social-link:hover {
    color: #007bff;
    transform: translateY(-2px);
    text-decoration: none;
}

.social-link i {
    display: block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
}

.social-links-flex {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

@media (max-width: 768px) {
  .hero-section .lead {
    font-size: 1.1rem;
  }

  .hero-section h1 {
    font-size: 2.2rem;
  }

  .hero-section {
    padding: 2rem 0;
    border-radius: 15px;
  }

  .bg-gradient {
    border-radius: 15px;
  }

  .btn-modern {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .badge, span[class*="badge"] {
    font-size: 0.8rem !important;
    padding: 0.5rem 1rem !important;
  }

  .social-links-flex {
    justify-content: center;
  }

  .modern-heading {
    font-size: 2rem;
  }

  .section-heading {
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
  }

  .intro-card, .content-section {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .skill-card, .tech-category {
    margin-bottom: 1rem;
  }

  .modern-sidebar-card {
    margin-bottom: 2rem;
  }
}

@media (min-width: 768px) {
    .social-links-flex {
        justify-content: flex-end;
    }
}