:root {
  --nyx-black: #000;
  --nyx-white: #fff;
  --nyx-neon-blue: #178389;
}

/* Contact Section Base */
.contact-section {
  min-height: 100vh;
  background-color: #000;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 2px;
  margin-top: 20px;
  background: linear-gradient(90deg, transparent, #046363, #178389, #049491, #149aaa, transparent);
  animation: shimmer 3s ease-in-out infinite;
}

/* Contact Layout */
.contact-container {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Contact Info Styling */
.contact-info {
  z-index: 2;
}

.contact-info h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff, #ccc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-info p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #ccc;
}

/* Contact Details */
.contact-details {
  list-style: none;
}

.contact-details li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: #fff;
  position: relative;
}

.contact-details li i {
  margin-right: 15px;
  width: 20px;
  color: #6366f1;
}

.contact-details a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-details a:hover {
  text-decoration: none;
  color: #046363;
}

/* Phone Wrapper */
.phone-wrapper {
  position: relative;
  display: inline-block;
}

.view-phone-link {
  text-decoration: none;
  color: white;
  cursor: pointer;
}

/* === FULLSCREEN OVERLAY FOR POPUP === */
.phone-overlay {
  display: none;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 99999; /* Updated to ensure it's above the form and all */
  justify-content: center;
  align-items: center;
}

.phone-overlay.active {
  display: flex;
}

/* Centered Popup Box */
.phone-popup {
  position: relative;
  background: linear-gradient(135deg, #111, #222);
  color: white;
  padding: 25px 30px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.9);
  min-width: 240px;
  animation: fadeInUp 0.3s ease-out;
  z-index: 100000; /* Extra high z-index */
  left: 0;
  right: 0;
  margin: 0 auto;
  transform: none;
}

/* Popup Header */
.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-weight: bold;
  color: #ffffff;
  font-size: 1rem;
}

/* Close Button */
.popup-close {
  background: linear-gradient(135deg, #149AAA, #046363);
  border: none;
  border-radius: 50%;
  color: white;
  width: 24px;
  height: 24px;
  font-size: 16px;
  line-height: 20px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: background 0.3s ease;
}

.popup-close:hover {
  background: linear-gradient(135deg, #178389, #0b7575);
}

/* Phone List Inside Popup */
.phone-popup ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.phone-popup li {
  margin: 8px 0;
  color: #eee;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.phone-popup ul li a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.phone-popup ul li a:hover {
  color: #178389;
  text-decoration: none;
  cursor: pointer;
}


/* Floating Orbs */
.gradient-orb {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, #046363, #149AAA);
  filter: blur(60px);
  opacity: 0.7;
  animation: float 6s ease-in-out infinite;
}

.orb-1 {
  width: 200px;
  height: 200px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 150px;
  height: 150px;
  bottom: 20%;
  right: 15%;
  animation-delay: 2s;
}

.orb-3 {
  width: 100px;
  height: 100px;
  top: 60%;
  left: 5%;
  animation-delay: 4s;
}

.social-media span a {
    margin-right: 10px;
    color: #fff; /* or any color you want */
    font-size: 1.2rem;
    transition: transform 0.2s;
}

.social-media span a:hover {
    transform: scale(1.2);
}


/* Animations */
@keyframes shimmer {
  0% {
    background-position: -100%;
  }
  100% {
    background-position: 200%;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) translateX(0px);
  }
  33% {
    transform: translateY(-20px) translateX(10px);
  }
  66% {
    transform: translateY(10px) translateX(-10px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-info h2 {
    font-size: 2.5rem;
  }

  .form-container {
    padding: 30px 20px;
  }

  .contact-form h3 {
    font-size: 1.5rem;
  }

  .phone-popup {
    max-width: 90vw;
    width: auto;
    white-space: normal;
    transform: translateX(-10px); /* moved slightly left */
  }
}
