/* Background gradient */

/* Fixed header positioning */
header {
  margin: 1rem;
  border-radius: 2%;
}

.hero {
  background: linear-gradient(180deg, #f8fbff 0%, #eef3ff 100%);
  padding-top: 80px; /* Space for fixed header */
}

.hero p {
  font-size: 20px;
}

/* Cube setup */
.cube-wrapper {
  perspective: 1000px;
  width: 330px;
  height: 330px;
}

.cube {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: spin 12s linear infinite;
  transform: rotateX(-30deg) rotateY(40deg);
}

/* Faces */
.face {
  position: absolute;
  width: 330px;
  height: 330px;
  border: 1.5px solid rgba(0, 119, 255, 0.5);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 20px rgba(0, 136, 255, 0.2),
    inset 0 0 30px rgba(0, 102, 255, 0.2);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #2563eb;
  letter-spacing: 3px;
  font-weight: normal;
}

/* Face positioning */
.front {
  transform: translateZ(130px);
}

.back {
  transform: rotateY(180deg) translateZ(130px);
}

.right {
  transform: rotateY(90deg) translateZ(130px);
}

.left {
  transform: rotateY(-90deg) translateZ(130px);
}

.top {
  transform: rotateX(90deg) translateZ(130px);
}

.bottom {
  transform: rotateX(-90deg) translateZ(130px);
}

/* Increase size of icons inside the cube */
.cube .face i {
  font-size: 5rem;
  filter: drop-shadow(0 0 12px rgba(37, 99, 235, 0.5));
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* Optional: subtle hover glow for each face */
.cube .face:hover i {
  transform: scale(1.2);
  filter: drop-shadow(0 0 20px rgba(37, 99, 235, 0.8));
}

/* Glow animation */
@keyframes spin {
  0% {
    transform: rotateX(-20deg) rotateY(30deg);
  }
  100% {
    transform: rotateX(-20deg) rotateY(390deg);
  }
}

/* Subtle glowing edges */
.face::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  box-shadow: 0 0 15px rgba(0, 119, 255, 0.3),
    inset 0 0 10px rgba(0, 119, 255, 0.1);
  pointer-events: none;
}

/* ZIP pulse effect */
.zip {
  animation: zipPulse 2s infinite ease-in-out;
}

@keyframes zipPulse {
  0%,
  100% {
    transform: scale(1);
    color: #0077ff;
    text-shadow: 0 0 8px rgba(0, 119, 255, 0.7);
  }
  50% {
    transform: scale(1.15);
    color: #00c2ff;
    text-shadow: 0 0 20px rgba(0, 180, 255, 1);
  }
}

/* ============================================
   RESPONSIVE STYLES - Mobile First Approach
   ============================================ */

/* Mobile devices (up to 640px) */
@media (max-width: 640px) {
  .hero {
    padding-top: 60px;
  }

  .hero p {
    font-size: 16px;
  }

  .cube-wrapper {
    width: 200px;
    height: 200px;
  }

  .face {
    width: 200px;
    height: 200px;
    font-size: 1.2rem;
    letter-spacing: 2px;
  }

  .front {
    transform: translateZ(80px);
  }

  .back {
    transform: rotateY(180deg) translateZ(80px);
  }

  .right {
    transform: rotateY(90deg) translateZ(80px);
  }

  .left {
    transform: rotateY(-90deg) translateZ(80px);
  }

  .top {
    transform: rotateX(90deg) translateZ(80px);
  }

  .bottom {
    transform: rotateX(-90deg) translateZ(80px);
  }

  .cube .face i {
    font-size: 3rem;
  }
}

/* Small tablets (641px to 768px) */
@media (min-width: 641px) and (max-width: 768px) {
  .hero {
    padding-top: 70px;
  }

  .hero p {
    font-size: 18px;
  }

  .cube-wrapper {
    width: 250px;
    height: 250px;
  }

  .face {
    width: 250px;
    height: 250px;
    font-size: 1.5rem;
    letter-spacing: 2.5px;
  }

  .front {
    transform: translateZ(100px);
  }

  .back {
    transform: rotateY(180deg) translateZ(100px);
  }

  .right {
    transform: rotateY(90deg) translateZ(100px);
  }

  .left {
    transform: rotateY(-90deg) translateZ(100px);
  }

  .top {
    transform: rotateX(90deg) translateZ(100px);
  }

  .bottom {
    transform: rotateX(-90deg) translateZ(100px);
  }

  .cube .face i {
    font-size: 3.5rem;
  }
}

/* Tablets (769px to 1023px) */
@media (min-width: 769px) and (max-width: 1023px) {
  .cube-wrapper {
    width: 280px;
    height: 280px;
  }

  .face {
    width: 280px;
    height: 280px;
    font-size: 1.8rem;
  }

  .front {
    transform: translateZ(110px);
  }

  .back {
    transform: rotateY(180deg) translateZ(110px);
  }

  .right {
    transform: rotateY(90deg) translateZ(110px);
  }

  .left {
    transform: rotateY(-90deg) translateZ(110px);
  }

  .top {
    transform: rotateX(90deg) translateZ(110px);
  }

  .bottom {
    transform: rotateX(-90deg) translateZ(110px);
  }

  .cube .face i {
    font-size: 4rem;
  }
}

/* Large screens (1024px and above) - Original styles maintained */
@media (min-width: 1024px) {
  /* Original desktop styles are already defined above */
}

/* ============================================
   ADDITIONAL RESPONSIVE ENHANCEMENTS
   ============================================ */

/* Very small devices (below 480px) */
@media (max-width: 480px) {
  .cube-wrapper {
    width: 160px;
    height: 160px;
    margin-top: 1rem;
  }

  .face {
    width: 160px;
    height: 160px;
  }

  .front {
    transform: translateZ(65px);
  }

  .back {
    transform: rotateY(180deg) translateZ(65px);
  }

  .right {
    transform: rotateY(90deg) translateZ(65px);
  }

  .left {
    transform: rotateY(-90deg) translateZ(65px);
  }

  .top {
    transform: rotateX(90deg) translateZ(65px);
  }

  .bottom {
    transform: rotateX(-90deg) translateZ(65px);
  }

  .cube .face i {
    font-size: 2.5rem;
  }

  .hero h1 {
    font-size: 1.75rem;
    line-height: 2.2rem;
  }

  .hero p {
    font-size: 0.9rem;
    width: 100%;
  }
}

/* Center text and cube on tablets */
@media (min-width: 641px) and (max-width: 1023px) {
  .hero .flex {
    flex-direction: column;
    text-align: center;
  }

  .cube-wrapper {
    margin-top: 2rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1rem;
    width: 90%;
    margin: 0 auto;
  }
}

/* Maintain balance on very large displays */
@media (min-width: 1280px) {
  .cube-wrapper {
    transform: scale(1.05);
  }

  .hero h1 {
    font-size: 3.75rem;
  }

  .hero p {
    font-size: 1.125rem;
  }
}

/* Prevent overflow on small devices */
.hero {
  overflow-x: hidden;
}

/* Base styling and layout structure */
.register-con {
  background: #f7f9fd;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.form-container {
  background: white;
  border-radius: 32px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden; /* Crucial to clip the large purple background */
  max-width: 1400px;
  width: 90%;
  min-height: 700px;
  display: flex;
}

/* --- RIGHT SIDE BACKGROUND (THE WAVE) --- */
.purple-wave-bg {
  position: absolute;
  /* Positioned off-screen right and centered vertically */
  right: -300px;
  top: 50%;
  transform: translateY(-50%);

  width: 800px;
  height: 100%;

  /* Apply the purple gradient and circular shape */
  background: linear-gradient(
    135deg,
    #2563eb 0%,
    #111827 30%,
    #2563eb 60%,
    #11182796 100%
  );
  border-radius: 50%;
  z-index: 1;
}
.bg-purple-600 {
  background-color: #2563eb !important;
}

.content-wrapper {
  position: relative;
  z-index: 3;
  display: flex;
  width: 100%;
}

/* --- Left Side: Form Section --- */
.form-section {
  padding: 80px 60px;
  background: white;
  z-index: 4;
  position: relative;
  width: 60%;
  flex-shrink: 0;
}

.form-section h1 {
  font-size: 2.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

/* --- Right Side: Device and Visualization --- */
.device-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  width: 40%;
  z-index: 3;
  overflow: hidden;
}

/* 3D Device Styles - (Kept from original for the cool effect) */
.device-container {
  perspective: 2000px;
  position: relative;
  transform: scale(0.9) translate(-10%, 0);
}

.device-stack {
  transform-style: preserve-3d;
  animation: float-rotate 8s ease-in-out infinite;
  position: relative;
  width: 500px;
  height: 320px;
  transform: rotateY(-38deg) rotateX(25deg);
}

@keyframes float-rotate {
  0%,
  100% {
    transform: rotateY(-38deg) rotateX(25deg) translateY(0px);
  }
  50% {
    transform: rotateY(-35deg) rotateX(12deg) translateY(-25px);
  }
}

.glass-card {
  position: absolute;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(252, 250, 255, 0.96) 40%,
    rgba(248, 245, 255, 0.94) 100%
  );
  border: 3px solid rgba(255, 255, 255, 1);
  border-radius: 28px;
  box-shadow: 0 35px 80px rgba(92, 75, 238, 0.25),
    0 20px 50px rgba(124, 58, 237, 0.15),
    inset 0 3px 10px rgba(255, 255, 255, 0.9),
    inset -5px -5px 15px rgba(180, 186, 240, 0.2);
  width: 100%;
  height: 100%;
}

