/* Additional custom styles for enhanced intro */
.hero-intro {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  position: relative;
  overflow: hidden;
}

.floating-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(50, 124, 136, 0.3);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 1s; }
.particle:nth-child(3) { left: 30%; animation-delay: 2s; }
.particle:nth-child(4) { left: 40%; animation-delay: 3s; }
.particle:nth-child(5) { left: 50%; animation-delay: 4s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; }
.particle:nth-child(7) { left: 70%; animation-delay: 1.5s; }
.particle:nth-child(8) { left: 80%; animation-delay: 2.5s; }
.particle:nth-child(9) { left: 90%; animation-delay: 3.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 1; }
  50% { transform: translateY(-20px) rotate(180deg); opacity: 0.8; }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.typewriter {
  overflow: hidden;
  border-right: .15em solid #327c88;
  white-space: nowrap;
  margin: 0 auto;
  letter-spacing: .15em;
  animation: typing 3.5s steps(40, end), blink-caret .75s step-end infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: #327c88; }
}

.profile-avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  margin: 0 auto 2rem;
  background: linear-gradient(45deg, #327c88, #4a9baa);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: white;
  box-shadow: 0 10px 30px rgba(50, 124, 136, 0.3);
  animation: pulse 2s ease-in-out infinite alternate;
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 10px 30px rgba(50, 124, 136, 0.3); }
  100% { transform: scale(1.05); box-shadow: 0 15px 40px rgba(50, 124, 136, 0.4); }
}

.info-cards {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.info-card {
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 150px;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.info-card i {
  font-size: 1.5rem;
  color: #327c88;
  margin-bottom: 0.5rem;
}

.social-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn-social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid;
  font-weight: 500;
}

.btn-linkedin {
  background: #0077b5;
  color: white;
  border-color: #0077b5;
}

.btn-linkedin:hover {
  background: transparent;
  color: #0077b5;
  transform: translateY(-2px);
}

.btn-twitter {
  background: #1da1f2;
  color: white;
  border-color: #1da1f2;
}

.btn-twitter:hover {
  background: transparent;
  color: #1da1f2;
  transform: translateY(-2px);
}

.btn-github {
  background: #333;
  color: white;
  border-color: #333;
}

.btn-github:hover {
  background: transparent;
  color: #333;
  transform: translateY(-2px);
}

/* Override Bootstrap button styles for old button classes */
.btn.btn-outline-primary.btn-sm.mx-1 {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid;
  font-weight: 500;
  margin: 0.5rem;
}

.btn.btn-outline-primary.btn-sm.mx-1[href*="linkedin"] {
  background: #0077b5;
  color: white !important;
  border-color: #0077b5;
}

.btn.btn-outline-primary.btn-sm.mx-1[href*="linkedin"]:hover {
  background: transparent !important;
  color: #0077b5 !important;
  transform: translateY(-2px);
}

.btn.btn-outline-primary.btn-sm.mx-1[href*="x.com"] {
  background: #1da1f2;
  color: white !important;
  border-color: #1da1f2;
}

.btn.btn-outline-primary.btn-sm.mx-1[href*="x.com"]:hover {
  background: transparent !important;
  color: #1da1f2 !important;
  transform: translateY(-2px);
}

.btn.btn-outline-primary.btn-sm.mx-1[href*="github"] {
  background: #333;
  color: white !important;
  border-color: #333;
}

.btn.btn-outline-primary.btn-sm.mx-1[href*="github"]:hover {
  background: transparent !important;
  color: #333 !important;
  transform: translateY(-2px);
}

/* Add icons using pseudo-elements for existing buttons */
.btn.btn-outline-primary.btn-sm.mx-1[href*="linkedin"]:before {
  content: "\f0e1";
  font-family: "Font Awesome 6 Brands";
  margin-right: 0.5rem;
}

.btn.btn-outline-primary.btn-sm.mx-1[href*="x.com"]:before {
  content: "\f099";
  font-family: "Font Awesome 6 Brands";
  margin-right: 0.5rem;
}

.btn.btn-outline-primary.btn-sm.mx-1[href*="github"]:before {
  content: "\f09b";
  font-family: "Font Awesome 6 Brands";
  margin-right: 0.5rem;
}

@media (max-width: 768px) {
  .info-cards {
    flex-direction: column;
    align-items: center;
  }
  
  .social-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .profile-avatar {
    width: 140px;
    height: 140px;
    font-size: 3rem;
  }
}