/* Base */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  background: #FFDA03; /* Updated background color */
  color: #111;
  line-height: 1.7;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 60px 30px;
}

/* Hero */
.hero h1 {
  font-size: 3rem;
  margin-bottom: 8px;
}

.subtitle {
  color: #666;
  font-size: 1rem;
}

/* Hero Ending */
.hero.ending {
  text-align: center;      /* center text horizontally */
  width: 100%;         /* span across the parent conainer's width */
  margin: 120px auto;   /* auto centers the section itself */
}
.hero.ending h1 {
  font-size: 4rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Cards (Dropdown Shadow Containers) */
.card {
  background: #000000;
  padding: 28px;
  margin: 60px 0;
  border-radius: 16px;
  color: #ffffff;
  /* Ensure no shadow exists by default */
  box-shadow: none; 
  /* Smoothly animate the shadow and the lift effect */
  transition: transform 0.3s ease;
}

/* Optional: slightly lift the card when hovering to emphasize the shadow */
.card:hover {
  transform: translateY(-5px);
  box-shadow: 12px 12px 20px rgba(0, 0, 0, 0.6);
}

/* Targets paragraph and list text inside the black cards */
.card p, 
.card li,
.card .subtitle {
  color: #ffffff;
}

/* Sub Titles */
h2 {
  color: #00a2ff;
  font-size: 24px;
}

h3 {
  color: #53ffec;
  font-size: 20px;
}

/* Paragraphs */
p {
  font-size: 18px;
}

/* Intro list */
.intro ul {
  padding-left: 20px;
}

.intro li {
  margin: 6px 0;
}

/* Subheader styling */
.hero.subheader {
  text-align: center;      /* center text horizontally */
  margin: 40px 0;          /* spacing above and below */
}

.hero.subheader h2 {
  font-size: 2.5rem;
  font-family: 'Orbitron', monospace;
  font-weight: 400;      /* lighter weight */
  text-transform: uppercase;
  letter-spacing: 2px;

  /* Dynamic 3D / glowing effect */
  text-shadow:
    2px 2px 0 #007f6a,     /* dark shadow for depth */
    -2px -2px 0 #00ffd4,
    4px 4px 10px rgba(0, 168, 150, 0.7),
    -4px -4px 10px rgba(0, 168, 150, 0.7);
  
  animation: glow 2s infinite alternate;
}

/* Glowing animation */
@keyframes glow {
  0% {
    text-shadow:
      2px 2px 0 #007f6a,
      -2px -2px 0 #00ffd4,
      4px 4px 10px rgba(0, 168, 150, 0.7),
      -4px -4px 10px rgba(0, 168, 150, 0.7);
  }
  50% {
    text-shadow:
      3px 3px 0 #007f6a,
      -3px -3px 0 #00ffd4,
      6px 6px 20px rgba(0, 168, 150, 0.8),
      -6px -6px 20px rgba(0, 168, 150, 0.8);
  }
  100% {
    text-shadow:
      2px 2px 0 #007f6a,
      -2px -2px 0 #00ffd4,
      4px 4px 10px rgba(0, 168, 150, 0.7),
      -4px -4px 10px rgba(0, 168, 150, 0.7);
  }
}

/* Images in Cards */
.card img {
  display: block;
  width: 60%;       /* image fills the card width */
  min-width: 200px;
  max-width: 1400px;
  margin: 30px auto;   /* top/bottom spacing + auto horizontal centering */
  height: auto;      /* keeps aspect ratio */
}


/* Video */
.video-section.card {
  position: relative; /* Keep it as a reference */
}

.video-section iframe {
  width: 90%;
  min-width: 300px;
  aspect-ratio: 16 / 9;
  display: block;
  margin: auto;
  border-radius: 12px;
  border: none;
  /* This prevents the iframe from 'stealing' the mouse move event */
  pointer-events: auto; 
}

/* We create a 'trackpad' layer that catches mouse moves 
   but allows clicks to pass through to the video */
.video-trackpad {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none; /* Mouse moves pass through to the document */
}

/* Sketch */
.sketch-wrapper {
  margin-top: 64px;
}

.sketch-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

#fullscreenBtn {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid #111;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

#fullscreenBtn:hover {
  background: #111;
  color: white;
}

.sketch-card {
  border: 1px solid black;
  padding: 8px;
}

/* Sketch container */
#sketch-container {
  width: 100%;
  min-height: 600px;
  position: relative;  /* CRITICAL: makes buttons’ absolute positions relative to container  */
  box-sizing: border-box;
  overflow: hidden;
}

#sketch-container canvas {
  display: block;
  border-radius: 16px;
  overflow: hidden;   /* clean corners */
}

#cursor-shadow {
  width: 120px;
  height: 120px;
  background-color: rgba(0, 0, 0, 0.2); /* Your perfect black shadow */
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: background-color 0.2s ease, opacity 0.5s ease;
  opacity: 1;
}

/* Class to hide the shadow when over the video */
#cursor-shadow.hidden {
  opacity: 0;
}

/* This triggers when the mouse is over a card */
#cursor-shadow.flashlight {
  /* Increased opacity to 0.9 (90%) for "Pure White" look */
  background-color: rgba(255, 255, 255, 0.9); 
  
  /* Adding a white glow to eliminate any remaining grey appearance */
  width: 50px;
  height: 50px;
  box-shadow: 0 0 40px 30px rgba(255, 255, 255, 0.5);
  
  /* Optional: makes the light beam soft-edged */
  filter: blur(5px); 
}
