/* ===== CONTACT SECTION ===== */
.contact-section {
  background: transparent;
  padding: 1rem 1rem 4rem 1rem;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

/* ===== FORM STYLING ===== */
.contact-form h2 {
  font-size: 2rem;
  font-weight: bold;
  color: #4f46e5;
  margin-bottom: 1.5rem;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: Arial, sans-serif;
  outline: none;
  transition: 0.3s;
  background: var(--surface);
  color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 6px rgba(79, 70, 229, 0.25);
}

.btn-send {
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  border: none;
  padding: 0.8rem 1rem;
  border-radius: 50px;
  font-size: 1rem;
  color: white;
  cursor: pointer;
  transition: 0.3s ease;
}

.btn-send:hover {
  background: linear-gradient(135deg, #06b6d4, #4f46e5);
  transform: translateY(-2px);
}

/* ===== IMAGE/ANIMATION STYLING ===== */
.contact-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.contact-lottie {
  width: 450px;
  height: 300px;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  overflow: hidden;
}

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

.contact-image img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Contact Info Section */
.contact-info {
  text-align: center;
  max-width: 500px;
}

.contact-info-title {
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

html[data-theme='dark'] .contact-info-title {
  background: linear-gradient(135deg, #818cf8, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-info-text {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.contact-details {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  background: transparent;
  border-radius: 50px;
  border: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  cursor: pointer;
  width: 50px;
}

.contact-detail-item:hover {
  width: auto;
  gap: 0.75rem;
  padding: 0.6rem 1.2rem 0.6rem 0.6rem;
  background: var(--surface);
  border: 2px solid #4f46e5;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.2);
}

html[data-theme='dark'] .contact-detail-item:hover {
  border-color: #7c3aed;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.detail-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

html[data-theme='dark'] .detail-icon {
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.detail-icon svg {
  width: 22px;
  height: 22px;
  color: white;
}

.contact-detail-item span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-detail-item:hover span {
  opacity: 1;
  max-width: 200px;
}

/* ===== SUCCESS MESSAGE ANIMATION ===== */
.success-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 2rem 3rem;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.3);
  z-index: 10000;
  text-align: center;
  font-family: Arial, sans-serif;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.success-message.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: successBounce 0.6s ease-out 0.2s both;
}

.success-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  animation: successSlideUp 0.6s ease-out 0.4s both;
}

.success-text {
  font-size: 1rem;
  opacity: 0.9;
  animation: successSlideUp 0.6s ease-out 0.6s both;
}

.success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.success-overlay.show {
  opacity: 1;
}

/* Success Animations */
@keyframes successBounce {
  0% {
    transform: scale(0) rotate(0deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) rotate(180deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(360deg);
    opacity: 1;
  }
}

@keyframes successSlideUp {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Form Loading State */
.btn-send.loading {
  background: linear-gradient(135deg, #6b7280, #9ca3af);
  cursor: not-allowed;
  position: relative;
  overflow: hidden;
}

.btn-send.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.btn-send.loading span {
  opacity: 0;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ===== RESPONSIVE ===== */
@media screen and (min-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .contact-form {
    text-align: left;
  }
  
  .success-message {
    padding: 2.5rem 4rem;
  }
  
  .success-icon {
    font-size: 5rem;
  }
  
  .success-title {
    font-size: 1.8rem;
  }
}

@media screen and (max-width: 768px) {
  .contact-lottie {
    width: 350px;
    height: 250px;
  }
  
  .contact-info-title {
    font-size: 1.3rem;
  }
  
  .contact-info-text {
    font-size: 0.9rem;
  }
  
  .contact-details {
    flex-wrap: wrap;
  }
}

@media screen and (max-width: 480px) {
  .contact-lottie {
    width: 280px;
    height: 200px;
  }
  
  .contact-visual {
    gap: 0.75rem;
  }
  
  .contact-info-title {
    font-size: 1.2rem;
  }
  
  .detail-icon {
    width: 45px;
    height: 45px;
  }
  
  .detail-icon svg {
    width: 20px;
    height: 20px;
  }
  
  .contact-detail-item {
    width: 45px;
  }
}
