/* --- COMMON & INDEX --- */

:root {
  --blue: #005BBB;
  --blue-l: #1a74d4;
  --blue-d: #003d82;
  --yellow: #FFD700;
  --yellow-d: #e6be00;
  --bg: #050d1a;
  --bg2: #0a1628;
  --bg3: #0f1f38;
  --ink: #e8f0ff;
  --ink2: #8aa4cc;
  --border: #1a2e50;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Syne', sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 91, 187, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 91, 187, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* HERO SPLIT */
.hero-split {
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100vh;
  background: linear-gradient(135deg, var(--blue-d), var(--blue));
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 0;
  overflow: hidden;
}

.hero-split::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255, 215, 0, 0.03) 0px, rgba(255, 215, 0, 0.03) 1px, transparent 1px, transparent 20px);
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px;
  height: 68px;
  background: rgba(5, 13, 26, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  letter-spacing: 0.15em;
  color: var(--yellow);
  text-decoration: none;
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  box-shadow: 0 0 8px var(--yellow);
}

.nav-links a:hover {
  color: var(--yellow);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 56px;
  z-index: 1;
}

.hero-content {
  max-width: 580px;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--yellow);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.2s forwards;
}

.eyebrow-line {
  width: 40px;
  height: 1px;
  background: var(--yellow);
  box-shadow: 0 0 8px var(--yellow);
}

.hero-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(5rem, 10vw, 8rem);
  line-height: 0.92;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  display: flex;
  gap: 20px;
  align-items: baseline;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.4s forwards;
}

.hero-name .line1 {
  color: var(--ink);
  display: inline-block;
}

.hero-name .line2 {
  color: var(--yellow);
  display: inline-block;
  text-shadow: 0 0 60px rgba(255, 215, 0, 0.35);
}

.hero-bio {
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink2);
  line-height: 1.8;
  max-width: 440px;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.6s forwards;
}

.hero-bio strong {
  color: var(--ink);
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.8s forwards;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  background: var(--yellow);
  color: var(--bg);
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.22s;
}

.btn-primary:hover {
  background: var(--yellow-d);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  background: transparent;
  color: var(--ink);
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: all 0.22s;
}

.btn-outline:hover {
  border-color: var(--blue-l);
  color: var(--blue-l);
  transform: translateY(-2px);
}

/* AVATAR */
.hero-avatar-side {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.5s forwards;
}

.avatar-box {
  width: 220px;
  height: 220px;
  background: var(--bg2);
  border: 2px solid var(--yellow);
  box-shadow: 0 0 60px rgba(255, 215, 0, 0.2), inset 0 0 40px rgba(0, 91, 187, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.avatar-box::before,
.avatar-box::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--blue-l);
  border-style: solid;
}

.avatar-box::before {
  top: -8px;
  left: -8px;
  border-width: 2px 0 0 2px;
}

.avatar-box::after {
  bottom: -8px;
  right: -8px;
  border-width: 0 2px 2px 0;
}

.avatar-letter {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.status-pill {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 8px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--ink2);
}

.dot-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4cff80;
  box-shadow: 0 0 8px #4cff80;
  animation: blink 2s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0.3
  }
}

/* SCROLL HINT */
.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 56px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--ink2);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeUp 0.6s ease 1.2s forwards;
}

.scroll-line {
  width: 40px;
  height: 1px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--yellow);
  animation: slideLine 2s ease-in-out infinite;
}

@keyframes slideLine {
  0% {
    left: -100%
  }

  100% {
    left: 100%
  }
}

/* SECTIONS */
section {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 56px;
}

.section-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--blue-l);
  letter-spacing: 0.18em;
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.5rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 56px;
}

.section-title span {
  color: var(--yellow);
}

/* NAV CARDS */
.cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2px;
}

.nav-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 44px 36px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nav-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  box-shadow: 0 0 12px var(--yellow);
}

.nav-card:hover {
  background: var(--bg3);
  transform: translateY(-4px);
}

.nav-card:hover::before {
  transform: scaleX(1);
}

.card-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--blue-l);
  letter-spacing: 0.15em;
}

.card-icon-big {
  font-size: 2.8rem;
  margin-bottom: 4px;
}

.card-title-big {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.06em;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--ink2);
  line-height: 1.7;
}

.card-cta {
  margin-top: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--yellow);
  letter-spacing: 0.1em;
}

/* SKILLS */
.skills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  padding: 8px 18px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--ink2);
  letter-spacing: 0.06em;
  cursor: default;
  transition: all 0.2s;
}

.skill:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.15);
}

/* DIVIDER & FOOTER */
.h-divider {
  border: none;
  border-top: 1px solid var(--border);
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 32px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  color: var(--yellow);
  letter-spacing: 0.1em;
  opacity: 0.6;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--ink2);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--yellow);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@media(max-width:900px) {
  nav {
    padding: 0 24px;
  }

  .nav-links {
    gap: 20px;
  }

  .hero {
    padding: 0 24px;
  }

  .hero-split,
  .hero-avatar-side,
  .scroll-hint {
    display: none;
  }

  section {
    padding: 70px 24px;
  }

  footer {
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    text-align: center;
  }
}



