/* ==========================================================================
   Corporate Event Services - Ultra-Luxury Storytelling Timeline
   Awwwards / Apple / Stripe / Framer Inspired Design System
   ========================================================================== */

:root {
  --ces-bg-dark: #0B0B0B;
  --ces-bg-card: rgba(18, 18, 22, 0.65);
  --ces-bg-glass: rgba(25, 25, 32, 0.45);
  --ces-gold-primary: #D4A139;
  --ces-gold-light: #F7E1A1;
  --ces-gold-dark: #996E1E;
  --ces-orange-warm: #DF643B;
  --ces-orange-glow: rgba(223, 100, 59, 0.35);
  --ces-gold-glow: rgba(212, 161, 57, 0.3);
  --ces-text-white: #FFFFFF;
  --ces-text-muted: #A0A0B2;
  --ces-text-dim: #6E6E82;
  --ces-border-glass: rgba(212, 161, 57, 0.18);
  --ces-font-heading: 'Syne', 'Outfit', 'Inter', -apple-system, sans-serif;
  --ces-font-body: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
}

.ces-section {
  position: relative;
  background-color: var(--ces-bg-dark);
  color: var(--ces-text-white);
  padding: 140px 0 0px; /** Adjusted top padding for better spacing **/
  overflow: hidden;
  font-family: var(--ces-font-body);
}

/* Background Particle Canvas */
.ces-particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
}

/* Ambient Glow Orbs */
.ces-ambient-glow {
  position: absolute;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
  animation: cesOrbPulse 12s ease-in-out infinite alternate;
}

.ces-glow-1 {
  top: 5%;
  left: -100px;
  background: radial-gradient(circle, var(--ces-gold-primary) 0%, transparent 70%);
}

.ces-glow-2 {
  top: 45%;
  right: -150px;
  background: radial-gradient(circle, var(--ces-orange-warm) 0%, transparent 70%);
}

.ces-glow-3 {
  bottom: 10%;
  left: 20%;
  background: radial-gradient(circle, var(--ces-gold-primary) 0%, transparent 70%);
}

@keyframes cesOrbPulse {
  0% { transform: scale(1) translate(0, 0); opacity: 0.12; }
  50% { transform: scale(1.15) translate(30px, -20px); opacity: 0.22; }
  100% { transform: scale(0.95) translate(-20px, 30px); opacity: 0.15; }
}

/* Header Container */
.ces-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.ces-header {
  text-align: center;
  max-width: 920px;
  margin: 0 auto 100px;
}

.ces-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 22px;
  border-radius: 100px;
  background: rgba(212, 161, 57, 0.08);
  border: 1px solid rgba(212, 161, 57, 0.3);
  color: var(--ces-gold-light);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(212, 161, 57, 0.15);
}

.ces-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ces-gold-primary);
  box-shadow: 0 0 10px var(--ces-gold-primary);
  animation: cesDotBlink 2s infinite;
}

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

.ces-title-main {
  font-family: var(--ces-font-heading);
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ces-text-white);
  margin-bottom: 12px;
}

.ces-title-sub {
  font-family: var(--ces-font-heading);
  font-size: clamp(1.3rem, 2.8vw, 2.2rem);
  font-weight: 600;
  background: linear-gradient(135deg, #FFFFFF 0%, var(--ces-gold-light) 50%, var(--ces-orange-warm) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
}

/* Animated Golden Gradient Line */
.ces-title-line-wrap {
  width: 200px;
  height: 3px;
  margin: 0 auto 40px;
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.ces-title-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--ces-gold-primary), var(--ces-orange-warm), transparent);
  animation: cesLineSweep 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes cesLineSweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Glass Container for Introduction with scroll line fade */
.ces-intro-glass {
  background: rgba(18, 18, 22, 0.55);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(212, 161, 57, 0.2);
  border-radius: 24px;
  padding: 40px 48px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ces-intro-line {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #D1D1DF;
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.ces-intro-line:last-child {
  margin-bottom: 0;
}

.ces-intro-line.ces-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Interactive Vertical Timeline / Journey
   ========================================================================== */

.ces-timeline-wrapper {
  position: relative;
  margin: 80px 0 120px;
  padding: 40px 0;
}

/* Central Glowing Timeline Line */
.ces-timeline-axis {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.08);
  z-index: 1;
}

.ces-timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--ces-gold-primary) 0%, var(--ces-orange-warm) 50%, var(--ces-gold-light) 100%);
  box-shadow: 0 0 15px var(--ces-gold-primary), 0 0 30px var(--ces-orange-warm);
  transition: height 0.1s linear;
}