.card-layer-1 {
  transform: translateZ(0px);
  z-index: 5;
}
.card-layer-2 {
  transform: translateZ(-10px) translateX(-8px);
  opacity: 0.85;
  z-index: 4;
}
.card-layer-3 {
  transform: translateZ(-20px) translateX(-16px);
  opacity: 0.65;
  z-index: 3;
}
.card-layer-4 {
  transform: translateZ(-30px) translateX(-24px);
  opacity: 0.45;
  z-index: 2;
}
.card-layer-5 {
  transform: translateZ(-40px) translateX(-32px);
  opacity: 0.25;
  z-index: 1;
}

.rainbow-edge {
  position: absolute;
  right: 15px;
  top: 22%;
  height: 56%;
  width: 12px;
  background: linear-gradient(
    to bottom,
    #fef08a 0%,
    #fde047 10%,
    #fbbf24 20%,
    #fb923c 30%,
    #f87171 40%,
    #242022 50%,
    #2563eb 60%,
    #111827 70%,
    #5c66f6 80%,
    #111827d7 90%,
    #3b82f6 100%
  );
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(85, 88, 247, 0.7);
}

/* --- Form Field Styles: Boxed Inputs (Matching the visual style) --- */
.input-wrapper {
  margin-bottom: 26px;
}
.input-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

