/*
Theme Name: Markus Tarantik
Theme URI: https://markus.tarantik.eu
Author: Markus Tarantik
Author URI: https://markus.tarantik.eu
Description: Modernes, dunkles Portfolio-Theme mit Light/Dark-Toggle, Hero, Skill-Bars, Projekt-Grid, Blog und Kontaktformular. Abgeleitet aus dem statischen MT-Portfolio.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: markus-tarantik
Tags: portfolio, dark-mode, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ===== CSS RESET & VARIABLES ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --accent: #6c63ff;
  --accent-hover: #5a52e0;
  --accent-glow: rgba(108, 99, 255, 0.3);

  --bg: #0d0d14;
  --bg-alt: #12121c;
  --bg-card: #1a1a2e;
  --bg-card-hover: #1f1f38;

  --text: #e8e8f0;
  --text-muted: #8888aa;
  --text-light: #b0b0cc;

  --border: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(108, 99, 255, 0.4);

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-accent: 0 4px 24px rgba(108, 99, 255, 0.2);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

[data-theme="light"] {
  --accent: #5046e5;
  --accent-hover: #3d34d0;
  --accent-glow: rgba(80, 70, 229, 0.2);

  --bg: #f5f5ff;
  --bg-alt: #ebebff;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f0ff;

  --text: #1a1a2e;
  --text-muted: #6666aa;
  --text-light: #4a4a7a;

  --border: rgba(0, 0, 0, 0.08);
  --border-accent: rgba(80, 70, 229, 0.3);

  --shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  --shadow-accent: 0 4px 24px rgba(80, 70, 229, 0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
}

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

/* WP-spezifisch */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; width: 1px; word-wrap: normal !important;
}
.alignleft  { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.aligncenter { display:block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: .85rem; color: var(--text-muted); text-align: center; }

/* ===== UTILITIES ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700; text-align: center;
  margin-bottom: 3rem; position: relative;
}
.section-title::after {
  content: ''; display: block; width: 60px; height: 3px;
  background: var(--accent); margin: 0.75rem auto 0; border-radius: 2px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; border-radius: var(--radius-sm);
  font-size: 0.95rem; font-weight: 600; text-decoration: none;
  cursor: pointer; border: none; transition: all var(--transition);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-accent); transform: translateY(-2px);
}
.btn-outline {
  background: transparent; color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.btn-full { width: 100%; justify-content: center; }

/* ===== HEADER / NAV ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  background: rgba(13, 13, 20, 0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
[data-theme="light"] .site-header.scrolled {
  background: rgba(245, 245, 255, 0.85);
}

.nav { display: flex; align-items: center; height: 64px; gap: 2rem; }
.nav-logo {
  font-size: 1.4rem; font-weight: 800; color: var(--accent);
  text-decoration: none; letter-spacing: 0.05em;
}
.nav-list { display: flex; list-style: none; gap: 0.25rem; margin-left: auto; }
.nav-list li { list-style: none; }
.nav-link, .nav-list a {
  color: var(--text-light); text-decoration: none;
  font-size: 0.9rem; padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  display: inline-block;
}
.nav-link:hover, .nav-link.active,
.nav-list a:hover, .nav-list .current-menu-item > a {
  color: var(--accent); background: var(--accent-glow);
}

.theme-toggle {
  background: none; border: 1px solid var(--border);
  color: var(--text-muted); width: 36px; height: 36px;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: all var(--transition);
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

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

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; text-align: center;
  padding: 6rem 1.5rem 4rem;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(108, 99, 255, 0.12) 0%, transparent 70%);
}
.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: 50px 50px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}
.hero-content { position: relative; z-index: 1; }
.hero-greeting {
  color: var(--accent); font-size: 1rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 0.5rem; opacity: 0;
  animation: fadeUp 0.6s 0.2s forwards;
}
.hero-name {
  font-size: clamp(2.5rem, 8vw, 5rem); font-weight: 800;
  line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 1rem;
  opacity: 0; animation: fadeUp 0.6s 0.4s forwards;
}
.hero-title {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--text-light); font-weight: 400;
  margin-bottom: 1.5rem; min-height: 2rem;
  opacity: 0; animation: fadeUp 0.6s 0.6s forwards;
}
.cursor { animation: blink 1s infinite; color: var(--accent); }
.hero-quote {
  color: var(--text-muted); font-style: italic; font-size: 1rem;
  margin-bottom: 2.5rem; opacity: 0; animation: fadeUp 0.6s 0.8s forwards;
}
.hero-cta {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.6s 1s forwards;
}
.scroll-down {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  text-decoration: none; z-index: 1;
}
.scroll-arrow {
  display: block; width: 20px; height: 20px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg); animation: bounce 1.5s infinite;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid; grid-template-columns: 320px 1fr;
  gap: 3rem; align-items: start;
}
.about-greeting {
  color: var(--accent); font-size: 1.1rem; font-weight: 600;
  margin-bottom: 1rem !important;
}
.about-text p { color: var(--text-light); margin-bottom: 1.25rem; line-height: 1.8; }
.about-text strong { color: var(--text); font-weight: 600; }
.about-stats {
  display: flex; gap: 2rem; margin-top: 2rem;
  padding-top: 2rem; border-top: 1px solid var(--border);
}
.stat { text-align: center; }
.stat-number {
  display: block; font-size: 2.5rem; font-weight: 800;
  color: var(--accent); line-height: 1;
}
.stat-label {
  font-size: 0.8rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.about-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem 1.75rem;
  box-shadow: var(--shadow); text-align: center;
  position: sticky; top: 90px;
}
.about-avatar {
  width: 140px; height: 140px; border-radius: 50%;
  margin: 0 auto 1.25rem; padding: 4px;
  background: linear-gradient(135deg, var(--accent), #a259ff);
  box-shadow: var(--shadow-accent); position: relative;
}
.about-avatar img {
  width: 100%; height: 100%; border-radius: 50%;
  object-fit: cover; display: block; background: var(--bg-card);
}
.about-card-name { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.25rem; }
.about-card-role { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 1.5rem; }
.about-info { display: flex; flex-direction: column; gap: 0.75rem; text-align: left; }
.about-info-item {
  display: flex; justify-content: space-between;
  padding: 0.5rem 0; border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.about-info-item:last-child { border-bottom: none; }
.info-label { color: var(--text-muted); }
.info-value { color: var(--text); font-weight: 500; }
.available { color: #4ade80 !important; }

/* ===== SKILLS ===== */
.skills-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 2rem; margin-bottom: 3rem;
}
.skill-category {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.skill-category:hover { border-color: var(--border-accent); box-shadow: var(--shadow-accent); }
.category-title {
  font-size: 0.85rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--accent); margin-bottom: 1.25rem;
}
.skill-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.skill-item { display: flex; flex-direction: column; gap: 0.4rem; }
.skill-name { font-size: 0.9rem; color: var(--text-light); }
.skill-bar { height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; }
.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #a259ff);
  border-radius: 3px; width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.tech-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.tag {
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-light); padding: 0.35rem 0.85rem;
  border-radius: 100px; font-size: 0.82rem; font-weight: 500;
  transition: all var(--transition); cursor: default;
}
.tag:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }

