/*
Theme Name: Hello Elementor Child - JDB Portfolio
Template: hello-elementor
Description: Dark portfolio theme for Jean Debuisson - Freelance Developer
Author: Jean Debuisson
Version: 1.0
*/

/* ===== RESET & BASE ===== */
:root {
  --bg-primary: #0d0f0e;
  --bg-secondary: #151917;
  --bg-card: #1a1f1d;
  --bg-card-hover: #1f2623;
  --border-card: #2a3530;
  --text-primary: #e8ede9;
  --text-secondary: #8a9b90;
  --text-muted: #5c6e63;
  --accent: #00e5a0;
  --accent-hover: #00cc8c;
  --accent-glow: rgba(0, 229, 160, 0.15);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1100px;
}

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

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ===== NAVIGATION ===== */
.site-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  border-radius: 50px;
  padding: 10px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav .nav-logo {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav .nav-logo span { font-family: var(--font-mono); }

.site-nav a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}

.site-nav a:hover { color: var(--text-primary); }

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

/* ===== SECTIONS ===== */
.section {
  padding: 60px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--text-secondary);
  text-align: center;
  font-size: 0.95rem;
  max-width: 600px;
  margin: 0 auto 48px;
}

/* ===== HERO ===== */
.hero {
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 120px;
  padding-bottom: 20px;
}

.hero-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border-card);
  margin-bottom: 8px;
  background: var(--bg-card);
  filter: grayscale(100%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s infinite;
}

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

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-roles {
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-desc {
  color: var(--text-secondary);
  max-width: 660px;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 48px;
}

/* Stats */
.hero-stats {
  display: flex;
  gap: 48px;
  padding: 32px 0;
  border-top: 1px solid var(--border-card);
  border-bottom: 1px solid var(--border-card);
  margin-bottom: 40px;
  width: 100%;
  max-width: 900px;
  justify-content: center;
}

.hero-stat-number {
  font-size: 2.2rem;
  font-weight: 800;
}

.hero-stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* CTA Buttons */
.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--bg-primary);
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border-card);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
}

/* Social */
.hero-social {
  display: flex;
  gap: 16px;
}

.hero-social a {
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: color 0.2s;
}

.hero-social a:hover { color: var(--text-primary); }

/* ===== VALUE PROPS ===== */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.value-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
}

.value-icon {
  color: var(--accent);
  font-size: 2rem;
  margin-bottom: 16px;
}

.value-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.value-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ===== SKILLS ===== */
.skills-section {
  background: var(--bg-secondary);
  padding: 100px 24px;
}

.skills-section .section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s;
}

.skill-card:hover { border-color: var(--accent); }

.skill-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.skill-card h3 .skill-icon { color: var(--accent); font-family: var(--font-mono); font-size: 0.9rem; }

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

.skill-tag {
  background: var(--bg-secondary);
  border: 1px solid var(--border-card);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  transition: border-color 0.2s, color 0.2s;
}

.skill-tag:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
}

.service-icon {
  color: var(--accent);
  font-size: 2.5rem;
  margin-bottom: 18px;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 18px;
}

