@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&family=JetBrains+Mono:wght@300;400;500;700&display=swap');

:root {
  --amber: #ffcc33;
  --amber-dim: #cc8c00;
  --amber-dark: #664d00;
  --green: #ffb000;
  --green-dim: #cc8c00;
  --green-dark: #664d00;
  --cyan: #ff9500;
  --red: #ff3c00;
  --bg: #0e0b08;
  --bg-light: #14100c;
  --border: #2a1f0a;
  --text: #ffe0b0;
  --white: #fff5e0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Fira Code', 'JetBrains Mono', monospace;
  background: var(--bg);
  color: var(--green);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* CRT Scanlines overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,0.15) 0px,
    rgba(0,0,0,0.15) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 9999;
}

/* CRT flicker */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(255,176,0,0.01);
  pointer-events: none;
  z-index: 9998;
  animation: flicker 0.15s infinite;
}

@keyframes flicker {
  0% { opacity: 0.27861; }
  5% { opacity: 0.34769; }
  10% { opacity: 0.23604; }
  15% { opacity: 0.90626; }
  20% { opacity: 0.18128; }
  25% { opacity: 0.83891; }
  30% { opacity: 0.65583; }
  35% { opacity: 0.67807; }
  40% { opacity: 0.26559; }
  45% { opacity: 0.84693; }
  50% { opacity: 0.96019; }
  55% { opacity: 0.0879; }
  60% { opacity: 0.2031; }
  65% { opacity: 0.71985; }
  70% { opacity: 0.53495; }
  75% { opacity: 0.37288; }
  80% { opacity: 0.71428; }
  85% { opacity: 0.70419; }
  90% { opacity: 0.7003; }
  95% { opacity: 0.36108; }
  100% { opacity: 0.24387; }
}

a { color: var(--green); text-decoration: none; transition: all 0.2s; }
a:hover { color: var(--white); text-shadow: 0 0 10px var(--green); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ===== MATRIX RAIN BACKGROUND ===== */
.matrix-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  opacity: 0.06;
}
.matrix-column {
  position: absolute;
  top: -100%;
  font-size: 14px;
  color: var(--green);
  writing-mode: vertical-lr;
  animation: matrix-fall linear infinite;
  text-shadow: 0 0 8px var(--green);
}
@keyframes matrix-fall {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(calc(100vh + 100%)); }
}

/* ===== HEADER / NAV ===== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(14,11,8,0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 60px;
}
.logo { display: flex; align-items: center; position: relative; }
.logo img:first-child { height: 46px; width: auto; filter: drop-shadow(0 0 8px rgba(255,176,0,0.5)); }
.country-flag { 
  position: absolute; 
  top: 65%; 
  left: 50%; 
  transform: translate(-50%, -50%); 
  height: 12px !important; 
  width: auto !important; 
  opacity: 0.7; 
  filter: grayscale(0.2) brightness(0.8); 
  border: 1px solid var(--border); 
  z-index: 10;
}

.nav-links { display: flex; gap: 28px; list-style: none; margin-inline-start: auto; align-items: center; }
.nav-links a {
  font-size: 0.8rem;
  color: var(--green-dim);
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
}
.nav-links a::before { content: '> '; color: var(--amber); }
.nav-links a:hover { color: var(--white); text-shadow: 0 0 15px var(--green); }

.lang-btn {
  font-size: 0.7rem !important;
  padding: 4px 12px;
  border: 1px solid var(--border);
  color: var(--amber) !important;
  letter-spacing: 1px;
}
.lang-btn:hover { background: rgba(255,176,0,0.1); border-color: var(--green-dim); }

.menu-toggle { display: none; cursor: pointer; flex-direction: column; gap: 4px; margin-inline-start: auto; }
.menu-toggle span { width: 22px; height: 2px; background: var(--green); transition: all 0.3s; }
#menu-check { display: none; }


/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
}

.boot-header {
  font-size: 0.7rem;
  line-height: 2;
  color: var(--green-dark);
  margin-bottom: 35px;
  text-shadow: 0 0 5px rgba(255,176,0,0.2);
  letter-spacing: 1px;
}

.boot-line {
  opacity: 0;
  animation: boot-fade-in 0.3s ease forwards;
  white-space: nowrap;
}
.boot-line:nth-child(1) { animation-delay: 0.2s; }
.boot-line:nth-child(2) { animation-delay: 0.6s; }
.boot-line:nth-child(3) { animation-delay: 1.0s; }
.boot-line:nth-child(4) { animation-delay: 1.4s; }
.boot-line:nth-child(5) { animation-delay: 1.8s; }
.boot-line:nth-child(6) { animation-delay: 2.2s; }
.boot-line:nth-child(7) { animation-delay: 2.6s; }
.boot-line:nth-child(8) { animation-delay: 3.0s; }

@keyframes boot-fade-in {
  0% { opacity: 0; transform: translateX(-8px); }
  100% { opacity: 1; transform: translateX(0); }
}

.boot-line .ts { color: var(--green-dark); opacity: 0.4; }
.boot-line .ok { color: var(--amber); font-weight: 700; }
.boot-line .pass { color: var(--green); }
.boot-line .svc { color: var(--text); opacity: 0.6; }

/* Progress bar */
.boot-progress {
  height: 2px;
  background: var(--border);
  margin-top: 12px;
  position: relative;
  overflow: hidden;
}
.boot-progress::after {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 0%;
  background: var(--green-dark);
  box-shadow: 0 0 10px rgba(255,176,0,0.4);
  animation: progress-fill 3s ease forwards;
  animation-delay: 0.3s;
}
@keyframes progress-fill {
  0% { width: 0%; }
  15% { width: 12%; }
  30% { width: 28%; }
  45% { width: 45%; }
  60% { width: 62%; }
  75% { width: 78%; }
  90% { width: 91%; }
  100% { width: 100%; }
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--green);
  text-shadow: 0 0 20px rgba(255,176,0,0.4), 0 0 40px rgba(255,176,0,0.1);
  margin-bottom: 8px;
  font-weight: 700;
}

