@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── TOKENS ──────────────────────────────────────────────── */
:root {
  --ink:    #1a1a2e;
  --chalk:  #f5f0e8;
  --green:  #a9dd15;
  --lime:   #74c69d;
  --yellow: #2596be;
  --sky:    #a8dadc;
  --red:    #e63946;
  --purple: #c77dff;
  --orange: #fb923c;
  --pink: #ffc5d3;
  --border: 2px solid var(--ink);
  --radius: 0px;
  --spacing: 24px;

  /* legacy compat */
  --bg: var(--chalk);
  --surface: white;
  --surface-hover: #ede8df;
  --text: var(--ink);
  --text-muted: rgba(26,26,46,0.6);
  --text-light: rgba(26,26,46,0.8);
  --accent: var(--green);
  --accent-hover: #3a8a65;
  --success: var(--lime);
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--chalk);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
    background:
    /* small accent dots */
    radial-gradient(circle at 58% 50%, rgba(37, 150, 190,.35) 0 30px, transparent 31px),
    radial-gradient(circle at 4% 30%,  rgba(169, 221, 21,.18) 0 28px, transparent 29px),
    radial-gradient(circle at 92% 95%, rgba(37, 150, 190,.18) 0 36px, transparent 37px),

    /* big blobs */

    radial-gradient(circle at 16% 88%, rgba(37, 150, 190,.18) 0 250px, transparent 251px),
    radial-gradient(circle at 72% 20%, rgba(169, 221, 21,.22) 0 180px, transparent 181px),
    radial-gradient(circle at 72% 60%, rgba(169, 221, 21,.22) 0 280px, transparent 281px),
    radial-gradient(circle at 22% 40%, rgba(37, 150, 190,.18) 0 180px, transparent 181px),
    
    /* diagonal “stripe” element */
    linear-gradient(45deg,
      transparent 0%,
      transparent 58%,
      rgba(37, 150, 190,.20) 58%,
      rgba(169, 221, 21,.14) 66%,
      transparent 66%,
      transparent 100%
    ),

    /* subtle grid */
    repeating-linear-gradient(to right,  rgba(0,0,0,.04) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(to bottom, rgba(0,0,0,.04) 0 1px, transparent 1px 40px),

    /* base background */
    linear-gradient(135deg, #f9f9f9 0%, #ececec 100%);

  background-repeat:no-repeat;
}
body::before { display: none; }

a { color: inherit; text-decoration: rgba(37, 150, 190,.35) underline wavy; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--spacing); }

/* ── HEADER ──────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: var(--border);
  backdrop-filter: none;
}
h1{
    margin-bottom:12px;
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  background: var(--ink);
  color: var(--chalk);
  padding: 72px 0 56px;
  border-bottom: var(--border);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent, transparent 20px,
    rgba(255,255,255,0.02) 20px, rgba(255,255,255,0.02) 40px
  );
  pointer-events: none;
}

.hero-content { max-width: 760px; position: relative; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: var(--lime);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
  margin-right: 8px;
  animation: fadeInUp 0.6s ease-out both;
  transition: background 0.2s;
}
.hero-badge::before { display: none; }
.hero-badge:hover { background: var(--yellow); transform: none; box-shadow: none; }

.hero h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 900;
  line-height: 1.1;
  margin: 12px 0 20px;
  color: var(--chalk);
}
.hero p {

  font-weight: 300;
  color: rgba(245,240,232,0.8);
  margin-bottom: 16px;
  line-height: 1.7;
}
.hero section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--lime);
}
.hero section p {  color: rgba(245,240,232,0.75); }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 0;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.2s;
  border: var(--border);
  cursor: pointer;
}
.tool-card-actions .btn { padding: 9px 16px; font-size: 12px; text-decoration:none;}

.btn-primary { background: var(--lime); color: var(--ink); position: relative; overflow: hidden; }
.btn-primary::before { display: none; }
.btn-primary:hover { background: var(--yellow); transform: translateY(-2px); box-shadow: 4px 4px 0 var(--ink); }
.btn-primary:active { transform: translateY(0); box-shadow: none; }

.btn-secondary { background: var(--chalk); color: var(--ink); position: relative; overflow: hidden; }
.btn-secondary:hover { background: rgba(245,240,232,0.1); border-color: var(--chalk); transform: translateY(-2px); box-shadow: none; }

/* ── TOOLS SECTION ───────────────────────────────────────── */
.tools-section { padding: 60px 0; border-bottom: var(--border); }

