/* modlogic.com — AWS cloud security consulting */

:root {
  --ml-bg: #0b1120;
  --ml-accent: #22d3ee;
  --ml-accent-2: #34d399;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--ml-bg);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

/* Subtle glow/grid backdrop behind hero and contact sections */
.ml-grid-glow {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(34, 211, 238, 0.14), transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(52, 211, 153, 0.12), transparent 45%),
    linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
  background-size: auto, auto, 42px 42px, 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 95%);
  pointer-events: none;
}

.ml-gradient-text {
  background: linear-gradient(90deg, var(--ml-accent), var(--ml-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Nav underline */
.ml-nav-link {
  position: relative;
}

.ml-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ml-accent), var(--ml-accent-2));
  transition: width 0.25s ease;
}

.ml-nav-link:hover::after {
  width: 100%;
}

/* Card hover lift */
.ml-card {
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.ml-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 12px 40px -12px rgba(34, 211, 238, 0.25);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--ml-bg);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}