/* Traveling Light Beam down the timeline */
.ces-timeline-pulse {
  position: absolute;
  top: 0;
  left: -3px;
  width: 8px;
  height: 120px;
  background: linear-gradient(180deg, transparent, var(--ces-gold-light), #FFFFFF, transparent);
  border-radius: 4px;
  filter: drop-shadow(0 0 10px #FFFFFF);
  animation: cesBeamTravel 6s linear infinite;
  opacity: 0.9;
}

@keyframes cesBeamTravel {
  0% { top: -120px; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Milestone Content Blocks (Alternating) */
.ces-milestone {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 120px;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 3;
}

.ces-milestone.ces-visible {
  opacity: 1;
  transform: translateY(0);
}

.ces-milestone-left {
  justify-content: flex-start;
}

.ces-milestone-right {
  justify-content: flex-end;
}

/* Node in center */
.ces-milestone-node {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #121217;
  border: 2px solid var(--ces-gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ces-font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ces-gold-light);
  z-index: 5;
  box-shadow: 0 0 20px rgba(212, 161, 57, 0.4), inset 0 0 10px rgba(212, 161, 57, 0.2);
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.ces-milestone:hover .ces-milestone-node {
  transform: translate(-50%, -50%) scale(1.2);
  border-color: var(--ces-orange-warm);
  box-shadow: 0 0 35px var(--ces-orange-warm), inset 0 0 15px var(--ces-gold-light);
}

.ces-milestone-node-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid var(--ces-gold-primary);
  animation: cesNodePing 2.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes cesNodePing {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Horizontal Connecting Line from Node to Card */
.ces-connecting-line {
  position: absolute;
  top: 50%;
  height: 2px;
  z-index: 2;
  width: calc(50% - 40px);
  pointer-events: none;
}

.ces-milestone-left .ces-connecting-line {
  right: 50%;
  background: linear-gradient(270deg, var(--ces-gold-primary), rgba(212, 161, 57, 0.1));
}

.ces-milestone-right .ces-connecting-line {
  left: 50%;
  background: linear-gradient(90deg, var(--ces-gold-primary), rgba(212, 161, 57, 0.1));
}

/* Milestone Content Card */
.ces-card-wrap {
  width: 45%;
  perspective: 1000px;
}

.ces-card {
  position: relative;
  background: rgba(16, 16, 22, 0.65);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--ces-border-glass);
  border-radius: 28px;
  padding: 44px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.1s ease-out, border-color 0.4s ease, box-shadow 0.4s ease;
  transform-style: preserve-3d;
  overflow: hidden;
}

/* Animated Gradient Border Overlay */
.ces-card-border-glow {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(212, 161, 57, 0.4), transparent 40%, rgba(223, 100, 59, 0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.4s ease;
}

.ces-card:hover .ces-card-border-glow {
  opacity: 1;
  background: linear-gradient(135deg, var(--ces-gold-light), var(--ces-orange-warm), var(--ces-gold-primary));
}

.ces-card:hover {
  border-color: rgba(212, 161, 57, 0.4);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 161, 57, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Floating Background Shapes inside card */
.ces-card-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
  z-index: 0;
  opacity: 0.15;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.ces-shape-1 {
  width: 140px;
  height: 140px;
  top: -20px;
  right: -20px;
  background: var(--ces-gold-primary);
}

.ces-shape-2 {
  width: 120px;
  height: 120px;
  bottom: -30px;
  left: 20%;
  background: var(--ces-orange-warm);
}

.ces-card:hover .ces-card-shape {
  opacity: 0.35;
  transform: scale(1.2);
}

/* Card Content Layout */
.ces-card-body {
  position: relative;
  z-index: 2;
}

/* Icon Wrap */
.ces-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(212, 161, 57, 0.08);
  border: 1px solid rgba(212, 161, 57, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  animation: cesIconFloat 5s ease-in-out infinite alternate;
  backdrop-filter: blur(10px);
}

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

.ces-icon-svg {
  width: 36px;
  height: 36px;
  stroke: var(--ces-gold-light);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(212, 161, 57, 0.5));
  transition: transform 0.4s ease, stroke 0.4s ease;
}

.ces-card:hover .ces-icon-svg {
  transform: scale(1.1) rotate(5deg);
  stroke: #FFFFFF;
}

/* Card Titles & Text */
.ces-card-number {
  font-family: var(--ces-font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ces-orange-warm);
  margin-bottom: 8px;
}

.ces-card-title {
  font-family: var(--ces-font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ces-text-white);
  margin-bottom: 16px;
  line-height: 1.25;
  transition: color 0.3s ease;
}

.ces-card:hover .ces-card-title {
  color: var(--ces-gold-light);
}

.ces-card-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ces-text-muted);
  margin-bottom: 24px;
}

.ces-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ces-tag {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--ces-text-muted);
  transition: all 0.3s ease;
}

.ces-card:hover .ces-tag {
  background: rgba(212, 161, 57, 0.1);
  border-color: rgba(212, 161, 57, 0.25);
  color: var(--ces-gold-light);
}

/* ==========================================================================
   Cinematic Transitions Between Milestones
   ========================================================================== */

.ces-cinematic-divider {
  position: relative;
  height: 140px;
  margin: -40px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.ces-light-streak {
  position: absolute;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(212, 161, 57, 0.4) 30%, rgba(223, 100, 59, 0.6) 50%, rgba(212, 161, 57, 0.4) 70%, transparent 100%);
  filter: drop-shadow(0 0 12px var(--ces-gold-primary));
  animation: cesStreakShimmer 4s ease-in-out infinite alternate;
}

@keyframes cesStreakShimmer {
  0% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 0.8; transform: scaleY(2); }
  100% { opacity: 0.4; transform: scaleY(1); }
}

.ces-floating-geom {
  position: absolute;
  border: 1px solid rgba(212, 161, 57, 0.2);
  background: rgba(212, 161, 57, 0.03);
  backdrop-filter: blur(4px);
  border-radius: 8px;
  animation: cesGeomFloat 8s ease-in-out infinite alternate;
}

.ces-geom-1 {
  width: 32px;
  height: 32px;
  left: 20%;
  transform: rotate(45deg);
}

.ces-geom-2 {
  width: 24px;
  height: 24px;
  right: 22%;
  transform: rotate(15deg);
  animation-delay: -3s;
}

@keyframes cesGeomFloat {
  0% { transform: translateY(-15px) rotate(0deg); opacity: 0.4; }
  100% { transform: translateY(15px) rotate(90deg); opacity: 0.8; }
}

/* ==========================================================================
   Full-Width Luxury CTA Section
   ========================================================================== */

.ces-cta-wrap {
  margin-top: 140px;
  position: relative;
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(20, 20, 26, 0.9) 0%, rgba(10, 10, 14, 0.95) 100%);
  border: 1px solid rgba(212, 161, 57, 0.3);
  padding: 80px 40px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.ces-cta-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(212, 161, 57, 0.2) 0%, rgba(223, 100, 59, 0.15) 40%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  animation: cesCtaPulse 6s ease-in-out infinite alternate;
}

@keyframes cesCtaPulse {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.9; }
}

