/* ===== FONT (self-hosted Inter, variable, latin subset) ===== */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/Inter-latin.woff2') format('woff2');
}

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

html {
  scroll-behavior: smooth; /* enables smooth scrolling */
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: #222;
  background: #fff;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 0;
  transition: background 0.4s ease, box-shadow 0.4s ease;
  z-index: 1000;
  background: transparent;
}

.site-header.scrolled {
  background: rgba(0, 0, 0, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 1px;
  color: #a50000;
}

.logo img {
    display: inline-block;
    max-height: 60px;
    width: auto;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease, opacity 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.main-nav li.lang img {
  width: 24px;
  height: 18px;
  border-radius: 2px;
  transition: transform 0.3s ease;
}

.main-nav li.lang img:hover {
  transform: scale(1.1);
}

/* Hover focus fade effect */
.main-nav:hover a {
  opacity: 0.4;
}

.main-nav a:hover {
  opacity: 1;
  color: white;
}

/* ===== HERO ===== */
.hero {
  height: 100vh;
  background-color: #0a0a0a;
  background-image: url('/img/background1.jpg'); /* fallback */
  background-image: -webkit-image-set(url('/img/background1.webp') type('image/webp'), url('/img/background1.jpg') type('image/jpeg'));
  background-image: image-set(url('/img/background1.webp') type('image/webp'), url('/img/background1.jpg') type('image/jpeg'));
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #fff;
  text-align: left;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.hero .container {
  position: relative;
  z-index: 2;
  max-width: 1000px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  background: #a50000;
  color: white;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn:hover {
  background: white;
  color: black;
}

.smallbtn {
  display: inline-block;
  background: #a50000;
  color: white;
  padding: 0.1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.smallbtn:hover {
  background: white;
  color: black;
}

/* ===== WHITE SECTIONS ===== */
.section-white {
  background: white;
  color: #000000;
  padding: 6rem 1rem;
  text-align: left;
}

.section-white h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #0a0a0a;
}

.section-white p {
  max-width: 1000px;
  font-size: 1.1rem;
  /*margin: 0 auto 2rem;*/
  color: #555;
}

/* ===== STATS ===== */
.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 4rem;
}

.stats-left h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #0a0a0a;
}

.stats-left h3 span {
  color: #a50000; /* accent red */
}

.stats-left p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  color: #555;
}

.vision-link {
  color: #a50000;
  font-weight: 600;
  text-decoration: none;
}

.vision-link:hover {
  text-decoration: underline;
}

.stats-right {
  display: grid;
  background-color: #a50000;
  border-radius: 50px;
  height: min-content;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  padding: 35px;
}

.stat {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.stat hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.stat h3 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white;
}

.stat p {
  font-size: 1rem;
  color: white;
}

.stats-right img {
  max-width: 150px;
  height: auto;
  opacity: 1;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.stats-right img:hover {
  transform: scale(1.1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .stats-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stats-left {
    text-align: center;
  }

  .stats-left h3 {
    font-size: 2rem;
  }

  .stats-left p {
    font-size: 1rem;
  }

  .stats-right {
    grid-template-columns: 1fr;
    border-radius: 20px;
    padding: 2rem 1.5rem;
  }

  .stat {
    text-align: center;
  }

  .stat h3 {
    font-size: 1.8rem;
  }

  .stats-right img {
    width: 130px;
  }
}

@media (max-width: 500px) {
  .stats-right {
    padding: 1.5rem 1rem;
  }
  .stats-left h3 {
    font-size: 1.8rem;
  }
  .stat h3 {
    font-size: 1.6rem;
  }
}

/* ===== DARK IMAGE SECTION ===== */
.section-dark-image {
  position: relative;
  background-color: #0a0a0a;
  background-image: url('/img/background2.jpg'); /* fallback */
  background-image: -webkit-image-set(url('/img/background2.webp') type('image/webp'), url('/img/background2.jpg') type('image/jpeg'));
  background-image: image-set(url('/img/background2.webp') type('image/webp'), url('/img/background2.jpg') type('image/jpeg'));
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  color: #fff;
  text-align: left;
  padding: 6rem 1rem;
}

.section-dark-image .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.7);
}

.section-dark-image .container {
  position: relative;
  z-index: 2;
}

.section-dark-image h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.section-dark-image p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 1000px;
  margin-left: 0;
  margin-right: auto;
}

