@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --accent: #e4e4e7;
  --accent-dim: #a1a1aa;
  --accent-glow: rgba(255, 255, 255, 0.05);
  --bg-dark: #09090b;
  --bg-card: rgba(255, 255, 255, 0.02);
  --border: rgba(255, 255, 255, 0.08);
  --text: #d4d4d8;
  --text-dim: #52525b;
  --green-dim: #22c55e;
}

/* --- Overall Page --- */
.hacker-page {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text);
  max-width: 900px;
  margin: 0 auto;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* --- Hero Section --- */
.hero-section {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.profile-pic {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 2px solid var(--border);
  box-shadow: 0 0 30px var(--accent-glow);
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  display: block;
}

.hero-text h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.25rem;
  text-decoration: none;
  border-bottom: none;
  opacity: 0;
  animation: fadeIn 0.9s ease-in 0.5s forwards;
}

.hero-text .tagline {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--accent-dim);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeIn 1.0s ease-in 1.5s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.hero-text .bio {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text);
}

.status-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--green-dim);
}

.status-dot {
  width: 10px;
  height: 10px;
  background: var(--green-dim);
  border-radius: 50%;
  animation: pulse 1.7s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* --- Section Headers --- */
.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 2.5rem 0 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-dim);
}

.section-header::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 1.8rem;
  opacity: 0;
  transform: translateX(-20px);
  animation: fadeSlide 0.5s forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.3s; }
.timeline-item:nth-child(3) { animation-delay: 0.5s; }
.timeline-item:nth-child(4) { animation-delay: 0.7s; }
.timeline-item:nth-child(5) { animation-delay: 0.9s; }
.timeline-item:nth-child(6) { animation-delay: 1.1s; }

.timeline-item:last-child {
  padding-bottom: 0;
}

@keyframes fadeSlide {
  to { opacity: 1; transform: translateX(0); }
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 4px;
  width: 10px;
  height: 10px;
  background: var(--bg-dark);
  border: 2px solid var(--accent-dim);
  border-radius: 50%;
}

.timeline-date {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}

.timeline-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.timeline-title a {
  color: inherit;
  text-decoration: none;
}

.timeline-title a:hover {
  text-decoration: underline;
}

.timeline-desc {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
  margin-bottom: 0.6rem;
}
.timeline-metadata {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 2px solid var(--green-dim);
  padding: 0.5rem 0.85rem;
  border-radius: 3px;
  margin-top: 0.6rem;
}

.timeline-keyword {
  color: var(--green-dim);
  font-weight: 600;
}

/* --- Skills Grid --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: default;
}

.skill-card:hover {
  border-color: var(--green-dim);
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.15);
  transform: translateY(-3px);
}

.skill-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: var(--accent-dim);
}

.skill-card:hover::before {
  background: var(--green-dim);
  box-shadow: 0 0 10px var(--green-dim);
}

.skill-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.skill-card:hover h3 {
  color: var(--green-dim);
}

.skill-card p {
  font-size: 0.85rem;
  color: var(--text);
  margin: 0;
  line-height: 1.5;
}

.skill-tag {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 0.2rem 0.5rem;
  margin-top: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Certifications --- */
.certifications-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.certification-item {
  width: 120px;
  text-align: center;
}

.certification-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  border: none;
  transition: transform 0.2s, border-color 0.2s, opacity 0.2s;
  opacity: 0.85;
}

.certification-item img:hover {
  transform: scale(1.1);
  opacity: 1;
  border-color: var(--accent-dim);
}

