/* Home Page Rework Styles */

/* Modern masthead with animated gradient background */
.masthead {
  background: linear-gradient(-45deg, #121212, #1a1a2e, #2a2a72, #0a66c2);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
  position: relative;
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* Animated text typing effect */
.typing-effect {
  overflow: hidden;
  border-right: .15em solid #3a86ff;
  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: #3a86ff; }
}

/* Modern card styles */
.modern-card {
  border-radius: 12px;
  border: 1px solid rgba(58, 134, 255, 0.2);
  background: rgba(26, 26, 46, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 auto;
  max-width: 900px;
  text-align: center;
}

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

/* Skill badges */
.skill-badge {
  display: inline-block;
  padding: 4px 10px;
  margin: 3px;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(58, 134, 255, 0.2);
  color: #3a86ff;
  transition: all 0.3s ease;
}

.skill-badge:hover {
  background: rgba(58, 134, 255, 0.4);
  transform: translateY(-2px);
}

/* Animated icons */
.animated-icon {
  transition: all 0.3s ease;
}

.animated-icon:hover {
  transform: scale(1.2);
  color: #3a86ff;
}

/* Hero section improvements */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

/* Floating tech icons */
.floating-icons {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  z-index: 1;
  opacity: 0.2;
}

.tech-icon {
  position: absolute;
  display: block;
  font-size: 20px;
  animation: float 6s infinite ease-in-out;
}

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

/* Modern buttons */
.btn-modern {
  border-radius: 30px;
  padding: 12px 30px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  background-color: rgba(58, 134, 255, 0.2);
  border: 1px solid rgba(58, 134, 255, 0.4);
  color: #fff;
}

.btn-modern:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.btn-modern:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: rgba(58, 134, 255, 0.4);
  transition: all 0.3s;
  z-index: -1;
}

.btn-modern:hover:before {
  width: 100%;
}

/* Stats counter section */
.stats-counter {
  font-size: 2.2rem;
  font-weight: 700;
  color: #3a86ff;
  margin-bottom: 0;
  line-height: 1.1;
  text-align: center;
}

.stats-label {
  font-size: 0.85rem;
  color: var(--dark-text-muted);
  margin-top: -5px;
  text-align: center;
}

.row.mt-3.mb-3 {
  justify-content: center;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .typing-effect {
    font-size: 1.5rem;
    animation: none;
    border-right: none;
    white-space: normal;
  }
  
  .stats-counter {
    font-size: 2rem;
  }
}