/* Contact Section - Modern Elegant Design */

#contact,
.contact-section {
  position: relative;
  background: #000000;
  padding: 6rem 2rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.contact-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: float 20s ease-in-out infinite;
}

.contact-shape.shape-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #100961 0%, transparent 70%);
  top: -200px;
  right: -200px;
  animation-delay: 0s;
}

.contact-shape.shape-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #2d2da3 0%, transparent 70%);
  bottom: -150px;
  left: -150px;
  animation-delay: 5s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

.container {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Header Section */
.contact-header {
  text-align: center;
  margin-bottom: 5rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.contact-header.animated,
.contact-header[data-animate].animated {
  opacity: 1;
  transform: translateY(0);
}

.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(16, 9, 97, 0.2);
  border: 1px solid rgba(16, 9, 97, 0.3);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #b8c0e8;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #100961 0%, #2d2da3 100%);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.2);
  }
}

.contact-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.title-word {
  background: linear-gradient(135deg, #ffffff 0%, #b0b0b0 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
  display: inline-block;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.contact-subtitle {
  font-size: 1.125rem;
  color: #b0b0b0;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Content Layout */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

/* Contact Info Cards */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.contact-info.animated,
.contact-info[data-animate].animated {
  opacity: 1;
  transform: translateX(0);
}

.info-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #100961 0%, #2d2da3 100%);
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-card:hover::before {
  transform: scaleX(1);
}

.info-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.info-icon {
  width: 48px;
  height: 48px;
  background: rgba(16, 9, 97, 0.2);
  border: 1px solid rgba(16, 9, 97, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b8c0e8;
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
}

.info-card:hover .info-icon {
  background: rgba(16, 9, 97, 0.3);
  border-color: rgba(16, 9, 97, 0.5);
  color: #ffffff;
  transform: scale(1.1);
}

.info-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.info-card p,
.info-card a {
  font-size: 1rem;
  color: #b0b0b0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.info-card a:hover {
  color: #ffffff;
}

/* Contact Actions */
.contact-actions {
  margin-top: 1rem;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #100961 0%, #2d2da3 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(16, 9, 97, 0.3);
}

.contact-btn::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;
}

.contact-btn:hover::before {
  left: 100%;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(16, 9, 97, 0.5);
}

.contact-btn:active {
  transform: translateY(0);
}

.contact-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.whatsapp-btn {
  background: linear-gradient(135deg, #25d366 0%, #1ebe57 100%);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

/* Calendar Section */
.contact-calendar {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.contact-calendar.animated,
.contact-calendar[data-animate].animated {
  opacity: 1;
  transform: translateX(0);
}

.calendar-wrapper {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.calendar-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #100961 0%, #2d2da3 100%);
}

.calendly-inline-widget {
  border-radius: 1rem;
  overflow: hidden;
  min-width: 320px;
  height: 700px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-calendar {
    order: -1;
  }

  .calendar-wrapper {
    padding: 1rem;
  }

  .calendly-inline-widget {
    height: 600px;
  }
}

@media (max-width: 768px) {
  #contact,
  .contact-section {
    padding: 4rem 1.5rem;
    min-height: auto;
  }

  .contact-header {
    margin-bottom: 3rem;
  }

  .contact-title {
    font-size: 2.5rem;
    flex-direction: column;
    gap: 0.5rem;
  }

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

  .info-card {
    padding: 1.5rem;
  }

  .contact-btn {
    width: 100%;
    justify-content: center;
  }

  .calendar-wrapper {
    padding: 0.75rem;
  }

  .calendly-inline-widget {
    height: 500px;
    min-width: 100%;
  }
}

@media (max-width: 480px) {
  #contact,
  .contact-section {
    padding: 3rem 1rem;
  }

  .contact-header {
    margin-bottom: 2rem;
  }

  .contact-title {
    font-size: 2rem;
  }

  .info-card {
    padding: 1.25rem;
  }

  .info-card h3 {
    font-size: 1.125rem;
  }

  .calendly-inline-widget {
    height: 450px;
  }
}

/* Animation triggers */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-right {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fade-left {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
