/*
Theme Name: Vick Kumar Portfolio
Theme URI: https://github.com/vick-kumar
Author: Vick Kumar
Author URI: https://vickkumar.dev
Description: A dark cybersecurity portfolio theme for freelance security consultants. Features terminal aesthetics, certification badges, and project showcase sections.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vickkumar-portfolio
Tags: portfolio, dark, one-page, custom-colors, custom-menu
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --green:    #00ff9d;
  --green-dim:#00c97a;
  --red:      #ff3c5f;
  --bg:       #060a0f;
  --surface:  #0d1117;
  --surface2: #161b22;
  --border:   #1e2d3d;
  --text:     #c9d1d9;
  --muted:    #6e7f8d;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Scanline overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,255,157,0.015) 2px,
    rgba(0,255,157,0.015) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dim); }

img { max-width: 100%; height: auto; }

/* ============================================================
   NAVIGATION
   ============================================================ */
#site-header {
  background: rgba(6,10,15,0.95);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.site-branding .site-title {
  font-family: 'Share Tech Mono', monospace;
  color: var(--green);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  margin: 0;
}

.site-branding .site-title a { color: var(--green); }
.site-branding .site-title span { color: var(--red); }

#primary-navigation ul {
  list-style: none;
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
}

#primary-navigation ul li a {
  color: var(--muted);
  margin-left: 2rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: color 0.2s;
}

#primary-navigation ul li a:hover,
#primary-navigation ul li.current-menu-item a { color: var(--green); }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--green);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  letter-spacing: 0.1em;
}

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 6rem 0 4rem;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0,255,157,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  font-family: 'Share Tech Mono', monospace;
  color: var(--green);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.2s forwards;
}

.hero-name {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.4s forwards;
  color: #fff;
}

.hero-name em {
  font-style: normal;
  color: var(--green);
}

.hero-subtitle {
  font-family: 'Share Tech Mono', monospace;
  color: var(--red);
  font-size: 1rem;
  letter-spacing: 0.12em;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.5s forwards;
}

.hero-bio {
  max-width: 560px;
  color: var(--text);
  font-size: 1.1rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.6s forwards;
}

.hero-terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.8rem;
  color: var(--green);
  opacity: 0;
  animation: fadeUp 0.6s 0.8s forwards;
  position: relative;
}

.hero-terminal::before {
  content: '● ● ●';
  position: absolute;
  top: 0.6rem; left: 1rem;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
}

.terminal-spacer { height: 1.2rem; }
.terminal-line { margin-top: 0.4rem; }
.terminal-prompt { color: var(--red); }
.terminal-output { color: var(--muted); }

.cursor {
  display: inline-block;
  width: 8px; height: 1em;
  background: var(--green);
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

/* ============================================================
   SECTION SHARED STYLES
   ============================================================ */
.portfolio-section { padding: 5rem 0; }

.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

.section-label {
  font-family: 'Share Tech Mono', monospace;
  color: var(--green);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 3rem;
  color: #fff;
}

.section-title span { color: var(--green); }

/* ============================================================
   CERTIFICATIONS
   ============================================================ */
.cert-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.cert-badge {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.cert-badge:hover {
  border-color: var(--green);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,255,157,0.12);
}

.cert-icon {
  width: 44px; height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.55rem;
  font-weight: bold;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.2;
  flex-shrink: 0;
}

.cert-icon.comptia { background: linear-gradient(135deg, #c8001e, #8b0014); color: #fff; }
.cert-icon.cisco   { background: linear-gradient(135deg, #1ba0d7, #0e6da3); color: #fff; }
.cert-icon.tcm     { background: linear-gradient(135deg, #2563eb, #1e40af); color: #fff; }
.cert-icon.elearn  { background: linear-gradient(135deg, #7c3aed, #5b21b6); color: #fff; }
.cert-icon.offsec  { background: linear-gradient(135deg, #dc2626, #991b1b); color: #fff; }

.cert-info small {
  display: block;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.cert-info strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

/* ============================================================
   PROJECT CARDS
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--red));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.project-card:hover::before { transform: scaleX(1); }

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.project-lang {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  color: var(--green);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.project-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
}

.project-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.tag {
  background: rgba(0,255,157,0.08);
  border: 1px solid rgba(0,255,157,0.2);
  color: var(--green);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.btn-gh {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.78rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  letter-spacing: 0.08em;
  transition: border-color 0.2s, color 0.2s;
  align-self: flex-start;
}

.btn-gh:hover { border-color: var(--green); color: var(--green); }

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: auto;
}

.btn-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.78rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  letter-spacing: 0.08em;
  transition: border-color 0.2s, color 0.2s;
}

.btn-live:hover { border-color: #58a6ff; color: #58a6ff; }

.btn-cert {
  display: inline-block;
  margin-top: 0.4rem;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  color: var(--green);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: opacity 0.2s;
}

.btn-cert:hover { opacity: 0.7; color: var(--green); }

/* ============================================================
   WRITING / READING LIST
   ============================================================ */

.writing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
  margin-top: 2.5rem;
}

.writing-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
}

.writing-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}

.writing-type {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  color: var(--green);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.writing-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.writing-meta {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  color: var(--muted);
}

.writing-excerpt {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 0.3rem;
}

.writing-excerpt p { margin: 0; }

.writing-arrow {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.9rem;
  color: var(--green);
  margin-top: auto;
  padding-top: 0.8rem;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 680px;
  margin: 0 auto;
}

.contact-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(0,255,157,0.05), transparent 70%);
  pointer-events: none;
}

.contact-box h2 { font-size: 2rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.contact-box p  { color: var(--muted); margin-bottom: 2rem; }

.btn-primary-custom {
  background: var(--green);
  color: #000;
  font-family: 'Share Tech Mono', monospace;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  letter-spacing: 0.1em;
  border: none;
  transition: opacity 0.2s, transform 0.2s;
  display: inline-block;
  position: relative;
  z-index: 1;
}

.btn-primary-custom:hover { opacity: 0.85; transform: translateY(-2px); color: #000; }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

#site-footer .footer-green { color: var(--green); }

/* ============================================================
   WORDPRESS CORE CLASSES
   ============================================================ */
.alignleft  { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.aligncenter { display: block; margin: 0 auto; }

.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--muted); text-align: center; }

.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute; width: 1px;
  word-wrap: normal !important;
}

/* ============================================================
   UTILITY / LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.col-half { flex: 1 1 340px; }

/* Scroll fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .menu-toggle { display: block; }

  #primary-navigation { display: none; width: 100%; }
  #primary-navigation.open { display: block; }

  #primary-navigation ul {
    flex-direction: column;
    padding: 1rem 0;
  }

  #primary-navigation ul li a {
    margin-left: 0;
    display: block;
    padding: 0.5rem 0;
  }

  #site-header { flex-wrap: wrap; gap: 0.5rem; }

  .hero-section { padding: 4rem 0 3rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .contact-box { padding: 2rem 1.5rem; }
}