/* ── ARTICLES SECTION ─────────────────────────────────────── */
.articles-section { padding: 60px 0; border-bottom: var(--border); }

.section-header {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: var(--border);
  animation: fadeInUp 0.6s ease-out 0.2s both;
}
.section-header h2 {
 font-family: 'DM Sans', sans-serif;
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 8px;
  color: var(--ink);
  display: block;
}
.section-header h2::after { display: none; }
.section-header p { font-size: 15px; color: var(--text-muted); }
.article-card{
    height:320px;
}
/* ── TOOL GRID ───────────────────────────────────────────── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
 /*  border-top: var(--border);*/
  /* border-left: var(--border);*/
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* ── TOOL CARD ───────────────────────────────────────────── */
.tool-card {
  background: var(--chalk);
  border-right: var(--border);
  border-bottom: var(--border);
  border-left: 1px solid #1a1a2e;
  border-top: 1px solid #1a1a2e;
  border-radius: 0;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  opacity: 1;
  position: relative;

  transform-origin: center;
  will-change: transform;
  transform: translateZ(0);
  transition:
    transform 160ms cubic-bezier(.2,.8,.2,1),
    box-shadow 160ms cubic-bezier(.2,.8,.2,1),
    filter 160ms cubic-bezier(.2,.8,.2,1);
}
.tool-card::after{
  content:"";
  position:absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events:none;
  opacity: 0;
  box-shadow:
    0 18px 40px rgba(37, 150, 190,.18),
    0 8px 14px rgba(37, 150, 190,.18),
    8px 0 14px rgba(37, 150, 190,.18);
  transition: opacity 160ms cubic-bezier(.2,.8,.2,1);
}

.tool-card:hover{
  z-index: 2;
  transform: translate3d(0,-6px,0) scale(1.015);
  filter: saturate(1.02);
  box-shadow:
    0 18px 38px rgba(37, 150, 190,.18),    
    0 8px 0 rgba(37, 150, 190,.18),              
    8px 0 0 rgba(37, 150, 190,.18);
}

.tool-card:hover::after{ opacity: 1; }

.tool-card:active{
  transform: translate3d(0,-3px,0) scale(1.008);
}



.tool-card-image {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
  border-bottom: var(--border);
  transition: transform 0.4s ease, filter 0.3s ease;
  filter: grayscale(15%);
}
.tool-card:hover .tool-card-image { transform: scale(1.03); filter: grayscale(0%); }

.tool-card-content {
  padding: 22px 20px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}


.tool-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.tool-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
}

