/* =========================
   Global / Reset
========================= */
:root{
  --bg:#0D0D0D;
  --panel:#141414;
  --text:#ffffff;
  --muted:#cfcfcf;
  --accent:#2A1748;
  --accent-2:#7b47ff;
  --border:#2a2a2a;
  --radius:14px;

  /* Logo sizing */
  --logo-desktop: 35px;  /* desktop header logo */
  --logo-mobile:  26px;  /* mobile header logo (match footer) */
}

/* Make footer stick to bottom on short pages */
html, body { height: 100%; margin: 0; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  line-height:1.6;
  color:var(--text);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
main { flex: 1; }

*{ box-sizing:border-box; }
img{ max-width:100%; height:auto; display:block; }

a{ color:#fff; text-decoration:none; }
a:hover{ text-decoration:none; }

/* =========================
   Top Bar / Header
========================= */
.top-bar{
  background: var(--accent);
  border-radius: var(--radius);
  padding: 12px 0;           /* bar height */
  width: 100%;
  position: relative;
  margin: 8px auto 12px;
}

.menu{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: clamp(6px, 2vw, 20px);
  flex-wrap: nowrap;
  overflow: visible; /* dropdown needs this */
  padding: 0 10px;
}

/* Logo link & image */
.logo-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  line-height:1;
  font-weight:700;
  color:#fff;
}

#header-logo{
  width:auto;
  height: var(--logo-desktop);
  object-fit:contain;
}



/* Menu links */
.menu a{
  color:#fff;
  font-size: clamp(12px, 1.6vw, 16px);
  padding: 8px clamp(8px, 1.5vw, 20px);
  margin: 0 clamp(6px, 1.5vw, 15px);
  border-radius: 8px;
  white-space: nowrap;
  transition: background-color .2s ease, transform .1s ease;
}
.menu a:hover{ background: rgba(0,0,0,.18); }
.menu a.active{ background: rgba(0,0,0,.28); }

