/* =========================================================
   Globaltec — Cybersecurity & Pentest
   ========================================================= */
:root {
  --bg: #05080F;
  --bg-2: #0A0E1A;
  --surface: #0F1524;
  --surface-2: #131A2C;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #E6EAF2;
  --muted: #8B95A7;
  --primary: #00FF88;
  --secondary: #00D4FF;
  --accent: #FF3D6E;
  --grad: linear-gradient(135deg, #00D4FF 0%, #00FF88 100%);
  --grad-soft: linear-gradient(135deg, rgba(0,212,255,.18) 0%, rgba(0,255,136,.10) 100%);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-glow: 0 0 40px rgba(0, 212, 255, .25);
  --ff-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --ff-mono: 'JetBrains Mono', 'Consolas', 'Fira Code', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:hover { color: var(--secondary); }
h1, h2, h3, h4, h5 { font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; margin: 0 0 .6rem; }
p { margin: 0 0 1rem; color: var(--muted); }
strong { color: var(--text); font-weight: 600; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

/* Backgrounds */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse at top, rgba(0, 212, 255, .08), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(0, 255, 136, .06), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.bg-grid::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}
.bg-glow {
  position: fixed; z-index: -1; width: 560px; height: 560px; border-radius: 50%;
  filter: blur(110px); opacity: .35; pointer-events: none;
}
.bg-glow--1 { background: var(--secondary); top: -120px; left: -120px; }
.bg-glow--2 { background: var(--primary); bottom: -160px; right: -160px; opacity: .25; }

/* Text utils */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.muted { color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--ff-mono); font-size: .78rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--secondary);
  padding: .5rem .9rem; border: 1px solid rgba(0, 212, 255, .25);
  background: rgba(0, 212, 255, .06); border-radius: 999px;
  margin-bottom: 1.2rem;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 10px var(--primary);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.8); }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .95rem 1.4rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn-sm { padding: .6rem 1rem; font-size: .85rem; }
