/* Container Styling */
.contact-container {
  display: flex;
  justify-content: space-between;
  max-width: 1000px;
  position: absolute; /* Changed from absolute */
  margin-top: 1045px; /* Added spacing from the previous element */
  position: relative;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.8), rgba(76, 161, 175, 0.8));
  border-radius: 20px;
  left:145px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: fadeIn 1.2s ease-in-out forwards;
  padding: 20px;
  flex-wrap: wrap;
}


@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Contact Info */
.contact-info {
  width: 45%;
  padding: 20px;
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.contact-info h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #ffffff;
}

.info-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.info-item .icon {
  font-size: 24px;
  margin-right: 10px;
  color: #ffed75;
}

.info-text p {
  margin: 4px 0;
  font-size: 14px;
  color: white;
  opacity: 0.9;
}

/* Social Icons */
.social-icons {
  display: flex;
  margin-top: 20px;
}

.social-icons a {
  margin-right: 15px;
  display: inline-block;
}

.icon-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgb(0, 0, 0);
  transition: transform 0.3s ease;
}

.icon-img:hover {
  transform: scale(1.1);
}

/* Contact Form */
.contact-form {
  width: 50%;
  padding: 20px;
}

.contact-form h2 {
  color: #ffffff;
  font-size: 28px;
  animation: slideIn 1.5s ease-in;
}

.contact-form p {
  margin: 10px 0 20px;
  font-size: 14px;
  color: #dddddd;
}

@keyframes slideIn {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Animated Input */
.animated-input {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  transition: all 0.4s ease;
  color: white;
}

.animated-input::placeholder {
  color: #aaa;
}

.animated-input:hover {
  border-color: #ffed75;
  transform: scale(1.02);
  background: rgba(255, 255, 255, 0.2);
}

/* Animated Button */
.animated-button {
  padding: 12px 25px;
  background: linear-gradient(135deg, #76b2f7, #4285f4);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.5s ease;
  box-shadow: 0 4px 15px rgba(60, 121, 183, 0.7);
}

.animated-button:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 12px 30px rgba(76, 161, 175, 1);
}

/* Responsive Design */


@media (max-width: 768px) {
  .contact-container {
    left: 15%;
    margin-top: 975px;
    flex-direction: column;
    padding: 15px;
    width: 81%;
  }

  .contact-info, .contact-form {
    width: 100%;
  }

  .contact-form h2 {
    font-size: 22px;
  }

  .contact-info h2 {
    font-size: 22px;
  }

  .animated-input {
    font-size: 14px;
  }

  .animated-button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .contact-container {
    padding: 10px;
  }

  .contact-form h2, .contact-info h2 {
    font-size: 20px;
  }

  .info-item .icon {
    font-size: 20px;
  }

  .icon-img {
    width: 24px;
    height: 24px;
  }

  .animated-input {
    font-size: 12px;
    padding: 10px;
  }

  .animated-button {
    padding: 10px 20px;
  }
}
@media (min-width: 1024px) and (max-width: 1366px) {
  .contact-container {
    left: 140px; /* Reset left position for better alignment */
    flex-direction: column;
    padding: 15px;
    width: 80%; /* Adjusted width to better fit iPad Pro */
    
}
}
/* headache ipad pro */
@media (min-width: 820px) and (max-width: 1180px) {
  .contact-container {
    left: 140px; /* Center alignment */
    flex-direction: column;
    padding: 20px;
    width: 75.5%; /* Balanced width for iPad Air */
 
  }
}


