/* Unified Background for Services, Process, and Contact Sections */
#services, #process, #contact {
  background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%) !important;
  position: relative;
  overflow: hidden;
  margin: 0 !important;
  padding: 80px 0 !important;
}

/* Override section alt backgrounds */
.section.alt {
  background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%) !important;
  margin: 0 !important;
  padding: 80px 0 !important;
}

/* Override ALL section backgrounds */
.section {
  background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%) !important;
}

/* Override specific section backgrounds */
#services.section {
  background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%) !important;
}

#contact.section.alt {
  background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%) !important;
}

/* Override all existing padding and margin styles */
section#services, section#process, section#contact {
  padding: 80px 0 !important;
  margin: 0 !important;
  scroll-margin-top: 0 !important;
}

@media (max-width: 768px) { 
  section#services, section#process, section#contact { 
    padding: 60px 0 !important; 
    margin: 0 !important;
    scroll-margin-top: 0 !important;
  } 
}

@media (max-width: 480px) { 
  section#services, section#process, section#contact { 
    padding: 40px 0 !important; 
    margin: 0 !important;
    scroll-margin-top: 0 !important;
  } 
}

/* Override process section specific styles */
section#process {
  padding-top: 80px !important;
  padding-bottom: 80px !important;
  margin: 0 !important;
}

@media (max-width: 768px) {
  section#process { 
    padding-top: 60px !important; 
    padding-bottom: 60px !important;
    margin: 0 !important;
  }
}

@media (max-width: 480px) {
  section#process { 
    padding-top: 40px !important; 
    padding-bottom: 40px !important;
    margin: 0 !important;
  }
}

/* Override section alt decorations */
.section.alt::before, .section.alt::after {
  display: none !important;
}

#services.section::before, #services.section::after {
  display: none !important;
}

#contact.section.alt::before {
  display: none !important;
}

#services::before, #process::before, #contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.1) 0%, transparent 60%),
    radial-gradient(circle at 85% 75%, rgba(255, 255, 255, 0.08) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
}

#services .container, #process .container, #contact .contact-3d-container {
  position: relative;
  z-index: 2;
}

/* Update text colors for unified background */
#services .section-title, #process .section-title, #contact .contact-3d-title,
.section-title, h2.section-title, h2, h1, h3 {
  color: #ffffff !important;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

#services .section-lead, #process .section-subtitle, #contact .contact-3d-description {
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Force all headings in these sections to be white */
#services h2, #process h2, #contact h2,
#services h1, #process h1, #contact h1,
#services h3, #process h3, #contact h3,
#services .section-title, #process .section-title, #contact .section-title,
#services .contact-3d-title, #process .contact-3d-title, #contact .contact-3d-title {
  color: #ffffff !important;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

/* Update service cards for blue background */
#services .service-tile {
  background: linear-gradient(165deg, rgba(13, 71, 161, 0.9), rgba(21, 101, 192, 0.85)) !important;
  border: 1px solid rgba(66, 165, 245, 0.45) !important;
  box-shadow: 0 25px 60px rgba(0, 31, 94, 0.45) !important;
}

#services .service-tile:hover {
  box-shadow: 0 45px 80px rgba(9, 16, 36, 0.65) !important;
  border-color: rgba(66, 165, 245, 0.65) !important;
}

#services .service-title, #services .service-category {
  color: #f6fbff !important;
  text-shadow: 0 6px 15px rgba(0, 0, 0, 0.35);
}

#services .service-summary {
  color: rgba(235, 245, 255, 0.92) !important;
}

/* New 3D Contact Section Styles */
.contact-3d-section {
  min-height: 100vh;
  background: transparent; /* Remove individual background */
  position: relative;
  overflow: hidden;
  perspective: 1500px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 80px 0 !important;
}

/* 3D Background Elements */
.contact-3d-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.floating-3d-element {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: float3d 20s ease-in-out infinite;
}

.floating-3d-element:nth-child(1) {
  width: 200px;
  height: 200px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
  transform: rotateX(45deg) rotateZ(45deg);
}

.floating-3d-element:nth-child(2) {
  width: 150px;
  height: 150px;
  top: 70%;
  right: 10%;
  animation-delay: 3s;
  transform: rotateY(45deg) rotateZ(45deg);
}

.floating-3d-element:nth-child(3) {
  width: 100px;
  height: 100px;
  top: 40%;
  left: 80%;
  animation-delay: 6s;
  transform: rotateX(45deg) rotateY(45deg);
}

.floating-3d-element:nth-child(4) {
  width: 180px;
  height: 180px;
  top: 80%;
  left: 40%;
  animation-delay: 9s;
  transform: rotateZ(45deg);
}

