/* Floating Background Elements */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.floating-bubble {
  position: absolute;
  background: linear-gradient(
    135deg,
    rgba(0, 123, 191, 0.15),
    rgba(255, 215, 0, 0.1)
  );
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.floating-bubble:nth-child(1) {
  width: 100px;
  height: 100px;
  left: 5%;
  top: 10%;
  animation-delay: 0s;
  animation-duration: 8s;
}

.floating-bubble:nth-child(2) {
  width: 150px;
  height: 150px;
  right: 10%;
  top: 60%;
  animation-delay: 2s;
  animation-duration: 10s;
}

.floating-bubble:nth-child(3) {
  width: 80px;
  height: 80px;
  left: 70%;
  top: 30%;
  animation-delay: 4s;
  animation-duration: 6s;
}

.floating-bubble:nth-child(4) {
  width: 120px;
  height: 120px;
  left: 15%;
  bottom: 20%;
  animation-delay: 1s;
  animation-duration: 9s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-40px) rotate(120deg);
  }
  66% {
    transform: translateY(20px) rotate(240deg);
  }
}

/* Contact Section */
.contact {
  padding: 3rem 0 5rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
  position: relative;
  overflow: hidden;
}

.section-title {
  text-align: center;
  font-size: 3.5rem;
  color: #003366;
  margin-bottom: 3rem;
  position: relative;
  font-weight: bold;
  background: linear-gradient(45deg, #003366, #007bbf, #4a90e2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
  0%,
  100% {
    filter: drop-shadow(0 0 10px rgba(0, 123, 191, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(0, 123, 191, 0.6));
  }
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 4px;
  background: linear-gradient(45deg, #007bbf, #ffd700, #4a90e2);
  border-radius: 2px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 4rem;
}

/* Contact Info Section */
.contact-info {
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.132);
  border-radius: 10px;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease;
}

.contact-info:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.153);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

.contact-info::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.8s ease;
}

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

.contact-info h3 {
  color: #003366;
  font-size: 2rem;
  margin-bottom: 2rem;
  position: relative;
  font-weight: bold;
}

.contact-info h3::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(45deg, #007bbf, #ffd700);
  border-radius: 2px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  padding: 1.2rem;
  background: rgba(0, 123, 191, 0.03);
  border-radius: 15px;
  border: 1px solid rgba(0, 123, 191, 0.1);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.contact-item:hover {
  background: linear-gradient(135deg, #007bbf, #4a90e2);
  transform: translateX(10px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 123, 191, 0.3);
}

.contact-item:hover .contact-svg {
  filter: brightness(0) invert(1);
}

.contact-item:hover span {
  color: white;
}

.contact-item::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-item:hover::before {
  left: 100%;
}

.contact-svg {
  width: 28px;
  height: 28px;
  margin-right: 1.2rem;
  transition: all 0.4s ease;
  flex-shrink: 0;
}

.contact-item span {
  font-weight: 600;
  transition: all 0.4s ease;
  word-break: break-word;
}

/* Promotion Section */
.promotion-section {
  padding: 2.5rem;
  background: linear-gradient(135deg, #007bbf 0%, #0056b3 100%);
  border-radius: 25px;
  color: white;
  position: relative;
  overflow: hidden;
  animation: promotionGlow 4s ease-in-out infinite;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 25px 70px rgba(0, 123, 191, 0.3);
  transition: all 0.5s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.promotion-section:hover {
  transform: translateY(-10px);
  box-shadow: 0 35px 90px rgba(0, 123, 191, 0.5);
}

@keyframes promotionGlow {
  0%,
  100% {
    box-shadow: 0 25px 70px rgba(0, 123, 191, 0.3), 0 0 30px rgba(255, 215, 0, 0.2);
  }
  50% {
    box-shadow: 0 30px 80px rgba(0, 123, 191, 0.5), 0 0 50px rgba(255, 215, 0, 0.4);
  }
}

.promotion-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 215, 0, 0.1),
    transparent
  );
  animation: shine 4s ease-in-out infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  50% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
  100% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
}

.promotion-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #003366;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.85rem;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
  animation: pulse 2s ease-in-out infinite;
  z-index: 2;
}

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

.promotion-content {
  margin: 1.5rem 0;
  z-index: 2;
  position: relative;
}

.promotion-section-para {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  padding: 1rem 1.5rem;
  color: #ffffff;
  font-weight: 500;
  margin-bottom: 1rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  font-size: 1rem;
  line-height: 1.6;
}

.promotion-section-para:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateX(5px);
  border-color: rgba(255, 215, 0, 0.5);
}

.promotion-section h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  margin-top: 0;
  position: relative;
  z-index: 2;
  color: #ffd700;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.promotion-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #003366;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.promotion-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.promotion-cta:hover::before {
  left: 100%;
}

.promotion-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 215, 0, 0.6);
  background: linear-gradient(135deg, #ffed4e, #ffd700);
}

.promotion-cta svg {
  transition: transform 0.3s ease;
}

.promotion-cta:hover svg {
  transform: translateX(5px);
}