.hero .highlight {
  color: var(--amber);
  text-shadow: 0 0 20px rgba(255,176,0,0.4);
}

.typeline {
  display: block;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--green-dim);
  margin-bottom: 30px;
  opacity: 0.8;
}

.hero p {
  max-width: 650px;
  margin: 0 auto 40px;
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.9;
  opacity: 0.7;
}

.cursor-blink {
  display: inline-block;
  width: 10px;
  height: 1.2em;
  background: var(--green);
  margin-inline-start: 4px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* Buttons */
.btn-group { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

.btn {
  font-family: 'Fira Code', monospace;
  padding: 14px 32px;
  border: 1px solid var(--green);
  background: transparent;
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
  z-index: -1;
}
html[dir="rtl"] .btn::before { transform-origin: right; }
.btn:hover::before { transform: scaleX(1); }
.btn:hover { color: var(--bg); text-shadow: none; box-shadow: 0 0 30px rgba(255,176,0,0.3); }

.btn-outline { border-color: var(--amber); color: var(--amber); }
.btn-outline::before { background: var(--amber); }
.btn-outline:hover { color: var(--bg); box-shadow: 0 0 30px rgba(255,176,0,0.3); }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; position: relative; }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--amber);
  border: 1px solid rgba(255,176,0,0.3);
  padding: 4px 16px;
  margin-bottom: 16px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--green);
  text-shadow: 0 0 15px rgba(255,176,0,0.3);
  margin-bottom: 12px;
}

.section-line {
  width: 60px;
  height: 2px;
  background: var(--green-dark);
  margin: 0 auto;
  box-shadow: 0 0 10px rgba(255,176,0,0.3);
}

/* ===== TERMINAL CARDS ===== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }

.term-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  padding: 0;
  position: relative;
  transition: all 0.3s;
}
.term-card:hover {
  border-color: var(--green-dark);
  box-shadow: 0 0 30px rgba(255,176,0,0.1), inset 0 0 30px rgba(255,176,0,0.02);
  transform: translateY(-4px);
}

.term-titlebar {
  background: rgba(255,176,0,0.05);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.term-dot { width: 10px; height: 10px; border-radius: 50%; }
.term-dot.r { background: #ff5f56; }
.term-dot.y { background: #ffbd2e; }
.term-dot.g { background: #27c93f; }
.term-titlebar span { font-size: 0.7rem; color: var(--green-dark); margin-inline-start: auto; letter-spacing: 1px; }

.term-body { padding: 0; }
.card-img { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.card-img img { width: 100%; height: 160px; object-fit: cover; display: block; filter: brightness(0.3) saturate(0.5) sepia(0.4) hue-rotate(-10deg); transition: filter 0.4s; }
.img-screen {
  object-fit: cover !important;
  clip-path: inset(8% 0 8% 0) !important; /* Crops out phone status bars and nav buttons */
}
.term-card:hover .card-img img { filter: brightness(0.45) saturate(0.7) sepia(0.3) hue-rotate(-10deg); }
.card-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 60%, rgba(14,11,8,0.9)); pointer-events: none; }
.term-body > *:not(.card-img) { padding: 24px 24px 0; }
.term-body .btn { padding-bottom: 24px; }
.term-prompt { color: var(--amber); font-size: 0.8rem; margin-bottom: 16px; display: block; }
.term-card h3 { font-size: 1.1rem; color: var(--green); text-shadow: 0 0 8px rgba(255,176,0,0.3); margin-bottom: 14px; }
.term-card p { font-size: 0.8rem; color: var(--text); line-height: 1.8; opacity: 0.7; margin-bottom: 20px; }

/* ===== ABOUT / STATS ===== */
.about-section { background: rgba(255,176,0,0.02); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; } }