/* --- LIFESTYLE SPECIFIC --- */

:root {
  --blue: #005BBB;
  --blue-l: #1a74d4;
  --blue-d: #003d82;
  --yellow: #FFD700;
  --yellow-d: #e6be00;
  --bg: #050d1a;
  --bg2: #0a1628;
  --bg3: #0f1f38;
  --ink: #e8f0ff;
  --ink2: #8aa4cc;
  --border: #1a2e50;
  --wine: #c94060;
  --spirits: #d4882a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Syne', sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(0, 91, 187, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 91, 187, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px;
  height: 68px;
  background: rgba(5, 13, 26, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  letter-spacing: 0.15em;
  color: var(--yellow);
  text-decoration: none;
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}

.nav-links a.active {
  color: var(--yellow);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  box-shadow: 0 0 8px var(--yellow);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-links a:hover {
  color: var(--yellow);
}

/* PAGE HERO */
.page-hero {
  position: relative;
  z-index: 1;
  padding: 120px 56px 70px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--ink2);
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--yellow);
  text-decoration: none;
}

.page-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 6vw, 5rem);
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 16px;
}

.page-title span {
  color: var(--yellow);
}

.page-desc {
  font-size: 0.95rem;
  color: var(--ink2);
  max-width: 520px;
  line-height: 1.75;
}

.hero-quote {
  font-family: 'Syne', sans-serif;
  font-style: italic;
  font-size: 0.88rem;
  color: var(--ink2);
  border-left: 3px solid var(--yellow);
  padding-left: 20px;
  max-width: 260px;
  line-height: 1.7;
  flex-shrink: 0;
  box-shadow: -3px 0 20px rgba(255, 215, 0, 0.1);
}

/* FILTER */
.filter-bar {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 56px 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  padding: 8px 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink2);
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.2s;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--yellow);
  color: var(--bg);
  border-color: var(--yellow);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

/* CARDS AREA */
.cards-area {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 56px 80px;
}

/* FEATURED */
.featured-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 2px;
  overflow: hidden;
  transition: all 0.25s;
  position: relative;
}

.featured-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--yellow));
  z-index: 1;
}

.featured-card:hover {
  background: var(--bg3);
}

.featured-visual {
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  background: linear-gradient(135deg, rgba(0, 91, 187, 0.3), rgba(0, 61, 130, 0.5));
  border-right: 1px solid var(--border);
}

.featured-body {
  padding: 44px;
}

.featured-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--yellow);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.featured-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.05em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.featured-text {
  font-size: 0.88rem;
  color: var(--ink2);
  line-height: 1.7;
  margin-bottom: 24px;
}

.note-row {
  display: flex;
  gap: 5px;
  margin-bottom: 20px;
}

.pip {
  width: 12px;
  height: 12px;
  border: 1px solid var(--border);
}

.pip.on {
  background: var(--yellow);
  border-color: var(--yellow);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  background: var(--yellow);
  color: var(--bg);
  font-family: 'Syne', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-sm:hover {
  background: var(--yellow-d);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

/* MASONRY GRID */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2px;
  margin-top: 2px;
}

.article-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.25s;
  cursor: pointer;
  position: relative;
}

.article-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
  box-shadow: 0 0 10px var(--yellow);
}

.article-card:hover {
  background: var(--bg3);
}

.article-card:hover::after {
  transform: scaleX(1);
}

.card-thumb {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
}

.wine-thumb {
  background: linear-gradient(135deg, rgba(201, 64, 96, 0.2), rgba(120, 20, 50, 0.4));
}

.spirits-thumb {
  background: linear-gradient(135deg, rgba(212, 136, 42, 0.2), rgba(140, 80, 10, 0.4));
}

.food-thumb {
  background: linear-gradient(135deg, rgba(0, 91, 187, 0.2), rgba(0, 61, 130, 0.4));
}

.other-thumb {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(180, 150, 0, 0.25));
}

.card-body {
  padding: 24px;
}

.card-category {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.cat-wine {
  color: var(--wine);
}

.cat-spirits {
  color: var(--spirits);
}

.cat-food {
  color: var(--blue-l);
}

.cat-other {
  color: var(--yellow-d);
}

.card-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  line-height: 1.3;
}

.card-text {
  font-size: 0.82rem;
  color: var(--ink2);
  line-height: 1.65;
  margin-bottom: 16px;
}

.card-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--ink2);
}

.card-read {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--yellow);
}

footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 32px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  color: var(--yellow);
  letter-spacing: 0.1em;
  opacity: 0.6;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--ink2);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--yellow);
}

