/* Custom 3D Animations and Styles for GPS Webtonic */

/* Google Ecosystem Section Styles */
.google-ecosystem-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 30%, #f8f9fa 100%);
}

.google-ecosystem-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(28, 117, 179, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(42, 125, 46, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.google-services-grid {
  position: relative;
  width: 500px;
  height: 500px;
  margin: 0 auto;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.service-icon {
  position: absolute;
  width: 90px;
  height: 90px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  border: 2px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

.service-icon i {
  font-size: 28px;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.service-icon span {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Enhanced positioning for circular layout */
.service-icon.hotel-ads {
  top: 80px;
  right: 200px;
  background: linear-gradient(135deg, #4285f4, #34a853);
  color: white;
  box-shadow: 0 15px 35px rgba(66, 133, 244, 0.3);
}

.service-icon.gmail {
  top: 180px;
  left: 80px;
  background: linear-gradient(135deg, #ea4335, #fbbc05);
  color: white;
  box-shadow: 0 15px 35px rgba(234, 67, 53, 0.3);
}

.service-icon.search {
  top: 80px;
  right: 80px;
  background: linear-gradient(135deg, #4285f4, #0f9d58);
  color: white;
  box-shadow: 0 15px 35px rgba(66, 133, 244, 0.3);
}

.service-icon.youtube {
  bottom: 180px;
  left: 80px;
  background: linear-gradient(135deg, #ff0000, #cc0000);
  color: white;
  box-shadow: 0 15px 35px rgba(255, 0, 0, 0.3);
}

.service-icon.discover {
  top: 180px;
  right: 80px;
  background: linear-gradient(135deg, #4285f4, #9c27b0);
  color: white;
  box-shadow: 0 15px 35px rgba(156, 39, 176, 0.3);
}

.service-icon.maps {
  bottom: 80px;
  right: 80px;
  background: linear-gradient(135deg, #0f9d58, #689f38);
  color: white;
  box-shadow: 0 15px 35px rgba(15, 157, 88, 0.3);
}

.service-icon.display {
  bottom: 80px;
  left: 200px;
  background: linear-gradient(135deg, #34a853, #0f9d58);
  color: white;
  box-shadow: 0 15px 35px rgba(52, 168, 83, 0.3);
}

.google-ads-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  background: linear-gradient(135deg, #1c75b3 0%, #2a7d2e 50%, #1c75b3 100%);
  color: white;
  padding: 40px;
  border-radius: 50%;
  width: 220px;
  height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 25px 50px rgba(28, 117, 179, 0.3);
  border: 3px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(15px);
  animation: centerPulse 3s ease-in-out infinite;
}

@keyframes centerPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 25px 50px rgba(28, 117, 179, 0.3);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 30px 60px rgba(28, 117, 179, 0.4);
  }
}

.google-ads-center .google-logo {
  margin-bottom: 15px;
}

.google-ads-center .google-logo img {
  width: 50px;
  height: 50px;
  filter: brightness(0) invert(1);
}

.google-ads-center p {
  font-size: 14px;
  margin: 0;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Enhanced Floating Animation */
@keyframes floating {
  0%,
  100% {
    transform: translateY(0px) rotateX(0deg) rotateY(0deg);
  }
  25% {
    transform: translateY(-15px) rotateX(8deg) rotateY(8deg);
  }
  50% {
    transform: translateY(-25px) rotateX(0deg) rotateY(15deg);
  }
  75% {
    transform: translateY(-15px) rotateX(-8deg) rotateY(8deg);
  }
}

.floating {
  animation: floating 5s ease-in-out infinite;
}

.service-icon:hover {
  transform: translateY(-15px) scale(1.15) rotateX(15deg) rotateY(15deg);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  z-index: 10;
}

.service-icon:hover i {
  transform: scale(1.1);
}

/* Sample Ads Section Styles */
.sample-ads-section {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
  overflow: hidden;
}

.sample-ads-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 30% 70%,
      rgba(28, 117, 179, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 30%,
      rgba(42, 125, 46, 0.05) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.platform-nav {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 50px;
  padding: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.platform-tab {
  border: none !important;
  border-radius: 35px !important;
  padding: 18px 35px !important;
  margin: 0 8px !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  color: #666 !important;
  background: transparent !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  position: relative !important;
  overflow: hidden !important;
}

.platform-tab::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.5s ease;
}

.platform-tab:hover::before {
  left: 100%;
}

.platform-tab:hover,
.platform-tab.active {
  background: linear-gradient(135deg, #1c75b3, #2a7d2e) !important;
  color: white !important;
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 15px 30px rgba(28, 117, 179, 0.4) !important;
}

.platform-tab i {
  margin-right: 10px;
  font-size: 18px;
}

.ad-sample-card {
  background: white;
  border-radius: 25px;
  padding: 25px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(28, 117, 179, 0.1);
}

.ad-sample-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #1c75b3, #2a7d2e, #f1d2a9);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  border-radius: 25px 25px 0 0;
}

.ad-sample-card:hover::before {
  transform: scaleX(1);
}

.ad-sample-card:hover {
  transform: translateY(-20px) rotateX(8deg) rotateY(8deg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
  border-color: #1c75b3;
}

.ad-preview {
  width: 100%;
  height: 220px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.ad-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ad-sample-card:hover .ad-preview img {
  transform: scale(1.08);
}

.ad-sample-card h5 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333;
  transition: color 0.3s ease;
}

.ad-sample-card:hover h5 {
  color: #1c75b3;
}

.ad-sample-card p {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

/* AI Services Section Styles */
.ai-services-section {
  position: relative;
  background: linear-gradient(
    135deg,
    #f8f9fa 0%,
    #e9ecef 30%,
    #f8f9fa 70%,
    #ffffff 100%
  );
  overflow: hidden;
}

.ai-services-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 80% 20%,
      rgba(28, 117, 179, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 20% 80%,
      rgba(42, 125, 46, 0.08) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.service-type-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 50px;
  padding: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.service-tab {
  border: none !important;
  border-radius: 30px !important;
  padding: 15px 30px !important;
  margin: 0 8px !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  color: #666 !important;
  background: transparent !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  position: relative !important;
}

.service-tab:hover,
.service-tab.active {
  background: linear-gradient(135deg, #1c75b3, #2a7d2e) !important;
  color: white !important;
  transform: translateY(-4px) scale(1.08) !important;
  box-shadow: 0 20px 40px rgba(28, 117, 179, 0.4) !important;
}

.ai-service-card {
  background: white;
  border-radius: 25px;
  padding: 35px 25px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(28, 117, 179, 0.1);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.ai-service-card:hover::before {
  left: 100%;
}

.ai-service-card:hover {
  transform: translateY(-20px) rotateX(12deg) rotateY(8deg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
  border-color: #1c75b3;
}

.ai-service-card .service-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 25px;
  background: linear-gradient(
    135deg,
    rgba(28, 117, 179, 0.1),
    rgba(42, 125, 46, 0.1)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.ai-service-card:hover .service-icon {
  background: linear-gradient(135deg, #1c75b3, #2a7d2e);
  color: white;
  transform: rotateY(180deg) scale(1.1);
  box-shadow: 0 15px 30px rgba(28, 117, 179, 0.3);
}

.ai-service-card .service-icon i {
  font-size: 40px;
  transition: all 0.4s ease;
}

.ai-service-card h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 18px;
  color: #333;
  transition: color 0.3s ease;
}

.ai-service-card:hover h4 {
  color: #1c75b3;
}

.ai-service-card p {
  color: #666;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* Ecosystem Features */
.ecosystem-features .feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  opacity: 0;
  transform: translateX(-30px);
  animation: slideInLeft 0.8s ease forwards;
  background: rgba(255, 255, 255, 0.8);
  padding: 15px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.ecosystem-features .feature-item:nth-child(1) {
  animation-delay: 0.2s;
}
.ecosystem-features .feature-item:nth-child(2) {
  animation-delay: 0.4s;
}
.ecosystem-features .feature-item:nth-child(3) {
  animation-delay: 0.6s;
}

.ecosystem-features .feature-item i {
  margin-right: 15px;
  font-size: 18px;
  color: #1c75b3;
}

.ecosystem-features .feature-item span {
  font-weight: 600;
  color: #333;
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Enhanced 3D Button Effects */
.main-btn {
  position: relative;
  transform-style: preserve-3d;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

.main-btn:hover {
  transform: translateY(-4px) rotateX(12deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.main-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.3),
    transparent,
    rgba(255, 255, 255, 0.1)
  );
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.main-btn:hover::before {
  opacity: 1;
}

/* Loading Animations */
.section-title {
  opacity: 0;
  transform: translateY(30px);
  animation: titleReveal 1s ease forwards;
}

@keyframes titleReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .google-services-grid {
    width: 400px;
    height: 400px;
  }

  .service-icon {
    width: 70px;
    height: 70px;
  }

  .service-icon i {
    font-size: 22px;
  }

  .google-ads-center {
    width: 180px;
    height: 180px;
    padding: 30px;
  }

  .ai-service-card {
    min-height: 250px;
    padding: 25px 20px;
  }
}

@media (max-width: 768px) {
  .google-services-grid {
    width: 300px;
    height: 300px;
  }

  .service-icon {
    width: 60px;
    height: 60px;
  }

  .service-icon i {
    font-size: 18px;
  }

  .service-icon span {
    font-size: 9px;
  }

  .google-ads-center {
    width: 140px;
    height: 140px;
    padding: 20px;
  }

  .platform-nav {
    flex-direction: column;
    padding: 20px;
  }

  .platform-tab {
    margin: 8px 0 !important;
    width: 100%;
    text-align: center;
  }

  .ai-service-card {
    min-height: 220px;
    padding: 20px 15px;
  }

  .ai-service-card .service-icon {
    width: 80px;
    height: 80px;
  }

  .ai-service-card .service-icon i {
    font-size: 32px;
  }
}

/* Performance Optimizations */
.google-services-grid,
.ad-sample-card,
.ai-service-card {
  will-change: transform;
}

/* Accessibility Improvements */
.service-icon:focus,
.platform-tab:focus,
.ai-service-card:focus {
  outline: 3px solid rgba(28, 117, 179, 0.5);
  outline-offset: 2px;
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
  .ad-sample-card,
  .ai-service-card {
    background: rgba(255, 255, 255, 0.95);
  }
}

/* Performance Metrics Section */
.performance-metrics-section {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
  overflow: hidden;
}

.performance-metrics-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 25% 75%,
      rgba(28, 117, 179, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 75% 25%,
      rgba(42, 125, 46, 0.05) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.metric-card {
  background: white;
  border-radius: 25px;
  padding: 40px 25px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(28, 117, 179, 0.1);
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #1c75b3, #2a7d2e, #f1d2a9);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  border-radius: 25px 25px 0 0;
}

.metric-card:hover::before {
  transform: scaleX(1);
}

.metric-card:hover {
  transform: translateY(-20px) rotateX(8deg) rotateY(8deg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
  border-color: #1c75b3;
}

.metric-card .metric-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 25px;
  background: linear-gradient(
    135deg,
    rgba(28, 117, 179, 0.1),
    rgba(42, 125, 46, 0.1)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.metric-card:hover .metric-icon {
  background: linear-gradient(135deg, #1c75b3, #2a7d2e);
  color: white;
  transform: rotateY(180deg) scale(1.1);
  box-shadow: 0 15px 30px rgba(28, 117, 179, 0.3);
}

.metric-card .metric-icon i {
  font-size: 40px;
  transition: all 0.4s ease;
  color: #1c75b3;
}

.metric-card:hover .metric-icon i {
  color: white;
}

.metric-card .metric-number {
  font-size: 48px;
  font-weight: 700;
  color: #1c75b3;
  margin-bottom: 15px;
  line-height: 1;
  transition: all 0.3s ease;
}

.metric-card:hover .metric-number {
  color: #2a7d2e;
}

.metric-card h5 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333;
  transition: color 0.3s ease;
}

.metric-card:hover h5 {
  color: #1c75b3;
}

.metric-card p {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  text-align: center;
}

/* Counter Animation */
.counter {
  display: inline-block;
  transition: transform 0.3s ease;
}

.metric-card:hover .counter {
  transform: scale(1.1);
}
