/* Define font faces for Quicksand */
@font-face {
font-family: 'Quicksand';
src: url('../fonts/Quicksand-VariableFont_wght.ttf') format('truetype');
font-weight: 100 900; /* Variable font weight */
}

@font-face {
font-family: 'Quicksand Light';
src: url('../fonts/static/Quicksand-Light.ttf') format('truetype');
font-weight: 300; /* Static font weight */
}

@font-face {
font-family: 'Quicksand Regular';
src: url('../fonts/static/Quicksand-Regular.ttf') format('truetype');
font-weight: 400; /* Static font weight */
}

@font-face {
font-family: 'Quicksand Medium';
src: url('../fonts/static/Quicksand-Medium.ttf') format('truetype');
font-weight: 500; /* Static font weight */
}

@font-face {
font-family: 'Quicksand SemiBold';
src: url('../fonts/static/Quicksand-SemiBold.ttf') format('truetype');
font-weight: 600; /* Static font weight */
}

@font-face {
font-family: 'Quicksand Bold';
src: url('../fonts/static/Quicksand-Bold.ttf') format('truetype');
font-weight: 700; /* Static font weight */
}

/* Position the particle canvas behind the hero content */
#particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* Lower z-index to keep it behind the hero content */
  pointer-events: none; /* This ensures the canvas won't capture any mouse events */
}

.particles-canvas {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none; /* Ensures particles don't block interactions */
}

/* Globe container to hold the globe */
.globe-container {
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1; /* Make sure the globe is behind the hero content */
}

/* Style for the globe canvas */
.globe-canvas {
  width: 100%;
  height: 100%;
  pointer-events: none; /* Ensure the canvas doesn't block any interactions */
}

/* Hero Section */
.hero-section {
  font-family: 'Quicksand';
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: #101010; /* Dark background for contrast */
  color: #fff;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-family: 'Quicksand';
  font-size: 3.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 2;
}

.hero-content h2 {
  font-family: 'Quicksand';
  font-size: 1.5rem;
  padding: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 2;
}

.hero-content p {
  font-family: 'Quicksand';
  font-size: 1.2rem;
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto 2rem auto;
  color: #cccccc;
  z-index: 3;
}

/* Bounce Animation */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-15px);
  }
  60% {
    transform: translateY(-10px);
  }
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

#main-app {
  min-height: 100vh;
  background-color: #f4f4f4; /* Light background for contrast */
}

/* Container for the globe to manage layout */
.globe-container {
  width: 100%;
  height: 60vh; /* Set height to 70% of the viewport */
}

.glow-on-hover {
  font-family: 'Quicksand';
  font-size: 2rem;
  width: 30rem;
  height: 5rem;
  border-color: #F5F5F5;
  outline: none;
  color: #F5F5F5;
  background: #121212;
  backdrop-filter: blur(2px);
  cursor: pointer;
  position: relative;
  z-index: 0;
  border-radius: 2rem;
}

.glow-on-hover:before {
  content: '';
  background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
  position: absolute;
  top: -2px;
  left:-2px;
  background-size: 400%;
  z-index: -1;
  filter: blur(5px);
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  animation: glowing 20s linear infinite;
  opacity: 0;
  transition: opacity .3s ease-in-out;
  border-radius: 2rem;
}

.glow-on-hover:active {
  color: #000
}

.glow-on-hover:active:after {
  background: transparent;
}

.glow-on-hover:hover:before {
  opacity: 1;
}

.glow-on-hover:after {
  z-index: -1;
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: #111;
  left: 0;
  top: 0;
  border-radius: 2rem;
}

@keyframes glowing {
  0% { background-position: 0 0; }
  50% { background-position: 400% 0; }
  100% { background-position: 0 0; }
}


/* Flex container for the app section */
.main-app-container {
  display: flex;
  width: 100vw; /* Full window width */
  height: 100vh; /* Full window height */
}