.about-text h2 { font-size: 1.4rem; color: var(--amber); text-shadow: 0 0 10px rgba(255,176,0,0.3); margin-bottom: 20px; }
.about-text p { font-size: 0.8rem; color: var(--text); line-height: 1.9; opacity: 0.7; margin-bottom: 16px; }

.stats-box {
  border: 1px solid var(--border);
  background: rgba(255,176,0,0.03);
}
.stat-row {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.stat-row:last-child { border-bottom: none; }
.stat-label { font-size: 0.75rem; color: var(--green-dark); text-transform: uppercase; letter-spacing: 2px; }
.stat-value { font-size: 1.6rem; color: var(--amber); text-shadow: 0 0 10px rgba(255,176,0,0.3); font-weight: 700; }

/* ===== VALUES ===== */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }

.value-item {
  border: 1px solid var(--border);
  padding: 30px 24px;
  text-align: center;
  background: rgba(255,176,0,0.02);
  transition: all 0.3s;
}
.value-item:hover { border-color: var(--green-dark); box-shadow: 0 0 20px rgba(255,176,0,0.1); }

.value-icon { font-size: 2rem; color: var(--amber); margin-bottom: 18px; text-shadow: 0 0 15px rgba(255,176,0,0.3); }
.value-item h3 { font-size: 0.95rem; color: var(--green); margin-bottom: 10px; letter-spacing: 1px; }
.value-item p { font-size: 0.78rem; color: var(--text); opacity: 0.6; line-height: 1.8; }

/* ===== KNOWLEDGE HUB ===== */
.knowledge-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; max-width: 750px; margin: 0 auto; }

.know-card {
  border: 1px solid var(--border);
  padding: 35px 28px;
  text-align: center;
  background: rgba(255,176,0,0.02);
  transition: all 0.3s;
}
.know-card:hover { border-color: var(--green-dark); }
.know-card.featured { border-color: var(--amber); background: rgba(255,176,0,0.04); }
.know-card h3 { font-size: 1rem; color: var(--green); margin-bottom: 12px; }
.know-card p { font-size: 0.8rem; color: var(--text); opacity: 0.6; line-height: 1.8; margin-bottom: 24px; }

/* ===== CTA BANNER ===== */
.cta-banner {
  border-top: 1px solid var(--green-dark);
  border-bottom: 1px solid var(--green-dark);
  padding: 70px 24px;
  text-align: center;
  background: rgba(255,176,0,0.03);
  position: relative;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,176,0,0.05), transparent);
  animation: cta-sweep 4s ease-in-out infinite;
}
@keyframes cta-sweep { 0%,100%{transform:translateX(-100%)} 50%{transform:translateX(100%)} }

.cta-banner h2 { font-size: clamp(1.4rem,3vw,2rem); color: var(--green); text-shadow: 0 0 20px rgba(255,176,0,0.4); margin-bottom: 14px; position: relative; }
.cta-banner p { font-size: 0.85rem; color: var(--text); opacity: 0.6; max-width: 550px; margin: 0 auto 30px; position: relative; }

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
  background: rgba(0,0,0,0.4);
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; margin-bottom: 40px; }

.footer-col h3 { font-size: 0.85rem; color: var(--amber); margin-bottom: 18px; letter-spacing: 2px; text-transform: uppercase; }
.footer-col p, .footer-col a { font-size: 0.78rem; color: var(--text); opacity: 0.5; line-height: 1.9; }
.footer-col a:hover { opacity: 1; color: var(--green); }
.footer-links li { margin-bottom: 6px; }
.footer-links a::before { content: '→ '; color: var(--green-dark); }

.social-icons { display: flex; gap: 10px; margin-top: 14px; }
.social-icons a {
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; color: var(--green-dark);
  transition: all 0.3s;
}
.social-icons a:hover { border-color: var(--green); color: var(--green); box-shadow: 0 0 15px rgba(255,176,0,0.2); }

.copyright { text-align: center; padding: 20px 0; font-size: 0.7rem; color: var(--text); opacity: 0.3; border-top: 1px solid var(--border); }

/* ===== GLITCH TEXT EFFECT ===== */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.glitch::before {
  color: var(--cyan);
  z-index: -1;
  animation: glitch-1 2s infinite linear alternate-reverse;
}
.glitch::after {
  color: var(--red);
  z-index: -2;
  animation: glitch-2 3s infinite linear alternate-reverse;
}
@keyframes glitch-1 {
  0% { clip-path: inset(20% 0 60% 0); transform: translate(-3px, 0); }
  20% { clip-path: inset(60% 0 10% 0); transform: translate(3px, 0); }
  40% { clip-path: inset(40% 0 30% 0); transform: translate(-2px, 0); }
  60% { clip-path: inset(80% 0 5% 0); transform: translate(2px, 0); }
  80% { clip-path: inset(10% 0 70% 0); transform: translate(-1px, 0); }
  100% { clip-path: inset(50% 0 30% 0); transform: translate(1px, 0); }
}
@keyframes glitch-2 {
  0% { clip-path: inset(65% 0 10% 0); transform: translate(3px, 0); }
  20% { clip-path: inset(15% 0 60% 0); transform: translate(-2px, 0); }
  40% { clip-path: inset(50% 0 30% 0); transform: translate(2px, 0); }
  60% { clip-path: inset(25% 0 55% 0); transform: translate(-3px, 0); }
  80% { clip-path: inset(70% 0 15% 0); transform: translate(1px, 0); }
  100% { clip-path: inset(35% 0 45% 0); transform: translate(-2px, 0); }
}

