/* =====================================================
   CONTACT FORM STYLES
   Tejaswi-inspired glassmorphism design, blue palette
   ===================================================== */

/* === Connect Section === */
.connectSection {
  position: relative;
  overflow: hidden;
}

/* Ambient background glow */
.connectSection::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 80%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse at center,
    rgba(59, 130, 246, 0.08) 0%,
    rgba(96, 165, 250, 0.04) 40%,
    transparent 70%
  );
  filter: blur(60px);
  z-index: 0;
  animation: connectGlow 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes connectGlow {
  0%, 100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* === Connect Container - Two Column Layout === */
.connectGrid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

/* === Left Side - Contact Info === */
.connectInfo {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.connectInfo p.muted {
  margin-bottom: 0.5rem;
}

/* Contact items */
.contactItem {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(96, 165, 250, 0.15);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.contactItem:hover {
  border-color: rgba(96, 165, 250, 0.4);
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(5px);
}

.contactItem svg {
  width: 20px;
  height: 20px;
  color: #60a5fa;
  flex-shrink: 0;
}

.contactDetail {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.contactDetail .label {
  font-size: 0.75rem;
  color: #60a5fa;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contactDetail .value {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.contactDetail a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contactDetail a:hover {
  color: #60a5fa;
}

/* Social links */
.socialLinks {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.socialLink {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 10px;
  color: #60a5fa;
  transition: all 0.3s ease;
}

.socialLink:hover {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.socialLink svg {
  width: 20px;
  height: 20px;
}

/* === Right Side - Contact Form === */
.contactForm {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(96, 165, 250, 0.15);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.contactForm:hover {
  border-color: rgba(96, 165, 250, 0.3);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.1);
}

/* Form groups */
.formGroup {
  margin-bottom: 1.25rem;
}

.formGroup:last-of-type {
  margin-bottom: 1.5rem;
}

.formGroup input,
.formGroup textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.formGroup input:focus,
.formGroup textarea:focus {
  outline: none;
  border-color: #60a5fa;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(96, 165, 250, 0.15);
}

.formGroup input::placeholder,
.formGroup textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.formGroup textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

/* Submit button */
.submitBtn {
  width: 100%;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.submitBtn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.submitBtn:hover::before {
  left: 100%;
}

.submitBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.submitBtn:active {
  transform: translateY(0);
}

.submitBtn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.submitBtn:hover svg {
  transform: translateX(4px);
}

/* === Responsive === */
@media (max-width: 768px) {
  .connectGrid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .connectInfo {
    order: 2;
  }
  
  .contactForm {
    order: 1;
  }
  
  .contactItem {
    padding: 0.875rem;
  }
  
  .contactForm {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .contactForm {
    padding: 1.25rem;
  }
  
  .formGroup input,
  .formGroup textarea {
    padding: 0.8rem;
    font-size: 0.95rem;
  }
  
  .submitBtn {
    padding: 0.9rem 1.5rem;
  }
}
