* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', sans-serif;
  color: #fff;
  background: radial-gradient(circle at top left, #0a0a0a, #3b2e2b, #001f3f);
  line-height: 1.6;
}

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(59, 46, 43, 0.4), rgba(0, 31, 63, 0.5));
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-text {
  position: relative;
  text-align: center;
  color: white;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 1rem;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.hero-text p {
  font-size: 1.2rem;
}

.cursor {
  display: inline-block;
  animation: blink 1s infinite;
  color: cyan;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  font-size: 1.5rem;
  background-color: rgba(0, 255, 255, 0.2);
  color: #fff;
  border: 2px solid cyan;
  padding: 10px 14px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  backdrop-filter: blur(6px);
}

#backToTop:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px cyan;
}

main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

section {
  padding: 4rem 1rem;
  max-width: 960px;
  margin: 0 auto;
}

section + section {
  margin-top: 3rem;
}

#graph {
  width: 100%;
}

.responsive-svg {
  width: 100%;
  height: auto;
  display: block;
}

.fancy-graph {
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.2),
              0 0 60px rgba(0, 255, 255, 0.1),
              0 0 90px rgba(0, 255, 255, 0.05);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.05);
  animation: pulseGlow 3s ease-in-out infinite;
}

.glow-node {
  stroke: cyan;
  stroke-width: 2;
  filter: drop-shadow(0 0 6px cyan);
  animation: pulseNode 2s infinite ease-in-out;
}

@keyframes pulseNode {
  0%, 100% { r: 5; opacity: 1; }
  50% { r: 6; opacity: 0.8; }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(0,255,255,0.2); }
  50% { box-shadow: 0 0 40px rgba(0,255,255,0.4); }
}

#stock-panel {
  padding: 3rem 1rem;
  background: rgba(0, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.1);
  margin-top: 3rem;
  overflow: hidden;
}

#stock-scroll-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
}

#stock-scroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.2rem;
  animation: scroll-loop 60s linear infinite;
  width: fit-content;
}

.stock-card {
  flex: 0 0 auto;
  background: rgba(0, 255, 255, 0.08);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 12px;
  padding: 1rem;
  min-width: 140px;
  text-align: center;
  font-size: 0.9rem;
  color: white;
  box-shadow: 0 0 10px rgba(0,255,255,0.1);
}

.stock-card .symbol {
  font-weight: bold;
  font-size: 1.1rem;
  color: cyan;
}

.stock-card .price {
  font-size: 1.2rem;
  color: #fff;
}

.stock-card .change.up {
  color: #00ff7f;
}

.stock-card .change.down {
  color: #ff4d4d;
}

@keyframes scroll-loop {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes pulse-up {
  0%   { background-color: rgba(0, 255, 0, 0.1); }
  100% { background-color: transparent; }
}

@keyframes pulse-down {
  0%   { background-color: rgba(255, 0, 0, 0.1); }
  100% { background-color: transparent; }
}

.pulse-up {
  animation: pulse-up 1s ease;
}

.pulse-down {
  animation: pulse-down 1s ease;
}

.video-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 4rem auto;
  max-width: 1200px;
  padding: 2rem 1rem;
}

.video-container {
  flex: 1 1 45%;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 0 40px rgba(0, 255, 255, 0.2);
}

.video-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background: radial-gradient(circle, rgba(0, 255, 255, 0.15), transparent 70%);
  filter: blur(40px);
  z-index: 0;
}

.video-container img,
.video-container video {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.3);
  box-shadow:
    0 0 10px rgba(0, 255, 255, 0.6),
    0 0 30px rgba(0, 255, 255, 0.4),
    0 0 60px rgba(0, 255, 255, 0.2);
  transition: box-shadow 0.3s ease;
}

.video-container img:hover {
  box-shadow:
    0 0 20px rgba(0, 255, 255, 0.7),
    0 0 40px rgba(0, 255, 255, 0.5),
    0 0 80px rgba(0, 255, 255, 0.3);
}

.video-text {
  flex: 1 1 45%;
  color: white;
  text-align: left;
}

.video-text h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.video-text p {
  font-size: 1.1rem;
  line-height: 1.5;
}

.photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.photos img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

footer {
  position: relative;
  text-align: center;
  color: white;
  height: 400px;
  background: url('../images/IMG_9.png') center center / cover no-repeat;
  background-attachment: scroll;
  backdrop-filter: blur(2px);
  border-top: 1px solid rgba(0, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  overflow: hidden;
  z-index: 1;
}

@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  main {
    padding: 1rem;
  }

  .video-row {
    flex-direction: column;
    text-align: center;
  }

  .video-text {
    text-align: center;
  }

  #stock-scroll {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    animation: none;
    overflow-x: hidden;
  }

  .stock-card {
    flex: 0 1 30%;
    min-width: unset;
    font-size: 0.8rem;
    padding: 0.6rem;
    white-space: normal;
  }

  #stock-scroll-wrapper {
    overflow: visible;
    padding: 1rem;
  }

  #stock-scroll::-webkit-scrollbar {
    display: none;
  }

  footer {
    min-height: 200px;
    font-size: 0.9rem;
    padding: 1.5rem 1rem;
    background-position: center top;
  }

  .video-row {
    flex-direction: column;
    text-align: center;
  }

  .video-text,
  .video-container {
    max-width: 100%;
    text-align: center;
  }
}