/* ===== CONTACT PAGE ===== */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin-bottom: 50px; }
.contact-card { border: 1px solid var(--border); padding: 30px 24px; text-align: center; background: rgba(255,176,0,0.02); transition: all 0.3s; }
.contact-card:hover { border-color: var(--green-dark); box-shadow: 0 0 20px rgba(255,176,0,0.1); transform: translateY(-4px); }
.contact-icon { font-size: 1.8rem; color: var(--amber); margin-bottom: 16px; text-shadow: 0 0 15px rgba(255,176,0,0.3); }
.contact-card h3 { font-size: 0.9rem; color: var(--green); margin-bottom: 8px; letter-spacing: 1px; }
.contact-card p { font-size: 0.8rem; color: var(--text); opacity: 0.6; }

/* Form */
.term-form { max-width: 600px; margin: 0 auto; border: 1px solid var(--border); background: var(--bg-light); }
.form-titlebar { background: rgba(255,176,0,0.05); border-bottom: 1px solid var(--border); padding: 10px 16px; display: flex; align-items: center; gap: 8px; }
.term-form input, .term-form textarea {
  width: 100%;
  padding: 14px 18px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--green);
  font-family: 'Fira Code', monospace;
  font-size: 0.85rem;
  outline: none;
}
.term-form input:focus, .term-form textarea:focus { border-color: var(--green-dark); background: rgba(255,176,0,0.03); }
.term-form input::placeholder, .term-form textarea::placeholder { color: var(--green-dark); opacity: 0.4; }
.term-form textarea { resize: vertical; min-height: 120px; }
.form-body { padding: 24px; }

/* ===== SERVICES PAGE ===== */
.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-bottom: 70px; }
@media (max-width: 768px) { .service-detail { grid-template-columns: 1fr; } }

.service-visual {
  border: 1px solid var(--border);
  background: rgba(255,176,0,0.03);
  min-height: 250px;
  overflow: hidden;
  position: relative;
}
.service-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.3) saturate(0.6) sepia(0.4) hue-rotate(-10deg);
  transition: filter 0.4s;
}
.service-detail:hover .service-visual img {
  filter: brightness(0.45) saturate(0.8) sepia(0.3) hue-rotate(-10deg);
}

.service-detail h3 { font-size: 1.4rem; color: var(--green); margin-bottom: 16px; }
.service-detail p { font-size: 0.82rem; color: var(--text); opacity: 0.7; line-height: 1.9; margin-bottom: 20px; }
.service-detail ul { list-style: none; margin-bottom: 24px; }
.service-detail li { font-size: 0.8rem; color: var(--text); opacity: 0.6; padding: 6px 0; line-height: 1.7; }
.service-detail li::before { content: '[+] '; color: var(--amber); }

/* ===== HEX DECORATION ===== */
.hex-deco { font-size: 0.6rem; color: var(--green-dark); opacity: 0.25; letter-spacing: 3px; text-align: center; padding: 10px 0; user-select: none; }

/* ===== PROCESS/ METHODOLOGY ===== */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; max-width: 960px; margin: 0 auto; counter-reset: process; }
.process-step { border: 1px solid var(--border); padding: 30px 24px; background: rgba(255,176,0,0.02); position: relative; transition: all 0.3s; counter-increment: process; }
.process-step:hover { border-color: var(--green-dark); box-shadow: 0 0 20px rgba(255,176,0,0.1); transform: translateY(-4px); }
.process-step::before { content: counter(process, decimal-leading-zero); position: absolute; top: -12px; left: 20px; background: var(--bg); padding: 2px 10px; font-size: 0.75rem; color: var(--amber); border: 1px solid var(--border); letter-spacing: 2px; }
.process-step h3 { font-size: 0.9rem; color: var(--green); margin-bottom: 10px; letter-spacing: 1px; margin-top: 8px; }
.process-step p { font-size: 0.78rem; color: var(--text); opacity: 0.6; line-height: 1.8; }

/* ===== TECH STACK ===== */
.tech-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 700px; margin: 0 auto; }
.tech-badge { border: 1px solid var(--border); padding: 10px 20px; font-size: 0.75rem; color: var(--text); opacity: 0.7; letter-spacing: 1px; transition: all 0.3s; background: rgba(255,176,0,0.02); }
.tech-badge:hover { border-color: var(--amber); color: var(--green); opacity: 1; box-shadow: 0 0 12px rgba(255,176,0,0.15); }

