:root {
  --red: #d72125;
  --black: #050505;
  --gray: #0f0f0f;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

h1,
h1 span {
  font-family: "Montserrat", sans-serif !important;
}

h1 span,
h1.outline,
.hero h1 span,
.outline {
  color: #d72125 !important;
  -webkit-text-fill-color: #d72125 !important;
  -webkit-text-stroke: 0 !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: 0px !important;
}

p, span, a, button, input, textarea, label, small, li {
  font-family: "Montserrat", sans-serif !important;
}

body {
  background: var(--black);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  overflow-x: hidden;
}

/* --- BACKGROUND DESIGN --- */
#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  background: radial-gradient(circle at center, #1a0505 0%, #050505 100%);
}

/* --- NAV --- */
nav.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.5% 8%;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
}

.header .nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header .nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 2px;
  line-height: 1;
  transition: color 0.3s ease;
}

.header .nav-links a:hover {
  color: var(--red);
}

/* --- HERO --- */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding: 0 8%;
}

.tagline {
  color: var(--red);
  font-family: "Montserrat", sans-serif;
  letter-spacing: 6px;
  font-weight: bold;
  margin-bottom: 20px;
  display: block;
}

h1 {
  font-family: "Montserrat";
  font-size: clamp(40px, 8vw, 90px);
  line-height: 0.9;
  font-weight: 800;
  color: #fff;
}

.outline {
  color: #d72125 !important;
  -webkit-text-fill-color: #d72125 !important;
  -webkit-text-stroke-width: 0 !important;
  -webkit-text-stroke-color: transparent !important;
  text-shadow: 0 0 14px rgba(255, 30, 30, 0.28);
  margin-top: 10px;
}

.hero p {
  max-width: 750px;
  margin: 35px 0 0;
  opacity: 0.6;
  line-height: 1.8;
  font-size: 20px;
}

/* --- STATS --- */
.stats-bar {
  display: flex;
  justify-content: space-around;
  padding: 80px 10%;
  background: rgba(215, 33, 37, 0.03);
  border-top: 1px solid rgba(215, 33, 37, 0.1);
}

.stat-item h2 {
  display: inline;
  font-family: "Montserrat";
  font-size: 50px;
}

.symbol {
  color: var(--red);
  font-size: 25px;
  font-weight: 900;
  margin-left: 5px;
}

.stat-item p {
  font-size: 14px;
  letter-spacing: 3px;
  opacity: 0.7;
  margin-top: 10px;
  font-weight: bold;
}

/* --- PORTFOLIO GRID --- */
.work-showcase {
  padding: 100px 8%;
}

.section-header {
  margin-bottom: 70px;
}

.section-header span {
  color: var(--red);
  font-family: "Montserrat", sans-serif;
  letter-spacing: 3px;
}

.section-header h2 {
  font-family: "Montserrat";
  font-size: 38px;
  margin-top: 10px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 30px;
}

.work-card {
  background: var(--gray);
  border: 1px solid #222;
  border-radius: 8px;
  overflow: hidden;
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.work-card:hover {
  border-color: var(--red);
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.work-img {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: #000;
}

.work-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: 0.6s;
}

.work-card:hover img {
  opacity: 1;
  transform: scale(1.08);
}

.rank-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--red);
  font-size: 10px;
  padding: 6px 14px;
  font-weight: 900;
  clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
}

.work-info {
  padding: 30px;
}

.work-info h3 {
  font-family: "Montserrat";
  font-size: 17px;
  color: var(--red);
  margin-bottom: 12px;
}

.work-info p {
  font-size: 14px;
  opacity: 0.5;
  margin-bottom: 25px;
  line-height: 1.5;
}

.card-stats {
  display: flex;
  gap: 25px;
  font-size: 11px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.3);
  border-top: 1px solid #222;
  padding-top: 20px;
}

.cta-section {
  padding: 120px 8%;
  text-align: center;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(8px);
}

.cta-section h2 {
  font-family: "Montserrat";
  font-size: 45px;
  margin-bottom: 40px;
}

