/* ============================================================
 * Lucas Caixeta - Portfolio Website
 * Custom modern CSS - Built with standard CSS features
 * Author: Lucas Caixeta
 * License: MIT
 * ============================================================ */

/* == Root Variables ============================================ */
:root {
  --primary-color: #348cb2;
  --primary-dark: #25648a;
  --primary-light: #4a9ed4;
  --accent-color: #ff6b6b;
  --text-color: #ffffff;
  --text-secondary: #e0e0e0;
  --bg-color: #0a0e27;
  --bg-secondary: #151d3a;
  --border-color: rgba(255, 255, 255, 0.1);
  --spacing-unit: 1rem;
  --font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-base: 15pt;
  --transition-speed: 0.3s;
  --border-radius: 4px;
}

/* == Accessibility & Performance ============================ */
*, *::before, *::after {
  box-sizing: border-box;
}

:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}

html {
  scroll-behavior: smooth;
}

::selection {
  background-color: var(--primary-color);
  color: white;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* == Animations ============================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Continuous background parallax animation */
@keyframes bgScroll {
  0% {
    background-position: 0 center;
  }
  100% {
    background-position: -2250px center;
  }
}

@keyframes overlayFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1.5s 1.5s forwards;
  }
}

@keyframes headerSlideIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 1em, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes navIconsSlide {
  0% {
    opacity: 0;
    transform: translate3d(0, 1em, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

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

/* Wrapper fade in animation */
@keyframes wrapperFade {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* == High Contrast Mode ======================================= */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #0066ff;
    --text-color: #000000;
    --bg-color: #ffffff;
  }
}

/* == Reduced Motion ========================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}