.service-target {
  display: inline-block;
  background: var(--bg-secondary);
  border: 1px solid var(--border-card);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ===== CTA FINAL ===== */
.cta-section {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 64px 40px;
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto 100px;
}

.cta-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.cta-guarantees {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 32px;
}

.cta-guarantee {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cta-guarantee-icon {
  color: var(--accent);
  font-size: 1.3rem;
}

.cta-guarantee strong {
  font-size: 0.85rem;
  display: block;
}

.cta-guarantee small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.cta-availability {
  display: inline-block;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 6px 16px;
  font-size: 0.8rem;
  color: var(--accent);
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--border-card);
  padding: 60px 24px 30px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand .footer-logo {
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.footer-brand .footer-logo span {
  font-family: var(--font-mono);
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-nav h4,
.footer-contact h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: color 0.2s;
}

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

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

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

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.footer-social a {
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid var(--border-card);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.footer-built {
  color: var(--text-muted);
  font-size: 0.78rem;
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .site-nav {
    top: 10px;
    padding: 8px 16px;
    gap: 12px;
    font-size: 0.8rem;
  }

  .hero h1 { font-size: 2rem; }
  .hero-roles { font-size: 1rem; }
  .hero-stats { gap: 24px; }
  .hero-stat-number { font-size: 1.6rem; }
  .hero-ctas { flex-direction: column; align-items: center; }

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

  .cta-guarantees { flex-direction: column; align-items: center; gap: 20px; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-section { margin: 0 16px 60px; padding: 40px 20px; }
}

@media (max-width: 480px) {
  .site-nav .nav-link { display: none; }
  .hero h1 { font-size: 1.6rem; }
}

/* ===== LANG TOGGLE ===== */
.lang-toggle {
  background: none;
  border: none;
  outline: none;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.lang-toggle:hover {
  transform: scale(1.15);
}

.lang-toggle:focus,
.lang-toggle:focus-visible,
.lang-toggle:active {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  background: none;
  border: none;
  outline: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: color 0.2s;
  padding: 0;
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--accent);
}

.theme-toggle:focus,
.theme-toggle:focus-visible,
.theme-toggle:active,
.theme-toggle:focus-within {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
  border-color: transparent !important;
  color: var(--text-secondary) !important;
  -webkit-appearance: none;
}

button.theme-toggle::-moz-focus-inner {
  border: 0;
}

/* Dark mode (default): show sun, hide moon */
.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }

/* Light mode: show moon, hide sun */
.light-mode .theme-toggle .icon-sun { display: none; }
.light-mode .theme-toggle .icon-moon { display: block; }

/* ===== LIGHT MODE ===== */
.light-mode {
  --bg-primary: #ffffff;
  --bg-secondary: #ffffff;
  --bg-card: #f7f7f7;
  --bg-card-hover: #f0f0f0;
  --border-card: #e0e0e0;
  --text-primary: #111111;
  --text-secondary: #555555;
  --text-muted: #888888;
  --accent: #00b37e;
  --accent-hover: #009a6b;
  --accent-glow: rgba(0, 179, 126, 0.12);
}

.light-mode .site-nav {
  background: rgba(255, 255, 255, 0.9);
}

.light-mode .skills-section {
  background: var(--bg-primary);
}

.light-mode .btn-primary {
  color: #ffffff;
}

.light-mode .btn-primary:hover {
  color: #ffffff;
}

.light-mode .value-card,
.light-mode .skill-card,
.light-mode .service-card,
.light-mode .cta-section {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

/* ===== OVERRIDE WP / HELLO ELEMENTOR BACKGROUNDS ===== */
html,
body,
body.page-template-template-homepage-php,
.wp-site-blocks,
.site-main,
.page-content,
.entry-content,
.elementor-default,
#content,
#page,
#primary {
  background-color: var(--bg-primary) !important;
  color: var(--text-primary) !important;
}

.light-mode,
.light-mode body,
.light-mode .wp-site-blocks,
.light-mode .site-main,
.light-mode .page-content,
.light-mode .entry-content,
.light-mode .elementor-default,
.light-mode #content,
.light-mode #page,
.light-mode #primary {
  background-color: var(--bg-primary) !important;
  color: var(--text-primary) !important;
}

/* ===== ABOUT PAGE ===== */
.about-hero {
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 120px;
  padding-bottom: 0;
  max-width: var(--max-width);
  margin: 0 auto;
}

.about-badge {
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.about-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.about-intro {
  color: var(--text-secondary);
  max-width: 600px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.about-section {
  padding: 40px 24px 60px;
}

.about-section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.about-education {
  background: var(--bg-secondary);
}

/* Timeline / Experience Cards */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.exp-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.exp-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 16px;
}

.exp-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.exp-company {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.exp-date {
  display: inline-block;
  background: var(--bg-secondary);
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 4px 14px;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.exp-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.exp-block {
  margin-bottom: 16px;
}

.exp-block:last-child {
  margin-bottom: 0;
}

.exp-block h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.exp-block ul {
  list-style: none;
  padding: 0;
}

.exp-block ul li {
  position: relative;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 6px;
}

.exp-block ul li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
}

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

.exp-tag {
  background: var(--bg-secondary);
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
}

.exp-achievements li::before {
  content: '\2714';
  color: var(--accent);
  font-family: inherit;
}

/* Education */
.edu-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.edu-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
}

.edu-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.edu-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.edu-school {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.edu-details {
  display: flex;
  gap: 20px;
  margin-bottom: 12px;
}

.edu-year,
.edu-location {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.edu-desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* About page responsive */
@media (max-width: 768px) {
  .about-hero h1 { font-size: 2rem; }
  .exp-header { flex-direction: column; }
  .exp-date { align-self: flex-start; }
  .edu-card { flex-direction: column; gap: 12px; }
}

/* About page light mode */
.light-mode .exp-card,
.light-mode .edu-card {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

/* WP override for about template */
body.page-template-template-about-php,
body.page-template-template-about-php .wp-site-blocks,
body.page-template-template-about-php .site-main,
body.page-template-template-about-php .entry-content {
  background-color: var(--bg-primary) !important;
  color: var(--text-primary) !important;
}

/* ===== SKILLS PAGE ===== */
.skills-page-section {
  padding: 60px 24px;
}

.skills-page-alt {
  background: var(--bg-secondary);
}

.skills-page-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Main Stack Cards */
.main-stack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.stack-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}

.stack-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-glow);
  transform: translateY(-2px);
}

.stack-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.stack-icon {
  font-size: 2rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border-radius: 12px;
  flex-shrink: 0;
}

.stack-card-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}

.stack-level {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stack-bar {
  height: 4px;
  background: var(--bg-secondary);
  border-radius: 4px;
  margin-bottom: 14px;
  overflow: hidden;
}

.stack-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  border-radius: 4px;
  transition: width 1.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.stack-bar-fill.animated {
  width: var(--w) !important;
}

.stack-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
}

.stack-years {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--accent-glow);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

/* Domain Skills */
.skill-domain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.domain-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s;
}

.domain-card:hover {
  border-color: var(--accent);
}

.domain-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.domain-icon {
  color: var(--accent);
  font-size: 1.3rem;
  font-family: var(--font-mono);
}

.domain-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}

.domain-skills {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.domain-skill-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.domain-skill-info span:first-child {
  font-size: 0.85rem;
  font-weight: 500;
}

.domain-skill-level {
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.domain-skill-bar {
  height: 3px;
  background: var(--bg-secondary);
  border-radius: 3px;
  overflow: hidden;
}

.domain-skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  border-radius: 3px;
  transition: width 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.domain-skill-fill.animated {
  width: var(--w) !important;
}

/* Approach */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.approach-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.approach-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
  transform: translateY(-2px);
}

.approach-number {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 12px;
}

.approach-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.approach-card p {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.6;
}

/* ===== CONTACT PAGE ===== */
.contact-section {
  padding: 20px 24px 60px;
}

.contact-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.contact-method-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-method-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-glow);
  transform: translateY(-4px);
}

