@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

/* ==========================================================================
   1. Design System Variables & Base Resets
   ========================================================================== */

:root {
  /* Color Palette - Light Mode */
  --bg-primary: #ffffff;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --accent-primary: #ffdf55; /* Exact yellow from szilard.me */
  --accent-primary-hover: #f5c800;
  --accent-glow: rgba(255, 223, 85, 0.12);
  --accent-secondary: #ffdf55;

  --border-color: #e2e8f0;
  --card-shadow:
    0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --hover-shadow:
    0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.08);

  /* Fonts */
  --font-headings:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Tile Backgrounds - Shades of Gray (Light Theme) */
  --tile-bg-1: hsl(0, 0%, 100%);
  --tile-bg-2: hsl(0, 0%, 98%);
  --tile-bg-3: hsl(0, 0%, 96%);
  --tile-bg-4: hsl(0, 0%, 94%);
  --tile-bg-5: hsl(0, 0%, 92%);
  --tile-bg-6: hsl(0, 0%, 90%);
  --tile-bg-7: hsl(0, 0%, 88%);
  --tile-bg-8: hsl(0, 0%, 86%);
  --tile-bg-9: hsl(0, 0%, 84%);
}

[data-theme="dark"] {
  /* Color Palette - Dark Mode */
  --bg-primary: #090d16;
  --bg-secondary: #111827;
  --bg-tertiary: #1f2937;

  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;

  --accent-primary: #3b82f6; /* Modern blue */
  --accent-primary-hover: #60a5fa; /* Lighter blue for hover */
  --accent-glow: rgba(59, 130, 246, 0.18);
  --accent-secondary: #3b82f6;

  --border-color: #1f2937;
  --card-shadow:
    0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
  --hover-shadow:
    0 20px 25px -5px rgb(0 0 0 / 0.4), 0 8px 10px -6px rgb(0 0 0 / 0.4);

  /* Tile Backgrounds - Shades of Gray (Dark Theme) */
  --tile-bg-1: hsl(0, 0%, 10%);
  --tile-bg-2: hsl(0, 0%, 12%);
  --tile-bg-3: hsl(0, 0%, 14%);
  --tile-bg-4: hsl(0, 0%, 16%);
  --tile-bg-5: hsl(0, 0%, 18%);
  --tile-bg-6: hsl(0, 0%, 20%);
  --tile-bg-7: hsl(0, 0%, 22%);
  --tile-bg-8: hsl(0, 0%, 24%);
  --tile-bg-9: hsl(0, 0%, 26%);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ==========================================================================
   2. Typography & Core Elements
   ========================================================================== */

h1,
h2,
h3,
h4 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  position: relative;
  padding-left: 0;
  padding-bottom: 0;
  margin-bottom: 1.5rem;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: var(--accent-primary);
  border-radius: 0;
  z-index: 1;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

h4 {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Section numbering prefix */
.section-num {
  font-size: inherit;
  font-weight: 300;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  position: relative;
  margin-right: 4px;
  z-index: 2;
}

/* ==========================================================================
   Szilard.me signature sweep hover effect
   A yellow ::before block sweeps left-to-right under any anchor on hover.
   ========================================================================== */

a {
  color: var(--text-primary);
  text-decoration: none;
  position: relative;
  z-index: 1;
  transition: color 0.2s ease;
}

a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--accent-primary);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s ease;
  border-radius: 2px;
}

a:hover::before {
  transform: scaleX(1);
  transition: transform 0.5s ease;
}

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

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* ==========================================================================
   3. Main Page Layout Structure
   ========================================================================== */

.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

/* Header & Nav */
header.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: none;
  margin-bottom: 3rem;
}

.theme-toggle-btn {
  background: #ffffff;
  color: #0f172a;
  border: none;
  outline: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  transform: translateY(
    calc(var(--hero-scroll, 0) * var(--hero-scroll-offset))
  );
  will-change: transform;
}

.theme-toggle-btn:hover svg {
  transform: rotate(15deg);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: block;
  transition: transform var(--transition-fast);
}