.btn-lg { padding: 1.1rem 1.8rem; font-size: 1rem; }
.btn-primary {
  background: var(--grad);
  color: #03140B;
  box-shadow: 0 10px 30px -8px rgba(0, 255, 136, .4), inset 0 0 0 1px rgba(255, 255, 255, .2);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(0, 255, 136, .55); color: #03140B; }
.btn-ghost {
  background: transparent; color: var(--text); border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--secondary); color: var(--secondary); background: rgba(0, 212, 255, .05); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(5, 8, 15, .55);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.scrolled {
  border-color: var(--line);
  background: rgba(5, 8, 15, .85);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; padding: 1rem 0; min-height: 70px;
}
.brand { display: flex; align-items: center; gap: .75rem; font-weight: 800; font-size: 1.2rem; letter-spacing: .05em; }
.brand-mark { width: 38px; height: 38px; }
.brand-text { font-size: 1.15rem; letter-spacing: .1em; }
.nav { display: flex; gap: 1.75rem; }
.nav a { font-size: .92rem; color: var(--muted); position: relative; padding: .3rem 0; }
.nav a:hover { color: var(--text); }
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav a:hover::after { transform: scaleX(1); }
.header-cta { flex-shrink: 0; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* Hero */
.hero {
  padding: 6rem 0 5rem;
  position: relative;
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 4rem; align-items: center;
}
.hero-title {
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  line-height: 1.08; font-weight: 900;
  margin-bottom: 1.5rem;
}
.hero-sub { font-size: 1.12rem; max-width: 540px; margin-bottom: 2rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.hero-badges {
  display: flex; gap: 1.6rem; flex-wrap: wrap;
  font-family: var(--ff-mono); font-size: .82rem; color: var(--muted);
}
.hero-badges li { display: flex; align-items: center; gap: .4rem; }
.hero-badges strong { color: var(--secondary); font-weight: 600; }

/* Terminal */
.hero-terminal { perspective: 1500px; }
.terminal {
  background: #060A13;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 50px 100px -30px rgba(0, 0, 0, .7),
    0 0 60px rgba(0, 212, 255, .15),
    inset 0 0 0 1px rgba(0, 212, 255, .08);
  transform: rotateY(-6deg) rotateX(4deg);
  transition: transform .4s ease;
}
.terminal:hover { transform: rotateY(-3deg) rotateX(2deg); }
.terminal-head {
  display: flex; align-items: center; gap: .4rem;
  padding: .75rem 1rem;
  background: #0A0F1B;
  border-bottom: 1px solid var(--line);
}
.tdot { width: 12px; height: 12px; border-radius: 50%; }
.tdot.red { background: #ff5f57; }
.tdot.yellow { background: #febc2e; }
.tdot.green { background: #28c840; }
.terminal-title {
  margin-left: auto; margin-right: auto;
  font-family: var(--ff-mono); font-size: .78rem; color: var(--muted);
}
.terminal-body {
  margin: 0; padding: 1.3rem 1.4rem;
  font-family: var(--ff-mono); font-size: .85rem; line-height: 1.7;
  color: #B6C4D8; white-space: pre-wrap; min-height: 320px;
}
.terminal-body .prompt { color: var(--primary); }
.terminal-body .cmd { color: var(--text); }
.terminal-body .ok { color: var(--primary); }
.terminal-body .warn { color: #FFB547; }
.terminal-body .crit { color: var(--accent); font-weight: 600; }
.terminal-body .info { color: var(--secondary); }
.terminal-body .cursor {
  display: inline-block; width: 8px; height: 1em; background: var(--primary);
  vertical-align: -2px; animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Stats */
.stats { padding: 2.5rem 0 1rem; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem; padding: 2rem; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 21, 36, .6), rgba(15, 21, 36, .2));
  border-radius: var(--radius-lg); backdrop-filter: blur(10px);
}
.stat { text-align: center; }
.stat-num {
  display: block; font-size: 2.6rem; font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-family: var(--ff-mono); letter-spacing: -.02em;
}
.stat-num::after { content: '+'; }
.stat-label { display: block; font-size: .85rem; color: var(--muted); font-family: var(--ff-mono); letter-spacing: .1em; text-transform: uppercase; }

/* Sections */
.section { padding: 6rem 0; position: relative; }
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: .8rem; }
.section-sub { color: var(--muted); font-size: 1.05rem; }

/* Cards (services) */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem;
}
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.6rem; position: relative; overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.card::before {
  content: ''; position: absolute; inset: 0;
  background: var(--grad-soft); opacity: 0; transition: opacity .25s ease; pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: rgba(0, 212, 255, .35); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }
.card-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(0, 212, 255, .08); color: var(--secondary);
  border: 1px solid rgba(0, 212, 255, .2);
  margin-bottom: 1.1rem;
}
.card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.card p { font-size: .92rem; margin: 0; }
.card-link {
  display: inline-block; margin-top: 1rem;
  font-family: var(--ff-mono); font-size: .82rem; color: var(--primary); letter-spacing: .04em;
}
.card-feature {
  background: linear-gradient(135deg, rgba(0, 212, 255, .08), rgba(0, 255, 136, .04));
  border-color: rgba(0, 255, 136, .35);
  grid-column: span 1;
}
.card-feature .card-icon { background: var(--grad); color: #03140B; border-color: transparent; }

/* Pentest highlight */
.pentest { position: relative; }
.pentest-inner {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: start;
}
.pentest-types {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0;
}
.ptype {
  padding: 1.1rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .25s, transform .25s;
}
.ptype:hover { border-color: var(--primary); transform: translateY(-2px); }
.ptype h4 {
  color: var(--primary); font-size: .95rem; margin-bottom: .3rem;
  font-family: var(--ff-mono); letter-spacing: .05em;
}
.ptype p { font-size: .85rem; margin: 0; }
.pentest-scope {
  background: linear-gradient(180deg, rgba(15, 21, 36, .9), rgba(10, 14, 26, .9));
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  padding: 2rem; backdrop-filter: blur(12px);
}
.pentest-scope h3 {
  font-size: .85rem; text-transform: uppercase; letter-spacing: .2em;
  color: var(--secondary); font-family: var(--ff-mono); margin-bottom: 1.2rem;
}
.scope-list li {
  display: flex; align-items: flex-start; gap: .9rem;
  padding: .85rem 0; border-bottom: 1px dashed var(--line);
  font-size: .94rem;
}
.scope-list li:last-child { border-bottom: 0; }
.scope-list span {
  font-family: var(--ff-mono); font-size: .75rem; color: var(--primary);
  min-width: 26px;
}

/* Methodology */
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem; counter-reset: step;
}
.steps li {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.4rem; position: relative;
  transition: border-color .25s, transform .25s;
}
.steps li:hover { border-color: rgba(0, 255, 136, .35); transform: translateY(-3px); }
.step-n {
  font-family: var(--ff-mono); font-size: .78rem; letter-spacing: .15em;
  color: var(--secondary); display: block; margin-bottom: .7rem;
}
.steps h4 { font-size: 1.05rem; margin-bottom: .4rem; }
.steps p { font-size: .9rem; margin: 0; }

/* Clients */
.client-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.5rem; background: rgba(15, 21, 36, .5);
}
.client-logo {
  display: grid; place-items: center;
  padding: 2rem 1.2rem; min-height: 120px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .25s, transform .25s, background .25s;
}
.client-logo:hover { border-color: var(--secondary); transform: translateY(-3px); background: var(--surface); }
.client-logo img {
  max-height: 72px; width: auto;
  filter: grayscale(100%) brightness(1.4) contrast(.9);
  opacity: .85; transition: filter .3s ease, opacity .3s ease;
}
.client-logo:hover img { filter: none; opacity: 1; }
.client-logo .text-logo {
  font-size: 1.7rem; font-weight: 800; letter-spacing: .15em;
  color: var(--text); font-family: var(--ff-sans);
}

/* About */
.about-inner {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center;
}
.about-pills { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.about-pills span {
  padding: .5rem 1rem; border-radius: 999px;
  background: rgba(0, 212, 255, .06); border: 1px solid rgba(0, 212, 255, .22);
  font-size: .85rem; color: var(--text);
}
.about-card {
  background: #060A13; border: 1px solid var(--line-strong); border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6), 0 0 50px rgba(0, 255, 136, .12);
}
.ac-head {
  display: flex; align-items: center; gap: .4rem;
  padding: .75rem 1rem; background: #0A0F1B; border-bottom: 1px solid var(--line);
}
.ac-title { margin-left: auto; margin-right: auto; font-family: var(--ff-mono); font-size: .78rem; color: var(--muted); }
.ac-body {
  padding: 1.4rem 1.6rem; font-family: var(--ff-mono); font-size: .92rem;
}
.ac-body p { margin: .4rem 0; color: #B6C4D8; }
.ac-body .k { color: var(--secondary); }
.ac-body .c { color: var(--muted); margin: 0 .4rem; }
.ac-body em { color: var(--primary); font-style: normal; }

/* CTA */
.cta {
  padding: 5rem 0; text-align: center;
}
.cta-inner {
  padding: 3.5rem 2rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 212, 255, .18), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 255, 136, .14), transparent 50%),
    linear-gradient(135deg, rgba(15, 21, 36, .9), rgba(10, 14, 26, .9));
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
}
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .8rem; }
.cta p { max-width: 620px; margin: 0 auto 2rem; font-size: 1.05rem; }

