@import "tailwindcss";

@font-face {
  font-family: "DMSans";
  src: url("../fonts/DMSans.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --color-neon-green: #22c55e;
  --color-electric-blue: #3b82f6;
  --color-hot-pink: #ec4899;
  --bg-dark: #09090b;
}

body {
  background-color: var(--bg-dark);
  color: white;
  overflow-x: hidden;
  font-family: "DMSans", sans-serif;
}

/* --- Utilities --- */

/* Text Gradients */
.gradient-text {
  background: linear-gradient(135deg, #4ade80 0%, #3b82f6 50%, #d946ef 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientFlow 5s ease infinite;
}

.gradient-text-subtle {
  background: linear-gradient(to right, #e2e8f0, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}


/* Glassmorphism 2.0 */
.glass-panel {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border-radius: 1.5rem;
}

.glass-card {
  background: linear-gradient(180deg, rgba(39, 39, 42, 0.4) 0%, rgba(39, 39, 42, 0.2) 100%);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transition: 0.5s;
}

.glass-card:hover::before {
  left: 100%;
}

.glass-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(34, 197, 94, 0.3);
  box-shadow: 0 20px 40px -10px rgba(34, 197, 94, 0.15);
}

/* Background Effects */
.ambient-glow {
  position: absolute;
  filter: blur(100px);
  opacity: 0.4;
  z-index: -1;
  pointer-events: none;
  animation: pulseGlow 8s ease-in-out infinite;
}

.mesh-grid {
  background-size: 50px 50px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}


/* --- Animations --- */

@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes pulseGlow {

  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float 7s ease-in-out infinite 1s;
}

/* Scroll Reveal Base Styles */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Specific Components --- */

/* Hero Button */
.btn-primary-glow {
  position: relative;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  transition: all 0.3s ease;
  z-index: 1;
}

.btn-primary-glow::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #22c55e, #3b82f6, #ec4899);
  z-index: -1;
  border-radius: inherit;
  filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary-glow:hover::after {
  opacity: 0.7;
}

.btn-primary-glow:hover {
  transform: scale(1.05);
}

/* Live Preview Input */
.preview-input-container {
  position: relative;
  border-radius: 1rem;
  padding: 2px;
  /* background: linear-gradient(90deg, #22c55e, #3b82f6); */
}

.preview-input {
  background: #000;
  border: none;
  border-radius: calc(1rem - 2px);
  color: white;
  width: 100%;
  padding: 1.5rem;
  font-size: 1.5rem;
  text-align: center;
  outline: none;
  font-family: inherit;
}

.preview-input:focus {
  box-shadow: inset 0 0 20px rgba(34, 197, 94, 0.2);
}

/* Navigation Utilities */
#menu-toggle:checked~#menu-links {
  display: block;
}

@media (min-width: 768px) {
  #menu-links {
    display: flex !important;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #09090b;
}

::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

/* Selection */
::selection {
  background: rgba(34, 197, 94, 0.3);
  color: #fff;
}