/* Theme Switcher Sun/Moon toggling */
.theme-toggle-btn .theme-icon-sun {
  display: none;
}
.theme-toggle-btn .theme-icon-moon {
  display: block;
}
[data-theme="dark"] .theme-toggle-btn .theme-icon-sun {
  display: block;
}
[data-theme="dark"] .theme-toggle-btn .theme-icon-moon {
  display: none;
}

/* Hero Banner Layout */
.hero-banner {
  background-color: var(--accent-primary); /* #ffdf55 */
  border-radius: 0; /* Removed border-radius */
  margin: 0;
  margin-bottom: 0;
  box-shadow: none;
  overflow: hidden;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
  width: 100%;
  --hero-base-height: 375px;
  --hero-min-height: 96px;
  --hero-scroll-offset: 279px; /* 375 - 96 */
  height: var(--hero-base-height);
  top: calc(var(--hero-scroll-offset) * -1);
  transform: translateZ(
    0
  ); /* Enforce overflow: hidden for transformed children */
}

.hero-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  position: relative;
}

.hero-banner-inner .site-header {
  padding-top: 1.5rem;
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
  padding-left: 2rem;
  padding-right: 2rem;
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  z-index: 10;
}

.hero-banner-content {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  grid-template-rows: 100%;
  gap: 0;
  align-items: center;
  height: var(--hero-base-height);
  overflow: hidden;
}

/* Left: Avatar Column */
.hero-avatar-col {
  display: flex;
  align-items: flex-end; /* This aligns the wrapper to bottom */
  justify-content: center;
  position: relative;
  padding: 0;
  margin: 0;
  height: 100%;
}

.hero-avatar-wrapper {
  position: relative;
  width: 100%;
  max-width: 280px;
  height: var(--hero-base-height);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  clip-path: inset(0 0 0 0); /* Bulletproof clipping for Safari/Chrome */
}

.hero-avatar-img {
  height: 281px;
  width: auto;
  max-width: none;
  object-fit: contain;
  z-index: 2;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(
    -50%,
    calc(-50% + 47px + var(--hero-scroll, 0) * 136px)
  ); /* Perfectly synchronizes with the circle's 50% anchor while bottom-aligning */
  display: block;
  margin: 0;
  will-change: transform;
}

.hero-avatar-circle {
  position: absolute;
  width: 270px;
  height: 270px;
  background-color: #ffffff;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate3d(-50%, calc(-50% + var(--hero-scroll, 0) * 135.5px), 0);
  z-index: 1;
  will-change: transform;
}

/* Right: Info Column */
.hero-info-col {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.hero-title-group {
  position: relative;
  top: -40px;
}

.hero-info-col h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
}

.hero-hello {
  display: block;
  transform: translate3d(0, calc(var(--hero-scroll, 0) * -100px), 0);
  opacity: calc(1 - var(--hero-scroll, 0) * 1.5);
  will-change: transform, opacity;
}

.hero-name-text {
  display: block;
  transform: translateY(
    calc(var(--hero-scroll, 0) * 162px)
  ); /* Push down exactly into the 96px visible area */
  will-change: transform;
}

.hero-info-col .hero-subtitle {
  font-size: 1.15rem;
  color: #223146;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 0;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  transform: translate3d(0, calc(var(--hero-scroll, 0) * 390px), 0);
  will-change: transform;
}

/* Hero Details Row (Links & Summary below Banner) */
.hero-details-row {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 0;
  margin-bottom: 0;
  align-items: stretch;
}

.hero-links-card {
  background-color: transparent;
  border-radius: 0;
  padding: 2rem;
  box-shadow: none;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: relative;
}

.hero-links-card .profile-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
}

.hero-desc-card {
  background:
    repeating-linear-gradient(
      135deg,
      var(--border-color) 0px,
      var(--border-color) 1px,
      transparent 1px,
      transparent 5px
    ),
    var(--bg-secondary);
  border-radius: 0;
  padding: 2rem;
  box-shadow: none;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: relative;
}

