:root{
  /* Tech/Energy Theme: Deep Void + Electric Accents */
  --bg: #05050A; 
  --fg: #E0F2FE; /* Icy white */
  --muted: rgba(224, 242, 254, .65);
  --hair: rgba(224, 242, 254, .12);

  /* Electric Palette (Blue/Cyan/Yellow) */
  --b1: #0EA5E9; /* Sky Blue */
  --b2: #F59E0B; /* Amber/Electric Gold */
  
  --max: 1180px;
  --r: 26px;

  --overlay-opacity: 0.6; /* Adjust this to see more/less of the background */

  --ease: cubic-bezier(.2,.8,.2,1);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: var(--bg);
  color: var(--fg);
  overflow: hidden; 
}

/* Ambient base background - Electric/Cosmic feel */
.bg{
  position: fixed;
  inset: 0;
  z-index: -10;
  background:
    radial-gradient(1000px 600px at 70% 0%, rgba(14, 165, 233, .12), transparent 60%),
    radial-gradient(800px 600px at 10% 20%, rgba(245, 158, 11, .08), transparent 50%),
    linear-gradient(180deg, #05050A 0%, #0A0A14 100%);
  filter: saturate(1.2);
}

/* subtle grain */
.grain{
  position: fixed;
  inset: -20%;
  z-index: -9;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* Top chrome */
header{
  position: fixed;
  top: 18px; /* Floating slightly */
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  pointer-events: none;
  
  /* Entrance Animation */
  animation: slideDown 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  opacity: 0;
  transform: translateY(-20px);
}
@keyframes slideDown {
  to { opacity: 1; transform: translateY(0); }
}

.chrome{
  pointer-events: auto;
  display:flex;
  align-items:center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max);
  padding: 8px 12px;
  border-radius: 999px; /* Pill shape */
  border: 1px solid rgba(255,255,255,0.08);
  background: #080808; /* Deep black/void */
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  text-decoration:none;
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-left: 8px;
}

/* Hidden nav as per request "clear up" */
.nav{ display:none; }

.cta{
  display:flex;
  gap: 8px;
  align-items:center;
}
.btn{
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05); /* Ghost style */
  color: #e0e0e0;
  font-weight: 500;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration:none;
  transition: all .2s var(--ease);
  user-select: none;
  white-space: nowrap;
}
.btn:hover{ background: rgba(255,255,255,0.1); color: #fff; }
.btn:active{ transform: scale(.98); }

.btn.primary{
  border: none;
  /* Teal -> Gold/Amber Gradient matching reference */
  background: linear-gradient(90deg, #1d7c8a, #d4a34b); 
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.btn.primary:hover{ 
  filter: brightness(1.1); 
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.5); 
}

/* Energy Bar Styles */
.energy-container {
  flex: 1;
  margin-left: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.energy-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.energy-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08); /* Dark track */
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
}
.energy-bar {
  height: 100%;
  width: 0%; /* JS will update this */
  background: linear-gradient(90deg, 
    rgba(14, 165, 233, 0), 
    rgba(14, 165, 233, 0.8) 40%, 
    #F59E0B 80%, 
    #fff 100%
  );
  box-shadow: 0 0 10px #F59E0B, 0 0 20px rgba(14, 165, 233, 0.5);
  border-radius: 999px;
  position: relative;
  transition: width 0.1s linear;
}
/* Flickering energy animation */
.energy-bar::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; right: 0; left: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg) translateX(-150%);
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  100% { transform: skewX(-20deg) translateX(150%); }
}

.energy-value {
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff;
  width: 40px;
  text-align: right;
}

@media (min-width: 980px){
  /* .nav{ display:flex; }  Removed nav */
}

