/* =========================
   PORTFOLIO PAGE STYLES
   ========================= */

/* Nav active state */
.nav-active {
  color: var(--accent) !important;
  opacity: 1 !important;
}

.nav-active::after {
  width: 100% !important;
}

/* =========================
   ABOUT / HERO
   ========================= */

.pf-about {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.pf-about-text {
  max-width: 600px;
  text-align: center;
}

.pf-avatar {
  flex-shrink: 0;
}

.pf-avatar-inner {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 2px solid var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  box-shadow: 0 0 40px var(--accent-glow);
  position: relative;
  overflow: hidden;
}

.pf-avatar-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-accent);
  opacity: 0.08;
}

.pf-avatar-icon {
  position: relative;
  z-index: 1;
}

.pf-intro {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.pf-intro strong {
  color: var(--accent);
  font-family: var(--font-mono);
}

.pf-hero-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  justify-content: center;
}

@media (max-width: 600px) {
  .pf-about {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .pf-avatar {
    display: flex;
    justify-content: center;
  }

  .pf-hero-actions {
    justify-content: center;
  }
}

/* =========================
   SKILLS GRID
   ========================= */

.pf-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.pf-skill-card {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pf-skill-card:hover {
  border-color: var(--accent);
  background: var(--surface-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow), var(--shadow-lg);
}

.pf-skill-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.pf-skill-icon {
  font-size: 1.4rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border: 1px solid var(--accent-glow);
  border-radius: 10px;
  flex-shrink: 0;
}

.pf-skill-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0;
  color: var(--text);
}

.pf-skill-card .tag-list {
  margin-top: 0;
}

/* =========================
   CTF GRID
   ========================= */

.pf-ctf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.pf-ctf-item {
  display: flex;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.pf-ctf-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pf-ctf-item:hover {
  border-color: var(--accent);
  background: var(--surface-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow), var(--shadow-lg);
  opacity: 1;
}

.pf-ctf-item:hover::before {
  opacity: 1;
}

.pf-ctf-badge {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  background: var(--accent-soft);
  border: 1px solid var(--accent-glow);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  height: fit-content;
  white-space: nowrap;
}

.pf-ctf-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
  line-height: 1.3;
}

.pf-ctf-content p {
  font-size: 0.82rem;
  margin-bottom: 0;
  color: var(--text-muted);
  line-height: 1.5;
}

.pf-ctf-content .tag-list {
  margin-top: 0.75rem;
  margin-bottom: 0;
}

/* =========================
   TIMELINE
   ========================= */

.pf-timeline {
  position: relative;
  margin-top: 1.5rem;
  padding-left: 2rem;
}

.pf-timeline::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-secondary), transparent);
  opacity: 0.4;
}

.pf-timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
}

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

.pf-timeline-dot {
  position: absolute;
  left: -1.65rem;
  top: 1.75rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.pf-timeline-content {
  margin-bottom: 0;
}

.pf-timeline-content h3 {
  margin-bottom: 0.4rem;
}

/* =========================
   STATS ROW
   ========================= */

.pf-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
}

.pf-stat-card {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.pf-stat-card:hover {
  border-color: var(--accent);
  background: var(--surface-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

.pf-stat-num {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.pf-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
}

/* =========================
   CONTACT
   ========================= */

.pf-contact-card {
  padding: 2.5rem;
}

.pf-contact-lead {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 2rem;
}

.pf-contact-lead strong {
  color: var(--accent);
}

.pf-contact-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.pf-contact-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--accent-soft);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 180px;
}

.pf-contact-link:hover {
  border-color: var(--accent);
  background: var(--surface-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
  opacity: 1;
  color: var(--text);
}

.pf-contact-link-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.pf-contact-link-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
}

.pf-contact-link-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

@media (max-width: 768px) {
  .pf-contact-links {
    flex-direction: column;
  }

  .pf-contact-link {
    min-width: unset;
  }
}