@media(max-width:900px) {
  nav {
    padding: 0 24px;
  }

  .nav-links {
    gap: 20px;
  }

  .page-hero {
    flex-direction: column;
    padding: 100px 24px 40px;
  }

  .hero-quote {
    display: none;
  }

  .filter-bar,
  .cards-area {
    padding-left: 24px;
    padding-right: 24px;
  }

  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-visual {
    height: 180px;
  }

  footer {
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    text-align: center;
  }
}


/* --- CYBERSEC SPECIFIC --- */

:root {
  --blue: #005BBB;
  --blue-l: #1a74d4;
  --blue-d: #003d82;
  --yellow: #FFD700;
  --yellow-d: #e6be00;
  --bg: #050d1a;
  --bg2: #0a1628;
  --bg3: #0f1f38;
  --ink: #e8f0ff;
  --ink2: #8aa4cc;
  --border: #1a2e50;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Syne', sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(0, 91, 187, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 91, 187, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px;
  height: 68px;
  background: rgba(5, 13, 26, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  letter-spacing: 0.15em;
  color: var(--yellow);
  text-decoration: none;
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}

.nav-links a.active {
  color: var(--yellow);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  box-shadow: 0 0 8px var(--yellow);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-links a:hover {
  color: var(--yellow);
}

/* PAGE HEADER */
.page-header {
  position: relative;
  z-index: 1;
  padding: 120px 56px 60px;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--ink2);
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--yellow);
  text-decoration: none;
}

.page-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 6vw, 5rem);
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 16px;
}

.page-title span {
  color: var(--yellow);
}

.page-desc {
  font-size: 0.95rem;
  color: var(--ink2);
  max-width: 540px;
  line-height: 1.75;
  font-weight: 400;
}

/* TABS */
.tabs-bar {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 56px;
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.tab-btn {
  padding: 20px 28px;
  font-family: 'Syne', sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  background: transparent;
  color: var(--ink2);
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transition: transform 0.2s;
  box-shadow: 0 0 10px var(--yellow);
}

.tab-btn.active {
  color: var(--yellow);
}

.tab-btn.active::after {
  transform: scaleX(1);
}

.tab-btn:hover {
  color: var(--yellow);
}

/* CONTENT */
.content-area {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 52px 56px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* WRITEUP LIST */
.writeup-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.writeup-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 28px 32px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  transition: all 0.22s;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.writeup-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--yellow);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
  box-shadow: 0 0 10px var(--yellow);
}

.writeup-card:hover {
  background: var(--bg3);
  transform: translateX(4px);
}

.writeup-card:hover::before {
  transform: scaleY(1);
}

.writeup-meta {
  flex: 1;
}

.writeup-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  padding: 3px 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag-ctf {
  background: rgba(0, 91, 187, 0.2);
  color: var(--blue-l);
  border: 1px solid rgba(0, 91, 187, 0.3);
}

.tag-blue {
  background: rgba(0, 91, 187, 0.15);
  color: #5aa0e0;
  border: 1px solid rgba(0, 91, 187, 0.25);
}

.tag-research {
  background: rgba(255, 215, 0, 0.1);
  color: var(--yellow-d);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.tag-tool {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink2);
  border: 1px solid var(--border);
}

.writeup-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.writeup-desc {
  font-size: 0.85rem;
  color: var(--ink2);
  font-weight: 400;
  line-height: 1.65;
}

.writeup-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--ink2);
  white-space: nowrap;
  padding-top: 4px;
}

/* VEILLE GRID */
.veille-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2px;
}

.veille-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 28px;
  transition: all 0.22s;
  position: relative;
  overflow: hidden;
}

.veille-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--yellow));
  transform: scaleX(0);
  transition: transform 0.3s;
}

.veille-card:hover {
  background: var(--bg3);
}

.veille-card:hover::after {
  transform: scaleX(1);
}

.veille-source {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--yellow-d);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.veille-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  line-height: 1.3;
}

.veille-text {
  font-size: 0.82rem;
  color: var(--ink2);
  font-weight: 400;
  line-height: 1.65;
}

/* RESSOURCES */
.ressources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2px;
}

.ressource-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 22px 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: all 0.2s;
}

.ressource-item:hover {
  border-color: var(--yellow);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.08);
}

.ressource-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.ressource-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.ressource-desc {
  font-size: 0.78rem;
  color: var(--ink2);
}

.h-divider {
  border: none;
  border-top: 1px solid var(--border);
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 32px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  color: var(--yellow);
  letter-spacing: 0.1em;
  opacity: 0.6;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--ink2);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--yellow);
}

@media(max-width:900px) {
  nav {
    padding: 0 24px;
  }

  .nav-links {
    gap: 20px;
  }

  .page-header {
    padding: 100px 24px 40px;
  }

  .tabs-bar {
    padding: 0 24px;
    overflow-x: auto;
  }

  .content-area {
    padding: 40px 24px;
  }

  footer {
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    text-align: center;
  }
}
.side-description {
  margin-top: 14px;
  padding: 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  color: var(--ink2);
  line-height: 1.6;
  max-width: 220px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}