/* ===== PROJECTS ===== */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.project-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  transition: all var(--transition); position: relative; overflow: hidden;
}
.project-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), #a259ff);
  opacity: 0; transition: opacity var(--transition);
}
.project-card:hover { border-color: var(--border-accent); transform: translateY(-4px); box-shadow: var(--shadow-accent); }
.project-card:hover::before { opacity: 1; }
.project-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1rem; }
.project-icon { font-size: 1.75rem; line-height: 1; }
.project-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.project-tag {
  background: var(--accent-glow); color: var(--accent);
  font-size: 0.72rem; font-weight: 600;
  padding: 0.2rem 0.6rem; border-radius: 100px;
}
.project-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.75rem; }
.project-desc { color: var(--text-muted); font-size: 0.87rem; line-height: 1.7; margin-bottom: 1rem; }
.project-features { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }
.project-features li { font-size: 0.82rem; color: var(--text-light); padding-left: 1rem; position: relative; }
.project-features li::before { content: '▸'; position: absolute; left: 0; color: var(--accent); }
.project-card-cta {
  display: flex; align-items: center; justify-content: center;
  text-align: center; border-style: dashed; cursor: default;
}
.project-cta-content { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.project-cta-content .project-icon {
  width: 48px; height: 48px;
  background: var(--accent-glow);
  border: 2px dashed var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--accent);
}
.project-cta-content h3 { font-size: 1.1rem; }
.project-cta-content p { color: var(--text-muted); font-size: 0.87rem; line-height: 1.6; }

