
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #050505;
  color: #eaeaea;
  font-family: 'Inter', sans-serif;
}

/* NAV */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #00f0ff22;
}

#contact {
  scroll-margin-top: 120px;
}

/* CONTACT HEADING ALIGNMENT */

/* TERMINAL CONTACT SECTION CENTERED */
.terminal-contact {
  min-height: 100vh;
  background: #000;
  display: flex;
  justify-content: center; /* horizontal center */
  align-items: center;     /* vertical center */
  padding: 0 20px;         /* optional horizontal padding */
  flex-direction: column;  /* stack children vertically */
  text-align: center;      /* center text inside */
}

/* WRAPPER THAT CENTERS BOTH TITLE + TERMINAL */

.terminal-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* CONTACT TITLE */

#contact {
  margin-bottom: 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 40px;
}

.logo span {
  font-family: 'Orbitron', sans-serif;
  color: #00f0ff;
  font-size: 1.2rem;
}

nav a {
  margin-left: 30px;
  color: #aaa;
  text-decoration: none;
  transition: 0.3s;
}

nav a:hover {
  color: #00f0ff;
}

/* HERO */
/* Logo spacing */
.hero-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 50px;  /* increased space below logo */
}

/* HERO WITH VIDEO BACKGROUND — FINAL VERSION */

/* HERO CONTAINER */
.hero-pt {
  position: relative;

  height: 90vh;
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
  text-align: center;
}

/* VIDEO BACKGROUND */
#hero-video-pt {
  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  z-index: 0;

  filter: brightness(0.35);
}

/* CYBER GRID */
.cyber-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* HERO CONTENT */
.hero-content-pt {
  position: relative;
  z-index: 2;

  max-width: 700px;
  padding: 20px;
}

/* LOGO CENTER */
.hero-content-pt .logo {
  justify-content: center;
  margin-bottom: 25px;
}

/* TEXT SPACING */
.hero-content-pt h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero-content-pt p {
  margin-bottom: 30px;
}

.hero {
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center; /* ADD THIS */
  text-align: center;      /* ADD THIS */
  padding: 0 60px;
  background: radial-gradient(circle at 30% 40%, #001f25, #000);
}

.hero-content {
  max-width: 600px;
}

.hero h1 {
  font-size: 3.2rem;
  font-family: 'Orbitron';
  color: #00f0ff;
  text-shadow: 0 0 20px #00f0ff55;
}

.hero p {
  margin: 20px 0;
  color: #aaa;
  line-height: 1.6;
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  margin-right: 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.primary {
  background: #00f0ff;
  color: #000;
}

.primary:hover {
  box-shadow: 0 0 15px #00f0ff;
}

.secondary {
  border: 1px solid #00f0ff;
  color: #00f0ff;
}

.secondary:hover {
  background: #00f0ff;
  color: #000;
}

/* SERVICES */
section {
  padding: 80px 60px;
}

h2 {
  text-align: center;
  margin-bottom: 50px;
  font-family: 'Orbitron';
  color: #00f0ff;
}

/* ========================= */
/* SERVICES GRID */
/* ========================= */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;

  /* THIS fixes equal height cards */
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.section-subtitle {
  text-align: center;
  color: #888;
  max-width: 600px;
  margin: -30px auto 40px;
}

.card {
  padding: 30px;
  background: linear-gradient(145deg, #0a0a0a, #050505);
  border: 1px solid #00f0ff22;
  border-radius: 12px;
  transition: 0.4s;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 0 25px #00f0ff33;
}

.card .icon {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, #00f0ff22, transparent);
  opacity: 0;
  transition: 0.4s;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 20px #00f0ff33;
}

.card h3 {
  color: #00f0ff;
  margin-bottom: 10px;
}

.card-link {
  text-decoration: none; /* remove underline */
  color: inherit;        /* keep card text color */
  display: block;        /* make the whole card clickable */
}

.card-link .card-pt:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px #00ff88; /* same hover effect */
}

/* TERMINAL STRIP */
.terminal {
  background-color: #000;
  color: #00ff88;
  font-family: 'Courier New', Courier, monospace;
  padding: 20px;
  border-radius: 8px;
  margin: 50px auto;
  max-width: 700px;
  min-height: 150px;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.cursor {
  display: inline-block;
  width: 10px;
  background-color: #00ff88;
  margin-left: 2px;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

/* CONTACT */
form {
  max-width: 500px;
  margin: auto;
}

input, textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  background: #0a0a0a;
  border: 1px solid #00f0ff22;
  color: white;
}

button {
  background: #00f0ff;
  border: none;
  padding: 12px;
  width: 100%;
  cursor: pointer;
  font-weight: bold;
}

/* CONTACT SECTION */

.contact-section {
  max-width: 600px;
  margin: 100px auto;
  padding: 40px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(15px);
  border: 1px solid #00f0ff33;
  border-radius: 15px;
  text-align: center;
}

.contact-section h2 {
  color: #00f0ff;
  margin-bottom: 30px;
  font-family: 'Orbitron';
}

/* INPUT GROUP */
.input-group {
  position: relative;
  margin-bottom: 30px;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: none;
  border-bottom: 1px solid #00f0ff55;
  color: #fff;
  font-size: 16px;
  outline: none;
}

.input-group textarea {
  resize: none;
  height: 100px;
}

/* FLOATING LABEL */
.input-group label {
  position: absolute;
  left: 0;
  top: 12px;
  color: #777;
  transition: 0.3s;
  pointer-events: none;
}

/* ANIMATION */
.input-group input:focus + label,
.input-group input:valid + label,
.input-group textarea:focus + label,
.input-group textarea:valid + label {
  top: -10px;
  font-size: 12px;
  color: #00f0ff;
}

/* GLOW LINE */
.focus-border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #00f0ff;
  transition: 0.4s;
}

.input-group input:focus ~ .focus-border,
.input-group textarea:focus ~ .focus-border {
  width: 100%;
  box-shadow: 0 0 10px #00f0ff;
}

/* BUTTON */
#send-btn {
  background: #00f0ff;
  color: #000;
  border: none;
  padding: 12px 25px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
  transition: 0.3s;
}

#send-btn:hover {
  box-shadow: 0 0 15px #00f0ff;
}

