/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:           #000000;
  --bg-2:         #0a0a0a;
  --bg-card:      #0f0f0f;
  --accent:       #ffffff;
  --accent-dim:   rgba(255, 255, 255, 0.06);
  --accent-mid:   rgba(255, 255, 255, 0.14);
  --accent-glow:  rgba(255, 255, 255, 0.22);
  --text:         #f5f5f5;
  --text-muted:   #a3a3a3;
  --text-dim:     #5f5f5f;
  --border:       rgba(255, 255, 255, 0.10);
  --border-hi:    rgba(255, 255, 255, 0.40);
  --font-head:    'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
  --radius:       12px;
  --ease:         0.25s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #d4d4d4 50%, #8a8a8a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease);
}

.btn-primary {
  background: var(--accent);
  color: #000000;
  box-shadow: 0 0 24px var(--accent-glow);
}
.btn-primary:hover {
  background: #e6e6e6;
  box-shadow: 0 0 44px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--border-hi);
}
.btn-outline:hover {
  background: var(--accent-dim);
  transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header { text-align: center; margin-bottom: 68px; }
.section-header h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  margin: 10px 0 18px;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 14px;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  border-radius: 100px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: background 0.35s ease, border-color 0.35s ease, padding 0.35s ease;
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--border);
  padding: 12px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--text);
  flex-shrink: 0;
}
.nav-logo i { color: var(--accent); font-size: 1.25rem; }

.nav-logo-img {
  height: 72px;
  width: auto;
  display: block;
  transition: transform var(--ease), filter var(--ease);
}
.nav-logo:hover .nav-logo-img {
  transform: scale(1.06);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--ease);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  padding: 9px 22px;
  border: 1.5px solid var(--border-hi);
  border-radius: 7px;
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  transition: background var(--ease);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--accent-dim); }

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 3px;
}
.lang-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 5px 8px;
  border-radius: 5px;
  cursor: pointer;
  letter-spacing: 0.06em;
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}
.lang-btn:hover {
  color: var(--text-muted);
  border-color: var(--border);
}
.lang-btn.active {
  color: var(--accent);
  border-color: var(--border-hi);
  background: var(--accent-dim);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
  z-index: 1100;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 130px 28px 100px;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  animation: grid-drift 25s linear infinite;
}
@keyframes grid-drift {
  from { background-position: 0 0; }
  to   { background-position: 0 64px; }
}

.hero-glow {
  position: absolute;
  top: 38%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.07) 0%, transparent 68%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 840px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-hi);
  border-radius: 100px;
  padding: 7px 18px;
  margin-bottom: 36px;
  letter-spacing: 0.05em;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  flex-shrink: 0;
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--accent); }
  50%       { opacity: 0.5; box-shadow: 0 0 3px var(--accent); }
}

.hero-title {
  font-size: clamp(3rem, 7.5vw, 5.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 44px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 44px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 1;
}
.hero-scroll span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-drop 1.8s ease-in-out infinite;
}
@keyframes scroll-drop {
  0%   { opacity: 1; transform: scaleY(1) translateY(0); }
  100% { opacity: 0; transform: scaleY(0.4) translateY(24px); }
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  padding: 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 28px 20px;
  border-right: 1px solid var(--border);
  transition: background var(--ease);
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--accent-dim); }
.stat-number {
  font-family: var(--font-head);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--accent);
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.02em;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services { padding: 108px 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px 28px;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.service-card::before {
  content: attr(data-index);
  position: absolute;
  top: 22px; right: 26px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}
.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--ease);
}
.service-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-5px);
  box-shadow: 0 12px 48px rgba(255, 255, 255, 0.10);
}
.service-card:hover::after { opacity: 1; }