.contact-method-icon {
  color: var(--accent);
  margin-bottom: 18px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border-radius: 16px;
}

.contact-method-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-method-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 14px;
}

.contact-method-link {
  color: var(--accent) !important;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 12px;
  transition: opacity 0.2s;
}

.contact-method-link:hover {
  opacity: 0.8;
}

.contact-method-badge {
  display: inline-block;
  background: var(--bg-secondary);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Availability */
.availability-card {
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  box-shadow: 0 0 40px var(--accent-glow);
}

.availability-left {
  flex: 1;
}

.availability-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.availability-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2s infinite;
}

.availability-status {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.availability-left h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.availability-left p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.availability-right {
  flex-shrink: 0;
}

.availability-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.availability-info-item {
  display: flex;
  flex-direction: column;
}

.availability-info-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.availability-info-value {
  font-size: 0.95rem;
  font-weight: 600;
}

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.process-step {
  text-align: center;
  padding: 0 16px;
  position: relative;
}

.process-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg-primary);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
}

.process-line {
  position: absolute;
  top: 24px;
  left: calc(50% + 24px);
  width: calc(100% - 48px);
  height: 2px;
  background: var(--border-card);
}

.process-step:last-child .process-line {
  display: none;
}

.process-step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.process-step p {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.6;
}