/* TERMINAL */
.terminal-contact {
  min-height: 100vh;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 80px;
}

/* TERMINAL WINDOW */
#terminal-window {
  width: 90%;
  max-width: 900px;
  height: 80vh;
  background: #000;
  border: 1px solid #00ff88;
  padding: 20px;
  font-family: "Courier New", monospace;
  color: #00ff88;
  overflow-y: auto;
  box-shadow: 0 0 25px #00ff88;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* SCANLINE EFFECT */
#terminal-window::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,255,0,0.03),
    rgba(0,255,0,0.03) 1px,
    transparent 2px
  );
  pointer-events: none;
}

/* OUTPUT */
#terminal-output {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* INPUT LINE */
.terminal-input-line {
  display: flex;
  margin-top: 10px;
}

.prompt {
  margin-right: 10px;
}

#terminal-input {
  background: transparent;
  border: none;
  outline: none;
  color: #00ff88;
  width: 100%;
  font-family: inherit;
  font-size: 16px;
}

/* BLINKING CURSOR */
#terminal-input::after {
  content: "|";
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,50%,100% { opacity: 1; }
  25%,75% { opacity: 0; }
}

#terminal-window {
  display: flex;
  flex-direction: column;
}

#terminal-output {
  flex: 1;
  overflow-y: auto;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 30px;
  border-top: 1px solid #00f0ff22;
  color: #777;
}

/* MOBILE */
@media(max-width: 768px) {
  nav {
    padding: 20px;
  }

  .hero {
    padding: 20px;
  }

  section {
    padding: 50px 20px;
  }
}

/* PENETRATION TESTING PAGE */
/* Page-specific styles */
/* Hero section */
.hero-pt {
  background-color: #111;
  color: #00f0ff;
  text-align: center;
  padding: 80px 20px;
}

.hero-pt h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero-pt p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
}

.btn-primary-pt {
  background-color: #00f0ff;
  color: #000;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  margin-right: 10px;
}

.btn-primary-pt:hover {
  background-color: #00cc6a;
}

/* Terminal */
/* Page-specific terminal overrides */
#pt-terminal {
  background-color: #000 !important;
  color: #00ff88 !important;
  font-family: 'Courier New', monospace !important;
  padding: 20px !important;
  border-radius: 8px !important;
  max-width: 700px !important;
  min-height: 300px !important;
  margin: 40px auto !important;
  border: 1px solid #00ff88 !important;
  white-space: pre-wrap !important;
  overflow-wrap: break-word !important;
  position: relative !important;
}

#pt-terminal .cursor {
  display: inline-block !important;
  width: 10px !important;
  background-color: #00ff88 !important;
  margin-left: 2px !important;
  animation: blink 1s steps(1) infinite !important;
}

@keyframes blink {
  0%,50%,100% { opacity: 1; }
  25%,75% { opacity: 0; }
}

/* Hero Section */
.hero-pt {
  background-color: #111;
  color: #00f0ff;
  text-align: center;
  padding: 80px 20px;
}

.hero-pt h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero-pt p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
}

/* CTA Button */
.btn-primary-pt {
  background-color: #00f0ff;
  color: #000;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  margin-right: 10px;
}

