/* Pratheesh PC — portfolio (2026 refresh) */

:root {
  --font-sans: "Sora", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --bg: #f6f5f2;
  --bg-elevated: #ffffff;
  --text: #141413;
  --text-muted: #5f5e59;
  --text-soft: #8a8880;
  --accent: #0f766e;
  --accent-hover: #0d9488;
  --accent-muted: rgba(15, 118, 110, 0.12);
  --border: rgba(20, 20, 19, 0.09);
  --border-strong: rgba(20, 20, 19, 0.14);
  --shadow-sm: 0 1px 2px rgba(20, 20, 19, 0.05);
  --shadow-md: 0 8px 24px rgba(20, 20, 19, 0.07);
  --shadow-lg: 0 20px 50px rgba(20, 20, 19, 0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --nav-h: 72px;
  --success: #15803d;
  --warning: #b45309;
  --error: #b91c1c;
  --primary: #0f766e;
  --primary-dark: #115e59;
  --primary-light: #2dd4bf;
  --gray-50: #fafaf9;
  --gray-100: #f5f5f4;
  --gray-200: #e7e5e4;
  --gray-300: #d6d3d1;
  --gray-400: #a8a29e;
  --gray-500: #78716c;
  --gray-600: #57534e;
  --gray-700: #44403c;
  --gray-800: #292524;
  --gray-900: #1c1917;
  --white: #ffffff;
  --gradient-primary: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
  --secondary: #c2410c;
  --transition: 0.22s ease;
}

[data-theme="dark"] {
  --bg: #10100f;
  --bg-elevated: #181817;
  --text: #f5f4f0;
  --text-muted: #a8a29e;
  --text-soft: #78716c;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.5);
  --accent-muted: rgba(45, 212, 191, 0.15);
  --gray-50: #1c1917;
  --gray-100: #292524;
  --gray-800: #e7e5e4;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Scroll-reveal */
.animate-section {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.animate-section.animate-in {
  opacity: 1;
  transform: none;
}

/* Nav */
.modern-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition), background var(--transition);
}

.modern-nav.scrolled {
  background: color-mix(in srgb, var(--bg-elevated) 94%, transparent);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-gradient {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
  font-family: var(--font-mono);
}

.brand-text {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.875rem;
  transition: color var(--transition), background var(--transition);
}

.nav-item:hover {
  color: var(--accent);
  background: var(--accent-muted);
}

.nav-item.active {
  color: var(--accent);
  background: var(--accent-muted);
}

.nav-item-legacy {
  font-size: 0.8125rem;
  color: var(--text-soft);
}

.nav-item-legacy:hover {
  color: var(--text-muted);
}

.nav-icon {
  font-size: 0.85rem;
  opacity: 0.85;
}

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

.theme-switcher {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, border-color var(--transition), color var(--transition);
}

.theme-switcher:hover {
  border-color: var(--border-strong);
  color: var(--accent);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: var(--transition);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
  background: var(--bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.45;
  mask-image: radial-gradient(ellipse 70% 65% at 50% 40%, black 20%, transparent 75%);
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.35;
}

.orb-1 {
  width: 420px;
  height: 420px;
  background: rgba(15, 118, 110, 0.45);
  top: -8%;
  right: -5%;
}

.orb-2 {
  width: 280px;
  height: 280px;
  background: rgba(194, 65, 12, 0.18);
  bottom: 10%;
  left: -6%;
}

.orb-3 {
  width: 200px;
  height: 200px;
  background: rgba(15, 118, 110, 0.22);
  bottom: 35%;
  right: 25%;
}

.hero-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  width: fit-content;
  box-shadow: var(--shadow-sm);
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2.2s ease-in-out infinite;
}

.greeting-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.greeting-text {
  font-size: 1rem;
  color: var(--text-soft);
  font-weight: 500;
}

.wave-emoji {
  font-size: 1.35rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 3.85rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text);
}

.title-line {
  display: block;
}

.gradient-text {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}

.subtitle-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  color: var(--text-muted);
}

.typing-text {
  font-weight: 600;
  color: var(--text);
}

.cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
  font-weight: 300;
}

.hero-description {
  font-size: 1.0625rem;
  max-width: 34rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
}

.stat-item {
  min-width: 0;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-soft);
  margin-top: 0.15rem;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-strong);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.35);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15, 118, 110, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-shine {
  display: none;
}

