/* ============================================================
   PentesterHub — style.css
   Dark theme | Electric blue #00BFFF | Inter font
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0A0A0F;
  --bg-card:   #10101A;
  --bg-card2:  #14141F;
  --border:    rgba(0, 191, 255, 0.12);
  --accent:    #00BFFF;
  --accent-dim:#0088cc;
  --accent-glow: rgba(0, 191, 255, 0.25);
  --text:      #E8E8F0;
  --text-muted:#8888A0;
  --text-dim:  #555570;
  --white:     #FFFFFF;
  --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius:    12px;
  --radius-lg: 20px;
  --trans:     0.3s ease;
  --nav-h:     72px;
}

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

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

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; font-family: var(--font); }
ul { list-style: none; }

/* ---------- Utility ---------- */
.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.75;
}

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--trans);
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover {
  background: #33ccff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo img { height: 40px; width: auto; display: block; flex-shrink: 0; }
.nav-logo-text {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--white);
  white-space: nowrap;
}
.nav-logo-accent { color: var(--accent); }

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--trans);
  letter-spacing: 0.02em;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--accent); }

.nav-cta {
  padding: 0.55rem 1.25rem;
  background: var(--accent);
  color: #000 !important;
  border-radius: 7px;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  transition: var(--trans) !important;
}
.nav-cta:hover {
  background: #33ccff;
  box-shadow: 0 4px 20px var(--accent-glow);
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--trans);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 15, 0.98);
  backdrop-filter: blur(20px);
  z-index: 1050;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  transition: color var(--trans);
}
.nav-drawer a:hover { color: var(--accent); }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  z-index: 1;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: calc(var(--nav-h) + 80px) 0 100px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 191, 255, 0.08);
  border: 1px solid rgba(0, 191, 255, 0.2);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
}
.hero-tag-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

.hero-headline {
  font-size: clamp(2.6rem, 6.5vw, 5.5rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero-headline .accent { color: var(--accent); }

#hero-typed {
  display: inline-block;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}
.hero-stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.hero-stat-num span { color: var(--accent); }
.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  letter-spacing: 0.04em;
}

/* Gradient fade at bottom of hero */
.hero-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: 2;
  pointer-events: none;
}


/* ============================================================
   SERVICES
   ============================================================ */
#services {
  padding: 120px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header .section-sub { margin: 0 auto; }

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: transform var(--trans), border-color var(--trans), box-shadow var(--trans);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(0,191,255,0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 191, 255, 0.35);
  box-shadow: 0 20px 60px rgba(0, 191, 255, 0.1);
}

.service-icon {
  width: 52px; height: 52px;
  background: rgba(0, 191, 255, 0.08);
  border: 1px solid rgba(0, 191, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.service-icon svg { width: 24px; height: 24px; }

.service-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
}
.service-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.service-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--trans), transform var(--trans);
}
.service-card:hover .service-arrow {
  opacity: 1;
  transform: none;
}

/* ============================================================
   WHY PENTESTERHUB
   ============================================================ */
#why {
  padding: 120px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 64px;
}

.why-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: border-color var(--trans), box-shadow var(--trans);
}
.why-card:hover {
  border-color: rgba(0, 191, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 191, 255, 0.06);
}

.why-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  background: rgba(0, 191, 255, 0.08);
  border: 1px solid rgba(0, 191, 255, 0.18);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.why-icon svg { width: 24px; height: 24px; }

.why-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.why-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================================
   METHODOLOGY
   ============================================================ */
#methodology {
  padding: 120px 0;
}

.method-timeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 64px;
  position: relative;
}
.method-timeline::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent) 20%, var(--accent) 80%, transparent);
  opacity: 0.25;
}

.method-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 0.75rem;
  position: relative;
}

.method-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1.5px solid rgba(0, 191, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
  transition: background var(--trans), border-color var(--trans), box-shadow var(--trans);
}
.method-step:hover .method-num {
  background: rgba(0, 191, 255, 0.1);
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
}

.method-icon {
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.method-icon svg { width: 22px; height: 22px; }

.method-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}
.method-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   CERTIFICATIONS
   ============================================================ */
#certifications {
  padding: 120px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 64px;
}

.cert-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  transition: border-color var(--trans), transform var(--trans);
}
.cert-card:hover {
  border-color: rgba(0, 191, 255, 0.3);
  transform: translateY(-4px);
}