.hero-desc-card .hero-summary {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Contacts Layout */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

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

.contact-item a {
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

.contact-item a::before {
  background-color: var(--accent-primary);
}

.contact-item a:hover {
  color: var(--text-primary);
}

/* Primary Multi-Column Layout */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 0;
  align-items: stretch;
  margin-bottom: 0;
}

/* Left Sidebar Column */
.sidebar-column {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-section {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 2rem;
  box-shadow: none;
  position: relative;
}

/* Statistics Widgets */
.stats-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem;
  background:
    repeating-linear-gradient(
      135deg,
      var(--border-color) 0px,
      var(--border-color) 1px,
      transparent 1px,
      transparent 5px
    ),
    var(--bg-secondary);
  border-radius: 8px;
  border: none;
  box-shadow: none;
  text-align: left;
}

.stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-headings);
  line-height: 1.1;
}

.stat-unit {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-top: -0.15rem;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 0.25rem;
}

.stat-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.stat-card .highlight-tag {
  margin-top: 0.5rem;
}

/* Skill Categories list */
.skill-category-group {
  margin-bottom: 1rem;
  padding: 1rem;
  background:
    repeating-linear-gradient(
      135deg,
      var(--border-color) 0px,
      var(--border-color) 1px,
      transparent 1px,
      transparent 5px
    ),
    var(--bg-secondary);
  border-radius: 8px;
  border: none;
  box-shadow: none;
}

.skill-category-group:last-child {
  margin-bottom: 0;
}

.skill-cat-title {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.skill-tags {
  margin: 0;
  padding-left: 1.25rem;
  list-style-type: disc;
}

.skill-tag {
  color: var(--text-primary);
  font-size: 0.85rem;
  padding: 0;
  margin-bottom: 0.25rem;
  border-radius: 0;
  font-weight: 400;
  transition: none;
}

.skill-tag:last-child {
  margin-bottom: 0;
}

/* Education List */
.edu-item {
  margin-bottom: 1rem;
  padding: 1rem;
  background:
    repeating-linear-gradient(
      135deg,
      var(--border-color) 0px,
      var(--border-color) 1px,
      transparent 1px,
      transparent 5px
    ),
    var(--bg-secondary);
  border-radius: 8px;
  border: none;
  box-shadow: none;
}

.edu-item:last-child {
  margin-bottom: 0;
}

.edu-degree {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

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

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

/* Languages List */
.lang-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.lang-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem;
  background:
    repeating-linear-gradient(
      135deg,
      var(--border-color) 0px,
      var(--border-color) 1px,
      transparent 1px,
      transparent 5px
    ),
    var(--bg-secondary);
  border-radius: 8px;
  border: none;
  box-shadow: none;
  text-align: left;
}

.lang-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.lang-level {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
}

.lang-bar {
  display: flex;
  gap: 4px;
  margin: 0.35rem 0;
  width: 100%;
}

.lang-segment {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background-color: var(--border-color);
}

.lang-segment.filled {
  background-color: var(--text-primary);
}

/* ==========================================================================
   4. Right Content Column (Recruiter Scan Area)
   ========================================================================== */

.content-column {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  container-type: inline-size;
}

/* Main Timeline layout for Experience */
.experience-timeline {
  position: relative;
}

.experience-timeline::before {
  display: none;
}

.timeline-item {
  position: relative;
  margin-bottom: 1rem;
  transition:
    opacity var(--transition-normal),
    transform var(--transition-normal);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

/* Timeline dot */
.timeline-dot {
  display: none;
}

.timeline-content {
  background:
    repeating-linear-gradient(
      135deg,
      var(--border-color) 0px,
      var(--border-color) 1px,
      transparent 1px,
      transparent 5px
    ),
    var(--bg-secondary);
  border: none;
  border-radius: 8px;
  padding: 1.75rem;
  box-shadow: none;
  transition: transform var(--transition-fast);
}

.timeline-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 0.25rem;
}

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

.company-name {
  color: var(--text-secondary);
  font-weight: 600;
}

.timeline-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  background: none;
  padding: 0;
  border: none;
  order: -1;
}

.timeline-body {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.timeline-body p {
  margin-bottom: 0.75rem;
}

.timeline-body p:last-child {
  margin-bottom: 0;
}

/* Highlights Grid */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

#highlights-section {
  margin-bottom: 0;
}

