/* NumberDestiny Main Stylesheet */

/* Custom Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* Base Styles Enhancing TailwindCSS */
:root {
  --primary-color: #4f46e5;
  --primary-light: #818cf8;
  --primary-dark: #3730a3;
  --accent-color: #9333ea;
  --text-dark: #1f2937;
  --text-light: #9ca3af;
  --bg-light: #eef2ff;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
  color: var(--text-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

/* Smooth Transition for Interactive Elements */
a, button {
  transition: all 0.3s ease;
}

/* Subtle Animation Classes */
.hover-lift {
  transition: transform 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
}

.soft-shadow {
  box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.1);
}

/* Pulse Animation for Call-to-action Elements */
.pulse-animation {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(79, 70, 229, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
  }
}

/* Number Display Custom Styling */
.number-display {
  font-size: 4rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  line-height: 1;
}

/* Custom Form Styling */
.custom-input:focus {
  outline: 2px solid var(--primary-light);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

select.custom-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  appearance: none;
}

/* Mobile Optimization */
@media (max-width: 768px) {
  /* Increase Tap Target Sizes */
  button, 
  .button,
  a.button,
  select,
  input[type=submit],
  input[type=button] {
    min-height: 48px;
    min-width: 48px;
  }
  
  /* Improve Text Readability */
  p, li {
    font-size: 16px;
    line-height: 1.6;
  }
  
  /* Spacing Adjustments */
  section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  
  /* Font Size Adjustments */
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  /* Ensure Proper Spacing in Grid Layouts */
  .grid {
    row-gap: 2rem;
  }
}

/* Card Styling with Subtle Hover Effects */
.feature-card {
  transition: all 0.3s ease;
  border-radius: 1rem;
  overflow: hidden;
  background: white;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.15);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Print Styles */
@media print {
  header, footer, nav, .no-print {
    display: none;
  }
  
  body {
    color: black;
    background: white;
  }
  
  main {
    margin: 0;
    padding: 0;
  }
  
  a {
    text-decoration: none;
    color: black;
  }
  
  /* Ensure content is properly printed */
  .print-area {
    display: block !important;
    width: 100%;
  }
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Skip to Content Link for Accessibility */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 8px 16px;
  z-index: 100;
  transition: top 0.3s ease;
}

.skip-to-content:focus {
  top: 0;
}

/* Improve Accessibility for Screen Readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Animation for Result Reveal */
@keyframes fadeScale {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.reveal-animation {
  animation: fadeScale 0.5s ease-out forwards;
} 