.btn-primary-pt:hover {
  background-color: #00cc6a;
}

/* Section Cards */
.section {
  padding: 60px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.section h2 {
  text-align: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  margin-bottom: 40px;
  color: #00f0ff;
}

/* ========================= */
/* SERVICES GRID (ALL CARDS) */
/* ========================= */

.grid,
.grid-pt {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;

  /* KEY FIXES */
  align-items: stretch;
  grid-auto-rows: 1fr;
}

/* ========================= */
/* CARD STRUCTURE */
/* ========================= */

.card,
.card-pt {
  padding: 30px;

  background: linear-gradient(145deg, #0a0a0a, #050505);

  border: 1px solid #00f0ff22;
  border-radius: 12px;

  transition: 0.35s;

  position: relative;
  overflow: hidden;

  /* KEY FIX */
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ========================= */
/* CARD TEXT */
/* ========================= */

.card h3,
.card-pt h3 {
  color: #00f0ff;
  margin-bottom: 10px;
  font-family: 'Orbitron', sans-serif;
}

.card p,
.card-pt p {
  margin: 0;
  color: #aaa;
  line-height: 1.6;
}

/* ========================= */
/* HOVER EFFECT (ONE VERSION ONLY) */
/* ========================= */

.card:hover,
.card-link:hover .card,
.card-link:hover .card-pt {
  transform: translateY(-8px);
  box-shadow: 0 0 20px #00f0ff33;
}

/* ========================= */
/* CLICKABLE CARD WRAPPER */
/* ========================= */

.card-link {
  text-decoration: none;
  color: inherit;

  /* IMPORTANT */
  display: flex;
  height: 100%;
}

/* ========================= */
/* OPTIONAL GLOW SWEEP */
/* ========================= */

.card::before,
.card-pt::before {
  content: "";

  position: absolute;
  inset: 0;

  background: linear-gradient(
    120deg,
    transparent,
    #00f0ff22,
    transparent
  );

  opacity: 0;
  transition: 0.4s;
}

.card:hover::before,
.card-pt:hover::before {
  opacity: 1;
}


/* CTA Section */
.cta-pt {
  text-align: center;
  background-color: #000;
  color: #00ff88;
  padding: 60px 20px;
  border-top: 2px solid #00f0ff;
}

.cta-pt a {
  text-decoration: none;
  background-color: #00f0ff;
  color: #000;
  padding: 15px 30px;
  font-weight: bold;
  border-radius: 5px;
}

.cta-pt a:hover {
  background-color: #00cc6a;
}

.card-link {
  text-decoration: none; /* remove underline */
  color: inherit;        /* keep card text color */
  display: block;        /* makes the whole card clickable */
}

.card-link .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 20px #00f0ff33;
}
/* Hero Video Background */
.hero {
  position: relative;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 0 60px;
}

#hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 0;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: brightness(0.35); /* darken video for text readability */
}

.hero-content {
  position: relative; /* sits above video */
  z-index: 1;
  max-width: 600px;
  color: #00f0ff;
}
/* Hero Video Background */
.hero {
  position: relative;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 0 60px;
}

#hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 0;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: brightness(0.35); /* darken video for text readability */
}

.hero-content {
  position: relative; /* sits above video */
  z-index: 1;
  max-width: 600px;
  color: #00f0ff;
}
/* Cyber Grid Overlay */
.cyber-grid {
  position: absolute;
  inset: 0;
  z-index: 1;

  background-image:
    linear-gradient(rgba(0,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,255,0.08) 1px, transparent 1px);

  background-size: 40px 40px;

  animation: moveGrid 8s linear infinite;

  pointer-events: none; /* allows clicks through */
}

/* Moving grid animation */
@keyframes moveGrid {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 0 40px, 40px 0;
  }
}

/* CONTACT TERMINAL */

/* ========================= */
/* TERMINAL BOOT SCREEN */
/* ========================= */

#terminal-boot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  height: 100%;
  text-align: center;
}

/* Logo */

#terminal-logo {
  width: 140px;
  margin-bottom: 25px;

  filter: drop-shadow(0 0 12px #00ff88);
}

/* Boot text */

#boot-text {
  margin-bottom: 20px;
  font-size: 14px;
}

/* Loading bar */

#loading-bar-container {
  width: 80%;
  height: 18px;

  border: 1px solid #00ff88;

  margin-top: 15px;
}

#loading-bar {
  width: 0%;
  height: 100%;

  background: #00ff88;

  box-shadow: 0 0 12px #00ff88;
}

/* Hide terminal content until ready */

#terminal-output {
  display: none;
}

.terminal-input-line {
  display: none;
}