/* Slides container */
.slides{
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}
.slide{
  scroll-snap-align: start;
  min-height: 100vh;
  display:grid;
  align-items: center;
  padding: 92px 22px 46px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.wrap{
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

/* Full-bleed slide background image */
.slideBg{
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.02);
  /* Cleaner, sharper look */
  filter: saturate(1.1) brightness(0.9) contrast(1.1);
}

/* Overlay */
.overlay{
  position:absolute;
  inset:0;
  z-index: 1;
  opacity: var(--overlay-opacity);
  background:
    radial-gradient(1200px 700px at 50% 30%, rgba(5,5,10,.25), rgba(5,5,10,.85) 60%, rgba(5,5,10,1) 100%),
    linear-gradient(180deg, rgba(5,5,10,.3) 0%, rgba(5,5,10,.7) 60%, rgba(5,5,10,1) 100%);
}

/* Typography */
.kicker{
  color: var(--b1);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.headline{
  font-size: clamp(46px, 6.4vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 780;
  margin: 0;
}
.headline .grad{
  background: linear-gradient(135deg, var(--b1), var(--b2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.05em;
}

/* "Next Step" Entrance Animation */
.next-step-anim {
  display: inline-block; /* Allows transform */
  background: linear-gradient(135deg, var(--b1), var(--b2)); /* Re-apply gradient for safety if keeping .grad */
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  
  /* Start state */
  opacity: 0;
  transform: translateX(-40px); /* Start slightly left */
  animation: stepForward 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: 1s; /* Wait slightly for page load */
}

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

/* "Simple Touch" Loop Animation */
.simple-touch-anim {
  display: inline-block;
  background: linear-gradient(135deg, var(--b1), var(--b2)); 
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  
  animation: softTouchLoop 3s ease-in-out infinite;
}

@keyframes softTouchLoop {
  0%, 100% {
    transform: scale(1);
    filter: blur(0);
    opacity: 1;
  }
  50% {
    transform: scale(1.04); /* Gentle expansion/"Touch" preview */
    filter: blur(1.5px); /* Soft focus */
    opacity: 0.85; /* Slight pulse */
  }
}

/* "Impulse" Loop Animation */
.impulse-anim {
  display: inline-block;
  background: linear-gradient(135deg, var(--b1), var(--b2)); 
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  
  animation: impulsePulse 2.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) infinite;
}

@keyframes impulsePulse {
  0%, 85%, 100% {
    transform: scale(1);
    filter: brightness(1);
  }
  90% {
    transform: scale(1.15); /* Sudden jump */
    filter: brightness(1.5); /* Flash */
  }
  95% {
    transform: scale(0.95); /* Recoil */
    filter: brightness(1.2);
  }
}

/* "Speed" Hyper-Glitch Animation */
.speed-anim {
  display: inline-block;
  background: linear-gradient(135deg, var(--b1), var(--b2)); 
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  
  position: relative;
  /* Fast loop: Rev, Rev, GONE */
  animation: hyperspeed 2.4s cubic-bezier(0.1, 0.7, 0.1, 1) infinite;
}

@keyframes hyperspeed {
  0% { transform: translateX(0) skewX(0); filter: blur(0); opacity: 1; }
  
  /* Engine Revving / Jitter */
  10% { transform: translateX(-2px) skewX(-5deg); }
  20% { transform: translateX(2px) skewX(5deg); }
  30% { transform: translateX(-2px) skewX(-5deg); }
  40% { transform: translateX(2px) skewX(5deg); }

  /* VROOM - Shoot right */
  45% { 
    transform: translateX(10px) skewX(-20deg) scaleX(1.1); 
    filter: blur(1px); 
    opacity: 1;
  }
  50% { 
    transform: translateX(150%) skewX(-40deg) scaleX(2); 
    filter: blur(10px); 
    opacity: 0; 
  }

  /* Instant Reset (Unseen) */
  51% { transform: translateX(0) skewX(0); filter: blur(0); opacity: 0; }
  
  /* Fade back in */
  60% { opacity: 0; }
  75% { opacity: 1; }
  100% { opacity: 1; }
}

/* "Switch On" Flicker Animation */
.switch-on-anim {
  display: inline-block;
  background: linear-gradient(135deg, var(--b1), var(--b2)); 
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  
  /* Start dim? No, Loop it: Off -> Flicker -> ON -> Hold -> Off */
  animation: switchOnFlicker 4s linear infinite;
}

@keyframes switchOnFlicker {
  0%, 10% {
    opacity: 0.3; /* OFF / Dim */
    filter: brightness(0.5) blur(1px);
    text-shadow: none;
  }
  
  /* Flicker Sequence */
  11% { opacity: 1; filter: brightness(1.2); }
  12% { opacity: 0.3; }
  13% { opacity: 0.8; }
  14% { opacity: 0.2; }
  15% { opacity: 1; filter: brightness(1.5) blur(0); text-shadow: 0 0 20px var(--b2); }
  
  /* STABLE ON -> GROWING BRIGHTER */
  16% {
    opacity: 1;
    filter: brightness(1.1); 
    text-shadow: 0 0 30px rgba(245, 158, 11, 0.6); 
    transform: scale(1);
  }
  90% {
    opacity: 1;
    filter: brightness(1.8); /* Very Bright */
    text-shadow: 0 0 60px rgba(245, 158, 11, 1); /* Intense Glow */
    transform: scale(1.02); /* Slight swell */
  }
  
  /* Power Down */
  95%, 100% {
    opacity: 0.3;
    filter: brightness(0.5) blur(1px);
    text-shadow: none;
    transform: scale(0.98);
  }
}
.sub{
  margin-top: 18px;
  max-width: 700px;
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.65;
}

/* Pager */
.pager{
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display:flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: rgba(5,5,10,.45);
  backdrop-filter: blur(12px);
}
.p{
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(224, 242, 254, .2);
  transition: all .25s var(--ease);
  cursor: pointer;
}
.p.active{
  background: #fff;
  box-shadow: 0 0 0 8px rgba(14, 165, 233, .15);
  transform: scale(1.05);
}

/* Contact row */
.contactRow{
  display:flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  align-items: baseline; /* Align text properly */
}

/* Minimalist Email Link */
.email-link {
  font-size: 24px;
  color: #fff;
  text-decoration: none;
  position: relative;
  font-weight: 300;
  letter-spacing: 0.02em;
  padding-bottom: 2px;
  transition: color 0.3s var(--ease);
  cursor: pointer; /* Ensure it looks clickable */
}

.email-link:hover {
  color: var(--b1); /* Sky Blue glow */
  text-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
}

/* Animated Underline */
.email-link::after {
  content: '';
  position: absolute;
  left: 0; 
  bottom: 0;
  width: 100%; 
  height: 1px;
  background: linear-gradient(90deg, var(--b1), transparent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.email-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Copy Feedback Message */
.copy-feedback {
  font-size: 13px;
  color: var(--b2); /* Amber/Gold */
  margin-left: 12px;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.copy-feedback.show {
  opacity: 1;
  transform: translateX(0);
}

/* Slide backgrounds with subtle tech tints */
#s1 .slideBg{ background-image: url("./images/intelligent_core.png"); filter: brightness(0.4) saturate(1.1); } /* Intelligent Core for Intro */
#s2 .slideBg{ background-image: url("./images/intuitive_touch.png"); filter: brightness(0.4) saturate(1.1); } /* Fluecny (moved to 2) */
#s3 .slideBg{ background-image: url("./images/circuit_spark.png"); filter: brightness(0.4) saturate(1.1); } /* Tech circuit for Spark */
#s4 .slideBg{ background-image: url("./images/sports_car_start.png"); filter: brightness(0.5) saturate(0.9); } /* Sports Car for Accelerate */
#s5 .slideBg{ background-image: url("./images/holding_light.png"); filter: brightness(0.4) saturate(0.95); } /* Hands/Light for Connect */

/* Abstract Overlays */
#s1 .overlay{ background:
  radial-gradient(1000px 600px at 60% 30%, rgba(14, 165, 233, .05), rgba(5,5,10,.6) 60%, #05050A 100%),
  linear-gradient(180deg, rgba(5,5,10,.2) 0%, #05050A 100%);
}
#s3 .overlay{ background:
  radial-gradient(1000px 600px at 40% 30%, rgba(245, 158, 11, .1), rgba(5,5,10,.8) 60%, #05050A 100%),
  linear-gradient(180deg, rgba(5,5,10,.4) 0%, #05050A 100%);
}

@media (prefers-reduced-motion: reduce){
  .slides{ scroll-behavior: auto; }
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 24px;
  right: 24px; /* Moved to right */
  background-color: rgba(255, 255, 255, 0.08); /* Toned down / Glassy */
  color: #25d366; /* Green Icon */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  backdrop-filter: blur(4px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #25d366;
  color: #fff;
  border-color: #25d366;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* Contact Modal Styles */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 10, 0.8);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-content {
  width: 90%;
  max-width: 460px;
  background: #0A0A14;
  border: 1px solid var(--hair);
  border-radius: 24px;
  padding: 32px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.modal-backdrop.open .modal-content {
  transform: translateY(0) scale(1);
}
.close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s;
}
.close-btn:hover { color: #fff; }

.modal-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #fff;
}
.modal-sub {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 24px;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 16px;
}
input, textarea {
  width: 100%;
  background: rgba(224, 242, 254, 0.05);
  border: 1px solid var(--hair);
  border-radius: 12px;
  padding: 12px 16px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  transition: all 0.2s;
  outline: none;
}
input:focus, textarea:focus {
  background: rgba(224, 242, 254, 0.08);
  border-color: var(--b1);
}
.full-width {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}
