/*
Theme Name: SN Portfolio
Theme URI: https://sarojnayak.com
Author: Saroj Nayak
Author URI: https://sarojnayak.com
Description: A modern SRE portfolio theme with Status Page aesthetic and monochrome design. Features network visualization, terminal simulation, skills visualization, and full admin control via WordPress.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sn-portfolio
Tags: portfolio, one-page, custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

SN Portfolio WordPress Theme
Copyright 2025 Saroj Nayak
*/

/* ========================================
   BASE RESET & VARIABLES
   ======================================== */
:root {
  --color-black: #000;
  --color-white: #fff;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-green-500: #22c55e;
  --color-green-600: #16a34a;
  --color-red-500: #ef4444;
  --color-blue-500: #3b82f6;
  --color-yellow-500: #eab308;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #111;
  background: #fff;
  overflow-x: hidden;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 300;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

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

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes float-delayed {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

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

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

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

.animate-float { animation: float 3s ease-in-out infinite; }
.animate-float-delayed { animation: float-delayed 3s ease-in-out infinite; animation-delay: 1s; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
.animate-ping { animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite; }

/* ========================================
   LAYOUT & CONTAINERS
   ======================================== */
.container {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-sm {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container, .container-sm {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container, .container-sm {
    padding: 0 2rem;
  }
}

/* ========================================
   SECTION STYLES
   ======================================== */
.section {
  padding: 3rem 1rem;
}

@media (min-width: 640px) {
  .section {
    padding: 4rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 6rem 3rem;
  }
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .section-header {
    margin-bottom: 3rem;
  }
}

@media (min-width: 1024px) {
  .section-header {
    margin-bottom: 4rem;
  }
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 9999px;
  font-size: 0.75rem;
  color: #666;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .section-badge {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
  }
}

.section-title {
  font-size: 1.75rem;
  font-weight: 300;
  color: #000;
  margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
  }
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 3rem;
  }
}

.section-subtitle {
  font-size: 0.9375rem;
  color: #666;
  max-width: 42rem;
  margin: 0 auto;
  line-height: 1.7;
}

@media (min-width: 640px) {
  .section-subtitle {
    font-size: 1.125rem;
  }
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 9999px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }
}

.btn-primary {
  background: #000;
  color: #fff;
}

.btn-primary:hover {
  background: #333;
}

.btn-outline {
  background: transparent;
  color: #000;
  border: 1px solid #e5e5e5;
}

.btn-outline:hover {
  background: #f5f5f5;
}

/* ========================================
   GLASS CARD
   ======================================== */
.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ========================================
   GRID SYSTEM - RESPONSIVE
   ======================================== */
.grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .grid {
    gap: 1.5rem;
  }
}

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ========================================
   FLEX UTILITIES
   ======================================== */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* ========================================
   SPACING
   ======================================== */
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

/* ========================================
   COLORS
   ======================================== */
