/* ==========================================================================
   CloudNexus 3D Showcase Styles (Cinematic 3D Laptop & Automated Showcase)
   ========================================================================== */

:root {
  --showcase-bg: #050811;
  --showcase-glow-primary: rgba(37, 99, 235, 0.45);
  --showcase-glow-secondary: rgba(99, 102, 241, 0.3);
  --showcase-glow-cyan: rgba(6, 182, 212, 0.25);
  --laptop-bezel: #0d1117;
  --laptop-border: #21262d;
  --laptop-body: #161b22;
  --laptop-body-highlight: #30363d;
  --laptop-notch: #07090e;
}

.cloud-showcase-section {
  position: relative;
  background: radial-gradient(circle at 50% 35%, #0e1a38 0%, #060a16 55%, #020409 100%);
  color: #fff;
  padding: 100px 0 120px;
  overflow: hidden;
  border-radius: 24px;
  margin: 40px auto;
  box-shadow: 0 25px 80px -15px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Background Atmosphere Glows */
.cloud-showcase-section .glow-backdrop {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.6) 0%, rgba(79, 70, 229, 0.35) 45%, rgba(6, 182, 212, 0) 75%);
  filter: blur(85px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.9;
  animation: pulseGlow 7s ease-in-out infinite alternate;
}

.cloud-showcase-section .glow-bottom {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 950px;
  height: 200px;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.45) 0%, rgba(14, 165, 233, 0.2) 50%, transparent 80%);
  filter: blur(65px);
  pointer-events: none;
  z-index: 1;
}

@keyframes pulseGlow {
  0% {
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0.75;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.12);
    opacity: 0.98;
  }
}

/* Section Header */
.showcase-header {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 820px;
  margin: 0 auto 35px;
}

.showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #60a5fa;
  text-transform: uppercase;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.showcase-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 10px #22c55e;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.showcase-header h2 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.showcase-header h2 span {
  background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 50%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.showcase-header p {
  color: #94a3b8;
  font-size: 17px;
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto;
}

/* Automated Tab Navigation Progress Trackers */
.showcase-tabs-wrapper {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.showcase-tab-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  transition: all 0.35s ease;
  backdrop-filter: blur(10px);
}

.showcase-tab-btn .tab-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: #38bdf8;
  transition: width 0.1s linear;
}

.showcase-tab-btn i {
  font-size: 15px;
  color: #64748b;
  transition: color 0.3s ease;
}