.highlight-card {
  background:
    repeating-linear-gradient(
      135deg,
      var(--border-color) 0px,
      var(--border-color) 1px,
      transparent 1px,
      transparent 5px
    ),
    var(--bg-secondary);
  border: none;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: none;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.highlight-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.highlight-logo-container {
  width: 56px;
  height: 56px;
  min-width: 56px;
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.highlight-logo-container img {
  max-width: 75%;
  max-height: 75%;
  object-fit: contain;
}

.highlight-logo-container img[src*="Banca_Transilvania"] {
  max-width: 50%;
  max-height: 50%;
}

.product-logo-container img {
  max-width: 50%;
  max-height: 50%;
}

.highlight-header-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.2rem;
}

.highlight-client {
  font-size: 1.1rem;
  font-weight: 700;
}

.highlight-client a {
  color: var(--text-primary);
}

.highlight-client a:hover {
  color: var(--accent-primary);
}

.highlight-tag {
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  padding: 0.18rem 0.56rem;
  border-radius: 8px;
  letter-spacing: 0.04em;
  border: 1px solid var(--border-color);
}

/* Product links: show .com on hover, keep dark text */
.product-link {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.1rem;
}

.product-link::after {
  content: ".com";
  opacity: 0;
  color: var(--text-primary);
  font-size: inherit;
  font-weight: inherit;
  margin-left: 0;
  transition: opacity 0.3s ease;
  position: relative;
  z-index: 2;
}
.product-link:hover::after,
#products-section .highlight-card:hover .product-link::after {
  opacity: 1;
}

.product-link:hover,
.product-link:hover::before,
#products-section .highlight-card:hover .product-link,
#products-section .highlight-card:hover .product-link::before {
  /* Keep dark text, yellow sweep still applies via global a::before */
  color: var(--text-primary) !important;
}

.highlight-client a:hover,
#products-section .highlight-card:hover .highlight-client a {
  color: var(--text-primary) !important;
}

#products-section .highlight-card {
  cursor: pointer;
}

#products-section .highlight-card:hover .product-link::before {
  transform: scaleX(1);
  transition: transform 0.5s ease;
}

/* Downloads Section */
.downloads-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background:
    repeating-linear-gradient(
      135deg,
      var(--border-color) 0px,
      var(--border-color) 1px,
      transparent 1px,
      transparent 5px
    ),
    var(--bg-secondary);
  border-radius: 8px;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.downloads-desc {
  flex: 1;
}

.downloads-desc p {
  margin: 0;
  color: var(--text-primary);
  max-width: 100%;
  font-weight: 500;
}

.downloads-action {
  display: flex;
  justify-content: flex-end;
  flex: 0 0 auto;
}

/* Download CTA */
.download-cta-btn {
  display: inline-flex;
  align-items: center;
  position: relative;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  padding: 0.5rem 0.5rem 0.5rem 1.75rem;
  border-radius: 8px;
  overflow: hidden;
  z-index: 1;
  cursor: pointer;
  transition: color 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .download-cta-btn:hover {
    color: #000 !important;
  }
}

.download-cta-btn::before {
  content: "";
  position: absolute;
  left: auto; /* Override global a::before */
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: var(--accent-primary);
  border-radius: 8px;
  z-index: -1;
  transition: width 1s ease;
}

@media (hover: hover) and (pointer: fine) {
  .download-cta-btn:hover::before {
    width: calc(100% - 16px);
    transform: translateY(-50%); /* Override global a:hover::before */
    transition: width 0.5s ease;
  }
}

.download-text {
  margin-right: 12px;
  z-index: 2;
}

.download-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  z-index: 2;
  color: #000;
}

[data-theme="dark"] .download-icon {
  color: #ffffff;
}

[data-theme="dark"] .download-cta-btn:hover {
  color: var(--text-primary) !important;
}

.download-icon svg {
  width: 20px;
  height: 20px;
}

/* Footer Section */
footer.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  text-align: left;
  padding: 1.5rem 2rem;
  margin-top: 2.5rem;
  border-top: none;
  color: var(--text-muted);
  font-size: 0.9rem;
}
footer.site-footer a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}
footer.site-footer a:hover {
  color: var(--text-color);
}

footer.site-footer p {
  margin-bottom: 0.5rem;
}

