/* ============================================
   ImporAtlas Landing Page — Custom Styles
   ============================================ */

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
  background: #0a0f1a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #c8973e, #a87d2e);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #c8973e;
}

/* ============================================
   ANIMATION KEYFRAMES
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(200, 151, 62, 0.3), 0 0 40px rgba(200, 151, 62, 0.1);
  }

  50% {
    box-shadow: 0 0 30px rgba(200, 151, 62, 0.5), 0 0 60px rgba(200, 151, 62, 0.2);
  }
}

@keyframes float {

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

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

@keyframes floatSlow {

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

  50% {
    transform: translateY(-30px) rotate(5deg);
  }
}

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

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

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

@keyframes borderGlow {

  0%,
  100% {
    border-color: rgba(200, 151, 62, 0.2);
  }

  50% {
    border-color: rgba(200, 151, 62, 0.5);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ping {

  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* ============================================
   ANIMATION CLASSES (triggered by JS)
   ============================================ */

.animate-on-scroll {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  will-change: transform, opacity;
}

.animate-on-scroll.animated {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-on-scroll-left {
  opacity: 0;
  transform: translate3d(-40px, 0, 0);
  will-change: transform, opacity;
}

.animate-on-scroll-left.animated {
  animation: fadeInLeft 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-on-scroll-right {
  opacity: 0;
  transform: translate3d(40px, 0, 0);
  will-change: transform, opacity;
}

.animate-on-scroll-right.animated {
  animation: fadeInRight 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: none;
}

.animate-scale.animated {
  animation: scaleIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Staggered delay classes */
.delay-100 {
  animation-delay: 100ms !important;
}

.delay-200 {
  animation-delay: 200ms !important;
}

.delay-300 {
  animation-delay: 300ms !important;
}

.delay-400 {
  animation-delay: 400ms !important;
}

.delay-500 {
  animation-delay: 500ms !important;
}

.delay-600 {
  animation-delay: 600ms !important;
}

.delay-700 {
  animation-delay: 700ms !important;
}

.delay-800 {
  animation-delay: 800ms !important;
}

/* ============================================
   SPECIAL EFFECTS
   ============================================ */

/* CTA Button pulse glow */
.btn-glow {
  animation: pulseGlow 2.5s ease-in-out infinite;
}

/* Floating decorative elements */
.float-animation {
  animation: float 6s ease-in-out infinite;
}

.float-slow {
  animation: floatSlow 8s ease-in-out infinite;
}

/* Gradient text */
.text-gradient {
  background: linear-gradient(135deg, #c8973e, #ddb058, #e8c878);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Animated gradient background */
.animated-gradient {
  background-size: 300% 300%;
  animation: gradientShift 8s ease infinite;
}

/* Glassmorphism card */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(200, 151, 62, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(200, 151, 62, 0.05);
}

/* Border glow animation */
.border-glow {
  animation: borderGlow 3s ease-in-out infinite;
}

/* Grid background pattern */
.grid-pattern {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Radial gradient overlay */
.radial-glow {
  position: relative;
}

.radial-glow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(200, 151, 62, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   FORM MODAL
   ============================================ */

.modal-overlay {
  display: none;
  opacity: 0;
}

.modal-overlay.active {
  display: flex;
  animation: modalFadeIn 0.2s ease-out forwards;
}

.modal-overlay.closing {
  animation: modalFadeOut 0.15s ease-in forwards;
}

.modal-content {
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
}

.modal-overlay.active .modal-content {
  animation: modalSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-overlay.closing .modal-content {
  animation: modalSlideOut 0.15s ease-in forwards;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modalFadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes modalSlideOut {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    opacity: 0;
    transform: translate3d(0, 20px, 0) scale(0.95);
  }
}

/* Form input styling */
.form-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: #c8973e;
  box-shadow: 0 0 0 3px rgba(200, 151, 62, 0.15);
  background: rgba(255, 255, 255, 0.08);
}

.form-input::placeholder {
  color: #64748b;
}

/* Select dropdown dark styling */
.form-input option {
  background: #111827;
  color: #f8fafc;
}

/* Error message display */
#email-error:not(.hidden),
#phone-error:not(.hidden) {
  display: block;
}

/* Submit button loading state */
.btn-submit {
  position: relative;
  overflow: hidden;
}

.btn-submit .spinner {
  display: none;
}

.btn-submit.loading .spinner {
  display: inline-block;
}

.btn-submit.loading .btn-text {
  opacity: 0;
}

/* ============================================
   FLOATING CTA (MOBILE)
   ============================================ */

.floating-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  background: #0a0f1a;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(200, 151, 62, 0.2);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-cta.visible {
  transform: translateY(0);
}

/* ============================================
   GRADIENT ORB DECORATIONS
   ============================================ */

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.orb-gold {
  background: rgba(200, 151, 62, 0.15);
}

.orb-navy {
  background: rgba(26, 39, 68, 0.2);
}

.orb-blue {
  background: rgba(59, 130, 246, 0.1);
}

/* ============================================
   PAIN POINT ITEMS
   ============================================ */

.pain-item {
  position: relative;
  padding-left: 1.5rem;
}

.pain-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

/* ============================================
   FILTER SECTION ITEMS
   ============================================ */

.filter-item {
  position: relative;
  padding-left: 1.75rem;
}

.filter-item::before {
  content: '–';
  position: absolute;
  left: 0;
  top: 0;
  color: #c8973e;
  font-weight: 700;
  font-size: 1.25rem;
}

/* ============================================
   SECTION DIVIDER
   ============================================ */

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 151, 62, 0.3), transparent);
  margin: 0 auto;
  max-width: 300px;
}

/* ============================================
   SUCCESS STATE
   ============================================ */

.success-checkmark {
  animation: scaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
  .orb {
    filter: blur(60px);
    opacity: 0.7;
  }

  .radial-glow::before {
    width: 400px;
    height: 400px;
  }
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}