@keyframes float3d {
  0%, 100% {
    transform: 
      translateZ(0) translateY(0) translateX(0)
      rotateX(45deg) rotateY(0deg) rotateZ(45deg);
  }
  25% {
    transform: 
      translateZ(100px) translateY(-30px) translateX(20px)
      rotateX(50deg) rotateY(90deg) rotateZ(45deg);
  }
  50% {
    transform: 
      translateZ(150px) translateY(-50px) translateX(-30px)
      rotateX(45deg) rotateY(180deg) rotateZ(45deg);
  }
  75% {
    transform: 
      translateZ(100px) translateY(-30px) translateX(20px)
      rotateX(40deg) rotateY(270deg) rotateZ(45deg);
  }
}

/* Main 3D Container */
.contact-3d-container {
  position: relative;
  z-index: 10;
  width: 90%;
  max-width: 1200px;
  transform-style: preserve-3d;
  animation: containerFloat 8s ease-in-out infinite;
}

@keyframes containerFloat {
  0%, 100% {
    transform: translateY(0) rotateX(0deg);
  }
  50% {
    transform: translateY(-20px) rotateX(2deg);
  }
}

/* 3D Contact Layout: Info Left, Map Right */
.contact-3d-layout {
  display: flex;
  gap: 40px;
  align-items: stretch;
  margin-bottom: 50px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.contact-3d-left {
  flex: 1;
  min-width: 0;
}

.contact-3d-right {
  flex: 1;
  min-width: 0;
}

/* 3D Contact Info Layout */
.contact-3d-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}

.contact-3d-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(165deg, rgba(7, 54, 122, 0.9), rgba(4, 27, 63, 0.85));
  border-radius: 28px;
  border: 1px solid rgba(91, 165, 255, 0.45);
  box-shadow: 0 25px 60px rgba(0, 31, 94, 0.45);
  padding: 25px;
  position: relative;
  transform-style: preserve-3d;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.contact-3d-item:hover {
  transform: translateZ(30px) rotateX(-2deg) scale(1.02);
  box-shadow: 0 45px 80px rgba(9, 16, 36, 0.65);
  border-color: rgba(102, 211, 255, 0.65);
}

.contact-3d-icon-small {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #1976d2, #42a5f5);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateZ(20px);
  flex-shrink: 0;
}

.contact-3d-item:hover .contact-3d-icon-small {
  transform: translateZ(40px) rotateY(360deg) scale(1.1);
}

.contact-3d-icon-small i {
  font-size: 24px;
  color: white;
  transform: translateZ(10px);
}

.contact-3d-details {
  flex: 1;
  transform: translateZ(10px);
  transition: transform 0.6s ease;
}

.contact-3d-item:hover .contact-3d-details {
  transform: translateZ(25px);
}

.contact-3d-label {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #f6fbff;
  margin-bottom: 8px;
  transform: translateZ(5px);
  text-shadow: 0 6px 15px rgba(0, 0, 0, 0.35);
}

.contact-3d-number,
.contact-3d-email,
.contact-3d-hours {
  display: block;
  font-size: 16px;
  color: rgba(235, 245, 255, 0.92);
  margin-bottom: 12px;
  text-decoration: none;
  transform: translateZ(3px);
}

.contact-3d-number-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  transform: translateZ(4px);
}

.contact-3d-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #1976d2, #42a5f5);
  box-shadow: 0 10px 25px rgba(33, 150, 243, 0.35);
  color: #fff;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.35s ease;
  position: relative;
  overflow: hidden;
  transform: translateZ(6px);
}

.contact-3d-copy::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.45), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.contact-3d-copy:hover {
  transform: translateZ(12px) scale(1.05);
  box-shadow: 0 16px 35px rgba(25, 118, 210, 0.45);
}

.contact-3d-copy:hover::before {
  opacity: 1;
}


.copy-icon-stack {
  position: relative;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.copy-icon-stack svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.copy-icon-success {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.85);
}

.contact-3d-copy.copied {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  box-shadow: 0 16px 32px rgba(39, 174, 96, 0.45);
}

.contact-3d-copy.copied::before {
  opacity: 1;
}

.contact-3d-copy.copied .copy-icon-default {
  opacity: 0;
  transform: scale(0.9);
}

.contact-3d-copy.copied .copy-icon-success {
  opacity: 1;
  transform: scale(1);
}

.contact-3d-number:hover,
.contact-3d-email:hover {
  color: #1976d2;
}

