/* ===================================================================
   DATA SPARK MARKETING AGENCY - 3D Effects & Modern Animations
   High-End Glassmorphism, 3D Perspective, & Glow Systems
   =================================================================== */

/* 3D Perspective Container */
.perspective-container {
  perspective: 1200px;
  transform-style: preserve-3d;
}

/* 3D Tilt Card Component */
.card-3d {
  position: relative;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(20, 27, 45, 0.75) 0%, rgba(10, 14, 25, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.8), 0 0 1px 1px rgba(255, 255, 255, 0.05);
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out, border-color 0.25s ease-out;
  transform-style: preserve-3d;
  overflow: hidden;
}

.card-3d:hover {
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: 0 25px 50px -12px rgba(0, 242, 254, 0.2), 0 0 30px rgba(127, 0, 255, 0.25);
}

.card-3d-content {
  position: relative;
  z-index: 2;
  transform: translateZ(35px);
  transform-style: preserve-3d;
}

/* 3D Dynamic Glare / Sheen */
.card-3d::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: skewX(-25deg);
  transition: left 0.75s ease;
  z-index: 1;
  pointer-events: none;
}

.card-3d:hover::before {
  left: 200%;
}

/* 3D Image Showcase Container */
.image-box-3d {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  transform: translateZ(25px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-box-3d img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-3d:hover .image-box-3d img {
  transform: scale(1.08);
}

/* Floating 3D Geometric Badges */
.floating-3d {
  animation: floatElement 6s ease-in-out infinite alternate;
}

.floating-3d-delay {
  animation: floatElement 7s ease-in-out infinite alternate;
  animation-delay: -3s;
}

@keyframes floatElement {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
  100% { transform: translateY(6px) rotate(-1.5deg); }
}

/* Modern 3D CEO Showcase Card */
.ceo-card-3d {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.85) 0%, rgba(10, 15, 28, 0.95) 100%);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85), 0 0 35px rgba(0, 242, 254, 0.15);
  position: relative;
}

.ceo-card-3d::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(127, 0, 255, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.ceo-image-wrapper {
  position: relative;
  overflow: hidden;
  min-height: 480px;
}

.ceo-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s ease;
}

.ceo-card-3d:hover .ceo-image-wrapper img {
  transform: scale(1.03);
}

.ceo-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(0deg, rgba(7, 9, 14, 0.95) 0%, rgba(7, 9, 14, 0.5) 60%, transparent 100%);
  z-index: 2;
}

.ceo-details {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

/* 3D Glowing Traffic Booster Section */
.traffic-booster-container {
  background: radial-gradient(circle at 50% 20%, rgba(0, 242, 254, 0.08) 0%, rgba(127, 0, 255, 0.04) 50%, rgba(10, 14, 25, 0.95) 100%);
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: 28px;
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(0, 242, 254, 0.25), inset 0 0 40px rgba(0, 242, 254, 0.05);
  margin-top: 50px;
  margin-bottom: 50px;
}

.traffic-booster-container::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(90deg, #00f2fe, #7f00ff, #ff5e62, #00f2fe);
  background-size: 400% 400%;
  z-index: -1;
  border-radius: 30px;
  opacity: 0.3;
  animation: borderAnimation 10s linear infinite;
}

@keyframes borderAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Cyber Glow Grid Background */
.cyber-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 80%);
  pointer-events: none;
}

/* 3D Isometric Service Card */
.service-card-3d {
  background: rgba(16, 22, 36, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.service-card-3d:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: 0 20px 40px -10px rgba(0, 242, 254, 0.25), 0 0 20px rgba(127, 0, 255, 0.2);
}

.service-img-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card-3d:hover .service-img-wrap img {
  transform: scale(1.1);
}

.service-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-icon-pill {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  margin-bottom: 16px;
  font-size: 1.3rem;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

/* 3D Team Member Card */
.team-card-3d {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 22px;
  overflow: hidden;
  transition: all 0.35s ease;
  text-align: center;
}

.team-card-3d:hover {
  transform: translateY(-8px);
  border-color: rgba(127, 0, 255, 0.4);
  box-shadow: 0 20px 40px rgba(127, 0, 255, 0.25);
}

.team-avatar-wrap {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: #0d111a;
}

.team-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}

.team-card-3d:hover .team-avatar-wrap img {
  transform: scale(1.08);
}

.team-info {
  padding: 24px 20px;
}

.team-role {
  color: var(--accent-cyan);
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

/* Interactive 3D Canvas Canvas */
#particles-3d {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Glowing Stat Box */
.stat-box-3d {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 28px 24px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-box-3d:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 242, 254, 0.4);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  background: var(--grad-spark);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

@media (max-width: 900px) {
  .ceo-card-3d {
    grid-template-columns: 1fr;
  }
  .ceo-image-wrapper {
    min-height: 380px;
  }
  .ceo-details {
    padding: 32px 24px;
  }
  .traffic-booster-container {
    padding: 36px 20px;
  }
}