/* ===== BLOG ===== */
.section-subtitle {
  text-align: center; color: var(--text-muted);
  font-size: 1rem; margin: -2rem auto 2.5rem; max-width: 600px;
}
.blog-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.5rem; }
.blog-filter {
  background: transparent; border: 1px solid var(--border);
  color: var(--text-light); padding: 0.4rem 1rem;
  border-radius: 100px; font-size: 0.85rem; font-weight: 500;
  cursor: pointer; transition: all var(--transition); text-decoration: none;
}
.blog-filter:hover { border-color: var(--accent); color: var(--accent); }
.blog-filter.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-bottom: 2.5rem;
}
.blog-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: all var(--transition); position: relative;
}
.blog-card:hover { border-color: var(--border-accent); transform: translateY(-4px); box-shadow: var(--shadow-accent); }
.blog-card-image {
  position: relative; height: 160px;
  background: linear-gradient(135deg, var(--accent) 0%, #a259ff 100%);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-image::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(0,0,0,0.18), transparent 50%);
  pointer-events: none;
}
.blog-card-emoji { font-size: 3rem; position: relative; z-index: 1; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3)); }
.blog-card-body { padding: 1.25rem 1.4rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.blog-card-meta { display: flex; align-items: center; gap: 0.75rem; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.6rem; }
.blog-card-date::before { content: '🗓 '; }
.blog-card-tag {
  background: var(--accent-glow); color: var(--accent);
  padding: 0.15rem 0.55rem; border-radius: 100px;
  font-weight: 600; font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.04em;
  text-decoration: none;
}
.blog-card-title { font-size: 1.02rem; font-weight: 700; margin-bottom: 0.6rem; line-height: 1.35; color: var(--text); }
.blog-card-excerpt {
  font-size: 0.85rem; color: var(--text-muted); line-height: 1.6;
  flex: 1; margin-bottom: 1rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card-read { color: var(--accent); font-size: 0.85rem; font-weight: 600; display: inline-flex; align-items: center; gap: 0.35rem; transition: gap var(--transition); }
.blog-card:hover .blog-card-read { gap: 0.6rem; }
.blog-cta { text-align: center; }

/* ===== SINGLE POST / PAGE ===== */
.single-wrap { padding: 8rem 0 5rem; }
.entry-hero {
  padding: 3rem 2.5rem 2rem;
  background: linear-gradient(135deg, var(--accent) 0%, #a259ff 100%);
  border-radius: var(--radius-lg);
  position: relative; overflow: hidden;
  margin-bottom: 2rem;
}
.entry-hero::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.18), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0,0,0,0.18), transparent 50%);
  pointer-events: none;
}
.entry-hero .entry-meta,
.entry-hero .entry-title { position: relative; z-index: 1; color: #fff; }
.entry-hero .entry-title { font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 800; line-height: 1.2; }
.entry-hero .entry-meta { display: flex; gap: .75rem; align-items: center; margin-bottom: .75rem; color: rgba(255,255,255,.85); font-size: .85rem; }
.entry-hero .post-tag {
  background: rgba(255,255,255,0.25); color: #fff;
  padding: 0.2rem 0.7rem; border-radius: 100px;
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  backdrop-filter: blur(4px);
  text-decoration: none;
}

.entry-content {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2.5rem;
  color: var(--text-light); font-size: 1rem; line-height: 1.8;
}
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 {
  color: var(--text); font-weight: 700;
  margin: 1.75rem 0 .75rem; line-height: 1.3;
}
.entry-content h1 { font-size: 1.8rem; }
.entry-content h2 { font-size: 1.5rem; }
.entry-content h3 { font-size: 1.2rem; }
.entry-content p { margin-bottom: 1rem; }
.entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { text-decoration-color: var(--accent); }
.entry-content ul, .entry-content ol { margin: 0 0 1rem 1.5rem; }
.entry-content li { margin-bottom: .4rem; }
.entry-content img, .entry-content iframe, .entry-content video {
  max-width: 100%; height: auto; border-radius: var(--radius-sm);
  margin: 1.25rem 0; box-shadow: var(--shadow);
}
.entry-content iframe { aspect-ratio: 16 / 9; width: 100%; }
.entry-content blockquote {
  border-left: 3px solid var(--accent);
  padding: .5rem 1rem; margin: 1rem 0;
  background: var(--bg-alt); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-muted); font-style: italic;
}
.entry-content pre, .entry-content code {
  background: var(--bg-alt); border-radius: var(--radius-sm);
  font-family: 'Fira Code','Courier New',monospace; font-size: .85rem;
}
.entry-content code { padding: .15rem .4rem; }
.entry-content pre { padding: 1rem; overflow-x: auto; margin: 1rem 0; }
.entry-content hr { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }

