/* Contact Section Styles */
#contact {
  padding: 120px 0;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.contact-card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.contact-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--slate-100);
  margin-bottom: 8px;
}

.contact-card p {
  color: var(--slate-300);
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.contact-link:hover {
  color: var(--primary-purple);
  transform: translateX(4px);
}

.contact-form-container {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  color: var(--slate-200);
  font-weight: 500;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--slate-100);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--slate-400);
}

.contact-form .btn-primary {
  align-self: flex-start;
  margin-top: 8px;
}

.social-section {
  text-align: center;
  padding-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-section h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--slate-100);
  margin-bottom: 32px;
}

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

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 20px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  color: var(--slate-200);
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 120px;
  text-align: center;
}

.social-link:hover {
  transform: translateY(-5px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.social-link i {
  font-size: 1.5rem;
  color: var(--primary-blue);
}

.social-link span {
  font-size: 0.9rem;
  font-weight: 500;
}

.social-link:hover i {
  color: var(--primary-purple);
}

@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .contact-form-container {
    padding: 24px;
  }
  
  .social-links {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  
  .social-link {
    flex-direction: row;
    justify-content: center;
    min-width: 200px;
  }
}

/* Form Message Styles */
.form-message {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  margin-top: 20px;
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: all 0.3s ease;
  opacity: 1;
}

.form-message-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.form-message-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.form-message i {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.form-message span {
  flex: 1;
  line-height: 1.4;
}

/* Professional Send Button Animations */
.sending-animation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.sending-text {
  font-weight: 600;
}

.dots {
  display: flex;
  gap: 2px;
}

.dot {
  animation: bounce 1.4s ease-in-out infinite both;
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }
.dot:nth-child(3) { animation-delay: 0s; }

.success-animation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.checkmark {
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkmark-path {
  stroke-dasharray: 10;
  stroke-dashoffset: 10;
  animation: checkmark-draw 0.5s ease-out forwards;
}

.error-animation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.error-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: error-pulse 0.5s ease-out;
}

/* Keyframe Animations */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes checkmark-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes error-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
  20%, 40%, 60%, 80% { transform: translateX(2px); }
}

/* Enhanced form validation styles */
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  outline: none;
  transition: all 0.3s ease;
}

.contact-form input.error,
.contact-form textarea.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Loading state for submit button */
.contact-form button[type="submit"]:disabled {
  cursor: not-allowed;
  user-select: none;
}

.contact-form button[type="submit"]:disabled:hover {
  transform: none;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}