/* Global styles and CSS variables for the project */
html {
  scroll-behavior: smooth;
}

/* Color and typography variables to maintain design consistency */
:root {
  --color-primary: #f1f1f1;
  --color-secondary: #c1ff72;
  --color-terceary: #040404;
  --color-background: #0c1020;
  --color-glow-melocoton: #ffd8b1;
  --color-glow-morados: #e2cfff;

  --font-primary: "Inter", sans-serif;
  --font-heading: "Poppins", sans-serif;
}

/* Reset of margins, padding and box-sizing for all elements */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base styles for the document body, including typography, colors and background */
body {
  color: var(--color-primary);
  font-family: var(--font-primary);
  line-height: 1.8;
  background-color: var(--color-background);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* background particles with negative z-index so they don't interfere with the main content */

#tsparticles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Styles for the "separator" that visually divides the site sections */

.separator {
  display: flex;
  align-items: stretch;
  width: 100%;
  flex-direction: column;
  gap: 5rem;
}

/* Styles for the welcome modal, including the overlay, content and animations */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 2rem;
  z-index: 9999;
  transition: all 0.5s ease;
}

.modal-content.notification-top {
  width: 92%;
  max-width: 500px;
  background: rgba(12, 16, 32, 0.9);
  border: 1px solid var(--color-secondary);
  backdrop-filter: blur(20px);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);

  animation: slideDown 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.5rem;
}

.modal-header h3 {
  font-size: 1rem;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pulse-icon {
  width: 8px;
  height: 8px;
  background-color: var(--color-secondary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-secondary);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-content p {
  color: #bbb;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.modal-btn {
  width: 100%;
  background: var(--color-secondary);
  color: #000;
  border: none;
  padding: 0.6rem;
  border-radius: 0.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.modal-hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95);
}
