/* Modern and Simplified Contact Section Design */

.contact {
  position: relative;
  padding: 40px 0;
  background-color: var(--bg-color);
  overflow: hidden;
}

/* Add subtle background pattern */
.contact:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.3;
  z-index: 0;
}

.contact .container {
  position: relative;
  z-index: 1;
}

/* Modern Contact Cards Layout */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

/* Styled Contact Card */
.contact-card {
  background-color: var(--card-bg);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

/* Glowing accent on hover */
.contact-card::after {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.5s ease;
}

.contact-card:hover::after {
  opacity: 0.1;
}

/* Contact Icon */
.contact-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.contact-icon i {
  font-size: 28px;
  color: white;
}

.contact-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--text-color);
  font-weight: 600;
}

.contact-info {
  margin-bottom: 15px;
  font-size: 16px;
  color: var(--text-secondary);
}

.contact-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.contact-link:hover {
  color: var(--secondary-color);
}

/* Underline effect for links */
.contact-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.contact-link:hover::after {
  width: 100%;
}

/* Social Media Section */
.social-connect {
  margin-top: 50px;
  text-align: center;
  padding: 30px;
  background: linear-gradient(
    to right,
    rgba(58, 134, 255, 0.05),
    rgba(255, 158, 60, 0.05)
  );
  border-radius: 16px;
}

.social-title {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--text-color);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.social-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.social-icon:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.social-icon i {
  font-size: 24px;
}

/* Call to action */
.contact-cta {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-button {
  padding: 15px 30px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.primary-cta {
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  box-shadow: 0 5px 15px rgba(58, 134, 255, 0.3);
}

.primary-cta:hover {
  box-shadow: 0 8px 25px rgba(58, 134, 255, 0.4);
  transform: translateY(-2px);
}

.secondary-cta {
  background: transparent;
  color: var(--text-color);
  border: 2px solid var(--border-color);
}

.secondary-cta:hover {
  background-color: var(--bg-color);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Dark mode adjustments */
body.dark-mode .contact-card {
  background-color: var(--card-dark);
  border-color: var(--border-dark);
}

body.dark-mode .social-icon {
  background-color: var(--card-dark);
  border-color: var(--border-dark);
}

body.dark-mode .secondary-cta {
  border-color: var(--border-dark);
  color: var(--text-dark);
}

body.dark-mode .secondary-cta:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }

  .contact-card {
    padding: 25px;
  }

  .contact-icon {
    width: 60px;
    height: 60px;
  }

  .contact-icon i {
    font-size: 24px;
  }

  .social-icon {
    width: 50px;
    height: 50px;
  }

  .social-icons {
    gap: 15px;
  }

  .cta-button {
    padding: 12px 25px;
  }
}

@media (max-width: 480px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .social-icons {
    gap: 10px;
  }

  .social-icon {
    width: 45px;
    height: 45px;
  }

  .social-icon i {
    font-size: 20px;
  }

  .contact-cta {
    flex-direction: column;
    gap: 15px;
  }

  .cta-button {
    width: 100%;
  }
}
