/* ================= FIXED HERO ================= */
.contact-page-hero-container {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    z-index: 1;
}

.contact-page-hero {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
}

.contact-page-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/contact-banner.webp') center / cover no-repeat fixed;
    z-index: 1;
}

.contact-page-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.contact-page-hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    text-align: center;
    width: 100%;
    max-width: 800px;
    overflow: hidden;
}

.contact-page-hero-title {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: .4rem;
    word-spacing: 1rem;
    color: #ffef17;
    font-size: 4.5rem;
    -webkit-text-stroke: 2px #ff9933;
}

/* Prefix added to animation classes */
.contact-page-fade-left {
    opacity: 0;
    transform: translateX(-150px);
    display: inline-block;
    animation: contact-page-fadeInSide 2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.contact-page-fade-right {
    opacity: 0;
    transform: translateX(150px);
    display: inline-block;
    animation: contact-page-fadeInSide 2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.contact-page-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: contact-page-fadeInUp 2s ease-out 1s forwards; /* 1s delay for smooth entry */
}

/* Keyframes with Prefix */
@keyframes contact-page-fadeInSide {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes contact-page-fadeInUp {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.contact-page-who-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 4;
    pointer-events: none;
}
/* ================== Earth Animation (Video sliding logic) ================== */
@property --contact-page-pulse {
    syntax: '<length>';
    inherits: false;
    initial-value: 80px;
}

@property --contact-page-pulse2 {
    syntax: '<length>';
    inherits: false;
    initial-value: 56px;
}

.contact-page-earth {
    position: relative;
    width: 500px;
    aspect-ratio: 1;
    border-radius: 50%;
    /* z-index: 4; */
    overflow: hidden;
    /* -webkit-mask-image: -webkit-radial-gradient(white, black); */
    /* mask-image: radial-gradient(white, black); */
    box-shadow: inset 11px -5px 1px 1px white, inset -1px 1px 1px 1px #64BEC8, inset 0 0 var(--contact-page-pulse) -20px #64BEC8, inset 0 0 76px -10px #64BEC8, inset 0 0 var(--contact-page-pulse2) -10px #64BEC8;
    /* animation: contact-page-pulse-anim 2s linear infinite alternate-reverse; */
    box-shadow: 0 -1px 1px 1px white,
        -1px 1px 1px 1px #64BEC8,
        0 0 var(--contact-page-pulse) -20px #64BEC8,
        inset 0 0 76px -10px #64BEC8,
        inset 0 0 var(--contact-page-pulse2) -10px #64BEC8;
}

/* Ye track GIF ke background-position-x jaisa kaam karega */
.earth-video-track {
    display: flex;
    width: 200%; /* Do videos side-by-side */
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    /* Right side motion: sliding from -50% to 0% */
    animation: contact-page-earth-slide 40s linear infinite;
    will-change: transform;
}

.earth-video-track video {
    width: 50%; /* Har video 100% circle area cover karegi */
    height: 100%;
    object-fit: cover; /* background-size: cover wala effect */
    pointer-events: none;
}

/* Right Side sliding motion (Exactly like your background-position animation) */
@keyframes contact-page-earth-slide {
    0% { transform: translate3d(-50%, 0, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

/* Pulse Animation (Same as before) */
@keyframes contact-page-pulse-anim {
    0% { --contact-page-pulse: 8rem; --contact-page-pulse2: 5.6rem; }
    100% { --contact-page-pulse: 10rem; --contact-page-pulse2: 3.6rem; }
}

/* Hand Image Alignment */
.contact-page-top-image {
    position: absolute;
    top: 60%;
    left: 49.9%;
    transform: translate(-50%, -50%);
    width: 768px;
    z-index: 5;
    pointer-events: none;
}

.contact-page-hero-title {
    font-size: 4.5rem;
    letter-spacing: .4rem;
    word-spacing: 1rem;
    color: #ffef17;
    -webkit-text-stroke: 2px #ff9933;
}

.contact-page-wave-text {
    display: inline-flex;
}

.contact-page-wave-text span {
    display: inline-block;
    animation: contact-page-waveMove 2.4s ease-in-out infinite;
}

@keyframes contact-page-waveMove {
    0%, 40%, 100% { transform: translateY(0); }
    20% { transform: translateY(-12px); }
}

.contact-page-hero-content p {
    font-size: 1.3rem;
    opacity: 0.9;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.394);
    padding: 10px;
}
/* ================= CONTACT SECTION ================= */
.contact-page-section {
  position: relative;
  padding: 60px 20px;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  z-index: 10;
  transition: background 0.3s ease;
  overflow: hidden;
  /* margin-bottom:100px */
}

/* Background overlay that fades in */
.contact-page-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  z-index: 1;
  transition: opacity 0.9s ease;
  opacity: 1;
}

.contact-page-layout {
  display: flex;
  gap: 30px;
  align-items: stretch;
  position: relative;
  z-index: 2;
}

/* ================= GLASS ================= */
.contact-page-glass {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 18px;
}

/* LEFT */
.contact-page-left {
  width: 260px;
  height: 600px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-page-left .contact-page-box {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  /* border:1px solid #ff9933; */
}

.contact-page-left h4 {
  /* margin-bottom: 15px; */
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0px;
  color: #ff9933;
}

.contact-page-left h4 i {
  color: #00ffaa;
}

.contact-page-left p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
  /* margin-bottom: 20px; */
  flex-grow: 1;
}

/* Contact Info Styles */
.contact-info {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateX(5px);
}

.contact-item i {
  width: 20px;
  color: #00ffaa;
  font-size: 14px;
}

.contact-link {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: #00ffaa;
}

/* MOBILE */
.contact-page-mobile {
  width: 420px;
  height: 600px;
  padding: 20px;
  border-radius: 35px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.contact-page-notch {
  width: 120px;
  height: 6px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  margin: 10px auto 20px;
}

.contact-page-mobile-content {
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-page-mobile-content h2 {
  margin-bottom: 40px;
  font-size: 38px;
}
.contact-page-mobile-content h2 span {
  color: #ff9933;
}
/* FORM STYLES */
.contact-form {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-page-form-group {
  position: relative;
}

.contact-page-form-input {
  width: 90%;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: white;
  font-size: 14px;
  transition: all 0.3s ease;
}

.contact-page-form-input:focus {
  outline: none;
  border-color: rgba(0, 255, 170, 0.7);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 2px rgba(0, 255, 170, 0.2);
}

.contact-page-form-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

textarea.contact-page-form-input {
  min-height: 100px;
  resize: vertical;
  font-family: "Segoe UI", sans-serif;
}

/* --- Validation Styles --- */
.error-msg {
    color: #ff4d4d;
    font-size: 11px;
    display: block;
    text-align: left;
    margin-left: 5%;
    margin-top: 2px;
    height: 14px;
    font-weight: 500;
}

.input-error {
    border-color: #ff4d4d !important;
    background: rgba(255, 77, 77, 0.1) !important;
}

/* --- Success Popup Styles --- */
.success-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 41, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100000;
    justify-content: center;
    align-items: center;
}

.success-popup-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
    border-radius: 30px;
    text-align: center;
    max-width: 350px;
    color: white;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: translateY(20px);
    transition: 0.3s ease;
}

.success-popup-overlay.active .success-popup-content {
    transform: translateY(0);
}

.success-icon-circle {
    width: 70px;
    height: 70px;
    background: #00ffaa;
    color: #0a1929;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
    box-shadow: 0 0 20px rgba(0, 255, 170, 0.4);
}

.success-close-btn {
    background: #ff9933;
    border: none;
    padding: 12px 35px;
    color: white;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: 0.3s;
}

.success-close-btn:hover {
    background: #e68a2e;
    transform: scale(1.05);
}

/* Bottom Action Buttons */
.contact-page-action-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap:10px;
  margin-top: auto;
  margin-bottom: 25px;
}

.contact-page-action-btn {
  width: 60px;
  height: 60px;
  border-radius: 100px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.contact-page-action-btn:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.contact-page-call-btn {
  background: rgba(0, 255, 170, 0.85);
  color: #ffffff;
}

.contact-page-whatsapp-btn {
  background: rgba(37, 211, 102, 0.9);
  color: #ffffff;
}

/* Submit Button */
.contact-page-submit-btn {
  background: rgba(66, 133, 244, 0.9);
  color: white;
  padding: 12px 80px;
  border-radius: 100px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.contact-page-submit-btn:hover {
  transform: translateY(-5px);
  background: rgba(66, 133, 244, 1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Button tooltip */
.contact-page-action-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.contact-page-action-btn:hover::after {
  opacity: 1;
  visibility: visible;
}

/* Form Success Message */
.contact-page-form-success {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  z-index: 1000;
  display: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: contactfadeIn 0.5s ease;
}

@keyframes contactfadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.contact-page-form-success i {
  font-size: 48px;
  color: #25d366;
  margin-bottom: 15px;
}

/* RIGHT */
.contact-page-right {
  width: 260px;
  height: 595px;
  display: grid;
  grid-template-rows: repeat(6, 1fr);
  gap: 15px;
}

.contact-page-right .contact-page-box {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  padding: 10px;
  font-size: 1.5rem;
}
.contact-page-right .contact-page-box:nth-child(1) {
  color: #f89100;
} /* Dark Red */
.contact-page-right .contact-page-box:nth-child(2) {
  color: #3d9fff;
} /* Dark Blue */
.contact-page-right .contact-page-box:nth-child(3) {
  color: #00ffaa;
} /* Dark Green */
.contact-page-right .contact-page-box:nth-child(4) {
  color: #b975ff;
} /* Dark Purple */
.contact-page-right .contact-page-box:nth-child(5) {
  color: #ffe03e;
} /* Dark Gold */
.contact-page-right .contact-page-box:nth-child(6) {
  color: #ffe3e3;
} /* Dark Gray */

/* PROGRESS BAR */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1000;
}

.scroll-progress-bar {
  height: 100%;
  /* background: linear-gradient(90deg, #00ffaa, #25d366); */
  width: 0%;
  transition: width 0.1s ease;
}

/* HERO FADE OUT */
.hero-fade {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

/* --- Desktop layout (Already exists) --- */
.contact-page-layout {
    display: flex;
    gap: 30px;
}

/* ============================================================
   MOBILE & TABLET RESPONSIVE (Cards Top, Form Bottom)
   ============================================================ */

@media (max-width: 991px) {
    .contact-page-layout {
        flex-direction: column; /* Stack vertically */
        align-items: center;
        gap: 40px;
    }

    /* 1. CARDS SECTION (Upper side) */
    .contact-page-left {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 20px;
        order: 1; /* Force to Top */
    }

    /* 2. FORM SECTION (Bottom side) */
    .contact-page-mobile {
        width: 100%;
        max-width: 450px; /* Mobile look maintain karne ke liye */
        order: 2; /* Force to Bottom */
        margin: 0 auto;
    }

    /* Decoration side ko hide ya stack kar sakte hain */
    .contact-page-right {
        order: 3;
        width: 100%;
        height: auto;
        grid-template-rows: unset;
        grid-template-columns: repeat(3, 1fr); /* 2 rows of 3 on tablet */
    }

    /* Form input full width on mobile */
    .contact-page-form-input {
        width: 100%;
    }
    .contact-page-top-image img {
    width: 100%;
}
}

/* Small Mobile Adjustments */
@media (max-width: 480px) {
    .contact-page-section {
        padding: 40px 15px;
        overflow: hidden;
    }

    .contact-page-left .contact-page-box {
        padding: 20px;
        text-align: center;
    }

    .contact-page-right {
        grid-template-columns: repeat(2, 1fr); 
        font-size: 1rem;
    }

    .contact-page-action-buttons {
        flex-direction: row;
        width: 100%;
    }

    .contact-page-submit-btn {
        width: 100%;
        padding: 15px;
    }
    .contact-page-mobile-content h2 {
      font-size:28px;
      margin-bottom: 20px;
    }
    .contact-page-top-image img {
    width: 100%;
}

}
/* RESPONSIVE */
@media (max-width: 1100px) {

  .contact-page-section{
    padding:30px 30px;
    overflow: hidden;
  }

  .contact-page-layout {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .contact-page-left,
  .contact-page-right {
    width: 100%;
    height: auto;
  }

  .contact-hero-title {
    font-size: 2.4rem;
  }

  .contact-page-hero,
  .contact-page-hero-container {
    height: 100vh;
  }
}

@media (max-width: 768px) {
  .contact-page-hero-title {
    font-size: 36px;
}
  .contact-hero-title {
    font-size: 2rem;
  }
.contact-page-earth{
  width:90%;
  margin: auto;
}
  .contact-page-hero-content p {
    font-size: 1rem;
  }

  .contact-page-scroll-indicator {
    bottom: 20px;
  }

  .contact-page-mobile {
    width: 100%;
    height: 100%;
    max-width: 100%;
  }
  .contact-page-top-image {
    
    width: 100%;
}

  .contact-page-action-btn {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .contact-page-submit-btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .contact-page-form-input {
    padding: 10px 12px;
    font-size: 13px;
  }

  .contact-page-left h4 {
    font-size: 16px;
  }

  .contact-item {
    font-size: 12px;
  }

  .contact-page-right .contact-page-box{
    font-size: 16px;
  }

}



/* FAQ */

.contact-page-faq-section {
  position: relative;
  z-index: 5;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  padding: 60px 20px;
}

.contact-page-faq-wrapper {
  max-width: 1200px;
  margin: auto;
  position: relative;
  z-index: 10;
}

.contact-page-faq-container {
  background: linear-gradient(145deg, #4280c2, #8ee2e6);
  border-radius: 14px;
  padding: 50px 98px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Header */
.contact-page-faq-header h2 {
    color: #00ffaa;
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 20px;
    /* text-transform: uppercase; */
    font-family: "Montserrat", sans-serif;
}

.contact-page-faq-header .contact-page-faq-line {
  display: inline-block;
  width: 50px;
  height: 3px;
  background: #f9b233;
  margin-bottom: 14px;
}
.contact-page-faq-header p {
    margin-bottom: 40px;
    color: #ffffff;
    line-height: 1.6;
    /* font-family: "Inter", sans-serif; */
}

/* --- THE GRID & GAP FIX --- */
.contact-page-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px; /* Horizontal space between columns */
  align-items: start; /* Prevents items from stretching to row height */
}

.faq-column {
  display: flex;
  flex-direction: column;
  gap: 20px; /* Vertical space between individual FAQ items */
}

/* FAQ Item */
.contact-page-faq-item {
  background: #132c44;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-page-faq-question {
  width: 100%;
  background: transparent;
  border: none;
  color: #ffffff;
  padding: 20px;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-page-faq-question .contact-page-faq-icon {
  color: #f9b233;
  font-size: 22px;
  transition: transform 0.3s ease;
}

/* Answer Styles */
.contact-page-faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.6;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
}

/* Active State */
.contact-page-faq-item.active .contact-page-faq-answer {
  max-height: 500px;
  padding: 15px 20px 20px;
}

.contact-page-faq-item.active .contact-page-faq-icon {
  transform: rotate(45deg);
}

/* Responsive */
@media (max-width: 768px) {
  .contact-page-faq-grid {
    grid-template-columns: 1fr;
  }
  .contact-page-faq-container {
    padding: 30px 20px;
  }

  .contact-page-faq-header h2 {
    
    font-size: 36px;

}
}