.bg-white { background-color: #fff; }
.bg-black { background-color: #000; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-green-50 { background-color: #f0fdf4; }
.bg-green-500 { background-color: #22c55e; }

.text-white { color: #fff; }
.text-black { color: #000; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-green-500 { color: #22c55e; }
.text-green-600 { color: #16a34a; }

/* ========================================
   BORDER RADIUS
   ======================================== */
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

/* ========================================
   SHADOWS
   ======================================== */
.shadow { box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }

/* ========================================
   TEXT SIZES - RESPONSIVE
   ======================================== */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }

.font-light { font-weight: 300; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }

.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }

/* ========================================
   WIDTH/HEIGHT
   ======================================== */
.w-full { width: 100%; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.h-2 { height: 0.5rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }

/* ========================================
   POSITION
   ======================================== */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }

/* ========================================
   OVERFLOW & DISPLAY
   ======================================== */
.overflow-hidden { overflow: hidden; }
.hidden { display: none; }

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:block { display: block; }
}

/* ========================================
   TRANSITIONS
   ======================================== */
.transition { transition: all 0.3s ease; }
.transition-colors { transition: color 0.2s ease, background-color 0.2s ease; }
.transition-transform { transition: transform 0.2s ease; }

/* ========================================
   NETWORK VISUALIZATION
   ======================================== */
#network-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ========================================
   HEADER - RESPONSIVE
   ======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #f3f4f6;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  max-width: 80rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .header-inner {
    padding: 1rem 1.5rem;
  }
}

.header-nav {
  display: none;
}

@media (min-width: 768px) {
  .header-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .header-nav {
    gap: 2rem;
  }
}

.header-nav a {
  font-size: 0.875rem;
  color: #6b7280;
  transition: color 0.2s ease;
}

.header-nav a:hover {
  color: #000;
}

.mobile-menu-toggle {
  display: block;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  z-index: 100;
  padding: 1rem;
}

.mobile-menu.active {
  display: flex;
  flex-direction: column;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.mobile-menu-close {
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu-nav a {
  font-size: 1.25rem;
  color: #374151;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.mobile-contact-btn {
  margin-top: 1rem;
  text-align: center;
}

/* Header Brand */
.header-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-logo {
  width: 2rem;
  height: 2rem;
  background: #000;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-title {
  font-weight: 600;
  color: #000;
  letter-spacing: -0.025em;
}

/* ========================================
   HERO SECTION - RESPONSIVE
   ======================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1rem 3rem;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(1px);
  position: relative;
}

@media (min-width: 640px) {
  .hero-section {
    padding: 6rem 1.5rem 4rem;
  }
}

@media (min-width: 1024px) {
  .hero-section {
    padding: 5rem 3rem 4rem;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 1024px) {
  .hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    text-align: left;
    align-items: center;
  }
}

.hero-text {
  order: 2;
}

@media (min-width: 1024px) {
  .hero-text {
    order: 1;
  }
}

.hero-name {
  font-size: 2rem;
  font-weight: 300;
  color: #000;
  margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
  .hero-name {
    font-size: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-name {
    font-size: 3rem;
  }
}

.hero-title {
  font-size: 1rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
}

.hero-summary {
  color: #4b5563;
  font-size: 0.9375rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  max-width: 32rem;
}

@media (min-width: 640px) {
  .hero-summary {
    font-size: 1.125rem;
  }
}

@media (min-width: 1024px) {
  .hero-summary {
    margin: 0 0 1.5rem 0;
  }
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

@media (min-width: 480px) {
  .hero-ctas {
    flex-direction: row;
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  .hero-ctas {
    justify-content: flex-start;
    margin-bottom: 1.5rem;
  }
}

.hero-profile {
  order: 1;
}

@media (min-width: 1024px) {
  .hero-profile {
    order: 2;
  }
}

/* Profile Image - Responsive */
.profile-container {
  position: relative;
  width: 14rem;
  height: 14rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .profile-container {
    width: 18rem;
    height: 18rem;
  }
}

@media (min-width: 1024px) {
  .profile-container {
    width: 22rem;
    height: 22rem;
  }
}

.profile-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, #f3f4f6, #e5e7eb);
  border-radius: 1.25rem;
  transform: rotate(6deg);
}

.profile-image {
  position: absolute;
  inset: 0;
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Floating Cards - Responsive */
.floating-card {
  position: absolute;
  background: #fff;
  border-radius: 0.75rem;
  padding: 0.625rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 1px solid #f3f4f6;
  z-index: 20;
}

@media (min-width: 640px) {
  .floating-card {
    border-radius: 1rem;
    padding: 1rem;
  }
}

.floating-card-left {
  bottom: -0.5rem;
  left: -0.5rem;
}

@media (min-width: 640px) {
  .floating-card-left {
    bottom: -1rem;
    left: -1.5rem;
  }
}

@media (min-width: 1024px) {
  .floating-card-left {
    left: -2rem;
  }
}

.floating-card-right {
  top: -0.5rem;
  right: -0.5rem;
}

@media (min-width: 640px) {
  .floating-card-right {
    top: -1rem;
    right: -1.5rem;
  }
}

@media (min-width: 1024px) {
  .floating-card-right {
    right: -2rem;
  }
}

.floating-card-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .floating-card-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
  }
}

.floating-card-text {
  font-size: 0.625rem;
}

@media (min-width: 640px) {
  .floating-card-text {
    font-size: 0.75rem;
  }
}

.floating-card-value {
  font-size: 0.75rem;
  font-weight: 500;
}

@media (min-width: 640px) {
  .floating-card-value {
    font-size: 0.875rem;
  }
}

/* Stats Counter - Responsive */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .stats-grid {
    gap: 1rem;
    margin-top: 2rem;
  }
}