/* ===== TESTIMONIALS ===== */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; max-width: 960px; margin: 0 auto; }
.testimonial-card { border: 1px solid var(--border); padding: 30px 28px; background: rgba(255,176,0,0.02); position: relative; transition: all 0.3s; }
.testimonial-card:hover { border-color: var(--green-dark); }
.testimonial-card::before { content: '"'; position: absolute; top: 12px; left: 18px; font-size: 3rem; color: var(--amber); opacity: 0.2; line-height: 1; font-family: Georgia, serif; }
.testimonial-card blockquote { font-size: 0.82rem; color: var(--text); opacity: 0.7; line-height: 1.9; margin-bottom: 18px; font-style: italic; padding-left: 30px; }
.testimonial-card cite { display: block; font-size: 0.75rem; color: var(--amber); letter-spacing: 1px; font-style: normal; }

/* ===== INDUSTRIES ===== */
.industries-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; max-width: 960px; margin: 0 auto; }
.industry-card { border: 1px solid var(--border); padding: 30px 24px; background: rgba(255,176,0,0.02); text-align: center; transition: all 0.3s; }
.industry-card:hover { border-color: var(--green-dark); box-shadow: 0 0 20px rgba(255,176,0,0.1); transform: translateY(-4px); }
.industry-icon { font-size: 2rem; color: var(--amber); margin-bottom: 16px; text-shadow: 0 0 15px rgba(255,176,0,0.3); }
.industry-card h3 { font-size: 0.9rem; color: var(--green); margin-bottom: 10px; letter-spacing: 1px; }
.industry-card p { font-size: 0.78rem; color: var(--text); opacity: 0.6; line-height: 1.8; }

/* ===== FAQ (CSS-only accordion) ===== */
.faq-list { max-width: 700px; margin: 0 auto; border: 1px solid var(--border); background: rgba(255,176,0,0.02); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-item input[type="checkbox"] { display: none; }
.faq-item label { display: block; padding: 18px 24px; cursor: pointer; font-size: 0.85rem; color: var(--green); letter-spacing: 0.5px; transition: all 0.3s; position: relative; }
.faq-item label:hover { background: rgba(255,176,0,0.04); }
.faq-item label::after { content: '+'; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); color: var(--amber); font-size: 1.2rem; transition: transform 0.3s; }
.faq-item input:checked + label::after { content: '\u2212'; }
.faq-item input:checked + label { color: var(--amber); background: rgba(255,176,0,0.04); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s; padding: 0 24px; font-size: 0.8rem; color: var(--text); opacity: 0.65; line-height: 1.9; }
.faq-item input:checked ~ .faq-answer { max-height: 300px; padding: 0 24px 20px; }

/* ===== BLOG CARDS ===== */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: 960px; margin: 0 auto; }
.blog-card { border: 1px solid var(--border); padding: 28px 24px; background: rgba(255,176,0,0.02); transition: all 0.3s; display: flex; flex-direction: column; }
.blog-card:hover { border-color: var(--green-dark); transform: translateY(-4px); box-shadow: 0 0 20px rgba(255,176,0,0.1); }
.blog-card .blog-date { font-size: 0.7rem; color: var(--amber); letter-spacing: 2px; margin-bottom: 10px; opacity: 0.7; }
.blog-card h3 { font-size: 0.9rem; color: var(--green); margin-bottom: 10px; line-height: 1.5; }
.blog-card p { font-size: 0.78rem; color: var(--text); opacity: 0.6; line-height: 1.8; flex-grow: 1; }
.blog-card a.read-more { font-size: 0.75rem; color: var(--amber); margin-top: 14px; letter-spacing: 1px; display: inline-block; }
.blog-card a.read-more::after { content: ' →'; }

/* ===== ENGAGEMENT MODELS ===== */
.engagement-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; max-width: 960px; margin: 0 auto; }
.engagement-card { border: 1px solid var(--border); padding: 35px 28px; text-align: center; background: rgba(255,176,0,0.02); transition: all 0.3s; position: relative; }
.engagement-card:hover { border-color: var(--green-dark); transform: translateY(-4px); box-shadow: 0 0 20px rgba(255,176,0,0.1); }
.engagement-card.highlighted { border-color: var(--amber); background: rgba(255,176,0,0.05); }
.engagement-card.highlighted::before { content: 'POPULAR'; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--amber); color: var(--bg); padding: 2px 14px; font-size: 0.6rem; letter-spacing: 3px; font-weight: 700; }
.engagement-card h3 { font-size: 0.95rem; color: var(--green); margin-bottom: 8px; letter-spacing: 1px; }
.engagement-card .eng-price { font-size: 0.8rem; color: var(--amber); margin-bottom: 16px; opacity: 0.8; }
.engagement-card ul { list-style: none; text-align: start; margin-bottom: 24px; }
.engagement-card li { font-size: 0.78rem; color: var(--text); opacity: 0.65; padding: 5px 0; line-height: 1.7; }
.engagement-card li::before { content: '[✓] '; color: var(--amber); font-size: 0.7rem; }

