/* Contact section styling */
.text-center {
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 40px auto 0;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 20px;
  background: rgba(26, 26, 46, 0.5);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(125, 249, 255, 0.1);
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.contact-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), 0 0 20px rgba(125, 249, 255, 0.2);
}

.contact-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(26, 26, 46, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  border: 1px solid rgba(125, 249, 255, 0.3);
  transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
  transform: scale(1.1);
  border-color: var(--primary);
}

.contact-icon i {
  font-size: 2rem;
  color: var(--primary);
  filter: drop-shadow(0 0 10px rgba(125, 249, 255, 0.5));
}

.contact-card h3 {
  margin: 0 0 10px;
  font-size: 1.4rem;
  background: linear-gradient(120deg, #fff, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-card p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Centered footer */
.centered-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
}

.centered-footer .top {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(26, 26, 46, 0.7);
  border: 1px solid rgba(125, 249, 255, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.centered-footer .top:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  background: rgba(26, 26, 46, 0.9);
}

.centered-footer .top i {
  font-size: 1rem;
}

/* Vertically centered content with enhanced spacing and alignment */
.section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 70vh; /* Add minimum height for better vertical spacing */
  padding: 60px 0; /* Increased vertical padding */
}

.section > h2 {
  margin-bottom: 2rem; /* Increased spacing below headings */
}

.section > p {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7; /* Improved line height for readability */
}

/* Enhanced slideshow transitions */
.skill-slide {
  transform: translateX(70px);
  transition: opacity 1.2s cubic-bezier(0.19, 1, 0.22, 1),
    transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
  backface-visibility: hidden;
  perspective: 1000px;
}

.skill-slide.active {
  transform: translateX(0);
}

/* Enhanced slideshow indicators with smoother animations */
.slide-btn.active::before {
  animation: progress 6s cubic-bezier(0.1, 0.9, 0.2, 1) infinite;
}

.slideshow-controls {
  opacity: 1;
  transform: translateY(0);
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.slideshow-controls .control-btn {
  transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1),
    background-color 0.3s cubic-bezier(0.19, 1, 0.22, 1),
    box-shadow 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.slideshow-controls .control-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 240, 255, 0.3);
}

@keyframes progress {
  0% {
    width: 0%;
    opacity: 0.7;
  }
  100% {
    width: 100%;
    opacity: 0.2;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    max-width: 350px;
  }
}