.hero-visual {
  justify-self: end;
}

.profile-container {
  position: relative;
  width: min(300px, 72vw);
  aspect-ratio: 1;
}

.profile-frame {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, var(--accent-muted), transparent 55%);
  transform: rotate(4deg);
}

.profile-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1;
  background: var(--bg-elevated);
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.tech-icons {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.tech-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1.15rem;
  transition: color var(--transition), border-color var(--transition), transform var(--transition);
}

.tech-icon:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
}

.scroll-prompt {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-soft);
  font-size: 0.8125rem;
  font-weight: 500;
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 2px solid var(--border-strong);
  border-radius: 11px;
  position: relative;
}

.mouse-wheel {
  width: 3px;
  height: 7px;
  background: var(--text-soft);
  border-radius: 2px;
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel 2s ease-in-out infinite;
}

/* Section headers */
.section-header {
  max-width: 40rem;
  margin-bottom: 3rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.65rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Skills */
.skills {
  padding: 5.5rem 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.skills .section-header {
  text-align: left;
  margin-left: 0;
}

.skills .container > .section-header {
  margin-bottom: 2.5rem;
}

.skills-interface {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--bg-elevated);
}

.skills-sidebar {
  background: var(--gray-900);
  color: var(--gray-100);
  padding: 1.75rem 1.25rem;
}

[data-theme="dark"] .skills-sidebar {
  background: #0a0a09;
}

.search-box {
  position: relative;
  margin-bottom: 1.5rem;
}

.search-box input {
  width: 100%;
  padding: 0.65rem 0.85rem 0.65rem 2.35rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-size: 0.875rem;
  font-family: var(--font-sans);
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.search-box i {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.45;
  font-size: 0.85rem;
}

.category-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.category-nav .nav-item {
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.category-nav .nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.category-nav .nav-item.active {
  background: rgba(45, 212, 191, 0.18);
  color: #5eead4;
}

.category-nav .nav-item .count {
  margin-left: auto;
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
}

.skills-content {
  padding: 1.75rem;
  background: var(--bg-elevated);
}

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

.content-header h4 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}

.content-header span {
  font-size: 0.8125rem;
  color: var(--text-soft);
}

.skills-instruction {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--accent-muted);
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--accent);
  font-weight: 500;
}

.skills-grid-new {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.75rem;
}

.skill-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  min-height: 68px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.skill-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.skill-info h5 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

/* Experience */
.experience {
  padding: 5.5rem 0;
  background: var(--bg);
}

.experience .section-header {
  text-align: left;
}

.experience-controls {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 2.5rem;
}

.view-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}

.toggle-btn {
  padding: 0.55rem 1.1rem;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-sans);
  transition: background var(--transition), color var(--transition);
}

.toggle-btn.active {
  background: var(--accent);
  color: var(--white);
}

.experience-timeline {
  display: none;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.experience-timeline.active {
  display: block;
}

.timeline-line {
  position: absolute;
  left: 22px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-strong);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 4.5rem;
}

.timeline-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  background: var(--bg-elevated);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  z-index: 1;
  box-shadow: var(--shadow-sm);
}

.timeline-marker.current {
  background: var(--accent);
  color: var(--white);
}

.timeline-content {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition), transform var(--transition);
}

.timeline-content:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

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

.role-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.company-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 0.2rem;
}

.duration-badge {
  flex-shrink: 0;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--accent-muted);
  color: var(--accent);
  border: 1px solid var(--border);
}

.current-badge {
  background: rgba(21, 128, 61, 0.12);
  color: var(--success);
  border-color: rgba(21, 128, 61, 0.25);
}

.role-summary {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.68;
  margin-bottom: 1.25rem;
}

.impact-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.metric {
  text-align: center;
  padding: 0.85rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
}

.metric-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
}