.certification-name {
  font-size: 0.80rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

/* --- Navigation Links --- */
.nav-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-link:hover {
  background: var(--accent-glow);
  border-color: var(--accent-dim);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.nav-link:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.highlight-box {
  background: var(--bg-card);
  border-left: 4px solid var(--accent-dim);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
}

.nav-button {
  display: inline-block;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-button:hover {
  background: var(--accent-glow);
  text-decoration: none;
}

@media (max-width: 600px) {
  .nav-link {
    width: 100%;
    justify-content: center;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .hero-section {
    flex-direction: column;
    text-align: center;
  }
  .profile-pic {
    width: 120px;
    height: 120px;
  }
}

/* --- Email Copy Tooltip --- */
.email-copy-wrapper {
  position: relative;
  display: inline-block;
  cursor: pointer;
  color: var(--green-dim);
  border-bottom: 1px dashed var(--green-dim);
  transition: all 0.2s;
  margin-left: 5px;
}

.email-copy-wrapper:hover {
  background: rgba(34, 197, 94, 0.1);
}

.copy-tooltip {
  visibility: hidden;
  width: 70px;
  background-color: var(--bg-dark);
  color: var(--text);
  text-align: center;
  border: 1px solid var(--green-dim);
  border-radius: 4px;
  padding: 4px 0;
  position: absolute;
  z-index: 100;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  font-size: 0.75rem;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  pointer-events: none;
}

.copy-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: var(--green-dim) transparent transparent transparent;
}

.email-copy-wrapper:hover .copy-tooltip {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(-10px);
}


/* =========================================================
   TERMINAL & ACTIVE DIRECTORY ADD-ONS
   (Includes the "Cinematic Breakout" for PS-Console)
   ========================================================= */

/* --- AD Container (Wrapper) --- */
.ad-container {
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  padding: 1.5rem;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}

.ad-container::before {
  content: "ACTIVE DIRECTORY // MANAGER";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  font-size: 0.7rem;
  color: var(--text-dim);
  padding: 4px 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- AD Tree Structure --- */
.ad-tree {
  font-family: 'JetBrains Mono', monospace;
  margin-top: 1rem;
  list-style: none;
  padding-left: 0;
}

.ad-tree li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.ad-tree li::before {
  content: "├─";
  position: absolute;
  left: 0;
  color: var(--text-dim);
  opacity: 0.5;
}

.ad-tree li:last-child::before {
  content: "└─";
}

.ad-icon {
  color: var(--green-dim);
  margin-right: 0.5rem;
  font-weight: bold;
}

.ad-object {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

.ad-object:hover {
  color: var(--green-dim);
  text-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
  cursor: pointer;
}

/* --- AD Object Card --- */
.ad-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green-dim);
  padding: 1rem;
  margin-bottom: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.ad-card:hover {
  transform: translateX(5px);
  box-shadow: -5px 5px 15px rgba(0,0,0,0.5);
  background: rgba(255, 255, 255, 0.04);
}

.ad-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
}

.ad-card-title {
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
}

.ad-badge {
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(34, 197, 94, 0.1);
  color: var(--green-dim);
  border: 1px solid var(--green-dim);
  text-transform: uppercase;
}

.ad-attributes {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1.5rem;
  font-size: 0.85rem;
}

.ad-attr-key {
  color: var(--text-dim);
}

.ad-attr-val {
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  word-break: break-all;
}

/* --- PowerShell Console (CORRECT BREAKOUT VERSION) --- */
.ps-console {
  background: #0c0c0c;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 1.5rem;
  margin: 2rem 0;
  font-family: 'Consolas', 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  overflow-x: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  width: 100%; 
  box-sizing: border-box;
}

/* "Cinematic Breakout" - This matches your correct block */
@media (min-width: 1000px) {
  .ps-console {
    width: 110%;
    margin-left: -5%;
  }
}

.ps-prompt {
  color: var(--text);
  margin-bottom: 0.75rem;
}

.ps-path {
  color: #facc15;
}

.ps-cmd {
  color: var(--accent);
  font-weight: bold;
}

.ps-output {
  color: var(--green-dim);
  opacity: 0.95;
  white-space: pre; 
  margin-top: 0.5rem;
  padding-left: 0.5rem;
  border-left: 2px solid rgba(34, 197, 94, 0.3);
  line-height: 1.4;
}

@media (max-width: 600px) {
  .ad-attributes {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

/* =========================================================
   WAZUH TABLE ADD-ONS (NEW)
   Added to support the project table
   ========================================================= */

.tech-table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
}

.tool-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  text-align: left;
}

.tool-table th {
  padding: 1rem;
  background: var(--bg-card);
  color: var(--green-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  border-bottom: 2px solid var(--border);
}

.tool-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
}

.tool-table tr:last-child td {
  border-bottom: none;
}

.tool-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.tool-table .highlight {
  color: var(--accent);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
  display: inline-block;
}

@media (max-width: 600px) {
  .tool-table th, .tool-table td {
    padding: 0.75rem;
    font-size: 0.75rem;
  }
}