/* Contact Section - Unique Class Names */
.connect-section {
  padding: 6rem 1rem;
  background: var(--bg-black-100);
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.connect-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
}

.connect-header {
  text-align: center;
  margin-bottom: 4rem;
}

.connect-title {
  font-size: 2.8rem;
  color: var(--text-black-900);
  margin-bottom: 1rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.connect-divider {
  height: 4px;
  width: 80px;
  background: var(--skin-color);
  margin: 0 auto 1.5rem;
  position: relative;
  overflow: hidden;
}

.connect-divider::after {
  content: "";
  position: absolute;
  left: -100%;
  top: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.7),
    transparent
  );
  animation: connectShine 3s infinite;
}

@keyframes connectShine {
  100% {
    left: 100%;
  }
}

.connect-subtitle {
  font-size: 1.2rem;
  color: var(--text-black-700);
  max-width: 600px;
  margin: 0 auto;
}

.connect-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  width: 100%;
}

/* Social Links */
.connect-socials {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.connect-social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: transparent;
  border: 2px solid var(--skin-color);
  transition: all 0.4s ease;
}

.connect-social-icon i {
  color: var(--skin-color);
  transition: all 0.4s ease;
}

.connect-social-icon:hover {
  background: var(--skin-color);
}

.connect-social-icon:hover i {
  color: white;
}

/* Platform-specific colors */
.connect-social-icon.linkedin i {
  color: #0077b5;
}

.connect-social-icon.github i {
  color: #0077b5;
}

.connect-social-icon.linkedin:hover i {
  color: white;
}

.connect-social-icon.github:hover i {
  color: white;
}

/* .connect-social-icon.linkedin {
  background: #0077b5;
  box-shadow: 0 4px 15px rgba(0, 119, 181, 0.3);
}

.connect-social-icon.github {
  background: #333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
} */

.connect-social-icon:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 119, 181, 0.4);
}

.connect-social-icon.github:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Contact Form */
.connect-form-wrapper {
  width: 100%;
  max-width: 700px;
}

.connect-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}

.connect-form-row {
  display: flex;
  gap: 2rem;
  width: 100%;
}

.connect-input-group {
  position: relative;
  flex: 1;
  width: 100%;
}

.connect-input-group input,
.connect-input-group textarea {
  width: 100%;
  padding: 1rem 0;
  border: none;
  border-bottom: 2px solid var(--bg-black-50);
  background: transparent;
  color: var(--text-black-900);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.connect-input-group textarea {
  min-height: 120px;
  resize: vertical;
}

.connect-input-group label {
  position: absolute;
  top: 1rem;
  left: 0;
  color: var(--text-black-700);
  transition: all 0.3s ease;
  pointer-events: none;
}

.connect-underline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--skin-color);
  transition: width 0.3s ease;
}

.connect-input-group input:focus,
.connect-input-group textarea:focus {
  outline: none;
  border-bottom-color: transparent;
}

.connect-input-group input:focus + label,
.connect-input-group input:not(:placeholder-shown) + label,
.connect-input-group textarea:focus + label,
.connect-input-group textarea:not(:placeholder-shown) + label {
  top: -1.2rem;
  font-size: 0.9rem;
  color: var(--skin-color);
}

.connect-input-group input:focus ~ .connect-underline,
.connect-input-group textarea:focus ~ .connect-underline {
  width: 100%;
}

/* Submit Button */
.connect-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1rem 2.5rem;
  background: var(--skin-color);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s ease;
  margin: 1rem auto 0;
  max-width: 250px;
  box-shadow: 0 4px 15px rgba(236, 24, 57, 0.3);
}

.connect-submit-btn i {
  transition: transform 0.3s ease;
}

.connect-submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(236, 24, 57, 0.4);
}

.connect-submit-btn:hover i {
  transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .connect-section {
    padding: 4rem 1rem;
  }

  .connect-title {
    font-size: 2.2rem;
  }

  .connect-subtitle {
    font-size: 1rem;
  }

  .connect-form-row {
    flex-direction: column;
    gap: 2rem;
  }

  .connect-socials {
    gap: 1.5rem;
  }

  .connect-social-icon {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
}

/* Add to your existing CSS */
.invalid-input {
  border-bottom-color: #ff4444 !important;
}

.error-message {
  color: #ff4444;
  font-size: 0.8rem;
  margin-top: 5px;
  position: absolute;
}

/* Prevent Horizontal Scroll */
body {
  overflow-x: hidden;
}
