/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modal Animations */
#signupModal,
#howItWorksModal {
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

#signupModal.opacity-100,
#howItWorksModal.opacity-100 {
  opacity: 1;
}

#modalContent,
#howItWorksModalContent {
  transition: transform 0.2s ease-in-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Animation Classes */
.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-up {
  animation: slideUp 0.8s ease-out forwards;
}

.delay-100 {
  animation-delay: 0.1s;
  opacity: 0;
}

.delay-200 {
  animation-delay: 0.2s;
  opacity: 0;
}

.delay-300 {
  animation-delay: 0.3s;
  opacity: 0;
}

.delay-400 {
  animation-delay: 0.4s;
  opacity: 0;
}

.delay-500 {
  animation-delay: 0.5s;
  opacity: 0;
}

/* Scroll Animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

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

.scroll-animate.delay-100 {
  transition-delay: 0.1s;
}

.scroll-animate.delay-200 {
  transition-delay: 0.2s;
}

.scroll-animate.delay-300 {
  transition-delay: 0.3s;
}

.scroll-animate.delay-400 {
  transition-delay: 0.4s;
}

.scroll-animate.delay-500 {
  transition-delay: 0.5s;
}

/* Button Hover Effects */
button,
a.button {
  transition: all 0.3s ease;
}

button:hover,
a.button:hover {
  transform: translateY(-2px);
}

button:active,
a.button:active {
  transform: translateY(0);
}

/* Card Hover Effects */
.hover-card {
  transition: all 0.3s ease;
}

.hover-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

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

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

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

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

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

/* Logo SVG Animation */
.logo-svg {
  transition: transform 0.3s ease;
}

.logo-svg:hover {
  transform: scale(1.05);
}

/* FAQ Accordion Styles */
.faq-item {
  transition: all 0.3s ease;
}

.faq-question {
  cursor: pointer;
  user-select: none;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    padding 0.3s ease;
}

.faq-answer.open {
  max-height: 500px;
  padding-top: 0;
  padding-bottom: 1.25rem;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-question.active .faq-icon {
  transform: rotate(180deg);
}

/* Gradient Text Effect (Optional) */
.gradient-text {
  background: linear-gradient(135deg, #000000 0%, #4a4a4a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Pulse Animation for Badge */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Mobile Menu Transition */
#mobile-menu {
  transition:
    max-height 0.3s ease-in-out,
    opacity 0.3s ease-in-out;
}

/* Focus Styles for Accessibility */
*:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

/* Selection Color */
::selection {
  background-color: #000;
  color: #fff;
}

/* Print Styles */
@media print {
  nav,
  footer {
    display: none;
  }
}

/* Responsive Typography */
@media (max-width: 640px) {
  h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  h2 {
    font-size: 2rem;
    line-height: 1.3;
  }
}

/* Loading Animation (optional for future use) */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Backdrop Blur Support */
@supports (backdrop-filter: blur(10px)) {
  .backdrop-blur-sm {
    backdrop-filter: blur(10px);
  }
}

/* Dark Mode Support (Future) */
@media (prefers-color-scheme: dark) {
  /* Dark mode styles can be added here later */
}

/* Smooth Page Transitions */
.page-transition {
  transition: opacity 0.3s ease-in-out;
}

/* Image Lazy Loading */
img {
  max-width: 100%;
  height: auto;
}

/* Form Input Styles */
input[type="email"]:focus {
  outline: none;
  ring: 2px;
  ring-color: rgba(0, 0, 0, 0.5);
}

/* Smooth Hover on Links */
a {
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

/* Grid Auto Fit (Responsive) */
.auto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

/* Utility: Truncate Text */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Utility: Line Clamp */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