.stat-item {
  text-align: center;
  padding: 0.75rem 0.5rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 0.75rem;
  border: 1px solid #f3f4f6;
}

@media (min-width: 640px) {
  .stat-item {
    padding: 1rem;
    border-radius: 1rem;
  }
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 300;
  color: #000;
}

@media (min-width: 640px) {
  .stat-value {
    font-size: 1.875rem;
  }
}

.stat-label {
  font-size: 0.625rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (min-width: 640px) {
  .stat-label {
    font-size: 0.75rem;
  }
}

/* ========================================
   FEATURED PROJECT - RESPONSIVE
   ======================================== */
.featured-section {
  background: #000;
  color: #fff;
  padding: 3rem 1rem;
}

@media (min-width: 640px) {
  .featured-section {
    padding: 4rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .featured-section {
    padding: 6rem 3rem;
  }
}

.featured-card {
  background: linear-gradient(to bottom right, #1f2937, #000);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1rem;
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .featured-card {
    border-radius: 1.5rem;
    padding: 2rem;
  }
}

.featured-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }
}

.featured-title {
  font-size: 1.5rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .featured-title {
    font-size: 1.875rem;
  }
}

/* Metrics with background image */
.metrics-container {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
}

.metrics-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}

.metrics-content {
  position: relative;
  z-index: 2;
}

