/* ============================================
   PARAS GAUTAM - DATA ENGINEER PORTFOLIO
   Design: Dark Navy + Cyan Accent
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --bg-primary: #0a192f;
  --bg-secondary: #112240;
  --bg-tertiary: #1d3461;
  --text-primary: #ccd6f6;
  --text-secondary: #8892b0;
  --text-tertiary: #495670;
  --accent: #22d3ee;
  --accent-dim: rgba(34, 211, 238, 0.1);
  --accent-hover: #06b6d4;
  --white: #e6f1ff;
  --bronze: #cd7f32;
  --silver: #c0c0c0;
  --gold: #ffd700;
  --green: #64ffda;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
  --nav-height: 70px;
  --max-width: 1100px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

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

::selection {
  background-color: var(--accent-dim);
  color: var(--accent);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-hover);
}

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

ul {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 25px;
}

.highlight {
  color: var(--accent);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-primary:hover {
  background-color: var(--accent-dim);
  color: var(--accent);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--text-tertiary);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-upwork {
  background-color: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-upwork svg {
  flex-shrink: 0;
}

.btn-upwork:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--bg-primary);
}

.contact-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-large {
  padding: 16px 40px;
  font-size: 1rem;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background-color: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 25px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent);
}

.nav-logo:hover {
  color: var(--accent);
}

.logo-bracket {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 8px 12px;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.nav-cta {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.nav-cta:hover {
  background-color: var(--accent-dim);
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--accent);
  position: relative;
  transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition);
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle.active .hamburger { background-color: transparent; }
.nav-toggle.active .hamburger::before { transform: rotate(45deg); top: 0; }
.nav-toggle.active .hamburger::after { transform: rotate(-45deg); top: 0; }

/* --- Side Elements --- */
.side-email,
.side-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: fixed;
  bottom: 0;
  z-index: 10;
}

.side-email {
  right: 40px;
}

.side-email a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  writing-mode: vertical-rl;
  letter-spacing: 1.5px;
  padding: 10px;
}

.side-email a:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

.side-email::after,
.side-social::after {
  content: '';
  display: block;
  width: 1px;
  height: 90px;
  background-color: var(--text-secondary);
  margin-top: 10px;
}

.side-social {
  left: 40px;
}

.side-social a {
  color: var(--text-secondary);
  padding: 10px;
  display: block;
}

.side-social a:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 60px;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-greeting {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
  animation-delay: 0.1s;
}

.hero-name {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 8px;
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
  animation-delay: 0.2s;
}

.hero-tagline {
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.2;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
  animation-delay: 0.3s;
}

.hero-description {
  max-width: 520px;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
  animation-delay: 0.4s;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
  animation-delay: 0.5s;
}

.hero-stats {
  display: flex;
  gap: 32px;
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
  animation-delay: 0.6s;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
}

.stat-suffix {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 4px;
  font-family: var(--font-mono);
}

/* Terminal Window */
.hero-visual {
  flex: 0 0 420px;
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
  animation-delay: 0.7s;
}

