/* ============================================
   CONTACT PAGE - Contact page specific styles
   ============================================ */

/* Override background for contact page */
html {
  background: #ffffff !important;
  scroll-behavior: smooth;
}

body {
  background: #1a1d2e !important;
}

body::before,
body::after {
  background: #1a1d2e !important;
  filter: none !important;
}

/* ==================== HERO SECTION ==================== */
.contact-hero {
  background: linear-gradient(135deg, 
    rgba(102, 126, 234, 0.15) 0%, 
    rgba(118, 75, 162, 0.15) 50%,
    rgba(102, 126, 234, 0.15) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 0 0 30px 30px;
  padding: 2.5rem 0 3rem;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  margin-top: 0;
  margin-bottom: 2.7rem;
  box-shadow: 
    0 10px 40px rgba(102, 126, 234, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.contact-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 0 0 30px 30px;
  pointer-events: none;
  z-index: 2;
  background: 
    linear-gradient(90deg, transparent 0%, rgba(56, 189, 248, 0.4) 10%, rgba(125, 211, 252, 0.6) 50%, rgba(56, 189, 248, 0.4) 90%, transparent 100%) bottom / 100% 3px no-repeat,
    linear-gradient(0deg, transparent 0%, rgba(56, 189, 248, 0.4) 10%, rgba(125, 211, 252, 0.6) 50%, rgba(56, 189, 248, 0.4) 90%, transparent 100%) left / 3px 100% no-repeat,
    linear-gradient(0deg, transparent 0%, rgba(56, 189, 248, 0.4) 10%, rgba(125, 211, 252, 0.6) 50%, rgba(56, 189, 248, 0.4) 90%, transparent 100%) right / 3px 100% no-repeat;
  filter: blur(2px);
  animation: drawBorderGradient 5s ease-in-out infinite;
  opacity: 0;
}

@keyframes drawBorderGradient {
  0% {
    background-size: 0% 3px, 3px 0%, 3px 0%;
    opacity: 0;
  }
  15% { opacity: 1; }
  40% {
    background-size: 100% 3px, 3px 0%, 3px 0%;
    opacity: 1;
  }
  70% {
    background-size: 100% 3px, 3px 100%, 3px 100%;
    opacity: 1;
  }
  85% { opacity: 1; }
  100% {
    background-size: 100% 3px, 3px 100%, 3px 100%;
    opacity: 0;
  }
}

.contact-hero__title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, 
    #ffffff 0%, 
    #e0f2fe 15%,
    #bae6fd 30%,
    #7dd3fc 50%,
    #bae6fd 70%,
    #e0f2fe 85%,
    #ffffff 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: 
    titleEntrance 1s cubic-bezier(0.68, -0.55, 0.265, 1.55),
    icyGradientFlow 6s ease infinite,
    icyShimmer 3s ease-in-out infinite;
  letter-spacing: 3px;
  filter: drop-shadow(0 0 15px rgba(186, 230, 253, 0.5))
          drop-shadow(0 0 25px rgba(224, 242, 254, 0.3))
          drop-shadow(0 5px 10px rgba(125, 211, 252, 0.2));
  text-shadow: 
    0 0 8px rgba(255, 255, 255, 0.4),
    0 0 15px rgba(186, 230, 253, 0.3),
    0 0 20px rgba(125, 211, 252, 0.2);
}

@keyframes titleEntrance {
  0% {
    opacity: 0;
    transform: translateY(-50px) scale(0.8) rotateX(-90deg);
  }
  60% {
    transform: translateY(10px) scale(1.05) rotateX(10deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0deg);
  }
}

@keyframes icyGradientFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes icyShimmer {
  0%, 100% {
    filter: drop-shadow(0 0 15px rgba(186, 230, 253, 0.5))
            drop-shadow(0 0 25px rgba(224, 242, 254, 0.3))
            drop-shadow(0 5px 10px rgba(125, 211, 252, 0.2));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.6))
            drop-shadow(0 0 35px rgba(186, 230, 253, 0.5))
            drop-shadow(0 5px 12px rgba(125, 211, 252, 0.3));
  }
}

.contact-hero__subtitle {
  font-size: 1.3rem;
  opacity: 1;
  position: relative;
  z-index: 1;
  color: #e0f2fe;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 50%, #e0f2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 500;
  text-shadow: 0 0 20px rgba(224, 242, 254, 0.5);
  filter: drop-shadow(0 2px 10px rgba(186, 230, 253, 0.3));
  letter-spacing: 0.5px;
  animation: subtitleEntrance 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.3s both;
}