.metric-label {
  font-size: 0.72rem;
  color: var(--text-soft);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tech-stack h6 {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  margin-bottom: 0.65rem;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.project-toggle {
  margin-top: 0.75rem;
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
}

.project-toggle.expanded i {
  transform: rotate(180deg);
}

.projects-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.projects-list.expanded {
  max-height: 480px;
  overflow-y: auto;
}

.project-item {
  margin-top: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border-left: 3px solid var(--accent);
}

.project-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.project-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.experience-grid {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

.experience-grid.active {
  display: grid;
}

.experience-grid .experience-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.experience-grid .experience-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

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

.experience-grid .experience-card.current::before {
  transform: scaleX(1);
  background: var(--success);
}

.experience-grid .experience-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Projects */
.projects {
  padding: 5.5rem 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.projects .section-header {
  text-align: left;
}

.projects-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.projects-search {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 320px;
}

.projects-search input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  font-size: 0.875rem;
  font-family: var(--font-sans);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.projects-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}

.projects-search i {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-soft);
  font-size: 0.85rem;
}

.projects-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.filter-btn {
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--bg);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.projects-view-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-left: auto;
}

.view-btn {
  width: 38px;
  height: 38px;
  border: none;
  background: var(--bg);
  color: var(--text-soft);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.view-btn.active {
  background: var(--accent);
  color: var(--white);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 1.5rem;
}

.projects-grid.list-view {
  grid-template-columns: 1fr;
}

.project-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.project-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-muted);
}

.project-header {
  padding: 1.25rem 1.35rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--accent-muted) 35%, var(--bg-elevated));
}

.project-icon-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.services-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.project-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.15rem;
}

.project-category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-top: 0.35rem;
}

.project-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.project-year {
  font-size: 0.78rem;
  color: var(--text-soft);
}

.project-status {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
}

.status-live {
  background: rgba(21, 128, 61, 0.12);
  color: var(--success);
}

.status-development {
  background: rgba(180, 83, 9, 0.12);
  color: var(--warning);
}

.status-archived {
  background: var(--bg);
  color: var(--text-soft);
}

.featured-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: var(--white);
}

.project-content {
  padding: 1.25rem 1.35rem 1.35rem;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.project-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.services-preview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}

.services-count {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent);
}

.service-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.more-services {
  font-size: 0.78rem;
  color: var(--text-soft);
}

.service-item {
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.65rem;
  background: var(--bg);
}

.service-item h4 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.service-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.metric-chip {
  display: inline-block;
  font-size: 0.72rem;
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius-full);
  background: var(--accent-muted);
  color: var(--accent);
  margin: 0.15rem 0.25rem 0 0;
  font-weight: 500;
}

.project-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-metrics .metric-item .metric-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
}

.project-metrics .metric-item .metric-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-soft);
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  margin: 0.2rem 0.35rem 0 0;
}

.expand-btn {
  flex: 1;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background var(--transition), color var(--transition);
}

.expand-btn:hover {
  background: var(--accent);
  color: var(--white);
}

.project-actions {
  display: flex;
  gap: 0.5rem;
}

/* Social */
.social-profiles {
  padding: 5.5rem 0;
  background: var(--bg);
}

.social-profiles .section-header {
  text-align: left;
}

.connect-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}

.connect-hero {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
}

.connect-visual {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 1.5rem;
}

.connect-avatar {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--bg-elevated);
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.avatar-glow {
  display: none;
}

.connect-rings .ring {
  display: none;
}

.connect-info h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 0.65rem;
  color: var(--text);
}

.connect-info p {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.65;
}

.quick-stats {
  display: flex;
  gap: 0.65rem;
  justify-content: center;
}

.quick-stats .stat {
  flex: 1;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.quick-stats .stat-number {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
}

.quick-stats .stat-label {
  font-size: 0.72rem;
  color: var(--text-soft);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.social-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  overflow: hidden;
}

.social-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 0.85rem;
}