.terminal-window {
  background-color: #1a1e2e;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background-color: #252a3a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot.red { background-color: #ff5f57; }
.terminal-dot.yellow { background-color: #febc2e; }
.terminal-dot.green { background-color: #28c840; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-left: auto;
}

.terminal-body {
  padding: 20px;
  min-height: 250px;
}

.terminal-line {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 2;
  opacity: 0;
  animation: terminalType 0.3s ease forwards;
}

.terminal-line[data-delay="0"] { animation-delay: 1s; }
.terminal-line[data-delay="1"] { animation-delay: 1.8s; }
.terminal-line[data-delay="2"] { animation-delay: 2.5s; }
.terminal-line[data-delay="3"] { animation-delay: 3.2s; }
.terminal-line[data-delay="4"] { animation-delay: 3.9s; }
.terminal-line[data-delay="5"] { animation-delay: 4.6s; }
.terminal-line[data-delay="6"] { animation-delay: 5.3s; }
.terminal-line[data-delay="7"] { animation-delay: 6s; }

.terminal-prompt {
  color: var(--green);
  margin-right: 4px;
}

.terminal-command {
  color: var(--white);
}

.terminal-output {
  color: var(--text-secondary);
}

.terminal-output.success,
.terminal-output .success {
  color: var(--green);
}

.highlight-terminal {
  color: var(--accent);
  font-weight: 600;
}

.terminal-cursor {
  color: var(--accent);
  animation: blink 1s infinite;
}

@keyframes terminalType {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Section Styles --- */
.section {
  padding: 100px 0;
}

.section-heading {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.section-heading::after {
  content: '';
  display: block;
  width: 300px;
  height: 1px;
  background-color: var(--bg-tertiary);
}

.section-number {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 400;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-top: -24px;
  margin-bottom: 40px;
  max-width: 600px;
}

/* --- About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 50px;
  align-items: start;
}

.about-text p {
  margin-bottom: 16px;
  font-size: 1rem;
}

.about-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.avatar-wrapper {
  width: 220px;
  height: 260px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
  filter: grayscale(100%) contrast(1.1) brightness(0.9);
  mix-blend-mode: normal;
  transition: var(--transition);
}

.avatar-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background-color: rgba(34, 211, 238, 0.25);
  mix-blend-mode: multiply;
  transition: var(--transition);
  z-index: 1;
}

.avatar-wrapper:hover .avatar-img {
  filter: grayscale(0%) contrast(1) brightness(1);
  transform: scale(1.03);
}

.avatar-wrapper:hover::after {
  background-color: transparent;
}

.avatar-ring {
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  border: 2px solid var(--accent);
  opacity: 0.5;
  pointer-events: none;
  z-index: 2;
}

.avatar-wrapper:hover .avatar-ring {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.about-info-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background-color: var(--bg-secondary);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.info-card svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* --- Experience Section --- */
.experience-tabs {
  display: flex;
  gap: 0;
}

.tab-list {
  display: flex;
  flex-direction: column;
  min-width: 200px;
  border-left: 2px solid var(--bg-tertiary);
  position: relative;
}

.tab-btn {
  background: none;
  border: none;
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
  border-left: 2px solid transparent;
  margin-left: -2px;
  white-space: nowrap;
}

.tab-btn:hover {
  background-color: var(--accent-dim);
  color: var(--accent);
}

.tab-btn.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background-color: var(--accent-dim);
}

.tab-panels {
  flex: 1;
  padding-left: 30px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.panel-title {
  font-size: 1.2rem;
  color: var(--white);
  font-weight: 500;
  margin-bottom: 4px;
}

.panel-company {
  color: var(--accent);
}

.panel-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.panel-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.panel-list li::before {
  content: '\25B8';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.9rem;
}

/* --- Skills Section --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.skill-category {
  padding: 24px;
  background-color: var(--bg-secondary);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.skill-category:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.skill-category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.skill-category-header svg {
  color: var(--accent);
}

.skill-category-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  display: inline-block;
  padding: 4px 12px;
  background-color: var(--accent-dim);
  color: var(--accent);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  border: 1px solid rgba(34, 211, 238, 0.15);
}

/* --- Projects Section --- */
.project-card {
  margin-bottom: 80px;
}

.project-card.featured {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
  align-items: start;
}

.project-card.featured.reverse {
  grid-template-columns: 1.2fr 1fr;
}

.project-card.featured.reverse .project-content {
  order: 2;
}

.project-card.featured.reverse .project-diagram {
  order: 1;
}

.project-overline {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.project-title {
  font-size: 1.5rem;
  color: var(--white);
  font-weight: 600;
  margin-bottom: 16px;
}

.project-description {
  background-color: var(--bg-secondary);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-description p {
  font-size: 0.95rem;
  line-height: 1.7;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.project-tech li {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* --- Pipeline Diagrams (SVG) --- */
.diagram-container {
  background-color: var(--bg-secondary);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.diagram-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 16px;
  text-align: center;
}

.pipeline-svg {
  width: 100%;
  height: auto;
}

/* SVG Node Styles */
.node-box {
  fill: var(--bg-tertiary);
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1;
  transition: all 0.3s ease;
}

.node-box.source { fill: #1a3050; stroke: rgba(34, 211, 238, 0.3); }
.node-box.bronze { fill: #2a1f10; stroke: rgba(205, 127, 50, 0.4); }
.node-box.silver { fill: #1a1a2e; stroke: rgba(192, 192, 192, 0.4); }
.node-box.gold { fill: #2a2510; stroke: rgba(255, 215, 0, 0.4); }
.node-box.consume { fill: #0f2a1f; stroke: rgba(100, 255, 218, 0.3); }

.node-box-large {
  fill: none;
  stroke: rgba(34, 211, 238, 0.2);
  stroke-width: 1.5;
  stroke-dasharray: 8 4;
}

.node-box-large.lake {
  fill: rgba(10, 25, 47, 0.5);
}

.layer-box {
  rx: 6;
}

.bronze-layer { fill: #2a1f10; stroke: rgba(205, 127, 50, 0.4); stroke-width: 1; }
.silver-layer { fill: #1a1a2e; stroke: rgba(192, 192, 192, 0.4); stroke-width: 1; }
.gold-layer { fill: #2a2510; stroke: rgba(255, 215, 0, 0.4); stroke-width: 1; }

.layer-text {
  fill: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  text-anchor: middle;
}

.node-title {
  fill: var(--white);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  text-anchor: middle;
}

.node-detail {
  fill: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 10px;
  text-anchor: middle;
}

.node-icon {
  fill: var(--accent);
  font-size: 18px;
  text-anchor: middle;
}

.arrow-line {
  stroke: var(--accent);
  stroke-width: 1.5;
  opacity: 0.6;
}

.arrow-head {
  fill: var(--accent);
  opacity: 0.6;
}

.arrow-label {
  fill: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  text-anchor: middle;
  font-weight: 600;
}

.quality-bar {
  fill: rgba(34, 211, 238, 0.08);
  stroke: rgba(34, 211, 238, 0.2);
  stroke-width: 1;
}

.quality-text {
  fill: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  text-anchor: middle;
  opacity: 0.8;
}

.metric-box {
  fill: rgba(100, 255, 218, 0.08);
  stroke: rgba(100, 255, 218, 0.2);
  stroke-width: 1;
}

.metric-text {
  fill: var(--green);
  font-family: var(--font-mono);
  font-size: 10px;
  text-anchor: middle;
}

.data-dot {
  fill: var(--accent);
  filter: drop-shadow(0 0 4px var(--accent));
}

.data-dot.dot-2 {
  fill: var(--green);
  filter: drop-shadow(0 0 4px var(--green));
}

.data-dot.dot-3 {
  fill: var(--gold);
  filter: drop-shadow(0 0 4px var(--gold));
}

/* Hover effects on pipeline nodes */
.pipeline-node:hover .node-box {
  filter: brightness(1.3);
  stroke-width: 2;
}

/* --- Education Section --- */
.education-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.edu-card {
  padding: 32px;
  background-color: var(--bg-secondary);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

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

.edu-icon {
  color: var(--accent);
  margin-bottom: 16px;
}

.edu-degree {
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.edu-school {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.edu-year {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
}

/* --- Blog Section --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background-color: var(--bg-secondary);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.blog-card-image {
  height: 160px;
  overflow: hidden;
}

.blog-placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.blog-card:hover .blog-placeholder-img {
  transform: scale(1.05);
}

.blog-placeholder-img svg {
  opacity: 0.4;
}

.medallion-bg { background: linear-gradient(135deg, #1a2744, #0d3b66); }
.medallion-bg svg { color: var(--accent); }
.cdc-bg { background: linear-gradient(135deg, #1a2744, #1a3a2a); }
.cdc-bg svg { color: var(--green); }
.migration-bg { background: linear-gradient(135deg, #2a1f10, #1a2744); }
.migration-bg svg { color: var(--bronze); }
.optimization-bg { background: linear-gradient(135deg, #2a2510, #1a2744); }
.optimization-bg svg { color: var(--gold); }
.catalog-bg { background: linear-gradient(135deg, #0f2a1f, #1a2744); }
.catalog-bg svg { color: var(--accent); }
.mdm-bg { background: linear-gradient(135deg, #1a1a2e, #1a2744); }
.mdm-bg svg { color: var(--silver); }

.blog-card-content {
  padding: 20px;
}

.blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.blog-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  background-color: var(--accent-dim);
  padding: 3px 10px;
  border-radius: 3px;
}

.blog-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-tertiary);
}

.blog-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-card:hover .blog-title {
  color: var(--accent);
}

.blog-excerpt {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-read-more {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
}

/* --- Blog Modal --- */
.blog-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: rgba(10, 25, 47, 0.9);
  backdrop-filter: blur(5px);
  overflow-y: auto;
  padding: 40px 20px;
}

.blog-modal.active {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  animation: fadeIn 0.3s ease;
}

.blog-modal-content {
  background-color: var(--bg-secondary);
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  padding: 48px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 40px;
}

.blog-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}

.blog-modal-close:hover {
  color: var(--accent);
}

.blog-modal-body h2 {
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.3;
}

.blog-modal-body .blog-modal-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-bottom: 32px;
  display: flex;
  gap: 16px;
}

.blog-modal-body h3 {
  font-size: 1.3rem;
  color: var(--white);
  margin-top: 32px;
  margin-bottom: 16px;
}

.blog-modal-body p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.blog-modal-body ul {
  margin-bottom: 16px;
  padding-left: 20px;
}

.blog-modal-body li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  line-height: 1.6;
}

.blog-modal-body li::before {
  content: '\25B8';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.blog-modal-body code {
  font-family: var(--font-mono);
  background-color: var(--bg-primary);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85em;
  color: var(--accent);
}

.blog-modal-body pre {
  background-color: var(--bg-primary);
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-modal-body pre code {
  background: none;
  padding: 0;
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--text-primary);
}

/* --- Contact Section --- */
.contact-container {
  text-align: center;
  max-width: 600px;
}

.contact-text {
  font-size: 1.05rem;
  margin-bottom: 40px;
  line-height: 1.7;
}

.contact-methods {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px;
  background-color: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
  min-width: 160px;
}

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

.contact-card svg {
  color: var(--accent);
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.contact-value {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.contact-card:hover .contact-value {
  color: var(--accent);
}

/* --- Footer --- */
.footer {
  padding: 24px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

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

/* --- Scroll Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    padding-top: 120px;
    gap: 40px;
    min-height: auto;
    padding-bottom: 60px;
  }

  .hero-visual {
    flex: none;
    width: 100%;
    max-width: 500px;
  }

  .hero-content {
    max-width: 100%;
  }

  .project-card.featured,
  .project-card.featured.reverse {
    grid-template-columns: 1fr;
  }

  .project-card.featured.reverse .project-content,
  .project-card.featured.reverse .project-diagram {
    order: unset;
  }

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

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

  .side-email, .side-social {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 70%;
    height: 100vh;
    background-color: var(--bg-secondary);
    padding: 80px 40px;
    gap: 4px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .nav-links.active .nav-link {
    font-size: 1rem;
    padding: 12px 0;
  }

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

  .about-image {
    order: -1;
  }

  .experience-tabs {
    flex-direction: column;
  }

  .tab-list {
    flex-direction: row;
    overflow-x: auto;
    border-left: none;
    border-bottom: 2px solid var(--bg-tertiary);
    min-width: auto;
  }

  .tab-btn {
    border-left: none;
    border-bottom: 2px solid transparent;
    margin-left: 0;
    margin-bottom: -2px;
    padding: 12px 16px;
  }

  .tab-btn.active {
    border-left-color: transparent;
    border-bottom-color: var(--accent);
  }

  .tab-panels {
    padding-left: 0;
    padding-top: 24px;
  }

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

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

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

  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }

  .stat {
    flex: 0 0 calc(50% - 10px);
  }

  .section {
    padding: 60px 0;
  }

  .section-heading::after {
    width: 100px;
  }

  .contact-methods {
    flex-direction: column;
    align-items: center;
  }

  .contact-card {
    width: 100%;
    max-width: 280px;
  }

  .blog-modal-content {
    padding: 32px 24px;
    margin-top: 20px;
  }

  .hero-name {
    font-size: 2.2rem;
  }

  .hero-tagline {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 100px;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    text-align: center;
  }

  .hero-stats {
    gap: 16px;
  }

  .stat-number {
    font-size: 1.5rem;
  }
}