/* Contact responsive */
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .availability-card { flex-direction: column; gap: 24px; }
  .process-grid { grid-template-columns: 1fr; gap: 24px; }
  .process-line { display: none; }
  .main-stack-grid { grid-template-columns: 1fr; }
  .skill-domain-grid { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .approach-grid { grid-template-columns: 1fr; }
}

/* Light mode for new pages */
.light-mode .stack-card,
.light-mode .domain-card,
.light-mode .approach-card,
.light-mode .contact-method-card {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.light-mode .availability-card {
  box-shadow: 0 0 30px var(--accent-glow);
}

.light-mode .process-number {
  color: #ffffff;
}

/* WP override for new templates */
body.page-template-template-skills-php,
body.page-template-template-skills-php .wp-site-blocks,
body.page-template-template-skills-php .site-main,
body.page-template-template-skills-php .entry-content,
body.page-template-template-contact-php,
body.page-template-template-contact-php .wp-site-blocks,
body.page-template-template-contact-php .site-main,
body.page-template-template-contact-php .entry-content {
  background-color: var(--bg-primary) !important;
  color: var(--text-primary) !important;
}

/* ===== ANIMATIONS ===== */

/* Generic fadeInUp keyframe */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero avatar glow pulse */
@keyframes avatar-glow {
  0%, 100% {
    border-color: var(--border-card);
    box-shadow: 0 0 0 0 transparent;
  }
  50% {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow), 0 0 60px rgba(0, 229, 160, 0.08);
  }
}

.hero-avatar {
  animation: avatar-glow 3s ease-in-out infinite, fadeInUp 0.6s ease-out both;
}

/* Gradient shimmer on hero names */
@keyframes text-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero h1,
.about-hero h1 {
  background: linear-gradient(90deg, var(--text-primary) 0%, var(--accent) 50%, var(--text-primary) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Homepage hero stagger */
.hero > h1 {
  animation: text-shimmer 5s ease infinite, fadeInUp 0.6s ease-out 0.1s both;
}
.hero > .hero-desc {
  animation: fadeInUp 0.6s ease-out 0.2s both;
}
.hero > .hero-stats {
  animation: fadeInUp 0.6s ease-out 0.4s both;
}
.hero > .hero-ctas {
  animation: fadeInUp 0.6s ease-out 0.55s both;
}
.hero > .hero-social {
  animation: fadeInUp 0.6s ease-out 0.7s both;
}

/* About hero stagger */
.about-hero > .about-badge {
  animation: fadeInUp 0.5s ease-out 0.1s both;
}
.about-hero > h1 {
  animation: text-shimmer 5s ease infinite, fadeInUp 0.6s ease-out 0.2s both;
}
.about-hero > .about-intro {
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

/* Typing cursor */
.typing-cursor::after {
  content: '|';
  -webkit-text-fill-color: var(--accent);
  color: var(--accent);
  animation: blink-cursor 0.8s step-end infinite;
  margin-left: 2px;
}

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

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Tag pop-in */
.tag-pop {
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tag-pop.visible {
  opacity: 1;
  transform: scale(1);
}

/* ===== HIDE WP DEFAULTS ===== */
.site-header, .site-footer:not(.custom-footer), #wp-admin-bar-root-default { display: none !important; }
