/* ==========================================
   CONTACT PAGE - MISTER EDUCATION
   ========================================== */

.contact-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;

  /* Brazilian Colors Animated Gradient - Vivid Green and Blue (Darker) */
  background: linear-gradient(
    135deg,
    #008540 0%,
    #00a344 25%,
    #00b84a 40%,
    #0097a7 55%,
    #0277bd 70%,
    #01579b 85%,
    #013d6b 100%
  );
  background-size: 400% 400%;
  animation: brazilGradient 20s ease-in-out infinite;
}

/* Geometric shapes inspired by Brazilian flag */
.contact-container::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 223, 0, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  top: -100px;
  right: -100px;
  animation: floatSlow 25s ease-in-out infinite;
}

.contact-container::after {
  content: '';
  position: absolute;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 71, 171, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  bottom: -150px;
  left: -150px;
  animation: floatSlow 20s ease-in-out infinite reverse;
}

.contact-content {
  position: relative;
  z-index: 10;
  max-width: 850px;
  width: 100%;

  /* Glass morphism effect */
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  padding: 2rem 2.5rem;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 1px rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.logo-link {
  display: block;
  margin: 0 auto 1.5rem;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.logo-link:hover {
  transform: scale(1.05);
}

.contact-content .logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: block;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 4px solid rgba(255, 255, 255, 0.5);
  object-fit: cover;
  object-position: center;
  transform: scale(1.2);
  transition: transform 0.3s ease;
}

.contact-content .logo:hover {
  transform: rotate(360deg) scale(1.25);
}

.contact-content .headline {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 0.8rem;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.contact-content .subheadline {
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 1.8rem;
  text-align: center;
  font-weight: 600;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(255, 255, 255, 0.3);
}

/* Social Links */
.social-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.social-link {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

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

.social-link:hover::before {
  left: 100%;
}

.social-link:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.social-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.social-link:hover .social-icon {
  transform: scale(1.08) rotate(5deg);
}

.social-icon svg {
  width: 28px;
  height: 28px;
}

.social-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.social-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a2f4f;
}

.social-handle {
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.7;
}

.social-preview {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.preview-text {
  font-size: 0.85rem;
  color: #1a2f4f;
  line-height: 1.4;
  opacity: 0.85;
  font-weight: 500;
}

.preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.meta-item {
  font-size: 0.75rem;
  color: #1a2f4f;
  background: rgba(0, 0, 0, 0.05);
  padding: 0.35rem 0.7rem;
  border-radius: 12px;
  font-weight: 600;
  opacity: 0.75;
}

/* Instagram Styling */
.social-link.instagram .social-icon {
  background: linear-gradient(135deg, #833AB4, #FD1D1D, #FCAF45);
  color: white;
}

.social-link.instagram:hover {
  border-color: #E4405F;
}

.social-link.instagram .social-handle {
  color: #833AB4;
}

/* TikTok Styling */
.social-link.tiktok .social-icon {
  background: #000000;
  color: #00F2EA;
}

.social-link.tiktok:hover {
  border-color: #00F2EA;
}

.social-link.tiktok .social-handle {
  color: #000000;
}

/* YouTube Styling */
.social-link.youtube .social-icon {
  background: #FF0000;
  color: white;
}

.social-link.youtube:hover {
  border-color: #FF0000;
}

.social-link.youtube .social-handle {
  color: #FF0000;
}

/* Back Link */
.back-link {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.back-link a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.back-link a:hover {
  color: var(--brazil-yellow);
  transform: translateX(-5px);
}

/* Responsive - Tablet */
@media (max-width: 768px) {
  .contact-content {
    padding: 2rem 1.8rem;
  }

  .contact-content .logo {
    width: 100px;
    height: 100px;
  }

  .logo-link {
    width: 100px;
    height: 100px;
  }

  .contact-content .headline {
    font-size: 2rem;
  }

  .contact-content .subheadline {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .social-links {
    gap: 1rem;
  }

  .social-link {
    padding: 1.5rem;
    gap: 0.9rem;
  }

  .social-header {
    gap: 1rem;
  }

  .social-icon {
    width: 48px;
    height: 48px;
  }

  .social-icon svg {
    width: 28px;
    height: 28px;
  }

  .social-name {
    font-size: 1.05rem;
  }

  .social-handle {
    font-size: 0.88rem;
  }

  .preview-text {
    font-size: 0.88rem;
  }

  .meta-item {
    font-size: 0.78rem;
    padding: 0.35rem 0.7rem;
  }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
  .contact-container {
    padding: 1rem;
  }

  .contact-content {
    padding: 2rem 1.5rem;
  }

  .contact-content .logo {
    width: 90px;
    height: 90px;
    margin-bottom: 1.5rem;
  }

  .logo-link {
    width: 90px;
    height: 90px;
    margin-bottom: 1.5rem;
  }

  .contact-content .headline {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
  }

  .contact-content .subheadline {
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
  }

  .social-links {
    gap: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .social-link {
    padding: 1.3rem;
    gap: 0.9rem;
  }

  .social-header {
    gap: 0.9rem;
  }

  .social-icon {
    width: 44px;
    height: 44px;
  }

  .social-icon svg {
    width: 26px;
    height: 26px;
  }

  .social-name {
    font-size: 1rem;
  }

  .social-handle {
    font-size: 0.82rem;
  }

  .preview-text {
    font-size: 0.85rem;
  }

  .preview-meta {
    gap: 0.6rem;
  }

  .meta-item {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }

  .back-link a {
    font-size: 0.9rem;
  }
}

@media (max-width: 375px) {
  .contact-content {
    padding: 1.8rem 1.2rem;
  }

  .contact-content .logo {
    width: 80px;
    height: 80px;
  }

  .logo-link {
    width: 80px;
    height: 80px;
  }

  .contact-content .headline {
    font-size: 1.6rem;
  }

  .social-link {
    padding: 1.1rem;
    gap: 0.8rem;
  }

  .social-header {
    gap: 0.8rem;
  }

  .social-icon {
    width: 42px;
    height: 42px;
  }

  .social-icon svg {
    width: 24px;
    height: 24px;
  }

  .social-name {
    font-size: 0.95rem;
  }

  .social-handle {
    font-size: 0.78rem;
  }

  .preview-text {
    font-size: 0.82rem;
  }

  .meta-item {
    font-size: 0.72rem;
    padding: 0.28rem 0.55rem;
  }
}
