/* Tailwind CSS - Custom styles for Affordemy */

/* Import Tailwind CSS */
@import 'tailwindcss/base';
@import 'tailwindcss/components';
@import 'tailwindcss/utilities';

/* Custom CSS Variables */
:root {
  --color-midnight: #0A192F;
  --color-aqua: #64FFDA;
  --color-coral: #FF6B6B;
  --color-soft: #F0F4F8;
  --color-dark-blue: #112240;
}

/* Base 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;
  color: var(--color-soft);
  background-color: var(--color-midnight);
}

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

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

::-webkit-scrollbar-track {
  background: var(--color-midnight);
}

::-webkit-scrollbar-thumb {
  background: var(--color-aqua);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4FD1C7;
}

/* Focus styles for accessibility */
button:focus,
a:focus {
  outline: 2px solid var(--color-aqua);
  outline-offset: 2px;
}

/* Hover effects */
.hover-lift:hover {
  transform: translateY(-2px);
}

/* Mobile menu animations */
#mobile-menu {
  transition: all 0.3s ease-in-out;
}

/* Card hover effects */
.bg-\[#112240\] {
  transition: all 0.3s ease;
}

.bg-\[#112240\]:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(100, 255, 218, 0.1);
}

/* Text selection */
::selection {
  background-color: var(--color-aqua);
  color: var(--color-midnight);
}

/* Loading animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

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

/* Responsive utilities */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .space-y-20 > * + * {
    margin-top: 3rem;
  }
}

/* Print styles */
@media print {
  .fixed {
    position: static !important;
  }
  
  .bg-\[#0A192F\] {
    background: white !important;
    color: black !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .bg-\[#112240\] {
    background-color: #1a1a1a;
    border: 1px solid var(--color-aqua);
  }
  
  .text-\[#F0F4F8\] {
    color: white;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
  /* Already dark by default, but can add more dark mode styles here */
}

/* Custom button styles */
button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* Link styles */
a {
  text-decoration: none;
  color: inherit;
}

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

/* Typography improvements */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
}

/* Form elements (if any are added later) */
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Utility classes */
.text-gradient {
  background: linear-gradient(135deg, var(--color-aqua), var(--color-coral));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-aqua {
  box-shadow: 0 4px 14px 0 rgba(100, 255, 218, 0.2);
}

.shadow-aqua-lg {
  box-shadow: 0 10px 25px 0 rgba(100, 255, 218, 0.3);
}