/* ===== VARIABLES ===== */
:root {
  --bg-primary:    #0a0e1a;
  --bg-secondary:  #0d1526;
  --bg-card:       #111827;
  --bg-terminal:   #0d1117;
  --accent-cyan:   #00d4ff;
  --accent-green:  #00ff88;
  --accent-blue:   #3b82f6;
  --accent-purple: #8b5cf6;
  --text-primary:  #e2e8f0;
  --text-secondary:#94a3b8;
  --text-muted:    #475569;
  --border:        #1e293b;
  --border-glow:   rgba(0, 212, 255, 0.3);
  --font-mono:     'JetBrains Mono', 'Courier New', monospace;
  --font-sans:     'Inter', sans-serif;
  --nav-h:         64px;
  --radius:        12px;
  --transition:    0.25s ease;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--accent-cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
img { max-width: 100%; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-cyan); border-radius: 3px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(10, 14, 26, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background var(--transition);
}
.navbar.scrolled {
  background: rgba(10, 14, 26, 0.98);
  box-shadow: 0 1px 20px rgba(0,212,255,0.1);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}
.nav-logo:hover { text-decoration: none; }
.prompt { color: var(--accent-green); }
.blink { color: var(--accent-cyan); animation: blink 1s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--accent-cyan); text-decoration: none; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
#network-canvas {
  width: 100%;
  height: 100%;
  opacity: 0.35;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,212,255,0.08) 0%, transparent 70%);
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 800px;
}
.hero-greeting {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.hero-name {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}
.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  color: var(--accent-green);
  min-height: 2.2rem;
  margin-bottom: 1.25rem;
}
.cursor { animation: blink 0.8s step-end infinite; color: var(--accent-cyan); }
.hero-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: var(--accent-cyan);
  color: var(--bg-primary);
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0,212,255,0.3);
}
.btn-primary:hover { box-shadow: 0 0 35px rgba(0,212,255,0.5); }
.btn-outline {
  background: transparent;
  color: var(--accent-cyan);
  border: 2px solid var(--accent-cyan);
}
.btn-outline:hover {
  background: rgba(0,212,255,0.1);
  box-shadow: 0 0 20px rgba(0,212,255,0.2);
}
.hero-badges {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border-glow);
  color: var(--accent-cyan);
  background: rgba(0,212,255,0.06);
}
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: bounce 2s infinite;
}
.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--accent-cyan);
  border-bottom: 2px solid var(--accent-cyan);
  transform: rotate(45deg);
}
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

/* ===== SECTIONS ===== */
.section {
  padding: 6rem 0;
  position: relative;
}
.section:nth-child(even) { background: var(--bg-secondary); }
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--text-primary);
}
.hash { color: var(--accent-cyan); margin-right: 0.5rem; }

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  line-height: 1.8;
}
.about-text strong { color: var(--accent-cyan); }
.about-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.info-item {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
}
.info-label {
  color: var(--text-muted);
  min-width: 100px;
  font-family: var(--font-mono);
}
.info-value { color: var(--text-primary); }
.info-value.green { color: var(--accent-green); }

/* ===== TERMINAL ===== */
.about-terminal, .contact-terminal {
  background: var(--bg-terminal);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0,212,255,0.08);
}
.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  background: #161b2e;
  border-bottom: 1px solid var(--border);
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }
.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}
.terminal-body {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.8;
}
.terminal-body p { color: var(--text-secondary); }
.terminal-body .cmd { color: var(--accent-cyan); user-select: none; }
.terminal-body .output { color: var(--text-muted); padding-left: 0.5rem; }
.terminal-body .success { color: var(--accent-green); }
.terminal-body .cyan { color: var(--accent-cyan); }
.terminal-body .green { color: var(--accent-green); }
.blink-cursor { animation: blink 1s step-end infinite; color: var(--accent-cyan); }