/* ===== CONTACT EXTRA ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 900px; margin: 0 auto; }
@media(max-width:768px){ .contact-grid{grid-template-columns:1fr;} }
.contact-info-list { list-style: none; }
.contact-info-list li { padding: 16px 0; border-bottom: 1px solid var(--border); font-size: 0.82rem; color: var(--text); opacity: 0.7; line-height: 1.7; display: flex; gap: 14px; align-items: flex-start; }
.contact-info-list li:last-child { border-bottom: none; }
.contact-info-list .ci-icon { font-size: 1rem; color: var(--amber); min-width: 28px; text-align: center; padding-top: 2px; }

/* ===== TRUST BAR ===== */
.trust-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; padding: 40px 24px; max-width: 800px; margin: 0 auto; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-item { text-align: center; }
.trust-item .trust-num { font-size: 2rem; color: var(--amber); font-weight: 700; display: block; text-shadow: 0 0 15px rgba(255,176,0,0.3); }
.trust-item .trust-label { font-size: 0.7rem; color: var(--text); opacity: 0.5; letter-spacing: 2px; text-transform: uppercase; margin-top: 4px; display: block; }

/* Reveal animation (CSS only) */
.reveal { animation: fadeIn 0.8s ease forwards; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Security Challenge Game */
.challenge-section { padding: 60px 0; text-align: center; }
.terminal-game { 
  max-width: 600px; margin: 20px auto; background: rgba(0,0,0,0.8); 
  border: 1px solid var(--amber); border-radius: 5px; 
  font-family: 'Fira Code', monospace; text-align: left; overflow: hidden;
  box-shadow: 0 0 20px rgba(255,176,0,0.2);
}
.game-header { 
  background: var(--amber); color: #000; padding: 4px 10px; 
  font-size: 12px; font-weight: bold; display: flex; justify-content: space-between;
}
.game-body { padding: 20px; position: relative; min-height: 200px; }
.game-line { margin-bottom: 10px; color: var(--amber); font-size: 14px; }
.game-input-group { display: flex; gap: 10px; margin-top: 20px; }
.game-switch { 
  cursor: pointer; padding: 5px 10px; border: 1px solid var(--amber); 
  color: var(--amber); font-size: 12px; transition: all 0.2s;
}
.game-switch:hover { background: var(--amber); color: #000; }

/* Shared Game Utilities */
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
input[type="checkbox"].game-check, input[type="checkbox"].vault-check, 
input[type="checkbox"].gate-check { display: none !important; }

/* Unlock System */
.locked-challenges { display: none; }
#master-key:checked ~ .locked-challenges { display: block; }

/* ===== GAME SYSTEMS ===== */

/* 1. Security Bypass (Challenge 01) */
#layer1:checked ~ .game-body .status-1,
#layer2:checked ~ .game-body .status-1,
#layer3:checked ~ .game-body .status-1 { display: none; }

#layer1:checked ~ .game-body .status-1-text,
#layer2:checked ~ .game-body .status-2-text,
#layer3:checked ~ .game-body .status-3-text { color: #0f0; }

#layer1:checked ~ #layer2:checked ~ #layer3:checked ~ .game-body .secret-msg { 
  display: block !important; animation: blink 1s infinite; 
}

/* 2. Binary Vault (Challenge 02) */
.vault-msg { display: none; }
#v1:checked ~ #v2:not(:checked) ~ #v3:checked ~ #v4:checked ~ .vault-msg { 
  display: block !important; animation: blink 1s infinite; 
}

/* Since inputs are now inside the div, we need to adjust the success selector */
.vault-switches:has(#v1:checked):has(#v2:not(:checked)):has(#v3:checked):has(#v4:checked) ~ .vault-msg {
  display: block !important; animation: blink 1s infinite;
}