.service-icon {
  width: 52px; height: 52px;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 22px;
  transition: background var(--ease), box-shadow var(--ease);
}
.service-card:hover .service-icon {
  background: var(--accent-mid);
  box-shadow: 0 0 20px var(--accent-glow);
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.service-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.service-arrow {
  margin-top: 22px;
  color: var(--accent);
  font-size: 0.85rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--ease), transform var(--ease);
}
.service-card:hover .service-arrow { opacity: 1; transform: translateX(0); }

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: 108px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-content .section-tag { margin-bottom: 18px; display: inline-block; }
.about-content h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  margin-bottom: 24px;
}
.about-content p {
  color: var(--text-muted);
  font-size: 0.96rem;
  margin-bottom: 18px;
}
.about-content em { color: var(--accent); font-style: normal; font-weight: 600; }
.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}
.tag {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  padding: 5px 13px;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--accent);
  transition: background var(--ease), border-color var(--ease);
}
.tag:hover { background: var(--accent-mid); border-color: var(--border-hi); }

/* Terminal card */
.terminal-card {
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255,255,255,0.04);
}
.terminal-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 18px;
  background: #111111;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.t-dot { width: 12px; height: 12px; border-radius: 50%; }
.t-dot.red    { background: #5a5a5a; }
.t-dot.yellow { background: #8a8a8a; }
.t-dot.green  { background: #c4c4c4; }
.t-title {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-dim);
}
.terminal-body {
  padding: 22px 22px 30px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 2.1;
}
.t-line { display: flex; align-items: center; gap: 8px; }
.t-prompt { color: var(--accent); }
.t-cmd    { color: #d4d4d4; }
.t-output { color: #b5b5b5; padding-left: 22px; }
.t-warn   { color: #ffffff; font-weight: 500; padding-left: 22px; }

.t-anim { opacity: 0; animation: t-fade 0.4s ease forwards; animation-delay: var(--d, 0s); }
@keyframes t-fade { to { opacity: 1; } }

.t-cursor {
  color: var(--accent);
  animation: blink 1.1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { padding: 108px 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 28px; }

.contact-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.contact-icon {
  width: 42px; height: 42px;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  font-size: 0.95rem;
}
.contact-item h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 3px;
}
.contact-item p { font-size: 0.85rem; color: var(--text-muted); }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.form-group:last-of-type { margin-bottom: 28px; }
.form-group label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.form-group input,
.form-group textarea {
  background: var(--bg-2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--ease), box-shadow var(--ease);
  outline: none;
  resize: vertical;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.10);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 28px;
  background: var(--bg-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 52px;
  margin-bottom: 52px;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.87rem;
  margin-top: 14px;
  max-width: 230px;
  line-height: 1.6;
}
.footer-links h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--text);
  letter-spacing: 0.02em;
}
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-links a {
  font-size: 0.87rem;
  color: var(--text-muted);
  transition: color var(--ease);
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  text-align: center;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-dim); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid    { grid-template-columns: 1fr; gap: 52px; }
  .contact-grid  { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .footer-brand  { grid-column: 1 / -1; }
  .stats-grid    { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--border); }
  .stat-item:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }
}

@media (max-width: 640px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .lang-switcher { margin-left: auto; margin-right: 12px; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.97);
    z-index: 1050;
    align-items: center;
    justify-content: center;
    gap: 36px;
    backdrop-filter: blur(12px);
  }
  .nav-links.open a {
    font-size: 1.5rem;
    color: var(--text);
  }

  .services-grid { grid-template-columns: 1fr; }
  .form-row      { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr; }
  .contact-form  { padding: 28px 20px; }

  .hero-title    { font-size: 2.6rem; }
  .hero-badge    { font-size: 0.7rem; }
  .stats-grid    { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   CYBERSEC ADVISORY ADDITIONS
   ============================================================ */
.nav-logo span { font-size: 1.2rem; letter-spacing: -0.01em; }
.form-note {
  margin-top: 14px;
  font-size: 0.76rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .nav-logo span { display: none; }
  .nav-logo-img { height: 56px; }
  .footer-brand .nav-logo span { display: inline; }
}
