
* {
  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;
}

.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;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 25px;
}

.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;
}

/* 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;
}

/* Grid container */
.grid-pt {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  justify-content: center;
  align-items: stretch; /* ensures items fill the row height */
  grid-auto-rows: 1fr; /* force all rows to have equal height */
}

/* <a> wrapper */
/* Make all cards the same height */
.grid-pt {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  align-items: stretch; /* <-- ensures all cards stretch to the same height */
}

.card-pt {
  display: flex;           /* make card a flex container */
  flex-direction: column;  /* stack heading and paragraph */
  justify-content: flex-start;
  height: 100%;            /* fill the grid cell height */
  box-sizing: border-box;  /* ensure padding doesn't break layout */
}

.card-pt h3 {
  font-family: 'Orbitron', sans-serif;
  color: #00f0ff;
  margin-bottom: 10px;
}

.card-pt p {
  color: #fff;
  font-family: 'Inter', sans-serif;
}

/* 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;
  }
}