/* 3. Signal Trace (Challenge 03) */
.trace-path:hover .trace-wire { box-shadow: 0 0 15px var(--amber); }
.trace-status::after { font-weight: bold; }
.trace-path:not(:hover) ~ .trace-status::after { content: ' [ SIGNAL LOST ]'; color: #f00; }
.trace-path:hover ~ .trace-status::after { content: ' [ SIGNAL ACTIVE ]'; color: #0f0; }

/* 4. Frequency Tuner (Challenge 04) */
.tuner-container { max-width: 600px; margin: 40px auto; background: rgba(0,0,0,0.8); border: 1px solid var(--amber); padding: 20px; text-align: center; font-family: 'Fira Code', monospace; }
.tuner-dial { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; }
.tuner-dial input { display: none; }
.tuner-dial label { padding: 5px 10px; border: 1px solid var(--amber); color: var(--amber); cursor: pointer; transition: all 0.2s; font-size: 14px; }
.tuner-dial label:hover { background: rgba(255,176,0,0.2); }
.tuner-dial input:checked + label { background: var(--amber); color: #000; }
.tuner-msg { font-size: 14px; color: var(--amber); height: 20px; transition: all 0.3s; }

/* Logic for Tuner Success (Target: f5 / 148MHz) */
#f5:checked ~ .tuner-msg { content: 'SIGNAL ACQUIRED: Secure Channel Open!'; color: #0f0; }
/* Since radio buttons are siblings of the msg, we use the sibling selector */
#f5:checked ~ .tuner-msg { color: #0f0; }
#f5:checked ~ .tuner-msg::before { content: 'SIGNAL ACQUIRED: '; }
#f5:not(:checked) ~ .tuner-msg { color: var(--amber); }

/* Wait, the radio buttons are not siblings of tuner-msg in a way that works with ~ if they are inside a div. 
Let's fix the HTML or use :has() */
.tuner-dial:has(#f5:checked) ~ .tuner-msg { color: #0f0; }
.tuner-dial:has(#f5:checked) ~ .tuner-msg::after { content: ' SIGNAL ACQUIRED!'; }
.tuner-dial:not(:has(#f5:checked)) ~ .tuner-msg::after { content: ' SIGNAL LOST...'; }

/* 5. Logic Gate (Challenge 05) */
.logic-container { max-width: 600px; margin: 40px auto; background: rgba(0,0,0,0.8); border: 1px solid var(--amber); padding: 20px; text-align: center; font-family: 'Fira Code', monospace; }
.logic-grid { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; }
.gate-check { display: none; }
.gate-switch { padding: 10px 20px; border: 2px solid var(--amber); color: var(--amber); cursor: pointer; font-weight: bold; transition: all 0.3s; }
.gate-switch:hover { background: rgba(255,176,0,0.2); }
#g1:checked ~ .gate-switch, #g2:checked ~ .gate-switch { background: var(--amber); color: #000; } /* This won't work because of structure */

/* Correcting Logic Gate styles */
.logic-grid input:checked + .gate-switch { background: var(--amber); color: #000; }
.logic-msg { font-size: 14px; color: var(--amber); height: 20px; }

/* XOR Logic: (A and !B) or (!A and B) */
.logic-grid:has(#g1:checked):has(#g2:not(:checked)),
.logic-grid:has(#g1:not(:checked)):has(#g2:checked) { 
  /* Success state handled by msg below */
}

.logic-grid:has(#g1:checked):has(#g2:not(:checked)) ~ .logic-msg,
.logic-grid:has(#g1:not(:checked)):has(#g2:checked) ~ .logic-msg { 
  color: #0f0; 
}

.logic-grid:has(#g1:checked):has(#g2:not(:checked)) ~ .logic-msg::after,
.logic-grid:has(#g1:not(:checked)):has(#g2:checked) ~ .logic-msg::after { 
  content: ' GATE OPEN'; 
}

.logic-grid:not(:has(#g1:checked):has(#g2:not(:checked))):not(:has(#g1:not(:checked)):has(#g2:checked)) ~ .logic-msg::after {
  content: ' GATE CLOSED';
}

/* Navigation Badge */
.nav-links li { position: relative; }
.nav-badge { 
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: #0f0; color: #000; font-size: 8px; padding: 1px 4px; 
  border-radius: 2px; font-weight: bold; text-transform: uppercase; 
  box-shadow: 0 0 5px rgba(0,255,0,0.5); line-height: 1; z-index: 10;
}

/* Game UI Components */
.game-header { 
  background: var(--amber); color: #000; padding: 4px 10px; 
  font-size: 12px; font-weight: bold; display: flex; justify-content: space-between;
}
.game-body { padding: 20px; position: relative; min-height: 200px; }
.game-line { margin-bottom: 10px; color: var(--amber); font-size: 14px; }
.game-input-group { display: flex; gap: 10px; margin-top: 20px; }
.game-switch { 
  cursor: pointer; padding: 5px 10px; border: 1px solid var(--amber); 
  color: var(--amber); font-size: 12px; transition: all 0.2s;
}
.game-switch:hover { background: var(--amber); color: #000; }

.secret-msg { 
  display: none; margin-top: 20px; padding: 15px; 
  border: 1px dashed var(--amber); color: #fff; background: rgba(255,176,0,0.1);
}

/* Vault UI */
.vault-container { max-width: 600px; margin: 40px auto; background: rgba(0,0,0,0.8); border: 1px solid var(--amber); padding: 20px; text-align: center; font-family: 'Fira Code', monospace; }
.vault-switches { display: flex; justify-content: center; gap: 20px; margin: 20px 0; }
.vault-switch { width: 40px; height: 60px; background: #222; border: 2px solid var(--amber); cursor: pointer; position: relative; transition: all 0.3s; display: block; }
.vault-switch::after { content: '0'; position: absolute; width: 100%; text-align: center; top: 50%; left: 0; transform: translateY(-50%); color: var(--amber); font-weight: bold; }
input.vault-check:checked + .vault-switch { background: var(--amber); }
input.vault-check:checked + .vault-switch::after { content: '1'; color: #000; }

/* Trace UI */
.trace-container { max-width: 600px; margin: 40px auto; background: #0a0a0a; border: 1px solid var(--amber); padding: 20px; text-align: center; position: relative; overflow: hidden; }
.trace-path { width: 100%; height: 50px; background: #1a1a1a; margin: 20px 0; position: relative; cursor: crosshair; border: 1px solid rgba(255,176,0,0.3); }
.trace-wire { width: 100%; height: 10px; background: var(--amber); position: absolute; top: 20px; left: 0; transition: all 0.2s; }
.trace-status { font-family: 'Fira Code', monospace; font-size: 14px; color: var(--amber); margin-top: 10px; height: 20px; }

/* ===== MOBILE RESPONSIVE (at end to win cascade) ===== */
@media (max-width: 768px) {
  .menu-toggle { display: flex; margin-inline-start: 0; }
  .lang-btn { position: static; font-size: 0.65rem !important; }
  .nav-links {
    position: absolute; top: 60px; left: 0; right: 0; width: 100%;
    background: rgba(14,11,8,0.98); flex-direction: column; padding: 20px 0; gap: 0;
    border-bottom: 1px solid var(--border); display: none;
  }
  .nav-links li { text-align: center; padding: 12px 0; }
  #menu-check:checked ~ .nav-links { display: flex; }
  .boot-line { white-space: normal; overflow-wrap: break-word; word-break: break-word; }
  .services-grid { grid-template-columns: 1fr; }
  .knowledge-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .engagement-grid { grid-template-columns: 1fr; }
  body { overflow-x: hidden; overflow-wrap: break-word; }
  .container { padding: 0 16px; }
  .header-inner { padding: 0 16px; gap: 6px; }
  .hex-deco { letter-spacing: 1px; font-size: 0.55rem; }
}

@media (max-width: 576px) {
  .hero { padding: 100px 15px 60px; }
  .hero h1 { font-size: clamp(1.6rem, 6vw, 2.5rem); }
  .hero p { font-size: 0.8rem; max-width: 100%; }
  .btn-group { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; }
  .header-inner { height: 50px; }
  .section { padding: 60px 0; }
  .section-title { font-size: clamp(1.4rem, 5vw, 1.8rem); }
  .section-tag { font-size: 0.65rem; padding: 3px 12px; }
  .term-card h3, .value-item h3, .know-card h3, .industry-card h3, .blog-card h3, .engagement-card h3 { font-size: 0.85rem; }
  .term-card p, .term-body p, .value-item p, .know-card p, .industry-card p, .blog-card p, .engagement-card p, .engagement-card li { font-size: 0.75rem; }
  .card-img img { height: 130px; }
  .about-grid { grid-template-columns: 1fr; }
  .service-detail { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .stats-box .stat-value { font-size: 1.3rem; }
  .stats-box .stat-row { padding: 14px 16px; }
  .process-grid { grid-template-columns: 1fr; }
  .trust-bar { gap: 20px; padding: 30px 15px; }
  .trust-item .trust-num { font-size: 1.6rem; }
  .cta-banner { padding: 50px 15px; }
  .cta-banner h2 { font-size: clamp(1.2rem, 4vw, 1.6rem); }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-col { text-align: center; }
  .social-icons { justify-content: center; }
  .social-icons a { width: 32px; height: 32px; font-size: 0.7rem; }
  .copyright { font-size: 0.65rem; }
  .vault-switches { gap: 10px; }
  .vault-switch { width: 34px; height: 50px; }
  .game-input-group { flex-wrap: wrap; }
  .game-switch { flex-grow: 1; text-align: center; }
  .logic-grid { flex-direction: column; align-items: center; gap: 12px; }
  .tuner-dial { flex-wrap: wrap; }
  .hero .container { padding: 0 12px; }
}

@media (max-width: 480px) {
  .hero { padding: 80px 10px 40px; }
  .hero h1 { font-size: clamp(1.3rem, 7vw, 1.8rem); }
  .typeline { font-size: 0.9rem; }
  .boot-header { font-size: 0.6rem; }
  .boot-line .ts { font-size: 0.55rem; }
  .btn { padding: 12px 24px; font-size: 0.78rem; }
  .section { padding: 45px 0; }
  .section-title { font-size: clamp(1.2rem, 6vw, 1.5rem); }
  .values-grid { grid-template-columns: 1fr; }
  .values-grid .value-item { padding: 24px 18px; }
  .service-visual img { height: 150px; }
  .footer-grid { gap: 24px; }
  .footer-col h3 { font-size: 0.8rem; }
  .container { padding: 0 12px; }
}