/* Left Pane: Globe (70% width) */
.left-pane {
  width: 100%;
  height: 100%;
  background-color: #000000; /* To match the globe's background */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Right Pane: News (30% width) */
.right-pane {
  width: 0%;
  height: 100%;
  background-color: #000000;
  padding: 20px;
  box-shadow: -4px 0 8px rgba(0, 0, 0, 0.1);
  overflow-y: auto; /* Add scrolling for long content */
}

.right-pane h2 {
  text-align: center;
  font-size: 24px;
  color: #333;
}


#news-headlines {
  margin-top: 20px;
  font-size: 18px;
  color: #333;
}

/* Headline Items */
#news-headlines li {
  margin-bottom: 15px;
  list-style-type: none;
  padding: 10px;
  border-bottom: 1px solid #ccc;
}

#news-headlines li i {
  margin-right: 10px;
}


/* Main layout styles */
body {
  margin: 0;
  overflow: hidden;
  background-color: #121212; /* Background color */
}

.news-box ul {
  list-style-type: none; /* Ensure no numbering */
  padding-left: 0;
}

.news-box li {
  margin-bottom: 10px;
  padding: 5px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  color: #F5F5F5; /* Ensure white text for neutral styling */
}

/* Sentiment-based styling for icons and text */
.news-box li.positive {
  color: #45a649; /* Green text for positive sentiment */
}

.news-box li.negative {
  color: #FF885B; /* Red text for negative sentiment */
}

.news-box li.neutral {
  color: #FFE5CF; /* Gray text for neutral sentiment */
}

/* Icon styling */
.news-box li i {
  margin-right: 10px;
  font-size: 18px; /* Adjust icon size */
}


/* Fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.world-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.world-container canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Make sure it's behind the globe and news box */
}

/* News Box Styling */
.news-box {
  font-family: 'Quicksand';
  position: absolute;
  top: 100px;
  right: 20px;
  width: 400px;
  background-color: #12121267;
  backdrop-filter: blur(2px);
  color: #F5F5F5;
  padding: 25px;
  border-radius: 8px;
  z-index: 10; /* Above particle effect */
}

.news-box h3 {
  font-family: 'Quicksand', sans-serif;
  font-size: 2rem;
  text-align: center;
  color: #F5F5F5;
  position: relative;
  border-radius: 2rem;
  margin: 0; /* Remove default margin */
  padding: 10px; /* Optional: add padding if needed */
}

.news-box h3:before {
  content: '';
  background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
  position: absolute;
  top: -2px;
  left: -2px;
  background-size: 400%;
  z-index: -1;
  filter: blur(0.2rem);
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  animation: glowing 46s linear infinite;
  opacity: 1; /* Make it glow all the time */
  border-radius: 2rem;
}

.news-box h3:after {
  z-index: -1;
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: #121212; /* Match the background of news-box if needed */
  left: 0;
  top: 0;
  border-radius: 2rem;
}

@keyframes glowing {
  0% { background-position: 0 0; }
  50% { background-position: 400% 0; }
  100% { background-position: 0 0; }
}

.shine-border {
  position: relative;
  border-radius: var(--border-radius);
}

.shine-border-effect {
  position: absolute;
  inset: 0;
  border-radius: var(--border-radius);
  padding: var(--border-width);
  background-image: linear-gradient(15deg, var(--gradient-colors));
  background-size: 300% 300%;
  will-change: background-position;
  content: "";
  z-index: -1; /* Move the border behind the content */
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  animation: shine-pulse var(--shine-pulse-duration) infinite linear;
}

@keyframes shine-pulse {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}


/* Meteor container styling */
#meteors-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none; /* Makes sure meteors don't interfere with user interactions */
  z-index: -1; /* Push meteors behind other elements */
}

/* Meteor styles */
.meteor {
  position: absolute;
  /* width: 6px;
  height: 6px; */
  background-color: #ff5656;
  border-radius: 50%;
  box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.2);
  transform: rotate(215deg);
  animation: meteor-move linear;
}

.meteor::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 100%;
  height: 1px;
  width: 60px;
  background: linear-gradient(to right, #ff5656, transparent);
  transform: translateY(-50%) rotate(0deg);
}

/* Animation for the meteor movement */
@keyframes meteor-move {
  0% {
    opacity: 0;
    transform: translateY(10vh) translateX(0) rotate(215deg);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(100vh) translateX(100vw) rotate(215deg);
  }
}