/* Boxed input group style */
.boxed-input-group {
  display: flex;
  align-items: center;
  border: 1px solid #e5e7eb;
  background-color: #f9fafb;
  border-radius: 10px;
  padding: 4px 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.boxed-input-group:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px #111827;
  background-color: white;
}

.input-field {
  width: 100%;
  border: none !important;
  padding: 10px 0;
  font-size: 16px;
  background: transparent;
  color: #1f2937;
}
.input-field::placeholder {
  color: #9ca3af;
}
.input-field:focus {
  outline: none;
  box-shadow: none;
}

/* Select input custom styling */
select.input-field {
  cursor: pointer;
  padding-right: 30px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%236b7280' d='M7 10L2 5h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  color: #6b7280;
}

/* Phone Number Group Styling */
.phone-input-group {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}
.phone-input-group .boxed-input-group {
  flex: 1;
}
.country-code-wrapper {
  width: 90px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  border: 1px solid #e5e7eb;
  background-color: #f9fafb;
  border-radius: 10px;
  padding: 4px 8px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.country-code-wrapper:focus-within {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 1px #8b5cf6;
  background-color: white;
}
.country-code-wrapper select.input-field {
  padding-right: 0;
  padding-left: 0;
  width: 100%;
  text-align: center;
  background-position: right 0px center;
}

/* Submit Button Styling */
.submit-btn {
  background: linear-gradient(135deg, #111827 0%, #2563eb 100%);
  color: white;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 48px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 32px;
  width: 100%;
}
.submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.error-message {
  color: #ef4444;
  font-size: 12px;
  margin-top: 6px;
  display: none;
}
.error-message.show {
  display: block;
}
.grid-cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .content-wrapper {
    flex-direction: column;
  }
  .form-section,
  .device-section {
    width: 100%;
    padding: 40px 30px;
  }
  /* Mobile adjustment: Move the purple background to the bottom and make it a bottom curve */
  .purple-wave-bg {
    right: 0;
    left: 0;
    top: auto;
    bottom: -300px;
    transform: none;
    width: 100%;
    height: 600px;
    border-radius: 50% / 0 0 100% 100%;
  }
  .device-container {
    transform: scale(0.7) translate(0, 0);
  }
}

/* section after error */

/* Responsive enhancements for "Who We Are" section */
@media (max-width: 640px) {
  .container {
    margin-left: 1rem !important;
    margin-right: 1rem !important;
  }

  .container img {
    max-width: 280px;
    margin: 0 auto;
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .container {
    margin-left: 2rem !important;
    margin-right: 2rem !important;
  }

  .container img {
    max-width: 400px;
  }
}

/* tabs service section */

/* Ensure the outer container adjusts gracefully */
@media (max-width: 1024px) {
  .max-w-6xl,
  .max-w-7xl {
    padding: 0 1.5rem;
  }

  .tab-content img {
    width: 100%;
    height: auto;
  }

  .tab-content p {
    font-size: 15px;
    line-height: 1.7rem;
  }
}

/* Tablet view adjustments */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr !important; /* stack sidebar and content */
  }

  .border-r {
    border-right: none !important;
    border-bottom: 1px solid #e5e7eb; /* add bottom divider for clarity */
    margin-bottom: 1rem;
    padding-bottom: 1rem;
  }

  .col-span-1,
  .col-span-6 {
    width: 100%;
  }

  .tab-content {
    padding-left: 0 !important;
  }

  .tab-content h3 {
    text-align: center;
  }

  .tab-content .flex.justify-between {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .tab-content a {
    width: fit-content;
  }
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .tab-content h3 {
    font-size: 1rem;
  }

  .tab-content p {
    font-size: 14px;
  }

  .tab-content img {
    border-radius: 0.5rem;
  }

  .space-y-4 ul {
    gap: 1rem;
  }

  .tab-content .flex.flex-wrap {
    justify-content: center;
  }

  .tab-content span {
    padding: 0.4rem 0.7rem;
    font-size: 12px;
  }

  .tab-content .text-sm {
    font-size: 13px;
  }

  .tab-content .px-10 {
    padding: 0 !important;
  }
}

/* testimonial section */

/* Custom gradient background */
.gradient-bg {
  background: linear-gradient(135deg, #4f6fec 0%, #5b8dee 100%);
}

/* Smooth slide transitions */
.testimonial-slider {
  transition: transform 0.5s ease-in-out;
}

/* Hide scrollbar */
.overflow-x-hidden::-webkit-scrollbar {
  display: none;
}
.overflow-x-hidden {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Active dot styling */
.dot {
  transition: all 0.3s ease;
}
.dot.active {
  background-color: white;
  width: 2rem;
}

/* Arrow hover effects */
.arrow-btn {
  transition: all 0.3s ease;
}
.arrow-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* Quote icon styling */
.quote-icon {
  font-size: 3rem;
  color: rgba(79, 111, 236, 0.1);
  line-height: 1;
}

/* Custom gradient background */
.gradient-bg {
  background: linear-gradient(135deg, #4f6fec 0%, #5b8dee 100%);
}

/* Smooth slide transitions */
.testimonial-slider {
  transition: transform 0.5s ease-in-out;
}

/* Hide scrollbar */
.overflow-x-hidden::-webkit-scrollbar {
  display: none;
}
.overflow-x-hidden {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Active dot styling */
.dot {
  transition: all 0.3s ease;
}
.dot.active {
  background-color: white;
  width: 2rem;
}

/* Arrow hover effects */
.arrow-btn {
  transition: all 0.3s ease;
}
.arrow-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* Quote icon styling */
.quote-icon {
  font-size: 3rem;
  color: rgba(79, 111, 236, 0.1);
  line-height: 1;
}