.cert-badge-wrap {
  flex-shrink: 0;
  width: 48px; height: 48px;
  background: rgba(0, 191, 255, 0.08);
  border: 1px solid rgba(0, 191, 255, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: var(--accent);
  text-align: center;
  line-height: 1.2;
}

.cert-info h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}
.cert-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============================================================
   CONTACT
   ============================================================ */
#contact {
  padding: 120px 0;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: start;
}

.contact-info h2 { margin-bottom: 1rem; }
.contact-info .section-sub { margin-bottom: 2.5rem; }

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.contact-detail-icon {
  width: 38px; height: 38px;
  background: rgba(0, 191, 255, 0.08);
  border: 1px solid rgba(0, 191, 255, 0.18);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.contact-detail-icon svg { width: 18px; height: 18px; }
.contact-detail-text a {
  font-size: 0.9rem;
  color: var(--text);
  transition: color var(--trans);
}
.contact-detail-text a:hover { color: var(--accent); }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.1rem;
}
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-family: var(--font);
  color: var(--text);
  outline: none;
  transition: border-color var(--trans), box-shadow var(--trans);
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }
.form-group select { cursor: pointer; color: var(--text); }
.form-group select option { background: var(--bg-card2); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* Validation states */
.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: #FF4D6D;
  box-shadow: 0 0 0 3px rgba(255, 77, 109, 0.12);
}
.form-group input.valid,
.form-group select.valid,
.form-group textarea.valid {
  border-color: #00DDA8;
}
.field-error {
  font-size: 0.76rem;
  color: #FF4D6D;
  margin-top: 0.35rem;
  display: none;
  align-items: center;
  gap: 0.3rem;
}
.field-error.visible { display: flex; }

/* Rate limit / captcha notice */
.form-rate-notice {
  display: none;
  background: rgba(255, 77, 109, 0.06);
  border: 1px solid rgba(255, 77, 109, 0.25);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  font-size: 0.82rem;
  color: #FF4D6D;
  line-height: 1.6;
  margin-top: 1rem;
}
.form-rate-notice.visible { display: block; }

/* Turnstile widget centering */
.cf-turnstile { margin-top: 1.25rem; }

/* Honeypot */
.hp-field { display: none !important; }

.form-note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: rgba(0, 191, 255, 0.04);
  border: 1px solid rgba(0, 191, 255, 0.12);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  margin-top: 1.25rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.form-note svg {
  flex-shrink: 0;
  width: 16px; height: 16px;
  color: var(--accent);
  margin-top: 2px;
}

.form-submit {
  width: 100%;
  justify-content: center;
  margin-top: 1.5rem;
  padding: 0.9rem;
  font-size: 1rem;
  border-radius: 9px;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 48px;
}

.footer-brand img { height: 36px; width: auto; flex-shrink: 0; }
.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 1.5rem;
}
.footer-socials {
  display: flex;
  gap: 0.75rem;
}
.footer-social {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--trans);
}
.footer-social:hover {
  background: rgba(0, 191, 255, 0.1);
  border-color: rgba(0, 191, 255, 0.3);
  color: var(--accent);
}
.footer-social svg { width: 17px; height: 17px; }

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--trans);
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-dim);
}
.footer-legal {
  display: flex;
  gap: 1.5rem;
}
.footer-legal a {
  font-size: 0.8rem;
  color: var(--text-dim);
  transition: color var(--trans);
}
.footer-legal a:hover { color: var(--text-muted); }


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-wrapper { grid-template-columns: 1fr; gap: 3rem; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .method-timeline { flex-wrap: wrap; gap: 2rem; }
  .method-timeline::before { display: none; }
  .method-step { flex: 0 0 calc(33.333% - 1.5rem); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-brand { grid-column: unset; }
  .method-step { flex: 0 0 calc(50% - 1rem); }
  .hero-stats { gap: 2rem; }
  .contact-form { padding: 1.75rem; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 2.3rem; }
  .method-step { flex: 0 0 100%; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   SECTION SPACING HELPERS
   ============================================================ */
#services,
#methodology,
#contact { padding-top: 100px; padding-bottom: 100px; }

#why,
#certifications { padding-top: 100px; padding-bottom: 100px; }

/* Glow line accent at top of key sections */
.glow-line {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 12px var(--accent-glow);
}