.btn-outline {
  display: inline-block;
  border: 2px solid #950000;
  color: #a50000;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: #a50000;
  color: #ffffff;
}

.linkedin img {
  height: 32px;
  opacity: 0.8;
  filter: grayscale(100%) brightness(0.9);
  transition: opacity 0.3s ease;
}

.linkedin img:hover {
  opacity: 1;
  filter: none;
}

/* ===== LEGAL / CONTENT PAGES ===== */
/* Keep the fixed header readable over a white page (no dark hero behind it). */
.legal-page .site-header {
  background: rgba(0, 0, 0, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.legal {
  background: #fff;
  color: #222;
  padding: 9rem 0 5rem; /* top padding clears the fixed header */
}

.legal .container {
  max-width: 850px;
}

.legal h1 {
  font-size: 2.4rem;
  margin-bottom: 0.4rem;
  color: #0a0a0a;
}

.legal .updated {
  color: #888;
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

.legal h2 {
  font-size: 1.4rem;
  margin: 2.5rem 0 0.8rem;
  color: #0a0a0a;
}

.legal p,
.legal li {
  color: #555;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.legal ul {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

.legal a {
  color: #a50000;
}

/* ===== EXPERTISE PAGE ===== */
.expertise-intro {
  max-width: 800px;
  margin-bottom: 2.5rem;
}

.expertise-section {
  margin-bottom: 3.5rem;
}

.section-intro {
  max-width: 800px;
  margin-bottom: 1.5rem;
}

/* Certifications */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.cert-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.75rem 1.25rem;
  background: #f8f9fa;
  border: 1px solid #eee;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
}

a.cert-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

a.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.cert-card-primary {
  grid-column: 1 / -1;
  background: #fff;
  border: 2px solid #a50000;
}

.cert-logo {
  max-height: 90px;
  width: auto;
  margin-bottom: 1rem;
}

.cert-card-primary .cert-logo {
  max-height: 110px;
}

.cert-code {
  font-weight: 700;
  color: #a50000;
  font-size: 1.1rem;
}

.cert-name {
  color: #555;
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.cert-note {
  color: #777;
  font-size: 0.9rem;
  margin-top: 0.6rem;
  max-width: 480px;
}

/* Recognition */
.recognition-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2.5rem;
}

.recognition-card img {
  height: 56px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.recognition-card:hover img {
  opacity: 1;
  transform: scale(1.05);
}

/* ===== CVE LIST ===== */
.cves-empty {
  color: #888;
  font-style: italic;
}

.cve-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.cve-card {
  display: block;
  padding: 1.5rem;
  background: #f8f9fa;
  border: 1px solid #eee;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cve-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.cve-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.cve-id {
  font-weight: 700;
  font-size: 1.05rem;
  color: #a50000;
}

.cve-sev {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  white-space: nowrap;
  color: #fff;
  background: #777; /* fallback / unknown */
}

.cve-sev-critical { background: #a50000; }
.cve-sev-high     { background: #d9531e; }
.cve-sev-medium   { background: #c79100; }
.cve-sev-low      { background: #4a7a4a; }

.cve-product {
  font-weight: 600;
  color: #0a0a0a;
  margin-bottom: 0.35rem;
}

.cve-summary {
  color: #555;
  font-size: 0.98rem;
  margin-bottom: 0.75rem;
}

.cve-year {
  font-size: 0.85rem;
  color: #999;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #000;
  color: #ccc;
  font-size: 0.95rem;
  padding-top: 4rem;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-column h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.footer-column hr {
  border: none;
  border-top: 1px solid #222;
  margin-bottom: 1rem;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 0.6rem;
}

.footer-column ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: #a50000;
  text-decoration: underline;
}

/* Logos Row */
.footer-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid #111;
  border-bottom: 1px solid #111;
}

.footer-logos img {
  height: 50px;
  width: auto;
  opacity: 0.8;
  filter: grayscale(100%) brightness(0.9);
  transition: opacity 0.3s ease;
}

.footer-logos img:hover {
  opacity: 1;
  filter: none;
}

/* Bottom text */
.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: #777;
  padding: 2rem 1rem 3rem;
  line-height: 1.5;
  max-width: 700px;
  margin: 0 auto;
}

.footer-bottom .copyright {
  margin-top: 1rem;
  color: #555;
}