@import "tailwindcss";

:root {
  --background: #0f0f0f;
  --foreground: #ffffff;
  --primary: #fb5800;
  /* Vibrant orange */
  --secondary: #E67E00;
  /* Darker orange */
  --accent: #FFA500;
  /* Lighter orange accent */
  --muted: #FF9500;
  /* Soft orange muted text */
  --card: #1a1a1a;
  --card-foreground: #e0e0e0;
  --border: #fb5800;
  /* Medium orange */
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-primary: var(--primary);
  --color-secondary: var(--secondary);
  --color-accent: var(--accent);
  --color-muted: var(--muted);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --font-sans: var(--font-geist-sans);
  --font-mono: var(--font-geist-mono);
  --font-display: var(--font-space-grotesk);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Account for fixed header */
}

/* Enhanced smooth scrolling for better performance */
* {
  scroll-behavior: smooth;
}

/* Optimize scrolling performance */
section {
  scroll-margin-top: 80px; /* Offset for fixed header */
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

/* Autofill overrides stay unchanged... */

/* Gradient and utility classes (updated to match green theme) */
.gradient-gold-text {
  background: linear-gradient(to right, #fb5800, #FFA500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 10px rgba(255, 140, 0, 0.3);
}

.gradient-bg {
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.05), rgba(255, 165, 0, 0.05));
}

.gold-text {
  color: var(--primary);
}

.gold-neon-border {
  border: 1px solid var(--primary);
  box-shadow: 0 0 5px rgba(255, 165, 0, 0.5), 0 0 10px rgba(255, 165, 0, 0.3);
  position: relative;
  transition: all 0.3s ease;
}

.gold-neon-border:hover {
  box-shadow: 0 0 15px rgba(255, 165, 0, 0.7), 0 0 5px rgba(255, 165, 0, 0.5);
}

.gold-glass-effect {
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 140, 0, 0.2);
  box-shadow: 0 4px 30px rgba(255, 140, 0, 0.1);
  transition: all 0.3s ease;
}

.gold-card {
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid rgba(255, 140, 0, 0.2);
  box-shadow: 0 4px 30px rgba(255, 140, 0, 0.1);
  backdrop-filter: blur(8px);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.gold-button {
  background-color: var(--primary);
  color: #000000;
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.gold-button:hover {
  background-color: var(--accent);
  box-shadow: 0 0 15px rgba(255, 165, 0, 0.5);
}

.gold-outline-button {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 0.75rem;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.gold-outline-button:hover {
  background-color: rgba(255, 165, 0, 0.1);
  box-shadow: 0 0 15px rgba(255, 165, 0, 0.3);
}

/* Scrollbar & animation unchanged */

@keyframes gold-pulse-glow {
  0% {
    box-shadow: 0 0 5px 0 rgba(255, 165, 0, 0.4);
  }

  50% {
    box-shadow: 0 0 20px 5px rgba(255, 165, 0, 0.2);
  }

  100% {
    box-shadow: 0 0 5px 0 rgba(255, 165, 0, 0.4);
  }
}

.animate-gold-pulse {
  animation: gold-pulse-glow 3s ease-in-out infinite;
}

/* Responsive container unchanged */
@media (max-width: 640px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Custom class to hide number input arrows */
.input-no-spinner::-webkit-inner-spin-button,
.input-no-spinner::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.input-no-spinner {
  -moz-appearance: textfield;
  /* Firefox */

  /* For Chrome, Safari, Edge (WebKit browsers) */
    input:-webkit-autofill {
      -webkit-box-shadow: 0 0 0 30px #f0f4ff inset !important;
      /* background color */
      -webkit-text-fill-color: #1a1a1a !important;
      /* text color */
      transition: background-color 5000s ease-in-out 0s;
      /* prevent flash */
    }
  
    /* On hover/focus */
    input:-webkit-autofill:focus,
    input:-webkit-autofill:hover {
      -webkit-box-shadow: 0 0 0 30px #e0ecff inset !important;
      -webkit-text-fill-color: #000 !important;
    }
  
    /* Firefox (limited support, needs :-moz-autofill) */
    input:-moz-autofill {
      box-shadow: 0 0 0 30px #f0f4ff inset !important;
      -moz-text-fill-color: #1a1a1a !important;
    }
}