/* 
 * TRULATE Landing Page Custom Styles
 * Modern Minimalistic Electric Blue Theme
 */

:root {
  --color-electric-blue: #0095D3;
  --color-primary-navy: #0B2545;
  --color-trulate-white: #FFFFFF;
  --color-trulate-light: rgba(255, 255, 255, 0.9);
}

/* Base Body Styles */
@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@200;300;400;600;700&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

body {
  font-family: 'Inter', sans-serif;
  color: #FFFFFF;
  background-color: var(--color-electric-blue);
}

/* High-fidelity primary brand font */
.font-primary {
  font-family: 'Bounded', 'Unbounded', sans-serif !important;
}

/* Minimalist Frosty Glass Panel on Electric Blue Background */
.glass-panel {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Translucent Minimalist Inputs */
.form-input {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #FFFFFF !important;
  font-weight: 300;
  text-align: left;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
  text-align: left;
}

.form-input:focus {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: #FFFFFF !important;
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15) !important;
}

select.form-input option {
  background-color: var(--color-electric-blue);
  color: #FFFFFF;
}

/* 
 * Browser Autofill Overrides
 * Bypasses Chrome/Safari system styling blocks to maintain frosty glass backgrounds and white text colors.
 */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  -webkit-text-fill-color: #FFFFFF !important;
  -webkit-box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0.06) inset !important;
  transition: background-color 5000s ease-in-out 0s;
  caret-color: #FFFFFF;
}

/* Subtle scientific white grid lines */
.bg-grid-overlay {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px), 
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Floating ambient white particles */
@keyframes floatUp {
  0% {
    transform: translateY(110vh) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.25;
  }
  90% {
    opacity: 0.25;
  }
  100% {
    transform: translateY(-10vh) translateX(var(--drift, 30px));
    opacity: 0;
  }
}

.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: floatUp linear infinite;
}

/* Premium Minimalist Pulsing logo animation */
@keyframes pulse-slow {
  0%, 100% { opacity: 0.98; transform: scale(1); }
  50% { opacity: 0.88; transform: scale(1.015); }
}

.animate-pulse-slow {
  animation: pulse-slow 12s ease-in-out infinite;
}

/* Premium Solid White Minimal Button */
.btn-electric {
  background-color: #FFFFFF;
  color: var(--color-electric-blue);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-electric:hover {
  transform: translateY(-2px);
  background-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.btn-electric:active {
  transform: translateY(0);
  background-color: rgba(255, 255, 255, 0.85);
}

/* Form Validation Helper styles */
.input-error {
  border-color: #fca5a5 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
}

.error-text {
  color: #fecaca;
  font-size: 0.72rem;
  margin-top: 0.25rem;
  display: block;
}

/* Elegant Text Breathing Color Glow Animation */
@keyframes textGlow {
  0%, 100% {
    color: rgba(255, 255, 255, 0.65);
    text-shadow: 0 0 0px rgba(255, 255, 255, 0);
  }
  50% {
    color: #FFFFFF;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
  }
}

.animate-text-glow {
  animation: textGlow 6s ease-in-out infinite;
}
