/* ==========================================================================
   DIEGO RIVERA - PORTFOLIO DESIGN SYSTEM (LIGHT THEME)
   Inspired by diegorivera.dev identity: #001141 Navy, #ff3251 Coral Red, Poppins
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --color-navy: #001141;
  --color-navy-dark: #000c2e;
  --color-coral: #ff3251;
  --color-coral-hover: #e0203e;
  --color-cyan: #0284c7;
  --color-cyan-light: #e0f2fe;
  --color-emerald: #10b981;
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-border: #e2e8f0;
  --color-text-main: #0f172a;
  --color-text-muted: #475569;
}

body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  color: var(--color-text-main);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  transition: opacity 0.12s ease-in;
}

/* Typography justification enhancements */
.text-justify {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* Anti-FOUC: prevents flash of untranslated content if user has English active */
html.i18n-loading body {
  opacity: 0 !important;
}

/* Original diegorivera.dev decorative horizontal rule (.has-line) */
.has-line {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-left: 95px;
}
.has-line::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 80px;
  height: 2.5px;
  background-color: var(--color-coral);
  border-radius: 2px;
}

@media (max-width: 640px) {
  .has-line {
    padding-left: 0;
  }
  .has-line::before {
    display: none;
  }
}

/* Desktop Hero with authentic diegorivera.dev bg.jpg */
.hero-bg-section {
  background-color: #ffffff;
  background-image: url('../images/bg.jpg');
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  min-height: calc(100vh - 80px);
}

@media (max-width: 991px) {
  .hero-bg-section {
    background-image: none !important;
    min-height: auto;
  }
}

/* Clean Light Cards */
.light-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.light-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -6px rgba(0, 17, 65, 0.08), 0 0 0 1px rgba(0, 17, 65, 0.04);
}

/* Subtle dot grid for subpages */
.bg-subtle-grid {
  background-size: 28px 28px;
  background-image: 
    radial-gradient(circle, rgba(0, 17, 65, 0.04) 1px, transparent 1px);
}

/* Navigation Active Link */
.nav-link.active {
  color: var(--color-coral);
  font-weight: 600;
  position: relative;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-coral);
  border-radius: 2px;
}

/* Toast notification */
#toast {
  transition: transform 0.3s ease, opacity 0.3s ease;
}
#toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
