/* Custom Global Styles, Utilities & Animations */
@layer base {
  html {
    scroll-behavior: smooth;
    scroll-padding-top: 5.5rem;
  }
}

/* Accessible focus rings */
:focus-visible {
  outline: 2px solid #10b981;
  outline-offset: 3px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #090a0f;
}
::-webkit-scrollbar-thumb {
  background: #1b202e;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2b3245;
}

/* Tech Blueprint Grid Background */
.bg-grid-pattern {
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Subtle glowing borders and card highlights */
.card-hover-effect {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.card-hover-effect:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5), 0 0 20px -5px rgba(16, 185, 129, 0.07);
}

/* Scroll progress bar */
#scroll-progress {
  transform-origin: 0% 50%;
  transition: transform 0.05s ease-out;
}

/* Scroll Reveal Animations */
.reveal-init {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Code terminal styling */
.code-window {
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Toast message styling */
#toast {
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ==========================================================================
   YouTube Visibility Switch
   To display all YouTube references again, remove 'hide-youtube' from <body class="...">
   in index.html (or change 'display: none !important' below to 'display: revert !important').
   ========================================================================== */
.hide-youtube .youtube-feature {
  display: none !important;
}
.youtube-hidden {
  display: none;
}
.hide-youtube .youtube-hidden {
  display: inline !important;
}