/* ── BADGES ──────────────────────────────────────────────── */
.tool-badge {
  padding: 3px 10px;
  border-radius: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1.5px solid var(--ink);
  transition: transform 0.2s;
}
.tool-badge:hover { transform: scale(1.05); box-shadow: none; }
.tool-badge.python    { background: #4B8BBE;    color: #FFFF00; }
.tool-badge.agile     { background: #FFFF80; color: var(--ink); }
.tool-badge.terminal  { background: var(--ink);   color: var(--lime); }
.tool-badge.sql       { background: var(--sky);    color: var(--ink); }
.tool-badge.cyber     { background: var(--red);    color: white; }
.tool-badge.networks  { background: var(--purple); color: var(--ink); }
.tool-badge.revision  { background: var(--orange); color: var(--ink); }
.tool-badge.testing  { background: var(--pink); color: var(--ink); }
.tool-badge.medium    { background: var(--ink);    color: var(--chalk); }


.article-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.article-card .tool-card-image {
  height: 150px;
}

.tool-card-description {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.tool-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  flex-wrap: wrap-reverse;
}
.tool-card-actions .bmc-right { margin-left: auto; display: flex; align-items: center; }

/* ── MORE INFO BUTTON ────────────────────────────────────── */
.more-info-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border-radius: 0;
  border: var(--border);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s;
}
.more-info-btn:hover { background: var(--ink); color: var(--chalk); transform: none; border-color: var(--ink); }
.more-info-btn svg { width: 16px; height: 16px; }
.more-info-btn:hover svg { transform: none; }

/* ── BMC ICON ────────────────────────────────────────────── */
.bmc-icon {
  width: 36px; height: 36px;
  border-radius: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: var(--border);
  background: transparent;
  color: var(--ink);
  transition: background 0.15s;
}
.bmc-icon:hover { background: var(--yellow); transform: none; }
.bmc-icon:hover svg { transform: none; }

/* ── MODAL ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(26,26,46,0.7);
  display: none; align-items: center; justify-content: center;
  padding: 18px; z-index: 9999;
}
.modal-overlay[aria-hidden="false"] { display: flex; }

.modal {
  width: min(860px, 100%);
  max-height: 86vh;
  background: var(--chalk);
  border: var(--border);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 8px 8px 0 var(--ink);
  display: flex; flex-direction: column;
  animation: modalSlideIn 0.3s ease both;
}
@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px;
  border-bottom: var(--border);
  background: var(--ink);
  color: var(--chalk);
  backdrop-filter: none;
}
.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px; font-weight: 700; color: var(--chalk); margin: 0;
}
.modal-header-actions { display: flex; gap: 10px; align-items: center; }
.modal-close {
  background: transparent;
  border: 1.5px solid rgba(245,240,232,0.4);
  color: var(--chalk);
  width: 36px; height: 36px; border-radius: 0;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.modal-close:hover { background: rgba(245,240,232,0.15); border-color: var(--chalk); }
.modal-header .btn-primary {
  background: var(--lime); color: var(--ink); border: 1.5px solid var(--lime);
}
.modal-header .btn-primary:hover { background: var(--yellow); border-color: var(--yellow); box-shadow: none; }

.modal-body { padding: 24px; overflow: auto; }
.modal-body h2 { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.modal-body h3 {
  font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 700;
  margin-top: 18px; margin-bottom: 8px;
  border-bottom: 1px solid rgba(26,26,46,0.15); padding-bottom: 4px;
}
.modal-body p  { color: var(--text-muted); margin-bottom: 12px; font-size: 14px; }
.modal-body ul, .modal-body ol { margin-left: 18px; margin-bottom: 12px; color: var(--text-muted); font-size: 14px; }
.modal-body code { background: rgba(26,26,46,0.08); border: 1px solid rgba(26,26,46,0.15); padding: 2px 6px; font-family: ui-monospace, monospace; font-size: 0.9em; color: var(--green); }
.modal-body hr { border: none; border-top: var(--border); margin: 16px 0; }

/* ── CONTACT FORM ────────────────────────────────────────── */
#contact-form input, #contact-form textarea {
  border-radius: 0 !important; border: var(--border) !important;
  background: white !important; color: var(--ink) !important;
  font-family: 'DM Sans', sans-serif !important;
}
#contact-form input:focus, #contact-form textarea:focus { outline: 2px solid var(--lime); }
#contact-form label { color: var(--ink) !important; font-weight: 600; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background: var(--ink); color: rgba(245,240,232,0.6);
  margin-top: 0; padding: 32px 0; border-top: var(--border);
  text-align: center; font-size: 13px;
}

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

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero { padding: 48px 0 36px; }
  .hero p { font-size: 15px; }
  .tools-grid { grid-template-columns: 1fr; }
  .section-header h2 { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