/* Dropdown */
.dropdown { position: relative; display: inline-block; }
.dropbtn{
  color:#fff;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  display: inline-block;
  border-radius: 8px;
  padding: 8px clamp(8px, 1.5vw, 20px);
  margin: 0 clamp(6px, 1.5vw, 15px);
  white-space: nowrap;
  transition: background-color .2s ease;
}
.dropbtn:hover{ background: rgba(0,0,0,.18); }
.dropdown-content{
  display:none;
  position:absolute;
  background-color:#2A1748;
  min-width:140px;
  box-shadow:0 4px 12px rgba(0,0,0,0.3);
  z-index:1;
  border-radius:6px;
}
.dropdown-content a{
  color:white;
  padding:10px 16px;
  text-decoration:none;
  display:block;
}
.dropdown-content a:hover{ background-color:#3a2560; }
.dropdown:hover .dropdown-content{ display:block; }
.dropdown-content.show{ display:block; }

/* =========================
   Hero (Header Content)
========================= */
.header-content{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: clamp(10px, 2vw, 20px);
  flex-wrap: nowrap;
  padding: clamp(8px, 2vw, 20px) 0;
  min-width:0;
}
h1{
  font-size: clamp(22px, 3.5vw, 40px);
  margin:0;
  text-align:center;
}
.computer-image, .hacker-image{
  height: clamp(40px, 10vw, 100px);
  width:auto;
  flex:0 0 auto;
}
@media (max-width: 360px){
  .header-content{ flex-wrap: wrap; }
}

/* =========================
   Article Cards
========================= */
.article{
  background: var(--panel);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: clamp(12px, 2.5vw, 20px);
  margin: 18px 8px;
  box-shadow: 0 2px 14px rgba(122, 71, 255, 0.08);
  transition: transform .12s ease, box-shadow .12s ease;
}
.article:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(122, 71, 255, 0.15);
}
.article h2{
  font-size: clamp(18px, 2.4vw, 28px);
  margin: 0 0 8px 0;
  color: #b58cff;
  text-align:center;
}
.article h2 a{ color:#b58cff; }
.article h2 a:hover{ text-decoration: underline; }
.article p{
  font-size: clamp(14px, 2vw, 18px);
  color: var(--muted);
  margin: 6px 0;
  text-align:left;
}
.article-summary{
  font-size: 1rem;
  color: #e8e8e8;
  line-height: 1.6;
  margin-top: 10px;
  text-align: left;
}
.article-summary ul{ margin: 0 0 0 18px; }
.article-summary li{ margin: 6px 0; }
.article-summary{ white-space: normal; }
.prewrap{ white-space: pre-wrap; }

/* Divider */
.section-divider{
  height: 3px;
  background: var(--accent);
  margin: 22px 8px;
  border-radius: 3px;
}
.badge{
  display:inline-block;
  margin-left:8px;
  padding:2px 8px;
  border-radius:12px;
  font-size:12px;
  line-height:1.6;
  background:#2A1748;
  color:#fff;
  border:1px solid rgba(255,255,255,.15);
}
.meta{ color: var(--muted); }

/* =========================
   Contact / Forms
========================= */
.contact-wrap{ max-width: 720px; margin: 30px auto; padding: 0 16px; }
.contact-wrap h1{ margin-bottom: 6px; }
.contact-form .form-row{ display:flex; flex-direction:column; margin-bottom:14px; }
.contact-form label{ margin-bottom:6px; color:#fff; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea{
  background:#111;
  color:#fff;
  border:1px solid var(--border);
  border-radius:8px;
  padding:10px 12px;
  outline:none;
}
.contact-form input:focus,
.contact-form textarea:focus{ border-color: var(--accent); }
.contact-form .checkbox label{ display:inline-flex; align-items:center; gap:8px; }

.btn-primary, .btn-secondary{
  display:inline-block;
  padding:10px 16px;
  border-radius:8px;
  text-decoration:none;
}
.btn-primary{
  background: var(--accent);
  color:#fff;
  border:none;
}
.btn-primary:hover{ filter: brightness(1.08); }
.btn-secondary{
  background:#111;
  color:#fff;
  border:1px solid var(--border);
}
.btn-secondary:hover{ border-color:#3a3a3a; }

/* Flash messages */
.flash-list{ list-style:none; padding:0; margin:10px 0 16px; }
.flash{ padding:8px 12px; border-radius:6px; }
.flash.error{ background:#3a1010; color:#ffbdbd; }

/* Honeypot (hidden field) */
.hp{
  position:absolute;
  left:-10000px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}

/* =========================
   About page
========================= */
.about-hero{ max-width: 900px; margin: 32px auto 10px; padding: 0 16px; }
.about-hero h1{ margin:0 0 6px; }
.tagline{ color:var(--muted); margin:0; }
.profile-photo{
  display:block;
  margin:20px auto;
  border-radius:50%;
  border:3px solid #ccc;
  object-fit:cover;
  box-shadow:0 4px 8px rgba(0,0,0,0.1);
}
.about-body{ max-width: 900px; margin: 10px auto 40px; padding: 0 16px; }
.about-body h2{ margin-top: 26px; margin-bottom: 10px; }
.about-body p{ line-height:1.7; }
.bullets{ margin:10px 0 0 0; padding-left:18px; }
.bullets li{ margin:6px 0; }
.about-cta{ display:flex; gap:12px; margin-top:22px; flex-wrap:wrap; }

/* =========================
   Utilities
========================= */
.page-content{ padding-bottom: 30px; }
.container{ max-width:1200px; margin:0 auto; padding:0 15px; }

/* =========================
   Footer
========================= */
.site-footer{
  background: #111;
  border-top: 1px solid var(--border);
  margin-top: 28px;
  color: var(--muted);
}
.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:18px 15px;
  flex-wrap:wrap;
}
.footer-logo{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:700;
  color:#fff;
}
.footer-logo img{
  height: 26px;  /* footer logo size */
  width: auto;
}
.footer-tag{
  margin:6px 0 0 0;
  font-size:0.95rem;
  color:var(--muted);
}
.footer-links{
  display:flex;
  align-items:center;
  gap: clamp(10px, 2vw, 22px);
  flex-wrap:wrap;
}
.footer-links a{
  color:#fff;
  font-size:0.95rem;
  padding:6px 8px;
  border-radius:6px;
  transition: background-color .2s ease;
}
.footer-links a:hover{ background: rgba(255,255,255,.06); }
.footer-bottom{
  border-top: 1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 15px 16px;
  font-size:0.9rem;
}
.footer-bottom a{ color:#b58cff; text-decoration:none; }
.footer-bottom a:hover{ text-decoration: underline; }
@media (max-width: 640px){
  .footer-inner{ align-items:flex-start; }
  .footer-bottom{
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
  }
}
/* Footer keeps 26px */
.footer-logo img{
  height:26px;
  width:auto;
  display:block;
}



/* bump header on desktop only */
@media (min-width:768px){
  #header-logo{ height:35px; }    /* or 30px, whatever you prefer */
}
:root{
  --logo-mobile: 28px;   /* tweak this for BOTH header & footer on phones */
  --logo-desktop: 32px;  /* header size on desktop; change or remove if not needed */
}



/* Optional: make header bigger on desktop (footer stays same) */
@media (min-width: 768px){
  #header-logo{ height: var(--logo-desktop) !important; }
  /* If you ALSO want the footer to match the header on desktop, uncomment: */
  /* .footer-logo img{ height: var(--logo-desktop) !important; } */
}
/* Footer stays as-is (26px) — no change */
.footer-logo img{
  height:26px;
  width:auto;
  display:block;
}



/* Optional: even larger on desktop */
@media (min-width:768px){
  #header-logo{
    height:38px !important;    /* e.g., 36–40px */
  }
}
/* ===== FINAL HEADER/FOOTER LOGO SIZING — keep at the very end ===== */
:root{
  --footer-logo:    26px;  /* footer stays 26px */
  --header-mobile:  32px;  /* tweak this for phones */
  --header-desktop: 32px;  /* tweak this for desktop */
}

/* Footer */
.footer-logo img{
  height: var(--footer-logo) !important;
  width: auto !important;
  display: block;
  object-fit: contain;
}

/* Header (mobile default) */
#header-logo{
  height: var(--header-mobile) !important;
  max-height: none !important;   /* <-- remove earlier cap */
  width: auto !important;
  display: block;
  object-fit: contain;
}

/* Header (desktop) */
@media (min-width: 768px){
  #header-logo{
    height: var(--header-desktop) !important;
    max-height: none !important; /* belt & suspenders */
  }
}