.metric-card {
  background: rgba(255,255,255,0.05);
  border-radius: 0.75rem;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
  .metric-card {
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 300;
  color: #fff;
}

@media (min-width: 640px) {
  .metric-value {
    font-size: 1.875rem;
  }
}

/* ========================================
   TERMINAL SECTION - RESPONSIVE
   ======================================== */
.terminal-window {
  background: #1a1a1a;
  border-radius: 0.5rem;
  overflow: hidden;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

@media (min-width: 640px) {
  .terminal-window {
    border-radius: 0.75rem;
  }
}

.terminal-header {
  background: #2d2d2d;
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

@media (min-width: 640px) {
  .terminal-header {
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }
}

.terminal-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
}

@media (min-width: 640px) {
  .terminal-dot {
    width: 0.75rem;
    height: 0.75rem;
  }
}

.terminal-dot-red { background: #ff5f56; }
.terminal-dot-yellow { background: #ffbd2e; }
.terminal-dot-green { background: #27ca40; }

.terminal-body {
  padding: 1rem;
  max-height: 300px;
  overflow-y: auto;
  font-size: 0.75rem;
  line-height: 1.75;
}

@media (min-width: 640px) {
  .terminal-body {
    padding: 1.5rem;
    max-height: 400px;
    font-size: 0.875rem;
  }
}

.terminal-line { margin-bottom: 0.5rem; }
.terminal-prompt { color: #22c55e; }
.terminal-command { color: #fff; }
.terminal-output { color: #9ca3af; padding-left: 0.5rem; }

@media (min-width: 640px) {
  .terminal-output { padding-left: 1rem; }
}

/* ========================================
   SKILLS SECTION - RESPONSIVE
   ======================================== */
.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  transition: all 0.2s ease;
  cursor: default;
}

@media (min-width: 640px) {
  .skill-tag {
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}

.skill-tag-adopt { background: #000; color: #fff; }
.skill-tag-trial { background: #6b7280; color: #fff; }
.skill-tag-assess { background: #e5e7eb; color: #374151; }

.skill-bar {
  height: 0.375rem;
  background: #f3f4f6;
  border-radius: 9999px;
  overflow: hidden;
}

@media (min-width: 640px) {
  .skill-bar {
    height: 0.5rem;
  }
}

.skill-bar-fill {
  height: 100%;
  background: #000;
  border-radius: 9999px;
  transition: width 1s ease-out;
}

.skills-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .skills-filter {
    gap: 0.75rem;
    margin-bottom: 2rem;
  }
}

.skill-filter-btn {
  padding: 0.375rem 0.875rem;
  background: #f3f4f6;
  color: #374151;
  border: none;
  border-radius: 9999px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

@media (min-width: 640px) {
  .skill-filter-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
  }
}

.skill-filter-btn.active,
.skill-filter-btn:hover {
  background: #000;
  color: #fff;
}

/* ========================================
   EXPERIENCE SECTION - RESPONSIVE
   ======================================== */
.experience-timeline {
  position: relative;
  padding-left: 2rem;
}

@media (min-width: 640px) {
  .experience-timeline {
    padding-left: 4rem;
  }
}

.experience-timeline::before {
  content: '';
  position: absolute;
  left: 0.75rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e5e7eb;
}

@media (min-width: 640px) {
  .experience-timeline::before {
    left: 1.5rem;
  }
}

.experience-card {
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
  position: relative;
}

@media (min-width: 640px) {
  .experience-card {
    border-radius: 1rem;
    margin-bottom: 1.5rem;
  }
}

.experience-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.experience-dot {
  position: absolute;
  left: -1.5rem;
  top: 1.25rem;
  width: 0.75rem;
  height: 0.75rem;
  background: #000;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #000;
}

@media (min-width: 640px) {
  .experience-dot {
    left: -2.5rem;
    top: 1.5rem;
    width: 1rem;
    height: 1rem;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #000;
  }
}

.experience-header {
  padding: 1rem;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 640px) {
  .experience-header {
    padding: 1.5rem;
    align-items: center;
  }
}

.experience-body {
  padding: 0 1rem 1rem;
  border-top: 1px solid #f3f4f6;
}

@media (min-width: 640px) {
  .experience-body {
    padding: 0 1.5rem 1.5rem;
  }
}

.incident-item {
  padding: 0.75rem;
  background: #f9fafb;
  border-radius: 0.375rem;
  margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
  .incident-item {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
  }
}

.incident-label {
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

@media (min-width: 640px) {
  .incident-label {
    font-size: 0.75rem;
  }
}

.incident-issue { color: #ef4444; }
.incident-action { color: #3b82f6; }
.incident-result { color: #22c55e; }

/* ========================================
   CREDENTIALS SECTION - RESPONSIVE
   ======================================== */
.credentials-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .credentials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.cert-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (min-width: 640px) {
  .cert-card {
    flex-wrap: nowrap;
  }
}

.cert-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}

@media (min-width: 640px) {
  .cert-info {
    gap: 1rem;
  }
}

.cert-icon {
  width: 2rem;
  height: 2rem;
  background: #f3f4f6;
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .cert-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
  }
}

.cert-text h4 {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #000;
  margin-bottom: 0.125rem;
}

@media (min-width: 640px) {
  .cert-text h4 {
    font-size: 0.9375rem;
  }
}

.cert-text p {
  font-size: 0.75rem;
  color: #6b7280;
}

@media (min-width: 640px) {
  .cert-text p {
    font-size: 0.8125rem;
  }
}

.cert-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cert-status {
  padding: 0.125rem 0.5rem;
  font-size: 0.625rem;
  border-radius: 9999px;
}

@media (min-width: 640px) {
  .cert-status {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
  }
}

/* ========================================
   CONTACT SECTION - RESPONSIVE
   ======================================== */
.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.contact-form-card {
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .contact-form-card {
    padding: 2rem;
  }
}

.form-group {
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .form-group {
    margin-bottom: 1.5rem;
  }
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.375rem;
}

@media (min-width: 640px) {
  .form-label {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
  }
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.625rem;
  font-size: 0.9375rem;
  transition: border-color 0.2s ease;
}

@media (min-width: 640px) {
  .form-input,
  .form-textarea {
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 1rem;
  }
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #000;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem;
}

@media (min-width: 640px) {
  .contact-link {
    gap: 1rem;
    padding: 1rem;
  }
}

.contact-link-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: #f3f4f6;
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .contact-link-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
  }
}

/* ========================================
   FOOTER - RESPONSIVE
   ======================================== */
.site-footer {
  background: #000;
  color: #fff;
  padding: 2.5rem 1rem 1.5rem;
}

@media (min-width: 640px) {
  .site-footer {
    padding: 3rem 1.5rem 2rem;
  }
}

@media (min-width: 1024px) {
  .site-footer {
    padding: 4rem 3rem 2rem;
  }
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #9ca3af;
  padding: 0.375rem 0;
  font-size: 0.8125rem;
  transition: color 0.2s ease;
}

@media (min-width: 640px) {
  .footer-links a {
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.875rem;
  }
}

.footer-links a:hover {
  color: #fff;
}

/* Social Icon Links */
.social-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  color: #9ca3af;
  transition: all 0.2s ease;
}

.social-icon-link:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid #333;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-bottom {
    padding-top: 2rem;
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
    text-align: left;
  }
}

.footer-bottom p {
  font-size: 0.75rem;
  color: #6b7280;
}

@media (min-width: 640px) {
  .footer-bottom p {
    font-size: 0.875rem;
  }
}

/* ========================================
   SERVICES SECTION - RESPONSIVE
   ======================================== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  padding: 1.25rem;
}

@media (min-width: 640px) {
  .service-card {
    padding: 1.5rem;
  }
}

.service-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.service-name {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #000;
  margin-bottom: 0.25rem;
}

@media (min-width: 640px) {
  .service-name {
    font-size: 1rem;
  }
}

.service-status {
  font-size: 0.75rem;
  text-transform: capitalize;
}

@media (min-width: 640px) {
  .service-status {
    font-size: 0.8125rem;
  }
}

/* ========================================
   PROJECTS GRID - RESPONSIVE
   ======================================== */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.project-card {
  overflow: hidden;
}

.project-card.featured {
  grid-column: 1 / -1;
}

.project-visual {
  height: 8rem;
  background: linear-gradient(to bottom right, #f3f4f6, #e5e7eb);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

@media (min-width: 640px) {
  .project-visual {
    height: 10rem;
  }
}

.project-visual.featured {
  height: 12rem;
}

@media (min-width: 640px) {
  .project-visual.featured {
    height: 16rem;
  }
}

.project-content {
  padding: 1.25rem;
}

@media (min-width: 640px) {
  .project-content {
    padding: 1.5rem;
  }
}

.project-title {
  font-size: 1rem;
  font-weight: 500;
  color: #000;
  margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
  .project-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }
}

.project-description {
  color: #4b5563;
  font-size: 0.8125rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

@media (min-width: 640px) {
  .project-description {
    font-size: 0.9375rem;
    line-height: 1.75;
  }
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .project-tags {
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }
}

.project-tag {
  padding: 0.125rem 0.5rem;
  background: #f3f4f6;
  color: #374151;
  font-size: 0.625rem;
  border-radius: 9999px;
}

@media (min-width: 640px) {
  .project-tag {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
  }
}

.project-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .project-actions {
    gap: 1rem;
  }
}

.project-link {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #000;
  transition: color 0.2s ease;
}

@media (min-width: 640px) {
  .project-link {
    gap: 0.5rem;
    font-size: 0.875rem;
  }
}

.project-link:hover {
  color: #6b7280;
}

/* ========================================
   WORDPRESS ADMIN BAR
   ======================================== */
body.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

/* ========================================
   UTILITY: SCREEN READER ONLY
   ======================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================
   ADDITIONAL RESPONSIVE IMPROVEMENTS
   ======================================== */

/* Extra small devices (phones, 320px and up) */
@media (max-width: 374px) {
  .hero-name {
    font-size: 1.5rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .stat-item {
    padding: 0.5rem;
  }
  
  .stat-value {
    font-size: 1rem;
  }
  
  .profile-container {
    width: 10rem;
    height: 10rem;
  }
  
  .floating-card {
    display: none;
  }
  
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }
  
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Small devices (landscape phones, 375px to 639px) */
@media (min-width: 375px) and (max-width: 639px) {
  .hero-name {
    font-size: 1.75rem;
  }
  
  .profile-container {
    width: 12rem;
    height: 12rem;
  }
  
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  
  .hero-ctas .btn {
    justify-content: center;
  }
}

/* Ensure touch targets are large enough */
.btn,
.skill-filter-btn,
.social-icon-link,
.footer-links a,
.header-nav a {
  min-height: 44px;
  min-width: 44px;
}

/* Fix for iOS Safari zoom on input focus */
input,
textarea,
select {
  font-size: 16px;
}

/* Better text readability on mobile */
@media (max-width: 639px) {
  body {
    font-size: 15px;
  }
  
  .hero-summary,
  .section-subtitle,
  .project-description {
    font-size: 0.875rem;
    line-height: 1.6;
  }
  
  .experience-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .experience-header > div:first-child {
    width: 100%;
  }
  
  /* Skills filter wrap better on mobile */
  .skills-filter {
    gap: 0.375rem;
  }
  
  .skill-filter-btn {
    padding: 0.25rem 0.625rem;
    font-size: 0.6875rem;
  }
  
  /* Credential cards stack better */
  .cert-card {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cert-actions {
    margin-top: 0.75rem;
  }
  
  /* Terminal section */
  .terminal-body {
    font-size: 0.6875rem;
    max-height: 200px;
  }
  
  /* Featured project section */
  .featured-title {
    font-size: 1.25rem;
  }
  
  .metric-value {
    font-size: 1.25rem;
  }
}

/* Tablet optimizations */
@media (min-width: 640px) and (max-width: 1023px) {
  .hero-content {
    gap: 3rem;
  }
  
  .credentials-grid {
    gap: 2rem;
  }
  
  .contact-grid {
    gap: 2rem;
  }
}

/* Print styles */
@media print {
  .site-header,
  .site-footer,
  #network-canvas,
  .mobile-menu,
  .btn {
    display: none !important;
  }
  
  body {
    color: #000;
    background: #fff;
  }
  
  .section {
    page-break-inside: avoid;
  }
}

/* ========================================
   FOOTER STYLES
   ======================================== */
.site-footer {
  background: #111;
  color: #fff;
  padding: 3rem 1rem 2rem;
}

@media (min-width: 640px) {
  .site-footer {
    padding: 4rem 1.5rem 2rem;
  }
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-logo {
  width: 2rem;
  height: 2rem;
  background: #fff;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-title {
  font-weight: 600;
  font-size: 1.125rem;
  color: #fff;
}

.footer-desc {
  color: #9ca3af;
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-heading {
  font-weight: 500;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #9ca3af;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  color: #9ca3af;
  transition: all 0.2s ease;
}

.social-icon-link:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  color: #6b7280;
  font-size: 0.875rem;
}

/* ========================================
   CREDENTIALS STYLES
   ======================================== */
.credentials-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .credentials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

.credentials-subtitle {
  font-size: 1.25rem;
  font-weight: 500;
  color: #000;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.credentials-list {
  display: grid;
  gap: 1rem;
}

.credential-icon {
  width: 3rem;
  height: 3rem;
  background: #f3f4f6;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.credential-title {
  font-weight: 500;
  color: #000;
  margin-bottom: 0.25rem;
}

.credential-subtitle {
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.credential-date {
  font-size: 0.875rem;
  color: #9ca3af;
}

.credential-desc {
  color: #4b5563;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.placeholder-card {
  text-align: center;
  color: #6b7280;
}

.placeholder-card i {
  opacity: 0.5;
}

.cert-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cert-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: #f3f4f6;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-title {
  font-weight: 500;
  color: #000;
  font-size: 0.9375rem;
}

.cert-meta {
  font-size: 0.875rem;
  color: #6b7280;
}

.cert-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cert-status {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  border-radius: 9999px;
}

.status-active {
  background: #dcfce7;
  color: #16a34a;
}

.status-progress {
  background: #fef3c7;
  color: #ca8a04;
}

.status-expired {
  background: #f3f4f6;
  color: #6b7280;
}

.cert-link {
  color: #9ca3af;
  transition: color 0.2s ease;
}

.cert-link:hover {
  color: #000;
}