.footer-meta {
  font-size: 0.8rem;
}

/* Animations classes */
.hidden-item {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: none;
}

/* ==========================================================================
   5. Responsive Media Queries
   ========================================================================== */

@media (max-width: 1024px) {
  .main-layout {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

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

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

  .hero-details-row {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 0;
  }

  .hero-links-card,
  .hero-desc-card {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-banner-inner {
    position: relative;
    height: 100%;
  }

  .hero-banner-inner .site-header {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .hero-banner {
    --hero-base-height: 624px;
    --hero-scroll-offset: 528px;
    height: var(--hero-base-height);
  }

  .hero-banner-content {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 0;
    height: 100%;
    overflow: visible;
    align-items: start;
  }

  .hero-info-col {
    order: 1;
    padding: 1.5rem 1.5rem 0 1.5rem;
    height: 220px;
  }

  .hero-avatar-col {
    order: 2;
    padding-top: 0;
    height: 300px;
    position: static;
  }

  .hero-avatar-wrapper {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 100%;
    height: 300px;
    transform: translate3d(-50%, calc(var(--hero-scroll, 0) * 528px), 0);
    will-change: transform;
  }

  .hero-avatar-img,
  .hero-avatar-circle {
    --hero-scroll: 0;
  }

  .hero-info-col h1 {
    font-size: 2.25rem;
  }

  .hero-title-group {
    position: absolute;
    top: 70px;
    left: 1.5rem;
    right: 1.5rem;
    margin: 0;
  }

  .hero-name-text {
    transform: translate3d(0, calc(var(--hero-scroll, 0) * 436px), 0);
    white-space: nowrap;
  }

  .hero-hello {
    transform: translate3d(0, calc(var(--hero-scroll, 0) * -200px), 0);
  }

  .hero-info-col .hero-subtitle {
    font-size: 1.1rem;
    position: relative;
    top: auto;
    transform: translate3d(0, calc(var(--hero-scroll, 0) * 568px), 0);
    margin-top: 1rem;
  }

  .main-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-details-row {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 0;
  }

  .hero-links-card,
  .hero-desc-card {
    padding: 1.5rem;
  }

  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline-date {
    margin-top: 0.25rem;
  }

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

  .skills-wrapper,
  .edu-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .edu-item,
  .skill-category-group {
    margin-bottom: 0;
  }
}

/* Styling for experience section layout */
#experience-section {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Core section settings: 0 border-radius, 0 shadow, 0 borders, 0 margins, 2rem padding, and relative position */
#experience-section,
#highlights-section,
#products-section,
#downloads-section {
  border-radius: 0;
  box-shadow: none;
  border: none;
  margin: 0;
  padding: 2rem;
  position: relative;
}

/* ==========================================================================
   6. Build-in Entrance Animations with Staggered Delays
   ========================================================================== */

/* Keyframe Definitions */
@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes counterSlide {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes slideCircleUp {
  from {
    transform: translate(-50%, -50%) translateY(100%);
  }
  to {
    transform: translate3d(
      -50%,
      calc(-50% + var(--hero-scroll, 0) * 135.5px),
      0
    );
  }
}

@keyframes slideImgUpSlight {
  from {
    transform: translateY(35px);
  }
  to {
    transform: translateY(0);
  }
}

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

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

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

@keyframes slideImgInFromLeft {
  from {
    transform: translate(calc(-50% - 32px), calc(-50% + 47px));
  }
  to {
    transform: translate(
      -50%,
      calc(-50% + 47px + var(--hero-scroll, 0) * 136px)
    );
  }
}

/* Base Animation Settings & Staggered Delays */
.hero-banner {
  animation: slideDown 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-banner-inner {
  animation: counterSlide 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-avatar-circle {
  animation: slideCircleUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0s;
}

.hero-avatar-img {
  animation: slideImgInFromLeft 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0s;
}

.hero-info-col h1 {
  animation: fadeInPushDown 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0s;
}

.hero-info-col .hero-subtitle {
  animation: fadeInSubtitle 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0s;
}

.hero-links-card {
  animation: fadeInUpSection 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.4s;
}

.hero-desc-card {
  animation: fadeInUpSection 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.8s;
}

.sidebar-column .sidebar-section:nth-of-type(1) {
  animation: fadeInUpSection 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 1.2s;
}

.sidebar-column .sidebar-section:nth-of-type(2) {
  animation: fadeInUpSection 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 1.2s;
}

.sidebar-column .sidebar-section:nth-of-type(3) {
  animation: fadeInUpSection 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 1.2s;
}

.sidebar-column .sidebar-section:nth-of-type(4) {
  animation: fadeInUpSection 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 1.2s;
}

#experience-section {
  animation: fadeInUpSection 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 1.2s;
}

#highlights-section {
  animation: fadeInUpSection 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 1.2s;
}

#products-section,
#downloads-section {
  animation: fadeInUpSection 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 1.2s;
}

footer.site-footer {
  animation: fadeInUpSection 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 1.2s;
}

/* Mobile Breakpoint for Downloads */
@media (max-width: 530px) {
  .downloads-container {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .downloads-action {
    width: auto !important;
  }
  .download-cta-btn {
    width: auto !important;
    flex-direction: row-reverse;
    padding: 0.5rem 1.75rem 0.5rem 0.5rem !important;
  }
  .download-text {
    margin-right: 0 !important;
    margin-left: 12px;
  }
  .download-cta-btn::before {
    right: auto !important;
    left: 8px !important;
  }
}

/* Accessibility: Support Users Who Prefer Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .hero-banner,
  .hero-banner-inner,
  .hero-avatar-circle,
  .hero-avatar-img,
  .hero-info-col h1,
  .hero-info-col .hero-subtitle,
  .hero-links-card,
  .hero-desc-card,
  .sidebar-column .sidebar-section,
  #experience-section,
  #highlights-section,
  #products-section,
  footer.site-footer {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ==========================================================================
   7. PDF & Print Media Queries (Recruiter Print stylesheet)
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }

  @page {
    size: A4 portrait;
    margin: 15mm 15mm 15mm 15mm;
  }

  :root {
    --bg-primary: #ffffff;
    --bg-secondary: #ffffff;
    --bg-tertiary: #ffffff;
    --text-primary: #000000;
    --text-secondary: #222222;
    --text-muted: #555555;
    --accent-primary: #111111;
    --accent-glow: transparent;
    --border-color: #dddddd;
    --card-shadow: none;
    --hover-shadow: none;
  }

  body {
    background: #ffffff;
    color: #000000;
    font-size: 9.5pt;
    line-height: 1.4;
  }

  .app-container {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

  /* Hide non-printable items */
  .theme-toggle-btn,
  .site-header {
    display: none !important;
  }

  /* Suppress the sweep hover effect in print */
  a::before {
    display: none !important;
  }

  a {
    color: #000000 !important;
    text-decoration: underline;
  }

  /* Optimize Hero layout for printing */
  .hero-banner {
    background: transparent !important;
    border-radius: 0;
    margin-bottom: 15px;
    box-shadow: none;
    color: #000000 !important;
  }

  .hero-banner-content {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 15px;
    align-items: start;
  }

  .hero-avatar-col {
    padding: 0;
  }

  .hero-avatar-wrapper {
    height: 80px;
    width: 80px;
  }

  .hero-avatar-img {
    height: 80px;
    width: 80px;
    border-radius: 4px;
    object-fit: cover;
  }

  .hero-avatar-circle {
    display: none !important;
  }

  .hero-info-col {
    padding: 0;
  }

  .hero-info-col h1 {
    font-size: 20pt;
    margin-bottom: 2px;
    color: #000000 !important;
  }

  .hero-info-col .hero-subtitle {
    font-size: 11pt;
    color: #222222 !important;
    margin-bottom: 0;
  }

  /* Optimize Hero details row for printing */
  .hero-details-row {
    display: grid;
    grid-template-columns: 1fr 2.3fr;
    gap: 25px;
    margin-bottom: 15px;
    border-bottom: 1px solid #000000;
    padding-bottom: 12px;
  }

  .hero-links-card,
  .hero-desc-card {
    padding: 0;
    background: transparent !important;
    box-shadow: none;
    border-radius: 0;
  }

  .hero-links-card .profile-links {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
  }

  .hero-links-card .contact-item {
    font-size: 8pt;
    color: #333333 !important;
  }

  .hero-links-card .contact-item a {
    color: #333333 !important;
    text-decoration: underline;
  }

  .hero-desc-card .hero-summary {
    font-size: 9.5pt;
    color: #222222 !important;
    line-height: 1.4;
  }

  /* Two columns layout for print resume */
  .main-layout {
    display: grid;
    grid-template-columns: 1fr 2.3fr;
    gap: 25px;
  }

  .sidebar-section {
    border: none;
    padding: 0;
    margin-bottom: 15px;
    box-shadow: none;
  }

  h2 {
    font-size: 12pt;
    margin-bottom: 10px;
    padding-bottom: 2px;
    border-bottom: 1px solid #333333;
    padding-left: 0;
  }

  h2::after {
    display: none;
  }

  .section-num {
    position: static;
    margin-right: 4px;
  }

  .stats-list,
  .lang-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .stat-card,
  .lang-item {
    padding: 6px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    background: transparent !important;
  }

  .stat-num {
    font-size: 12pt;
  }

  .stat-unit {
    font-size: 7.5pt;
  }

  .stat-label {
    font-size: 9pt;
  }

  .lang-name {
    font-size: 9pt;
  }

  .lang-level {
    font-size: 7.5pt;
  }

  .skill-cat-title {
    font-size: 9pt;
    margin-bottom: 4px;
  }

  .skill-tag {
    font-size: 8pt;
    padding: 1px 5px;
    border-radius: 3px;
    border: 1px solid #777777;
    background: transparent !important;
    color: #000 !important;
  }

  .edu-item {
    margin-bottom: 8px;
  }

  .edu-degree {
    font-size: 9pt;
  }

  /* Experience layout in print */
  .experience-timeline {
    padding-left: 0;
  }

  .experience-timeline::before {
    display: none;
  }

  .timeline-dot {
    display: none;
  }

  .timeline-content {
    border: none;
    padding: 0;
    margin-bottom: 16px;
    box-shadow: none;
  }

  .timeline-item {
    margin-bottom: 16px;
    page-break-inside: avoid;
  }

  .timeline-header {
    margin-bottom: 4px;
  }

  .role-title {
    font-size: 10pt;
  }

  .timeline-date {
    font-size: 8pt;
    border: none;
    background: transparent;
    padding: 0;
  }

  .timeline-body {
    font-size: 9pt;
  }

  /* Highlights in print */
  .highlights-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .highlight-card {
    border: none;
    padding: 0;
    margin-bottom: 8px;
    page-break-inside: avoid;
    box-shadow: none;
  }

  .highlight-client {
    font-size: 9.5pt;
  }

  .highlight-tag {
    font-size: 6pt;
    border: 1px solid #888888;
    background: transparent;
    color: #000;
  }

  .highlight-desc {
    font-size: 8.5pt;
  }

  footer.site-footer {
    display: none;
  }
}

/* Hardware Acceleration For Safari Jitter */
.hero-avatar-img,
.hero-avatar-circle,
.hero-hello,
.hero-name-text,
.hero-subtitle,
.hero-title-group {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  -webkit-perspective: 1000;
  perspective: 1000;
}

/* Toast Notification */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  transform: translateX(120%);
  background-color: #ffffff;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 8px;
  text-align: center;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 9999;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  white-space: nowrap;
}

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

[data-theme="dark"] .hero-info-col h1,
[data-theme="dark"] .hero-info-col .hero-subtitle {
  color: #ffffff;
}

/* Force link hover states on touch devices so they are always visible */
@media (hover: none) and (pointer: coarse) {
  a::before,
  .product-link::before {
    transform: scaleX(1) !important;
  }
  .product-link::after {
    opacity: 1 !important;
  }
  .download-cta-btn {
    color: #000 !important;
  }
  [data-theme="dark"] .download-cta-btn {
    color: var(--text-primary) !important;
  }
  .download-cta-btn::before {
    width: calc(100% - 16px) !important;
    transform: translateY(-50%) !important;
  }
}