/* Contact */
.contact-inner {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start;
}
.contact-list { margin-top: 1.5rem; }
.contact-list li {
  display: flex; align-items: center; gap: .8rem; padding: .8rem 0;
  border-bottom: 1px dashed var(--line); color: var(--text); font-size: .95rem;
}
.contact-list li svg { color: var(--secondary); flex-shrink: 0; }
.contact-list a:hover { color: var(--primary); }

.contact-form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.field { display: flex; flex-direction: column; gap: .45rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label {
  font-family: var(--ff-mono); font-size: .78rem; text-transform: uppercase;
  letter-spacing: .1em; color: var(--muted);
}
.field input, .field select, .field textarea {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
  padding: .85rem 1rem; color: var(--text); font-family: inherit; font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(0, 212, 255, .12);
}
.form-status { font-size: .88rem; margin: 0; min-height: 1.2em; }
.form-status.ok { color: var(--primary); }
.form-status.err { color: var(--accent); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 4rem 0 1.8rem; margin-top: 3rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .4));
}
.footer-inner {
  display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}
.footer-brand { display: flex; gap: 1rem; align-items: center; }
.footer-brand img { width: 48px; height: 48px; }
.footer-brand .brand-text { font-size: 1.1rem; letter-spacing: .12em; font-weight: 800; margin: 0; }
.footer-cols {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.footer-cols h5 {
  font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--secondary); font-family: var(--ff-mono); margin-bottom: 1rem;
}
.footer-cols a, .footer-cols span {
  display: block; color: var(--muted); font-size: .9rem; padding: .2rem 0;
}
.footer-cols a:hover { color: var(--text); }
.foot-bar {
  display: flex; justify-content: space-between; padding-top: 1.5rem;
  font-size: .82rem; color: var(--muted);
}

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-inner, .pentest-inner, .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .terminal { transform: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: block; }
  .site-header.nav-open .nav {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; padding: 1.2rem 5%; gap: 1rem;
    background: rgba(5, 8, 15, .96); border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
  }
  .hero { padding: 3.5rem 0 3rem; }
  .section { padding: 4rem 0; }
  .pentest-types { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .foot-bar { flex-direction: column; gap: .5rem; text-align: center; }
  .stats-grid { padding: 1.3rem; }
  .stat-num { font-size: 2rem; }
}