/* Contact Form */
.contact-form {
  background: rgba(0, 123, 191, 0.15);
  padding: 3rem;
  border-radius: 25px;
  box-shadow: 0 25px 70px rgba(0, 123, 191, 0.1);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(0, 123, 191, 0.2);
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease;
}

.contact-form:hover {
  transform: translateY(-5px);
  background: rgba(0, 123, 191, 0.25);
  box-shadow: 0 35px 90px rgba(0, 123, 191, 0.2);
}

.contact-form h3 {
  color: #003366;
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  font-weight: bold;
  position: relative;
}

.contact-form h3::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(45deg, #007bbf, #ffd700);
  border-radius: 2px;
}

.form-group {
  margin-bottom: 1.8rem;
  position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1.2rem;
  border: 2px solid rgba(233, 236, 239, 0.5);
  border-radius: 15px;
  font-size: 1rem;
  transition: all 0.4s ease;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #007bbf;
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 123, 191, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #6c757d;
}

.submit-btn {
  background: linear-gradient(
    135deg,
    rgba(0, 123, 191, 0.9),
    rgba(74, 144, 226, 0.9),
    rgba(107, 182, 255, 0.9)
  );
  color: white;
  padding: 1.3rem 3rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  width: 100%;
  font-size: 1.1rem;
  font-weight: bold;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  backdrop-filter: blur(5px);
}

.submit-btn:hover {
  transform: translateY(-5px);
  background: linear-gradient(135deg, #007bbf, #4a90e2, #6bb6ff);
  box-shadow: 0 15px 40px rgba(0, 123, 191, 0.4);
}

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

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

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease;
}

.fade-in.animate {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-100px);
  transition: all 1s ease;
}

.slide-in-left.animate {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(100px);
  transition: all 1s ease;
}

.slide-in-right.animate {
  opacity: 1;
  transform: translateX(0);
}

/* ===== MOBILE OPTIMIZATION STARTS HERE ===== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  .contact-grid {
    gap: 3rem;
  }

  .section-title {
    font-size: 3rem;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .contact {
    padding: 3rem 0;
  }

  .container {
    padding: 0 1rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2.5rem;
  }

  .section-title {
    font-size: 2.2rem;
    margin-bottom: 2rem;
  }

  .section-title::after {
    width: 100px;
    height: 3px;
  }

  .contact-info,
  .contact-form {
    padding: 1.8rem;
    border-radius: 20px;
  }

  .contact-info:hover,
  .contact-form:hover {
    transform: translateY(-3px);
  }

  .contact-info h3,
  .contact-form h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }

  .contact-item {
    padding: 1rem;
    font-size: 1rem;
    margin-bottom: 1.2rem;
  }

  .contact-item:hover {
    transform: translateX(5px) scale(1.01);
  }

  .contact-svg {
    width: 24px;
    height: 24px;
    margin-right: 1rem;
  }

  .promotion-section {
    padding: 2rem;
    border-radius: 20px;
  }

  .promotion-badge {
    top: 15px;
    right: 15px;
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
  }

  .promotion-section h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .promotion-content {
    margin: 1.2rem 0;
  }

  .promotion-section-para {
    font-size: 0.95rem;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
  }

  .promotion-cta {
    padding: 0.9rem 1.8rem;
    font-size: 1rem;
  }

  .form-group {
    margin-bottom: 1.5rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 1rem;
    font-size: 16px; /* Prevents zoom on iOS */
    border-radius: 12px;
  }

  .submit-btn {
    padding: 1.1rem 2rem;
    font-size: 1rem;
    border-radius: 40px;
  }

  /* Smaller floating bubbles on mobile */
  .floating-bubble:nth-child(1) {
    width: 60px;
    height: 60px;
  }

  .floating-bubble:nth-child(2) {
    width: 90px;
    height: 90px;
  }

  .floating-bubble:nth-child(3) {
    width: 50px;
    height: 50px;
  }

  .floating-bubble:nth-child(4) {
    width: 70px;
    height: 70px;
  }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
  .contact {
    padding: 2.5rem 0;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  .section-title::after {
    width: 80px;
  }

  .contact-info,
  .contact-form {
    padding: 1.5rem;
    border-radius: 18px;
  }

  .contact-info h3,
  .contact-form h3 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
  }

  .contact-item {
    padding: 0.9rem;
    font-size: 0.9rem;
  }

  .contact-svg {
    width: 22px;
    height: 22px;
    margin-right: 0.8rem;
  }

  .promotion-section {
    padding: 1.5rem;
  }

  .promotion-badge {
    top: 12px;
    right: 12px;
    padding: 0.3rem 0.8rem;
    font-size: 0.7rem;
  }

  .promotion-section h3 {
    font-size: 1.3rem;
  }

  .promotion-content {
    margin: 1rem 0;
  }

  .promotion-section-para {
    font-size: 0.9rem;
    padding: 0.7rem 1rem;
  }

  .promotion-cta {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.9rem;
    font-size: 16px;
  }

  .submit-btn {
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
  }
}

/* Extra Small (max-width: 360px) */
@media (max-width: 360px) {
  .contact-item span {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .contact-svg {
    width: 20px;
    height: 20px;
  }
}
