/*
Theme Name: Data Engineer Portfolio
Theme URI: https://wordpress.org/
Author: OpenAI
Description: A lightweight, editorial-style WordPress theme for data engineers. Includes native project, skill, and experience content types.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: data-engineer-portfolio
*/

:root {
  --ink: #142235;
  --ink-soft: #536276;
  --navy: #0a1728;
  --navy-light: #11253d;
  --paper: #f7f9fc;
  --white: #fff;
  --line: #dfe6ef;
  --blue: #3d8bff;
  --cyan: #54d6d0;
  --radius: 18px;
  --content: 1160px;
  --reading: 760px;
  --shadow: 0 18px 50px rgba(12, 31, 55, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body, button, input, select, textarea { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: #1769d2; }
img { max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.skip-link {
  position: absolute; z-index: 1000; top: 12px; left: 12px; transform: translateY(-180%);
  padding: 10px 16px; color: #fff; background: var(--navy); border-radius: 8px;
}
.skip-link:focus { transform: translateY(0); }
.container { width: min(var(--content), calc(100% - 48px)); margin-inline: auto; }
.reading-width { width: min(var(--reading), calc(100% - 48px)); margin-inline: auto; }
.site-header {
  position: sticky; z-index: 50; top: 0; border-bottom: 1px solid rgba(223, 230, 239, .8);
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(16px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-weight: 750; text-decoration: none; letter-spacing: -.035em; }
.brand-mark {
  display: grid; width: 36px; height: 36px; place-items: center; color: #fff; border-radius: 11px;
  background: linear-gradient(135deg, var(--blue), var(--cyan)); font-size: 15px; font-weight: 800;
}
.brand img { max-height: 42px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 28px; }
.primary-nav ul { display: flex; align-items: center; gap: 25px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { color: #526174; font-size: 14px; font-weight: 600; text-decoration: none; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--ink); }
.menu-toggle { display: none; border: 0; color: var(--ink); background: transparent; padding: 8px; cursor: pointer; }
.button {
  display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 9px;
  padding: 0 19px; color: #fff; background: var(--blue); border: 1px solid var(--blue); border-radius: 10px;
  font-size: 14px; font-weight: 700; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(61, 139, 255, .24); background: #2878eb; }
.button-outline { color: var(--ink); background: #fff; border-color: var(--line); }
.button-outline:hover { color: var(--ink); background: #f4f8fd; box-shadow: none; }
.button-small { min-height: 40px; padding-inline: 14px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #3678d4; font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow::before { width: 20px; height: 2px; background: currentColor; content: ""; }
.section { padding-block: 88px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 34px; }
.section-heading h2 { max-width: 650px; margin: 10px 0 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.15; letter-spacing: -.045em; }
.section-heading p { max-width: 420px; margin: 0; color: var(--ink-soft); }
.hero { position: relative; overflow: hidden; color: #fff; background: var(--navy); }
.hero::before {
  position: absolute; top: -300px; right: -140px; width: 760px; height: 760px; border-radius: 50%;
  background: radial-gradient(circle, rgba(40, 126, 231, .2), transparent 68%); content: "";
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 52px; min-height: 620px; padding-block: 80px; }
.hero-copy { position: relative; z-index: 1; }
.availability { display: inline-flex; align-items: center; gap: 9px; color: #c4d3e7; font-size: 13px; font-weight: 600; }
.availability-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 5px rgba(84, 214, 208, .12); }
.hero h1 { max-width: 720px; margin: 25px 0 22px; font-size: clamp(42px, 6vw, 72px); line-height: 1.02; letter-spacing: -.06em; }
.hero h1 span { color: #6db6ff; }
.hero-description { max-width: 600px; color: #bdc9d8; font-size: 17px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .button-outline { color: #e8f0fb; background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.2); }
.hero .button-outline:hover { background: rgba(255,255,255,.1); }
.text-link { display: inline-block; margin-top: 18px; color: #c5d7ee; font-size: 14px; font-weight: 600; text-decoration: none; }
.text-link:hover { color: #fff; }
.social-links { display: flex; flex-wrap: wrap; gap: 17px; margin-top: 27px; }
.social-links a { color: #c4d1e0; font-size: 13px; font-weight: 600; text-decoration: none; }
.social-links a:hover { color: #fff; }
.pipeline-visual {
  position: relative; min-height: 330px; padding: 26px; border: 1px solid rgba(172, 202, 240, .16);
  border-radius: 24px; background: linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.018));
  box-shadow: 0 32px 90px rgba(0,0,0,.22);
}
.visual-label { color: #91a6bf; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.pipeline-visual svg { position: absolute; inset: 48px 10px 18px; width: calc(100% - 20px); height: calc(100% - 66px); }
.flow-node { fill: #132944; stroke: #426282; stroke-width: 1.4; }
.flow-node-accent { fill: #153c5b; stroke: #4fafff; }
.flow-line { fill: none; stroke: #387ab0; stroke-width: 2; stroke-dasharray: 5 8; }
.flow-title { fill: #eff6ff; font: 700 12px Inter, sans-serif; }
.flow-subtitle { fill: #9db0c5; font: 10px Inter, sans-serif; }
.flow-pulse { fill: var(--cyan); animation: flow 3.2s linear infinite; }
@keyframes flow { from { transform: translateX(0); opacity: .2; } 35% { opacity: 1; } to { transform: translateX(190px); opacity: .15; } }
.skills-section { background: #fff; }
.skill-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.skill-card { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.skill-card h3 { margin: 0 0 15px; font-size: 14px; letter-spacing: -.01em; }
.skill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-chip, .taxonomy-chip { padding: 6px 10px; color: #506176; background: #f1f5fa; border-radius: 7px; font-size: 12px; font-weight: 600; }
.project-grid, .post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project-card, .post-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 4px 18px rgba(12,31,55,.035); transition: transform .2s ease, box-shadow .2s ease; }
.project-card:hover, .post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-image { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, #eaf2fc, #dcecf4); }
.card-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.project-card:hover .card-image img, .post-card:hover .card-image img { transform: scale(1.035); }
.card-image-placeholder { display: grid; height: 100%; place-items: center; color: #72a0d5; }
.card-image-placeholder svg { width: 70%; max-height: 140px; }
.card-body { padding: 21px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: #768599; font-size: 12px; }
.card-body h3 { margin: 10px 0 9px; font-size: 20px; line-height: 1.25; letter-spacing: -.03em; }
.card-body h3 a { text-decoration: none; }
.card-body p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 17px; }
.card-tags .taxonomy-chip { font-size: 10px; padding: 4px 8px; }
.section-dark { color: #fff; background: var(--navy); }
.section-dark .section-heading p { color: #a9b8ca; }
.section-dark .eyebrow { color: #71b8ff; }
.section-dark .button-outline { background: transparent; }
.contact-band { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: 34px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.contact-band h2 { margin: 0 0 5px; font-size: 26px; letter-spacing: -.04em; }
.contact-band p { margin: 0; color: var(--ink-soft); }
.page-header { padding: 74px 0 54px; color: #fff; background: var(--navy); }
.page-header h1 { max-width: 850px; margin: 12px 0 14px; font-size: clamp(38px, 5.2vw, 60px); line-height: 1.05; letter-spacing: -.055em; }
.page-header p { max-width: 720px; margin: 0; color: #bfccdb; font-size: 17px; }
.content-section { min-height: 360px; padding-block: 64px 90px; }
.entry-content { color: #334357; }
.entry-content > * { max-width: var(--reading); margin-inline: auto; }
.entry-content > .alignwide { max-width: var(--content); }
.entry-content > .alignfull { max-width: none; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--ink); line-height: 1.22; letter-spacing: -.035em; }
.entry-content h2 { margin-top: 1.8em; font-size: 32px; }
.entry-content h3 { margin-top: 1.5em; font-size: 24px; }
.entry-content p, .entry-content ul, .entry-content ol { font-size: 17px; }
.entry-content blockquote { margin-block: 2em; padding: 10px 22px; border-left: 3px solid var(--blue); color: #536276; }
.entry-content pre { overflow-x: auto; padding: 22px; border-radius: 12px; color: #e5edf7; background: #102137; font-size: 14px; line-height: 1.6; }
.entry-content code { padding: .15em .35em; border-radius: 4px; background: #edf2f8; font-size: .88em; }
.entry-content pre code { padding: 0; background: transparent; }
.entry-content .wp-block-image img { border-radius: 12px; }
.entry-content .wp-block-button__link { color: #fff; background: var(--blue); border-radius: 9px; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 60px; align-items: start; }
.single-header { padding: 67px 0 40px; color: #fff; background: var(--navy); }
.single-header h1 { max-width: 880px; margin: 17px 0; font-size: clamp(38px, 5vw, 60px); line-height: 1.06; letter-spacing: -.055em; }
.single-header .card-meta { color: #b5c4d5; }
.single-featured { max-height: 520px; margin-top: 32px; overflow: hidden; border-radius: 16px; }
.single-featured img { display: block; width: 100%; max-height: 520px; object-fit: cover; }
.post-sidebar { position: sticky; top: 112px; padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.post-sidebar h2 { margin: 0 0 12px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.post-sidebar p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.project-details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 35px 0; }
.detail-item { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.detail-item strong { display: block; margin-bottom: 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.detail-item p { margin: 0; color: var(--ink-soft); font-size: 14px; white-space: pre-line; }
.experience-list { position: relative; margin-left: 9px; border-left: 1px solid #ced9e6; }
.experience-item { position: relative; margin: 0 0 26px 27px; padding: 22px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.experience-item::before { position: absolute; top: 27px; left: -34px; width: 12px; height: 12px; border: 3px solid var(--paper); border-radius: 50%; background: var(--blue); content: ""; }
.experience-item h3 { margin: 0; font-size: 19px; }
.experience-item .experience-company { margin: 2px 0 8px; color: #3c74b8; font-weight: 700; }
.experience-item .experience-date { color: #7a889a; font-size: 13px; }
.experience-item .experience-description { margin-top: 13px; color: var(--ink-soft); }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 38px; }
.pagination .page-numbers { padding: 8px 13px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-decoration: none; }
.pagination .current { color: #fff; background: var(--blue); border-color: var(--blue); }
.search-form { display: flex; gap: 8px; margin-bottom: 28px; }
.search-form label { flex: 1; }
.search-form input[type="search"] { width: 100%; min-height: 46px; padding: 0 13px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.site-footer { padding: 56px 0 22px; color: #dce6f2; background: #071321; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; padding-bottom: 40px; }
.footer-grid h2, .footer-grid h3 { margin: 0 0 14px; color: #fff; font-size: 14px; }
.footer-grid p { max-width: 390px; margin: 0; color: #9eafc2; font-size: 14px; }
.footer-links { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: #b6c5d6; font-size: 13px; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.11); color: #91a2b6; font-size: 12px; }
.footer-bottom p { margin: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.no-results { padding: 36px; text-align: center; border: 1px dashed #cbd6e3; border-radius: 14px; }
.print-only { display: none; }
@media (max-width: 900px) {
  .header-actions { gap: 14px; }
  .primary-nav ul { gap: 16px; }
  .hero-grid { grid-template-columns: 1fr .8fr; gap: 24px; }
  .project-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
}
@media (max-width: 720px) {
  .container, .reading-width { width: min(100% - 36px, var(--content)); }
  .header-inner { min-height: 66px; }
  .menu-toggle { display: none; }
  .primary-nav {
    position: static; display: block; padding: 0; border: 0; background: transparent; box-shadow: none;
  }
  .primary-nav ul { align-items: stretch; flex-direction: column; gap: 0; }
  .primary-nav li a { display: block; padding: 12px 6px; }
  .header-resume { display: none; }
  body.has-menu-toggle .menu-toggle { display: inline-flex; }
  body.has-menu-toggle .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0; display: none; padding: 8px 18px 18px;
    border-bottom: 1px solid var(--line); background: #fff; box-shadow: 0 15px 22px rgba(12,31,55,.08);
  }
  body.has-menu-toggle .primary-nav.is-open { display: block; }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; padding-block: 68px; }
  .hero h1 { font-size: clamp(42px, 12vw, 62px); }
  .pipeline-visual { min-height: 260px; }
  .section { padding-block: 62px; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 14px; }
  .skill-groups { grid-template-columns: 1fr; }
  .contact-band { align-items: flex-start; flex-direction: column; padding: 25px; }
  .page-header { padding: 54px 0 42px; }
  .project-grid, .post-grid { grid-template-columns: 1fr; }
  .project-details { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  .site-header, .site-footer, .no-print, .page-header .eyebrow, .print-only { display: none !important; }
  body { color: #111; background: #fff; font-size: 11pt; }
  .page-header { padding: 0 0 16px; color: #111; background: #fff; }
  .page-header h1, .page-header p { color: #111; }
  .container, .reading-width { width: 100%; }
  .content-section { padding: 15px 0; }
  .experience-item, .detail-item { break-inside: avoid; box-shadow: none; }
  a { text-decoration: none; }
}
