/* ========================================
   CMC TechConsult - Custom Styles
   ======================================== */

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

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

.animate-fade-in {
  animation: fadeIn 0.8s ease-out both;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out both;
}

.animation-delay-200 {
  animation-delay: 200ms;
}

.animation-delay-400 {
  animation-delay: 400ms;
}

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

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

/* ---------- Header States ---------- */
#header {
  background: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

#header.scrolled {
  background: rgba(15, 15, 26, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ---------- Hamburger Menu ---------- */
.hamburger-line {
  display: block;
  position: absolute;
  width: 22px;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.top-line {
  transform: translateY(-6px);
}

.bottom-line {
  transform: translateY(6px);
}

.menu-open .top-line {
  transform: rotate(45deg);
}

.menu-open .middle-line {
  opacity: 0;
}

.menu-open .bottom-line {
  transform: rotate(-45deg);
}

/* ---------- Smooth Scrollbar ---------- */
html {
  scroll-padding-top: 80px;
}

/* ---------- Selection Color ---------- */
::selection {
  background: rgba(51, 119, 255, 0.3);
  color: inherit;
}

/* ---------- Focus Visible ---------- */
:focus-visible {
  outline: 2px solid rgba(51, 119, 255, 0.5);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Product Cards ---------- */
.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
}

/* ---------- Form Input Autofill ---------- */
input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px white inset;
  -webkit-text-fill-color: #1a1a2e;
}