.contact-3d-btn {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(135deg, #1976d2, #42a5f5);
  color: white;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.4s ease;
  transform: translateZ(5px);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.contact-3d-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.contact-3d-btn:hover {
  transform: translateZ(15px) scale(1.05);
  box-shadow: 0 10px 30px rgba(25, 118, 210, 0.4);
}

.contact-3d-btn:hover::before {
  width: 100%;
  height: 100%;
}

/* 3D Map Section */
.contact-3d-map {
  background: linear-gradient(165deg, rgba(7, 54, 122, 0.9), rgba(4, 27, 63, 0.85));
  backdrop-filter: blur(20px);
  border-radius: 28px;
  border: 1px solid rgba(91, 165, 255, 0.45);
  box-shadow: 0 25px 60px rgba(0, 31, 94, 0.45);
  padding: 30px;
  position: relative;
  transform-style: preserve-3d;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.contact-3d-map:hover {
  transform: translateZ(30px) rotateX(-2deg) scale(1.02);
  box-shadow: 0 45px 80px rgba(9, 16, 36, 0.65);
  border-color: rgba(102, 211, 255, 0.65);
}

.contact-3d-map-title {
  font-size: 24px;
  font-weight: 700;
  color: #f6fbff;
  margin-bottom: 10px;
  transform: translateZ(10px);
  text-shadow: 0 6px 15px rgba(0, 0, 0, 0.35);
}

.contact-3d-map-subtitle {
  font-size: 16px;
  color: rgba(235, 245, 255, 0.92);
  margin-bottom: 20px;
  transform: translateZ(5px);
}

.contact-3d-map-container {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transform: translateZ(15px);
  transition: transform 0.6s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-3d-map:hover .contact-3d-map-container {
  transform: translateZ(25px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.contact-3d-map-container iframe {
  width: 100%;
  height: 300px;
  border: none;
  transform: translateZ(0);
}

.contact-3d-address {
  margin-top: 20px;
  padding: 20px;
  background: rgba(91, 165, 255, 0.1);
  border-radius: 15px;
  transform: translateZ(8px);
  transition: transform 0.6s ease;
}

.contact-3d-map:hover .contact-3d-address {
  transform: translateZ(18px);
}

.contact-3d-address-text {
  display: flex;
  align-items: center;
  gap: 15px;
  color: rgba(235, 245, 255, 0.92);
  font-size: 15px;
  line-height: 1.6;
}

.contact-3d-address-text i {
  color: #64cbff;
  font-size: 20px;
  transform: translateZ(5px);
}

/* Section Header */
.contact-3d-header {
  text-align: center;
  margin-bottom: 60px;
  transform-style: preserve-3d;
  animation: headerFloat 6s ease-in-out infinite;
}

@keyframes headerFloat {
  0%, 100% {
    transform: translateY(0) translateZ(0);
  }
  50% {
    transform: translateY(-15px) translateZ(20px);
  }
}

.contact-3d-title {
  font-size: 48px;
  font-weight: 800;
  color: white;
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transform: translateZ(30px);
}

.contact-3d-description {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transform: translateZ(15px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-3d-section {
    perspective: 1000px;
    min-height: auto;
    padding: 40px 0;
  }
  
  .contact-3d-layout {
    flex-direction: column;
    gap: 30px;
  }
  
  .contact-3d-info {
    gap: 15px;
  }
  
  .contact-3d-item {
    padding: 20px;
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .contact-3d-icon-small {
    width: 50px;
    height: 50px;
  }
  
  .contact-3d-icon-small i {
    font-size: 20px;
  }
  
  .contact-3d-title {
    font-size: 32px;
  }
  
  .contact-3d-description {
    font-size: 18px;
  }
  
  .contact-3d-item:hover {
    transform: translateZ(20px) scale(1.02);
  }
  
  .contact-3d-map:hover {
    transform: translateZ(15px) scale(1.01);
  }
  
  .floating-3d-element {
    display: none;
  }
  
  .contact-3d-label {
    font-size: 16px;
  }
  
  .contact-3d-number,
  .contact-3d-email,
  .contact-3d-hours {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .contact-3d-title {
    font-size: 28px;
  }
  
  .contact-3d-description {
    font-size: 16px;
  }
  
  .contact-3d-layout {
    gap: 20px;
  }
  
  .contact-3d-item {
    padding: 15px;
    gap: 12px;
  }
  
  .contact-3d-item:hover {
    transform: translateZ(10px);
  }
  
  .contact-3d-map:hover {
    transform: translateZ(8px);
  }
  
  .contact-3d-info {
    gap: 12px;
  }
  
  .contact-3d-icon-small {
    width: 45px;
    height: 45px;
  }
  
  .contact-3d-icon-small i {
    font-size: 18px;
  }
  
  .contact-3d-label {
    font-size: 15px;
  }
  
  .contact-3d-number,
  .contact-3d-email,
  .contact-3d-hours {
    font-size: 14px;
  }
  
  .contact-3d-btn {
    font-size: 13px;
    padding: 8px 16px;
  }
}
