/* Font Faces */
@font-face {
  font-family: "Helvetica Now";
  src: url("/helvetica-now-regular.woff2") format("woff2");
  font-weight: 400;
}

@font-face {
  font-family: "Helvetica Now";
  src: url("/helvetica-now-light.woff2") format("woff2");
  font-weight: 300;
}

/* Global Styles */
* {
  font-family: "Helvetica Now", sans-serif;
  font-weight: 300;
  letter-spacing: -0.085em;
  color: #0e0e2c;
}

/* Selection Styles */
::-moz-selection {
  color: #0000ff;
  background: #ffcf27;
}

::selection {
  color: #0000ff;
  background: #ffcf27;
}

/* Color Circles */
#blue-circle {
  background: radial-gradient(50% 50% at 50% 50%, #0000ff 0%, rgba(255, 255, 255, 0) 100%);
  filter: blur(50px);
}

#yellow-circle {
  background: radial-gradient(50% 50% at 50% 50%, #ffcf27 0%, rgba(255, 255, 255, 0) 100%);
  filter: blur(50px);
}

#red-circle {
  background: radial-gradient(50% 50% at 50% 50%, #ff0000 0%, rgba(255, 255, 255, 0) 100%);
  filter: blur(50px);
}

/* Animations */
@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.animation-rotate {
  animation: rotate 15s linear infinite;
}

/* Navigation styles */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #0000ff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #0000ff;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Section styling */
section {
  scroll-margin-top: 80px;
}

/* Card styling */
.feature-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Molecular Animation Styles */
.molecule-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  opacity: 0.6;
  pointer-events: none;
}

.molecule {
  position: absolute;
  opacity: 0;
  animation: floatMolecule 40s infinite linear;
}

.atom {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(100, 150, 255, 0.9), rgba(0, 100, 255, 0.7));
  box-shadow: 0 0 20px rgba(0, 100, 255, 0.6);
}

.bond {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, rgba(0, 100, 255, 0.5), rgba(0, 100, 255, 0.8), rgba(0, 100, 255, 0.5));
  transform-origin: left center;
}

@keyframes floatMolecule {
  0% {
    transform: translateY(100vh) rotate(0deg) scale(0.8);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-100vh) rotate(360deg) scale(1.2);
    opacity: 0;
  }
}

.molecule:nth-child(odd) {
  animation-duration: 45s;
  animation-delay: -5s;
}

.molecule:nth-child(even) {
  animation-duration: 50s;
  animation-delay: -10s;
}

/* Peptide chain animation */
.peptide-chain {
  position: absolute;
  opacity: 0;
  animation: driftPeptide 60s infinite linear;
}

.amino-acid {
  display: inline-block;
  width: 30px;
  height: 30px;
  margin: 0 -5px;
  border-radius: 50%;
  position: relative;
}

.amino-acid:nth-child(3n+1) {
  background: radial-gradient(circle at 30% 30%, rgba(255, 100, 100, 0.9), rgba(255, 0, 0, 0.6));
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.5);
}

.amino-acid:nth-child(3n+2) {
  background: radial-gradient(circle at 30% 30%, rgba(100, 255, 100, 0.9), rgba(0, 255, 0, 0.6));
  box-shadow: 0 0 25px rgba(0, 255, 0, 0.5);
}

.amino-acid:nth-child(3n) {
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 100, 0.9), rgba(255, 255, 0, 0.6));
  box-shadow: 0 0 25px rgba(255, 255, 0, 0.5);
}

/* Custom footer background */
.bg-gray-900 {
  background-color: rgba(87, 85, 240, 0.22) !important;
}

@keyframes driftPeptide {
  0% {
    transform: translateX(-100px) translateY(50vh) rotate(0deg);
    opacity: 0;
  }
  5% {
    opacity: 0.7;
  }
  95% {
    opacity: 0.7;
  }
  100% {
    transform: translateX(calc(100vw + 100px)) translateY(30vh) rotate(180deg);
    opacity: 0;
  }
}