/* =================================== */
/*	CARBON FORWARD CAMPAIGN SYSTEM
/*  "The animation moves the frame"
/*  "Foundations are shaken"
/* =================================== */

/* ============================================
   LOCATION-SPECIFIC COLOR SYSTEMS
   ============================================ */

:root {
  /* Sao Paulo - Vibrant Rainforest Energy */
  --sao-paulo-primary: #00B87C;
  --sao-paulo-accent: #FFB800;
  --sao-paulo-dark: #004D40;
  --sao-paulo-gradient: linear-gradient(135deg, #00B87C 0%, #FFB800 100%);
  --sao-paulo-glow: 0 0 30px rgba(0, 184, 124, 0.3);
  
  /* Abu Dhabi - Desert Gold & Innovation */
  --abu-dhabi-primary: #C89F5D;
  --abu-dhabi-accent: #00D4AA;
  --abu-dhabi-dark: #1A2332;
  --abu-dhabi-gradient: linear-gradient(135deg, #C89F5D 0%, #00D4AA 100%);
  --abu-dhabi-glow: 0 0 30px rgba(200, 159, 93, 0.3);
  
  /* London - Financial Authority Blue */
  --london-primary: #2E5CFF; /* Updated to Electric Blue */
  --london-accent: #00E5CC;
  --london-dark: #001018;
  --london-gradient: linear-gradient(135deg, #2E5CFF 0%, #00E5CC 100%);
  --london-glow: 0 0 30px rgba(46, 92, 255, 0.3);
  
  /* Singapore - Tech Forward Purple */
  --singapore-primary: #6C5CE7;
  --singapore-accent: #00DFA2;
  --singapore-dark: #2D1B69;
  --singapore-gradient: linear-gradient(135deg, #6C5CE7 0%, #00DFA2 100%);
  --singapore-glow: 0 0 30px rgba(108, 92, 231, 0.3);
  
  /* Nairobi - Earth & Sky */
  --nairobi-primary: #E85D04;
  --nairobi-accent: #06D6A0;
  --nairobi-dark: #1B263B;
  --nairobi-gradient: linear-gradient(135deg, #E85D04 0%, #06D6A0 100%);
  --nairobi-glow: 0 0 30px rgba(232, 93, 4, 0.3);
  
  /* Sydney - Ocean & Sun */
  --sydney-primary: #0077B6;
  --sydney-accent: #FFC300;
  --sydney-dark: #023E8A;
  --sydney-gradient: linear-gradient(135deg, #0077B6 0%, #FFC300 100%);
  --sydney-glow: 0 0 30px rgba(0, 119, 182, 0.3);
  
  /* Toronto - Northern Lights */
  --toronto-primary: #2A9D8F;
  --toronto-accent: #E9C46A;
  --toronto-dark: #264653;
  --toronto-gradient: linear-gradient(135deg, #2A9D8F 0%, #E9C46A 100%);
  --toronto-glow: 0 0 30px rgba(42, 157, 143, 0.3);
}

/* ============================================
   SHAKING FOUNDATIONS ANIMATION SYSTEM
   ============================================ */

@keyframes shake-foundation {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  10% { transform: translateX(-2px) rotate(-0.5deg); }
  20% { transform: translateX(2px) rotate(0.5deg); }
  30% { transform: translateX(-2px) rotate(-0.5deg); }
  40% { transform: translateX(2px) rotate(0.5deg); }
  50% { transform: translateX(-1px) rotate(-0.25deg); }
  60% { transform: translateX(1px) rotate(0.25deg); }
  70% { transform: translateX(-1px) rotate(-0.25deg); }
  80% { transform: translateX(1px) rotate(0.25deg); }
  90% { transform: translateX(-0.5px) rotate(-0.1deg); }
}

@keyframes emerge-forward {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes kinetic-type {
  0% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}

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

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(101, 228, 163, 0.3),
                0 0 40px rgba(101, 228, 163, 0.1);
  }
  50% {
    box-shadow: 0 0 40px rgba(101, 228, 163, 0.5),
                0 0 80px rgba(101, 228, 163, 0.2);
  }
}

.cf-shake-on-scroll {
  animation: shake-foundation 0.6s ease-in-out;
}

.cf-emerge {
  animation: emerge-forward 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* ============================================
   CAMPAIGN TAGLINE SYSTEM
   ============================================ */

.cf-campaign-tagline {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  background: var(--london-gradient);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 8s ease infinite;
  text-align: center;
  margin: 2rem 0;
  padding: 1rem;
  position: relative;
}

.cf-campaign-tagline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(101, 228, 163, 0.1) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: -1;
  animation: pulse-glow 3s ease-in-out infinite;
}

.cf-campaign-tagline span {
  display: inline-block;
  animation: kinetic-type 2s ease-in-out infinite;
}

.cf-campaign-tagline span:nth-child(2) {
  animation-delay: 0.1s;
}

.cf-campaign-tagline span:nth-child(3) {
  animation-delay: 0.2s;
}

/* ============================================
   EVENT STAGE INDICATORS
   ============================================ */

.cf-event-stage {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: clamp(0.875rem, 1vw, 1rem);
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.cf-event-stage::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: stage-shine 3s infinite;
}

@keyframes stage-shine {
  0% { left: -100%; }
  100% { left: 100%; }
}

.cf-event-stage--pre {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.cf-event-stage--live {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  animation: pulse-glow 2s ease-in-out infinite;
}

.cf-event-stage--post {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
}

/* ============================================
   TUBE GRAPHICS SYSTEM
   ============================================ */

.cf-tube-container {
  position: relative;
  width: 100%;
  min-height: 400px;
  overflow: hidden;
  background: linear-gradient(135deg, #0A2640 0%, #1A3A52 100%);
}

.cf-tube {
  position: absolute;
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 60px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  animation: tube-flow 20s linear infinite;
}

.cf-tube:nth-child(1) {
  top: 10%;
  animation-delay: 0s;
}

.cf-tube:nth-child(2) {
  top: 35%;
  animation-delay: -5s;
}

.cf-tube:nth-child(3) {
  top: 60%;
  animation-delay: -10s;
}

.cf-tube:nth-child(4) {
  top: 85%;
  animation-delay: -15s;
}

@keyframes tube-flow {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

.cf-tube-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 3rem;
  white-space: nowrap;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1.25rem, 2vw, 2rem);
  color: rgba(255, 255, 255, 0.9);
}

.cf-tube-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--london-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  animation: pulse-glow 2s ease-in-out infinite;
}

/* ============================================
   DATA-DRIVEN INFOGRAPHIC BLOCKS
   ============================================ */

.cf-data-block {
  position: relative;
  padding: 3rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cf-data-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--london-gradient);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: -1;
}

.cf-data-block:hover {
  transform: translateY(-8px);
}

.cf-data-block:hover::before {
  opacity: 0.1;
}

.cf-data-number {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1;
  background: var(--london-gradient);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 5s ease infinite;
  margin-bottom: 1rem;
}

.cf-data-label {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cf-data-insight {
  margin-top: 1rem;
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* ============================================
   ACTIVATION GRAPHICS
   ============================================ */

.cf-activation-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0A2640 0%, #1A3A52 50%, #0A2640 100%);
  background-size: 400% 400%;
  animation: gradient-shift 15s ease infinite;
}

.cf-activation-bg {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: 
    repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(255, 255, 255, 0.05) 50px, rgba(255, 255, 255, 0.05) 51px),
    repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(255, 255, 255, 0.05) 50px, rgba(255, 255, 255, 0.05) 51px);
  animation: shake-foundation 20s ease-in-out infinite;
}

.cf-activation-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}

.cf-activation-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 10vw, 8rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: white;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.cf-activation-title .cf-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(100px);
  animation: emerge-forward 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.cf-activation-title .cf-word:nth-child(1) { animation-delay: 0.1s; }
.cf-activation-title .cf-word:nth-child(2) { animation-delay: 0.2s; }
.cf-activation-title .cf-word:nth-child(3) { animation-delay: 0.3s; }
.cf-activation-title .cf-word:nth-child(4) { animation-delay: 0.4s; }

.cf-activation-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 3rem;
  opacity: 0;
  animation: emerge-forward 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s forwards;
}

/* ============================================
   LOCATION-SPECIFIC VARIANTS
   ============================================ */

.location-sao-paulo {
  --location-primary: var(--sao-paulo-primary);
  --location-accent: var(--sao-paulo-accent);
  --location-gradient: var(--sao-paulo-gradient);
}

.location-abu-dhabi {
  --location-primary: var(--abu-dhabi-primary);
  --location-accent: var(--abu-dhabi-accent);
  --location-gradient: var(--abu-dhabi-gradient);
}

.location-london {
  --location-primary: var(--london-primary);
  --location-accent: var(--london-accent);
  --location-gradient: var(--london-gradient);
}

.location-singapore {
  --location-primary: var(--singapore-primary);
  --location-accent: var(--singapore-accent);
  --location-gradient: var(--singapore-gradient);
}

.location-nairobi {
  --location-primary: var(--nairobi-primary);
  --location-accent: var(--nairobi-accent);
  --location-gradient: var(--nairobi-gradient);
}

.location-sydney {
  --location-primary: var(--sydney-primary);
  --location-accent: var(--sydney-accent);
  --location-gradient: var(--sydney-gradient);
}

.location-toronto {
  --location-primary: var(--toronto-primary);
  --location-accent: var(--toronto-accent);
  --location-gradient: var(--toronto-gradient);
}

/* ============================================
   CAMPAIGN CTA BUTTONS
   ============================================ */

.cf-campaign-cta {
  display: inline-block;
  padding: 1.25rem 3rem;
  border-radius: 100px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.25rem);
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--london-gradient);
  background-size: 200% 200%;
  color: white;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: gradient-shift 5s ease infinite;
  box-shadow: 0 10px 40px rgba(10, 38, 64, 0.3);
}

.cf-campaign-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.cf-campaign-cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(10, 38, 64, 0.4);
}

.cf-campaign-cta:hover::before {
  width: 400px;
  height: 400px;
}

.cf-campaign-cta:active {
  transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE REFINEMENTS
   ============================================ */

@media (max-width: 768px) {
  .cf-tube {
    height: 80px;
  }
  
  .cf-tube-content {
    font-size: clamp(1rem, 3vw, 1.25rem);
    gap: 1rem;
    padding: 0 1.5rem;
  }
  
  .cf-tube-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .cf-data-block {
    padding: 2rem;
  }
  
  .cf-campaign-tagline {
    font-size: clamp(1.25rem, 6vw, 2rem);
  }
}