.cta-section h2 span {
  color: var(--red);
}

.audit-btn.large {
  padding: 20px 30px;
  font-size: 18px;
  border-radius: 30px;
}

.expertise-hub {
  padding: 100px 8%;

}

.hub-header {
  margin-bottom: 50px;
  text-align: left;
}

.hub-tag {
  color: var(--red);
  font-family: "Montserrat", sans-serif;
  letter-spacing: 5px;
}

.hub-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 20px;
}

.hub-item {
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  position: relative;
  transition: 0.3s;
}

.hub-inner {
  padding: 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* The Feature Box (Lead Gen) spans 2 columns */
.item-feature {
  grid-column: span 2;
  border-bottom: 2px solid var(--red);
}

/* The System Box (Filler) makes it look like a dashboard */
.item-system {
  grid-column: span 2;
  background: rgba(215, 33, 37, 0.02);
  border: 1px dashed rgba(215, 33, 37, 0.3);
}

.hub-icon {
  width: 35px;
  height: 35px;
  border: 1px solid var(--red);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-family: "Montserrat";
  transform: rotate(45deg);
  margin-bottom: 25px;
}

.hub-icon>* {
  transform: rotate(-45deg);
}

.hub-item h3 {
  /*font-family: "Montserrat";*/
  font-size: 25px;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.hub-item p {
  font-size: 16px;
  opacity: 0.7;
  line-height: 1.5;
}

.hub-data {
  margin-top: 20px;
  font-family: "Montserrat", sans-serif;
  font-size: 10px;
  color: var(--red);
  opacity: 0.7;
}

/* Feature Box Specifics */
.feature-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
}

.live-signal {
  font-family: "Montserrat", sans-serif;
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
}

.dot {
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: blink 1s infinite;
}

/* System/Filler Box Specifics */
.system-box {
  justify-content: flex-start;
}

.system-header {
  font-family: "Montserrat";
  font-size: 10px;
  margin-bottom: 25px;
  opacity: 0.4;
}

.bar-label {
  font-size: 9px;
  margin-bottom: 5px;
  display: flex;
  justify-content: space-between;
  opacity: 0.6;
}

.bar {
  height: 4px;
  background: #1a1a1a;
  margin-bottom: 15px;
  border-radius: 2px;
}

.fill {
  height: 100%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

.hub-item:hover {
  border-color: var(--red);
  background: rgba(215, 33, 37, 0.05);
  transform: translateY(-5px);
}

/* --- CONTACT POPUP STYLES --- */
/* (Defined below at line ~580 using .contact-box layout) */


.input-group {
  position: relative;
  margin-bottom: 25px;
}

.input-group input,
.input-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: none;
  border-bottom: 1px solid #333;
  padding: 12px 0;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: 0.3s;
}

.input-group label {
  position: absolute;
  left: 0;
  top: 12px;
  color: rgba(255, 255, 255, 0.3);
  pointer-events: none;
  transition: 0.3s;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Floating Label Animation */
.input-group input:focus~label,
.input-group input:not(:placeholder-shown)~label,
.input-group textarea:focus~label,
.input-group textarea:not(:placeholder-shown)~label {
  top: -15px;
  font-size: 10px;
  color: var(--red);
}

.input-group input:focus,
.input-group textarea:focus {
  border-bottom-color: var(--red);
}

.submit-btn {
  width: 100%;
  padding: 15px;
  background: var(--red);
  color: #fff;
  border: none;
  font-family: 'Montserrat';
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.3s;
}

.submit-btn:hover {
  box-shadow: 0 0 20px rgba(215, 33, 37, 0.5);
  letter-spacing: 2px;
}

.cta-section {
  position: relative;
  padding: 70px 8%;
  text-align: center;
  /*background: radial-gradient(circle at center, #1a0505 0%, var(--black) 100%);*/
  overflow: hidden;
  border-top: 1px solid rgba(215, 33, 37, 0.1);
}

.cta-container {
  position: relative;
  z-index: 2;
}

/* Modern Background Watermark */
.cta-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Montserrat';
  font-size: 20vw;
  font-weight: 900;
  color: rgba(215, 33, 37, 0.03);
  /* Extremely subtle */
  pointer-events: none;
  z-index: 1;
}

.cta-section h2 {
  font-family: 'Montserrat';
  font-size: clamp(30px, 5vw, 60px);
  margin-bottom: 20px;
}

.cta-section h2 span {
  color: var(--red);
  text-shadow: none;
}

.cta-section p {
  opacity: 0.5;
  margin-bottom: 40px;
  letter-spacing: 1px;
}

/* OVERLAY */
.contact-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
  z-index: 9999;
}

