/* ===============================
   Cybersecurity Portfolio Styles
   Static CSS only — no JS required
   =============================== */

:root {
  --bg: #070b12;
  --bg2: #05070c;
  --card: rgba(255, 255, 255, 0.04);
  --card2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.10);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.70);
  --accent: #66ffe3;
  --accent2: #8aa6ff;
  --danger: #ff4d6d;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);

  /* Pico theme overrides */
  --pico-background-color: var(--bg);
  --pico-color: var(--text);
  --pico-muted-color: var(--muted);
  --pico-primary: var(--accent);
  --pico-primary-hover: #8bffed;
  --pico-card-background-color: var(--card);
  --pico-card-sectioning-background-color: rgba(255, 255, 255, 0.03);
  --pico-border-color: var(--border);
  --pico-form-element-background-color: rgba(255, 255, 255, 0.03);
  --pico-form-element-border-color: rgba(255, 255, 255, 0.10);
  --pico-form-element-active-border-color: rgba(102, 255, 227, 0.50);
  --pico-form-element-focus-color: rgba(102, 255, 227, 0.18);
}

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(1200px 600px at 15% 10%, rgba(102, 255, 227, 0.12), transparent 55%),
    radial-gradient(900px 500px at 80% 0%, rgba(138, 166, 255, 0.12), transparent 60%),
    radial-gradient(900px 500px at 50% 100%, rgba(255, 77, 109, 0.07), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

/* Sticky navigation (glass) */
.navglass {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(7, 11, 18, 0.65);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

nav strong { letter-spacing: 0.4px; }
.accent { color: var(--accent); }

/* Hero card with scanline + grid texture (CSS-only animation) */
.hero {
  margin-top: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border-radius: 1.1rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(102,255,227,0.00),
    rgba(102,255,227,0.12),
    rgba(102,255,227,0.00)
  );
  transform: translateY(-120%);
  animation: scan 5.8s linear infinite;
  pointer-events: none;
  opacity: 0.75;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.12;
  pointer-events: none;
  mask-image: radial-gradient(circle at 30% 30%, black 20%, transparent 65%);
}

@keyframes scan {
  0% { transform: translateY(-120%); }
  100% { transform: translateY(120%); }
}

.hero-inner {
  position: relative;
  padding: clamp(1.25rem, 2.5vw, 2.25rem);
  display: grid;
  gap: 1rem;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(102,255,227,0.9);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(0.95); opacity: 0.65; }
  50% { transform: scale(1.15); opacity: 1; }
}

.lead {
  max-width: 70ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.tag {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.80);
}

/* Sections */
.section {
  margin-top: 3rem;
}

.card {
  border: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border-radius: 1rem;
  box-shadow: 0 14px 44px rgba(0,0,0,0.25);
  position: relative;
  overflow: hidden;
}

/* Hover sheen */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 200px at 10% 10%, rgba(102,255,227,0.10), transparent 55%);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.card:hover::before {
  opacity: 1;
}

.muted { color: var(--muted); }
.tiny { font-size: 0.9rem; }

.bullets { margin-top: 0.5rem; }

.mini-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .mini-grid { grid-template-columns: 1fr; }
}

.mini {
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  border-radius: 0.9rem;
  padding: 0.85rem;
}

.mini-title {
  margin: 0 0 0.25rem 0;
  font-weight: 700;
  color: rgba(255,255,255,0.90);
}

.mini-text { margin: 0; color: rgba(255,255,255,0.72); }

.stack { display: grid; gap: 0.85rem; margin-top: 0.5rem; }
.stack-item {
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  border-radius: 0.9rem;
  padding: 0.9rem;
  transform: translateZ(0);
  transition: transform 160ms ease, border-color 160ms ease;
}

.stack-item:hover {
  transform: translateY(-2px);
  border-color: rgba(102,255,227,0.35);
}

.pill {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  border: 1px solid rgba(102,255,227,0.25);
  color: rgba(102,255,227,0.95);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.4rem;
}

/* Wide images */
figure.wide {
  margin-top: 1.25rem;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: var(--shadow);
}

figure.wide img {
  width: 100%;
  height: clamp(220px, 35vw, 420px);
  object-fit: cover;
  display: block;
  filter: contrast(1.05) saturate(1.05);
  transform: scale(1.02);
  transition: transform 400ms ease;
}

figure.wide:hover img { transform: scale(1.06); }

/* Timeline */
.timeline {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.titem {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0.75rem;
  align-items: start;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 0.9rem;
  padding: 0.8rem;
  background: rgba(255,255,255,0.03);
}

.tcap {
  font-weight: 700;
  color: rgba(255,255,255,0.88);
  border-right: 1px dashed rgba(255,255,255,0.12);
  padding-right: 0.75rem;
}

.tname { margin: 0; font-weight: 700; }
.tmeta { margin: 0.15rem 0 0 0; color: rgba(255,255,255,0.72); }

/* Gallery */
.gallery {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .gallery { grid-template-columns: 1fr; }
}

.gcard {
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  transform: translateZ(0);
  transition: transform 160ms ease, border-color 160ms ease;
}

.gcard:hover {
  transform: translateY(-2px);
  border-color: rgba(138,166,255,0.35);
}

.gcard img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.callout { margin-top: 1.25rem; }

/* Buttons */
.cta {
  border: 1px solid rgba(102,255,227,0.35);
  box-shadow: 0 0 24px rgba(102,255,227,0.10);
}

/* Footer */
.footer {
  margin-top: 3rem;
  padding-bottom: 2rem;
}

.sep { margin: 0 0.35rem; opacity: 0.5; }

/* Reduce motion support */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero::before, .dot { animation: none !important; }
  figure.wide img { transition: none !important; }
  .stack-item, .gcard, .card::before { transition: none !important; }
}