.social-card.github .social-icon {
  background: linear-gradient(135deg, #333, #24292e);
}
.social-card.linkedin .social-icon {
  background: linear-gradient(135deg, #0077b5, #00a0dc);
}
.social-card.stackoverflow .social-icon {
  background: linear-gradient(135deg, #f48024, #f2740d);
}
.social-card.medium .social-icon {
  background: linear-gradient(135deg, #00ab6c, #00d4aa);
}
.social-card.credly .social-icon {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
}
.social-card.techgig .social-icon {
  background: var(--gradient-primary);
}

.social-content h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.social-content p {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.social-handle {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-soft);
}

.card-arrow {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-soft);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.social-card:hover .card-arrow {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.card-bg {
  display: none;
}

/* Contact */
.contact {
  padding: 5.5rem 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.contact .section-header {
  text-align: left;
}

.contact-content {
  display: grid;
  grid-template-columns: minmax(0, 280px) 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-card {
  padding: 1rem;
  text-align: center;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: border-color var(--transition), transform var(--transition);
}

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

.contact-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.65rem;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.contact-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  word-break: break-word;
}

.contact-form {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}

.form-group label {
  position: absolute;
  top: -0.55rem;
  left: 0.75rem;
  padding: 0 0.35rem;
  background: var(--bg);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
}

.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.9rem 1.25rem;
  border: none;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15, 118, 110, 0.35);
}

.submit-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.form-group .error-message {
  display: block;
  font-size: 0.78rem;
  color: var(--error);
  margin-top: 0.35rem;
  min-height: 1em;
  opacity: 0;
  transition: opacity var(--transition);
}

.form-group.error .error-message {
  opacity: 1;
}

.form-group.error input,
.form-group.error textarea {
  border-color: var(--error);
}

.success-message.show,
.error-message-global.show {
  display: flex;
  margin-top: 1rem;
}

.success-message,
.error-message-global {
  display: none;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
}

.success-message {
  background: rgba(21, 128, 61, 0.1);
  color: var(--success);
  border: 1px solid rgba(21, 128, 61, 0.2);
}

.error-message-global {
  background: rgba(185, 28, 28, 0.08);
  color: var(--error);
  border: 1px solid rgba(185, 28, 28, 0.2);
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer-copy {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-mark {
  opacity: 0.55;
  margin-right: 0.25rem;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.site-footer-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
}

.site-footer-links a:hover {
  color: var(--accent);
}

/* Skill panel */
.skill-panel {
  position: fixed;
  top: 0;
  right: -420px;
  width: min(420px, 100vw);
  height: 100vh;
  background: var(--bg-elevated);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 1001;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.skill-panel.active {
  right: 0;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--gray-900);
  color: var(--white);
}

.panel-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .panel-header {
  background: #0a0a09;
}

.panel-header h3 {
  flex: 1;
  font-size: 1.15rem;
  font-weight: 600;
}

.panel-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.panel-body {
  padding: 1.5rem;
}

.skill-experience h4,
.skill-implementations h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
  color: var(--text);
}

.skill-experience ul,
.skill-implementations ul {
  list-style: none;
}

.skill-experience li,
.skill-implementations li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.45rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.skill-experience li::before,
.skill-implementations li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.panel-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Loading */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.45s ease;
}

.loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-content {
  text-align: center;
  color: var(--text-muted);
}

.logo-animation {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--accent);
  background: var(--bg-elevated);
}

.loading-progress {
  width: 180px;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin: 1.25rem auto 0;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.25s ease;
}

/* Toast */
.toast-container {
  position: fixed;
  top: 88px;
  right: 1rem;
  z-index: 10002;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  min-width: 260px;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-success {
  border-left: 3px solid var(--success);
}

.toast-error {
  border-left: 3px solid var(--error);
}

/* Tooltip */
.tooltip {
  position: fixed;
  background: var(--gray-900);
  color: var(--white);
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  z-index: 11000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.tooltip.show {
  opacity: 1;
}

/* Keyframes */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes scroll-wheel {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .hero-description {
    margin: 0 auto;
  }

  .hero-stats {
    justify-content: center;
  }

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

  .hero-visual {
    justify-self: center;
  }

  .tech-icons {
    justify-content: center;
  }

  .connect-layout {
    grid-template-columns: 1fr;
  }

  .connect-hero {
    position: static;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .projects-view-toggle {
    margin-left: 0;
  }
}

@media (max-width: 900px) {
  .skills-interface {
    grid-template-columns: 1fr;
  }

  .skills-sidebar {
    padding: 1.25rem;
  }

  .category-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .category-nav .nav-item {
    flex: 1 1 auto;
    min-width: 140px;
    justify-content: center;
  }

  .category-nav .nav-item .count {
    margin-left: 0.35rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-item {
    justify-content: flex-start;
  }

  .stat-divider {
    display: none;
  }

  .hero-stats {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .experience-grid {
    grid-template-columns: 1fr;
  }

  .impact-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .projects-search {
    max-width: none;
  }

  .toast-container {
    left: 1rem;
    right: 1rem;
  }

  .toast {
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.1rem;
  }

  .nav-container {
    padding: 0 1.1rem;
  }
}