.showcase-tab-btn.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.85) 0%, rgba(59, 130, 246, 0.75) 100%);
  border-color: rgba(96, 165, 250, 0.6);
  color: #ffffff;
  box-shadow: 0 8px 25px -4px rgba(37, 99, 235, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.showcase-tab-btn.active i {
  color: #ffffff;
}

/* ==========================================================================
   3D Animated Laptop (MacBook Pro Model with Automated Movement)
   ========================================================================== */

.laptop-showcase-container {
  position: relative;
  z-index: 4;
  max-width: 1080px;
  margin: 0 auto;
  perspective: 1800px;
  padding: 10px 15px;
}

/* Automated 3D Floating & Tilt Motion */
.laptop-wrapper {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  transform: rotateX(4deg) rotateY(0deg);
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  animation: laptopCinematicFloat 12s ease-in-out infinite alternate;
}

@keyframes laptopCinematicFloat {
  0% {
    transform: rotateX(4.5deg) rotateY(-3.5deg) translateY(0px) scale(1);
  }
  25% {
    transform: rotateX(1.5deg) rotateY(3.5deg) translateY(-9px) scale(1.015);
  }
  50% {
    transform: rotateX(5deg) rotateY(1.5deg) translateY(-15px) scale(1.02);
  }
  75% {
    transform: rotateX(2deg) rotateY(-4deg) translateY(-7px) scale(1.01);
  }
  100% {
    transform: rotateX(4.5deg) rotateY(-3.5deg) translateY(0px) scale(1);
  }
}

/* Screen Lid (Top Half) */
.laptop-screen-lid {
  position: relative;
  width: 88%;
  margin: 0 auto;
  background: linear-gradient(145deg, #1c2128 0%, #0d1117 100%);
  border: 2px solid #30363d;
  border-bottom: none;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  padding: 12px 12px 14px;
  box-shadow: 0 25px 70px -10px rgba(0, 0, 0, 0.9), inset 0 1px 1px rgba(255, 255, 255, 0.18);
  box-sizing: border-box;
}

/* Camera Notch */
.laptop-camera-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 16px;
  background: #06090e;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.laptop-camera-lens {
  width: 6px;
  height: 6px;
  background: radial-gradient(circle at 35% 35%, #2563eb, #0b1329);
  border-radius: 50%;
  border: 1px solid #1e293b;
  position: relative;
}

.laptop-camera-lens::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  width: 2px;
  height: 2px;
  background: #60a5fa;
  border-radius: 50%;
  opacity: 0.85;
}

.laptop-sensor {
  width: 4px;
  height: 4px;
  background: #111827;
  border-radius: 50%;
}

/* Screen Bezel & Display Viewport */
.laptop-screen-display {
  position: relative;
  background: #090d16;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.95);
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
}

/* In-Display Browser Header */
.screen-browser-bar {
  height: 38px;
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
  display: flex;
  align-items: center;
  padding: 0 16px;
  position: relative;
  z-index: 10;
}

.browser-traffic-lights {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 80px;
}

.browser-light {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.browser-light.red { background: #ef4444; box-shadow: 0 0 6px rgba(239, 68, 68, 0.4); }
.browser-light.yellow { background: #f59e0b; box-shadow: 0 0 6px rgba(245, 158, 11, 0.4); }
.browser-light.green { background: #10b981; box-shadow: 0 0 6px rgba(16, 185, 129, 0.4); }

.browser-url-pill {
  flex: 1;
  max-width: 420px;
  margin: 0 auto;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 4px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #94a3b8;
  font-size: 12px;
  font-family: monospace;
}

.browser-url-pill i {
  color: #10b981;
  font-size: 10px;
}

.browser-url-text {
  color: #e2e8f0;
  font-weight: 500;
}

.browser-url-tag {
  color: #64748b;
  transition: color 0.3s ease;
}

.browser-action-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 80px;
  justify-content: flex-end;
  color: #64748b;
  font-size: 12px;
}

/* Screen Content Area */
.screen-viewport {
  position: relative;
  flex: 1;
  overflow-y: hidden;
  overflow-x: hidden;
  background: #ffffff;
}

.screen-slide-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0);
  transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
  will-change: transform, opacity;
}

.screen-slide-item.active {
  opacity: 1;
  visibility: visible;
}

.screen-slide-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transform: translateY(0);
  transition: transform 3.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.screen-slide-item.scrolling-down img {
  transform: translateY(-80px);
}

/* Laptop Base / Bottom Chassis */
.laptop-base {
  position: relative;
  width: 100%;
  height: 24px;
  background: linear-gradient(180deg, #2d333b 0%, #1c2128 45%, #0f1318 100%);
  border-radius: 4px 4px 18px 18px;
  border: 1px solid #30363d;
  box-shadow: 0 35px 70px -15px rgba(0, 0, 0, 0.95), 0 10px 25px rgba(0, 0, 0, 0.6);
  z-index: 5;
}

/* Laptop Opening Notch / Thumb Groove */
.laptop-base-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 6px;
  background: #0d1117;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  border: 1px solid #21262d;
  border-top: none;
}

/* Laptop Table Reflection / Floor Shadow */
.laptop-floor-shadow {
  position: relative;
  width: 82%;
  height: 38px;
  margin: -10px auto 0;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.5) 0%, rgba(0, 0, 0, 0.85) 50%, transparent 80%);
  filter: blur(16px);
  z-index: 2;
  animation: shadowPulse 12s ease-in-out infinite alternate;
}

@keyframes shadowPulse {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.08); opacity: 0.95; }
  100% { transform: scale(1); opacity: 0.8; }
}

/* Showcase Bottom Call-to-Action Bar */
.showcase-footer-actions {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 45px;
  flex-wrap: wrap;
}

.showcase-feature-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  margin-top: 30px;
  color: #64748b;
  font-size: 13px;
}

.showcase-feature-tags span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.showcase-feature-tags span i {
  color: #3b82f6;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .cloud-showcase-section {
    padding: 70px 0 90px;
    margin: 20px auto;
  }
  .showcase-header h2 {
    font-size: 32px;
  }
  .laptop-screen-lid {
    width: 94%;
    padding: 8px 8px 10px;
  }
  .screen-browser-bar {
    height: 32px;
    padding: 0 10px;
  }
  .browser-url-pill {
    font-size: 11px;
    padding: 2px 10px;
  }
}

@media (max-width: 576px) {
  .showcase-header h2 {
    font-size: 26px;
  }
  .showcase-header p {
    font-size: 14px;
  }
  .showcase-tabs-wrapper {
    gap: 6px;
  }
  .showcase-tab-btn {
    padding: 8px 14px;
    font-size: 12px;
  }
  .laptop-screen-lid {
    width: 98%;
    padding: 6px 6px 8px;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
  }
  .laptop-camera-notch {
    width: 80px;
    height: 12px;
  }
  .screen-browser-bar {
    display: none;
  }
  .showcase-feature-tags {
    flex-direction: column;
    gap: 10px;
  }
}