.contact-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.contact-box {
  width: 900px;
  max-width: 95%;
  background: #0b0b0b;
  display: flex;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(215, 33, 37, .4);
}

/* LEFT */
.modal-left {
  width: 42%;
  padding: 50px;
  background: radial-gradient(circle at top, #2a0000, #0b0b0b);
}

.modal-left h2 {
  font-family: "Montserrat";
  font-size: 42px;
}

.modal-left span {
  color: var(--red);
}

.modal-left p {
  margin-top: 20px;
  opacity: .65;
}

/* FORM */
.modal-form {
  width: 58%;
  padding: 50px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.modal-form label {
  font-size: 12px;
  color: rgba(255, 255, 255, .5);
}

.modal-form input,
.modal-form textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  padding: 10px 0;
}

.modal-form input:focus,
.modal-form textarea:focus {
  outline: none;
  border-bottom-color: var(--red);
}

.modal-form button {
  margin-top: 10px;
  padding: 16px;
  background: var(--red);
  border: none;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

/* CLOSE */
.close-btn {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 26px;
  cursor: pointer;
}

/*new*/

:root {
  --accent-red: #d72125;
  --dark-bg: #050505;
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-dim: #b0b0b0;
}

.modern-vault {
  /*background-color: var(--dark-bg);*/
  padding: 100px 5%;
  font-family: "Montserrat", sans-serif;
  color: #fff;
}

.vault-container {
  max-width: 1500px;
  margin: 0 auto;
}

.vault-card {
  margin-bottom: 120px;
  position: relative;
}

/* Info Section */
.card-info {
  margin-bottom: 40px;
}

.case-number {
  color: var(--accent-red);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 3px;
  display: block;
  margin-bottom: 15px;
}

.card-info h2 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 25px;
  letter-spacing: -1px;
  line-height: 1.1;
}

.card-info p {
  font-size: 18px;
  line-height: 1.7;
  color: #fff;
  opacity: 0.7;
  /*max-width: 850px;*/
}

/* Visual Section */
.card-visual {
  position: relative;
}

.image-frame {
  background: #0a0a0a;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  position: relative;
}

.frame-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(215, 33, 37, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.image-frame img {
  width: 100%;
  display: block;
  border-radius: 6px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.vault-card:hover .image-frame img {
  transform: scale(1.02);
}

.vault-card:hover .image-frame {
  border-color: var(--accent-red);
}

/* Mobile Tweaks */
@media (max-width: 768px) {
  .card-info h2 {
    font-size: 32px;
  }

  .card-info p {
    font-size: 16px;
  }

  .vault-card {
    margin-bottom: 80px;
  }
}


/* =========================================================
   MOBILE
========================================================= */
@media(max-width:768px) {
  .contact-box {
    flex-direction: column;
  }

  .modal-left,
  .modal-form {
    width: 100%;
  }
}

/* =========================================================
   AUTOFILL FIX
========================================================= */
input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #0b0b0b inset !important;
  -webkit-text-fill-color: #fff !important;
}

/* ===== FULL MODULE RESPONSIVE LAYER ===== */
body {
  overflow-x: hidden;
}

.logo img {
  display: block;
  height: 76px !important;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 1100px) {
  .navbar {
    padding: 18px 4%;
  }

  .hero {
    padding: 110px 5% 40px;
    min-height: 100vh;
    height: auto;
  }

  .hero h1 {
    font-size: clamp(46px, 8vw, 76px);
  }

  .hero p {
    font-size: 18px;
    max-width: 760px;
  }

  .stats-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    text-align: center;
  }

  .hub-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .item-feature {
    grid-column: span 2;
  }

  .card-info h2 {
    font-size: clamp(28px, 4vw, 38px);
  }

  .card-info p {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 12px 16px;
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .logo img {
    height: 76px !important;
  }

  .nav-links {
    width: 100%;
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 2px;
  }

  .nav-links a {
    margin: 0;
    font-size: 12px;
    letter-spacing: 1px;
  }

  .audit-btn {
    margin-left: auto;
    padding: 10px 14px;
    font-size: 12px;
    border-radius: 12px;
  }

  .hero {
    padding: 135px 16px 30px;
  }

  .hero h1 {
    font-size: clamp(40px, 12vw, 64px);
    line-height: 0.95;
  }

  .hero p {
    font-size: 16px;
    line-height: 1.55;
  }

  .impact h2,
  .hub-header h2,
  .modern-vault>h2 {
    font-size: clamp(30px, 8vw, 44px) !important;
    margin-bottom: 26px !important;
  }

  .stats-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 42px 16px;
    gap: 16px;
  }

  .stat-item h2 {
    font-size: 36px;
  }

  .stat-item p {
    letter-spacing: 1px;
    font-size: 11px;
  }

  .expertise-hub,
  .modern-vault {
    padding: 64px 16px;
  }

  .hub-container {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .item-feature,
  .item-system {
    grid-column: auto;
  }

  .hub-inner {
    padding: 22px 18px;
  }

  .hub-item h3 {
    font-size: 21px;
  }

  .hub-item p {
    font-size: 14px;
  }

  .card-info {
    margin-bottom: 18px;
  }

  .card-info h2 {
    font-size: 28px;
    margin-bottom: 14px;
  }

  .card-info p {
    font-size: 15px;
  }

  .contact-overlay {
    align-items: flex-start;
    overflow-y: auto;
    padding: 14px;
  }

  .contact-box {
    margin: 14px 0;
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
  }

  .modal-left,
  .modal-form {
    padding: 24px 16px;
  }

  .modal-left h2 {
    font-size: 30px;
  }

  .modal-form {
    gap: 14px;
  }
}

@media (max-width: 420px) {
  .stats-bar {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .hero p {
    font-size: 15px;
  }
}

.hero p {
  font-size: clamp(18px, 1.55vw, 23px) !important;
  line-height: 1.75 !important;
  max-width: 1040px;
}

.hero h1 {
  font-weight: 600 !important;
  line-height: 1.04 !important;
  letter-spacing: 0;
  max-width: 980px;
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero>div:first-child {
  position: relative;
  z-index: 2;
}

.hero-side-element {
  position: absolute;
  right: -2%;
  top: 52%;
  width: clamp(420px, 42vw, 760px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  opacity: 0.34;
  pointer-events: none;
  z-index: 1;
}

.hero-side-element::before,
.hero-side-element::after {
  content: "";
  position: absolute;
  inset: 14%;
  border: 1px solid rgba(215, 33, 37, 0.42);
  transform: rotate(45deg);
  box-shadow: 0 0 34px rgba(215, 33, 37, 0.18);
}

.hero-side-element::after {
  inset: 28%;
  border-color: rgba(255, 255, 255, 0.18);
  transform: rotate(45deg) scale(0.86);
}

.hero-side-element span {
  position: absolute;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(215, 33, 37, 0.72), transparent);
}

.hero-side-element span:nth-child(1) {
  top: 28%;
}

.hero-side-element span:nth-child(2) {
  top: 50%;
  transform: rotate(-22deg);
}

.hero-side-element span:nth-child(3) {
  top: 72%;
}

@media (max-width: 900px) {
  .hero-side-element {
    display: none;
  }
}