.ces-cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.ces-cta-title {
  font-family: var(--ces-font-heading);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  color: var(--ces-text-white);
  line-height: 1.2;
  margin-bottom: 24px;
}

.ces-cta-desc {
  font-size: 1.15rem;
  color: var(--ces-text-muted);
  margin-bottom: 44px;
  line-height: 1.7;
}

/* Luxury Animated Button with Magnetic / Sweep / Liquid Glow */
.ces-btn-magnetic {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 20px 48px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--ces-gold-primary) 0%, #B88322 100%);
  color: #0B0B0B;
  font-family: var(--ces-font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(212, 161, 57, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  cursor: pointer;
  border: none;
}

.ces-btn-magnetic:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 25px 50px rgba(212, 161, 57, 0.5), 0 0 30px rgba(223, 100, 59, 0.4);
  color: #000;
  text-decoration: none;
}

.ces-btn-sweep {
  position: absolute;
  top: 0;
  left: -100%;
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-25deg);
  transition: left 0.75s ease;
}

.ces-btn-magnetic:hover .ces-btn-sweep {
  left: 140%;
}

.ces-btn-arrow {
  width: 20px;
  height: 20px;
  stroke: #0B0B0B;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s ease;
}

.ces-btn-magnetic:hover .ces-btn-arrow {
  transform: translateX(6px);
}

/* Responsive Layout Adjustments */
@media (max-width: 991px) {
  .ces-timeline-axis {
    left: 28px;
    transform: none;
  }
  
  .ces-timeline-pulse {
    left: -3px;
  }

  .ces-milestone {
    margin-bottom: 70px;
  }

  .ces-milestone-node {
    left: 28px;
    top: 36px;
    transform: translate(-50%, 0);
  }

  .ces-milestone:hover .ces-milestone-node {
    transform: translate(-50%, 0) scale(1.15);
  }

  .ces-card-wrap {
    width: calc(100% - 68px);
    margin-left: 68px !important;
  }

  .ces-connecting-line {
    left: 28px !important;
    right: auto !important;
    width: 40px !important;
    top: 56px !important;
    background: linear-gradient(90deg, var(--ces-gold-primary), transparent) !important;
  }

  .ces-card {
    padding: 32px 24px;
  }

  .ces-intro-glass {
    padding: 28px 24px;
  }
}

@media (max-width: 576px) {
  .ces-section {
    padding: 90px 0 100px;
  }

  .ces-header {
    margin-bottom: 60px;
  }

  .ces-card-title {
    font-size: 1.4rem;
  }

  .ces-cta-wrap {
    padding: 50px 20px;
    border-radius: 24px;
  }

  .ces-btn-magnetic {
    padding: 16px 32px;
    font-size: 0.98rem;
    width: 100%;
    justify-content: center;
  }
}