.entry-nav {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: 2rem; flex-wrap: wrap;
}
.entry-nav a { color: var(--accent); text-decoration: none; font-weight: 600; }
.entry-nav a:hover { color: var(--accent-hover); }

.page-header { text-align: center; padding: 8rem 0 2rem; }
.page-header .page-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; }
.page-header .archive-description { color: var(--text-muted); margin-top: 1rem; }

.pagination {
  display: flex; justify-content: center; gap: .4rem;
  margin-top: 2.5rem; flex-wrap: wrap;
}
.pagination .page-numbers {
  padding: .45rem .8rem; border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-light);
  text-decoration: none; font-size: .9rem; transition: all var(--transition);
}
.pagination .page-numbers:hover,
.pagination .current {
  background: var(--accent); border-color: var(--accent); color: #fff;
}

/* ===== COMMENTS ===== */
.comments-area { margin-top: 2.5rem; }
.comments-title { font-size: 1.3rem; margin-bottom: 1.25rem; }
.comment-list { list-style: none; padding: 0; }
.comment-list li { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1rem; }
.comment-list .comment-author { font-weight: 600; }
.comment-list .comment-meta { font-size: .8rem; color: var(--text-muted); margin-bottom: .5rem; }
.comment-respond { margin-top: 2rem; }
.comment-form { display: flex; flex-direction: column; gap: 1rem; }
.comment-form input, .comment-form textarea {
  background: var(--bg-alt); border: 1px solid var(--border);
  color: var(--text); padding: .75rem 1rem;
  border-radius: var(--radius-sm); font-family: var(--font); font-size: .9rem;
}
.comment-form input:focus, .comment-form textarea:focus {
  border-color: var(--accent); outline: none;
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.comment-form .submit {
  background: var(--accent); color: #fff;
  border: none; padding: .75rem 1.75rem;
  border-radius: var(--radius-sm); font-weight: 600;
  cursor: pointer; align-self: flex-start;
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 4rem; align-items: start;
}
.contact-intro { color: var(--text-light); line-height: 1.8; margin-bottom: 2rem; }
.contact-links { display: flex; flex-direction: column; gap: 1rem; }
.contact-link {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); text-decoration: none;
  transition: all var(--transition);
}
.contact-link:hover { border-color: var(--border-accent); transform: translateX(4px); box-shadow: var(--shadow-accent); }
.contact-link-icon {
  font-size: 1.25rem; width: 40px; height: 40px;
  background: var(--accent-glow); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-link div { display: flex; flex-direction: column; }
.contact-link-label { font-size: .75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }
.contact-link-value { font-size: .9rem; color: var(--text); font-weight: 500; }

/* ===== FORM ===== */
.contact-form, .wpcf7-form {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow);
}
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.25rem; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--text-light); }
.form-group input,
.form-group textarea,
.wpcf7-form input,
.wpcf7-form textarea {
  background: var(--bg-alt); border: 1px solid var(--border);
  color: var(--text); padding: .75rem 1rem;
  border-radius: var(--radius-sm); font-size: .9rem;
  font-family: var(--font); resize: vertical;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none; width: 100%;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-note { text-align: center; font-size: .85rem; margin-top: .75rem; min-height: 1.2rem; color: var(--text-muted); }
.form-note.success { color: #4ade80; }
.form-note.error   { color: #f87171; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-alt); border-top: 1px solid var(--border);
  padding: 2rem 0;
}
.footer-content {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-logo { font-weight: 800; font-size: 1rem; color: var(--accent); }
.footer-copy { color: var(--text-muted); font-size: .85rem; }
.footer-privacy, .footer-menu a {
  color: var(--text-muted); font-size: .85rem;
  text-decoration: none; transition: color var(--transition);
}
.footer-privacy:hover, .footer-menu a:hover { color: var(--accent); }
.footer-menu { display: flex; gap: 1rem; list-style: none; }
.footer-menu li { list-style: none; }

/* ===== SIDEBAR / WIDGETS ===== */
.content-with-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem; align-items: start; }
.widget-area .widget {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  margin-bottom: 1.5rem; color: var(--text-light);
}
.widget-area .widget-title {
  font-size: .85rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--accent); margin-bottom: 1rem;
}
.widget-area a { color: var(--text); text-decoration: none; transition: color var(--transition); }
.widget-area a:hover { color: var(--accent); }
.widget-area ul { list-style: none; padding: 0; }
.widget-area ul li { padding: .35rem 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.widget-area ul li:last-child { border-bottom: none; }
.widget-area .search-form { display: flex; gap: .5rem; }
.widget-area .search-field {
  flex: 1; background: var(--bg-alt); border: 1px solid var(--border);
  color: var(--text); padding: .5rem .75rem; border-radius: var(--radius-sm); font-size: .9rem;
}
.widget-area .search-field:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-glow); }

@media (max-width: 900px) {
  .content-with-sidebar { grid-template-columns: 1fr; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%       { transform: rotate(45deg) translateY(6px); }
}
@keyframes spin { to { transform: rotate(360deg); } }

.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-grid    { grid-template-columns: 1fr; gap: 2rem; }
  .about-card    { position: static; max-width: 400px; margin: 0 auto; }
  .skills-grid   { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid     { grid-template-columns: repeat(2, 1fr); }
  .contact-grid  { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 640px) {
  .nav-list {
    display: none; position: fixed; top: 64px; left: 0; right: 0;
    background: var(--bg-alt); flex-direction: column;
    padding: 1rem; border-bottom: 1px solid var(--border); gap: 0;
  }
  .nav-list.open { display: flex; }
  .nav-link, .nav-list a { padding: .75rem 1rem; display: block; }
  .nav-burger    { display: flex; }
  .projects-grid { grid-template-columns: 1fr; }
  .blog-grid     { grid-template-columns: 1fr; }
  .about-stats   { gap: 1rem; }
  .hero-cta      { flex-direction: column; align-items: center; }
  .entry-content { padding: 1.5rem; }
}