/* ===== SKILLS ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.skill-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
  transform: scaleX(0);
  transition: transform var(--transition);
}
.skill-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,212,255,0.1);
}
.skill-card:hover::before { transform: scaleX(1); }
.skill-icon {
  width: 44px;
  height: 44px;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
}
.skill-icon svg { width: 100%; height: 100%; }
.skill-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}
.skill-card ul { display: flex; flex-direction: column; gap: 0.35rem; }
.skill-card li {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}
.skill-card li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
}

/* ===== CERTS ===== */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: all var(--transition);
}
.cert-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,212,255,0.1);
}
.cert-logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.7rem;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  text-align: center;
  min-width: 60px;
  letter-spacing: 0.05em;
}
.cert-logo.cisco     { background: rgba(0,188,212,0.15);  color: #00bcd4; border: 1px solid rgba(0,188,212,0.3); }
.cert-logo.comptia   { background: rgba(255,136,0,0.15);  color: #ff8800; border: 1px solid rgba(255,136,0,0.3); }
.cert-logo.fortinet  { background: rgba(238,0,0,0.15);    color: #ee0000; border: 1px solid rgba(238,0,0,0.3); }
.cert-logo.aws       { background: rgba(255,153,0,0.15);  color: #ff9900; border: 1px solid rgba(255,153,0,0.3); }
.cert-logo.microsoft { background: rgba(0,120,212,0.15);  color: #0078d4; border: 1px solid rgba(0,120,212,0.3); font-size: 0.6rem; }
.cert-info { flex: 1; }
.cert-info h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.2rem; }
.cert-info p  { font-size: 0.78rem; color: var(--text-muted); }
.cert-status {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-top: 0.4rem;
}
.cert-status.obtained    { background: rgba(0,255,136,0.1); color: var(--accent-green); border: 1px solid rgba(0,255,136,0.3); }
.cert-status.in-progress { background: rgba(251,191,36,0.1); color: #fbbf24; border: 1px solid rgba(251,191,36,0.3); }
.cert-status.planned     { background: rgba(148,163,184,0.1); color: var(--text-muted); border: 1px solid rgba(148,163,184,0.2); }
.cert-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

/* ===== EXPERIENCE & EDUCATION ===== */
.timeline {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 3.5rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-cyan), var(--accent-blue), transparent);
}
.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}
.timeline-dot {
  position: absolute;
  left: -2.45rem;
  top: 1.1rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--text-muted);
  transition: border-color var(--transition);
}
.timeline-item.current .timeline-dot {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0,212,255,0.5);
  background: var(--accent-cyan);
}
.timeline-item:hover .timeline-dot { border-color: var(--accent-cyan); }
.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.timeline-card:hover {
  border-color: var(--border-glow);
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(0,212,255,0.08);
}
.timeline-item.current .timeline-card {
  border-color: rgba(0,212,255,0.2);
}
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}
.timeline-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}
.timeline-company {
  display: block;
  font-size: 0.83rem;
  color: var(--accent-cyan);
  margin-top: 0.2rem;
}
.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  height: fit-content;
}
.timeline-item.current .timeline-date {
  color: var(--accent-green);
  border-color: rgba(0,255,136,0.3);
}
.timeline-card p {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.timeline-tags span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: rgba(139,92,246,0.1);
  color: var(--accent-purple);
  border: 1px solid rgba(139,92,246,0.25);
}

.subsection-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all var(--transition);
}
.edu-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
}
.edu-icon {
  width: 36px;
  height: 36px;
  color: var(--accent-cyan);
  flex-shrink: 0;
}
.edu-icon svg { width: 100%; height: 100%; }
.edu-card h4 { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.2rem; }
.edu-school { font-size: 0.82rem; color: var(--accent-cyan); margin-bottom: 0.2rem; }
.edu-date { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); }

/* ===== PROJECTS ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.project-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0,212,255,0.1);
}
.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.project-icon {
  width: 36px;
  height: 36px;
  color: var(--accent-cyan);
}
.project-icon svg { width: 100%; height: 100%; }
.project-links a {
  color: var(--text-muted);
  transition: color var(--transition);
  display: inline-block;
  width: 20px;
  height: 20px;
}
.project-links a:hover { color: var(--accent-cyan); }
.project-links svg { width: 20px; height: 20px; }
.project-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}
.project-card p {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.project-tags span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: rgba(59,130,246,0.1);
  color: var(--accent-blue);
  border: 1px solid rgba(59,130,246,0.25);
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-text p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color var(--transition);
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
}
.contact-item:hover {
  color: var(--accent-cyan);
  border-color: var(--border-glow);
  text-decoration: none;
  transform: translateX(4px);
}
.contact-item svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-terminal);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
}
.footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer a { color: var(--accent-cyan); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-terminal { order: -1; }
}
@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg-terminal);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .section { padding: 4rem 0; }
  .skills-grid, .certs-grid, .projects-grid { grid-template-columns: 1fr; }
}

/* ===== FADE-IN ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