@keyframes subtitleEntrance {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.8);
    filter: blur(10px);
  }
  60% {
    transform: translateY(-5px) scale(1.02);
  }
  100% {
    opacity: 0.95;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Snowflakes */
.snowflakes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.snowflake {
  position: absolute;
  top: -10%;
  color: #fff;
  font-size: 1.5rem;
  text-shadow: 
    0 0 5px rgba(186, 230, 253, 0.4),
    0 0 10px rgba(224, 242, 254, 0.3),
    0 0 15px rgba(125, 211, 252, 0.2);
  animation: snowfall linear infinite;
  opacity: 0;
}

@keyframes snowfall {
  0% { top: -10%; opacity: 0; }
  10% { opacity: 0.25; }
  90% { opacity: 0.25; }
  100% { top: 110%; opacity: 0; }
}

.snowflake:nth-child(1) { left: 10%; animation-duration: 8s; animation-delay: 0s; font-size: 1.2rem; }
.snowflake:nth-child(2) { left: 20%; animation-duration: 10s; animation-delay: 1s; font-size: 1.8rem; }
.snowflake:nth-child(3) { left: 30%; animation-duration: 7s; animation-delay: 2s; font-size: 1.4rem; }
.snowflake:nth-child(4) { left: 40%; animation-duration: 9s; animation-delay: 0.5s; font-size: 1.6rem; }
.snowflake:nth-child(5) { left: 50%; animation-duration: 11s; animation-delay: 1.5s; font-size: 1.3rem; }
.snowflake:nth-child(6) { left: 60%; animation-duration: 8.5s; animation-delay: 2.5s; font-size: 1.7rem; }
.snowflake:nth-child(7) { left: 70%; animation-duration: 9.5s; animation-delay: 0.8s; font-size: 1.5rem; }
.snowflake:nth-child(8) { left: 80%; animation-duration: 10.5s; animation-delay: 1.8s; font-size: 1.4rem; }
.snowflake:nth-child(9) { left: 90%; animation-duration: 7.5s; animation-delay: 2.2s; font-size: 1.6rem; }
.snowflake:nth-child(10) { left: 15%; animation-duration: 9.8s; animation-delay: 3s; font-size: 1.3rem; }

/* ==================== CONTACT CONTAINER ==================== */
.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

/* ==================== CONTACT INFO ==================== */
.contact-info {
  animation: fadeInLeft 0.8s ease;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.contact-info__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.contact-info__text {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-method {
  background: rgba(15, 26, 58, 0.8);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-method:hover {
  background: rgba(15, 26, 58, 0.95);
  transform: translateX(10px);
  border-color: rgba(102, 126, 234, 0.5);
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.contact-method__icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-method__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.facebook-icon img {
  animation: facebookPulse 2s ease-in-out infinite;
}

@keyframes facebookPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.contact-method:hover .facebook-icon img {
  animation: facebookBounce 0.6s ease-in-out;
}

@keyframes facebookBounce {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.15); }
  50% { transform: scale(0.95); }
  75% { transform: scale(1.1); }
}

.WhatsApp-icon img {
  animation: facebookPulse 2s ease-in-out infinite;
}

@keyframes WhatsAppPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.contact-method:hover .WhatsApp-icon img {
  animation: WhatsAppBounce 0.6s ease-in-out;
}

@keyframes WhatsAppBounce {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.15); }
  50% { transform: scale(0.95); }
  75% { transform: scale(1.1); }
}

.contact-method__content h3 {
  color: var(--text);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.contact-method__content p {
  color: var(--muted);
  margin: 0;
}

.contact-method__content a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 600;
}

.contact-method__content a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ==================== CONTACT FORM ==================== */
.contact-form {
  background: rgba(15, 26, 58, 0.8);
  backdrop-filter: blur(10px);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  animation: fadeInRight 0.8s ease;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.contact-form__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.submit-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(102, 126, 234, 0.5);
  background: linear-gradient(135deg, rgba(102, 126, 234, 1) 0%, rgba(118, 75, 162, 1) 100%);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  display: none;
}

.form-message.success {
  background: rgba(76, 175, 80, 0.2);
  border: 1px solid #4caf50;
  color: #4caf50;
  display: block;
}

.form-message.error {
  background: rgba(244, 67, 54, 0.2);
  border: 1px solid #f44336;
  color: #f44336;
  display: block;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .contact-hero {
    padding: 2rem 0 2rem;
    border-radius: 0 0 20px 20px;
  }

  .contact-hero__title {
    font-size: 2.5rem;
    letter-spacing: 1px;
  }

  .contact-hero__subtitle {
    font-size: 1.1rem;
  }

  .snowflake {
    font-size: 1rem;
  }

  .contact-container {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
  }

  .contact-form {
    padding: 1.5rem;
  }
}
