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

:root {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: #ffffff;
  --bg-dark: #0f172a;
  
  /* Primary tech gradient: Emerald Cyan to Electric Sapphire */
  --accent: #00b894;
  --accent-secondary: #0984e3;
  --accent-glow: rgba(0, 184, 148, 0.12);
  --accent-blue-glow: rgba(9, 132, 227, 0.12);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border: rgba(226, 232, 240, 0.85);
  --border-dark: rgba(15, 23, 42, 0.12);
  --border-focus: rgba(0, 184, 148, 0.4);
  
  --gradient-primary: linear-gradient(135deg, #00b894 0%, #0984e3 100%);
  --gradient-secondary: linear-gradient(135deg, #0984e3 0%, #6c5ce7 100%);
  --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --gradient-wave: linear-gradient(135deg, rgba(0,184,148,0.15), rgba(9,132,227,0.15));
  
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.09);
  --shadow-accent: 0 8px 25px rgba(0, 184, 148, 0.2);
  --shadow-blue: 0 8px 25px rgba(9, 132, 227, 0.2);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ===== TYPOGRAPHY & CODE LABELS (Tomasz Gajda style) ===== */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Section Title & Header with Tomasz Gajda Framed Tag */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
}

.section-tag-box {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.section-tag-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 1.1rem;
  border-radius: var(--radius-full);
  background: var(--accent-glow);
  border: 1px solid rgba(0, 184, 148, 0.25);
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  font-weight: 800;
  margin-bottom: 0.85rem;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin: 0.8rem auto 1.2rem;
  width: 120px;
}

.section-divider-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent));
}

.section-divider-line.right {
  background: linear-gradient(90deg, var(--accent), transparent);
}

.section-divider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.section-desc {
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.02rem;
}

/* ===== MODERN 3D WAVE DIVIDERS BETWEEN SECTIONS ===== */
.wave-divider {
  position: relative;
  width: 100%;
  line-height: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.wave-divider svg {
  display: block;
  width: calc(100% + 2px);
  height: 65px;
  transition: transform 0.5s ease;
}

.wave-divider.wave-flip svg {
  transform: rotate(180deg);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.1rem 2rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 0.75rem 2rem;
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.95);
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: var(--shadow-accent);
  letter-spacing: -0.5px;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.nav-role {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  padding: 0.3rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.25s ease;
  border-radius: 2px;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: #fff !important;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-accent);
  transition: var(--transition);
}

.nav-action-btn::after {
  display: none !important;
}

.nav-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 184, 148, 0.3);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  z-index: 1001;
}

.hamburger span {
  width: 26px;
  height: 2.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 7.5rem 2rem 5rem;
  overflow: hidden;
  background: linear-gradient(135deg, #f0fdf4 0%, #f8fafc 40%, #eff6ff 100%);
}

/* Dedicated Mouse-Interaction IT Tech Canvas for First Page */
#hero-tech-canvas, #hero-bubbles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.05;
  background-image: 
    linear-gradient(rgba(0, 184, 148, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9, 132, 227, 0.4) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-circuit-svg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0.07;
  pointer-events: none;
}

.hero-circuit-svg svg {
  width: 100%;
  height: 100%;
}

.circuit-path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
}

.hero-container {
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  animation: fadeInUp 0.8s ease;
}

.hero-badge-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

/* Enterprise Term Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-full);
  background: rgba(0, 184, 148, 0.09);
  border: 1px solid rgba(0, 184, 148, 0.3);
  font-size: 0.84rem;
  color: #047857;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 10px rgba(0, 184, 148, 0.08);
}

.hero-location-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  background: rgba(9, 132, 227, 0.08);
  border: 1px solid rgba(9, 132, 227, 0.2);
  font-size: 0.82rem;
  color: var(--accent-secondary);
  font-weight: 600;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 2s infinite;
}

.hero-greeting {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-title {
  font-size: clamp(2.5rem, 5.2vw, 4.2rem);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  letter-spacing: -1px;
}

.hero-subtitle-box {
  display: flex;
  align-items: center;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 700;
  color: var(--accent-secondary);
  margin-bottom: 1.25rem;
  min-height: 2.2rem;
}

.typing-cursor {
  color: var(--accent);
  animation: blinkCursor 0.9s infinite;
  margin-left: 3px;
  font-weight: 300;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 1.8rem;
  line-height: 1.8;
}

/* Tomasz Gajda Style Quick-Contact Strip in Hero */
.hero-quick-contacts {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.quick-contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.quick-contact-pill i {
  color: var(--accent);
}

.quick-contact-pill:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.hero-buttons {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 2.8rem;
}

/* BUTTONS */
.btn {
  padding: 0.8rem 1.45rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 184, 148, 0.3);
  color: #fff;
}

.btn-outline {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
  color: #fff;
}

.btn-cv {
  background: #1e293b;
  color: #fff;
  box-shadow: 0 6px 20px rgba(30, 41, 59, 0.2);
}

.btn-cv:hover {
  background: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.3);
  color: #fff;
}

/* STATS */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat-item {
  text-align: left;
}

.stat-number {
  font-size: 1.95rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  line-height: 1.3;
}

/* ===== PRISTINE CLEAN PROFILE IMAGE (Nothing distracting on top or around) ===== */
.hero-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: fadeInRight 0.8s ease 0.2s both;
}

.profile-clean-card {
  position: relative;
  width: 330px;
  height: 410px;
  border-radius: 26px;
  overflow: hidden;
  background: #ffffff;
  border: 6px solid #ffffff;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(226, 232, 240, 0.8);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease;
}

.profile-clean-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 32px 65px rgba(15, 23, 42, 0.16), 0 0 30px rgba(0, 184, 148, 0.18);
}

.profile-clean-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-clean-card:hover .profile-clean-img {
  transform: scale(1.04);
}

/* ===== SECTIONS GLOBAL ===== */
section {
  position: relative;
  z-index: 1;
  padding: 5.5rem 2rem;
}

section:nth-child(even) {
  background-color: var(--bg-secondary);
}

section:nth-child(odd) {
  background-color: var(--bg-primary);
}

.section-container {
  max-width: 1240px;
  margin: 0 auto;
}

/* ===== ABOUT SECTION ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: start;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  font-size: 1.02rem;
  line-height: 1.85;
}

.about-text p strong {
  color: var(--text-primary);
  font-weight: 600;
}

.about-key-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.8rem;
  margin-bottom: 2rem;
}

.about-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.about-pill i {
  color: var(--accent);
}

.about-pill:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.highlight-card {
  padding: 1.4rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  transform-style: preserve-3d;
}

.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 184, 148, 0.3);
}

.highlight-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  color: var(--accent);
  font-size: 1.2rem;
}

.highlight-icon.blue {
  background: var(--accent-blue-glow);
  color: var(--accent-secondary);
}

.highlight-title {
  font-weight: 700;
  font-size: 0.98rem;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}

.highlight-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.personal-info-card {
  margin-top: 1.5rem;
  padding: 1.4rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(240, 253, 244, 0.6) 0%, rgba(239, 246, 255, 0.6) 100%);
  border: 1px solid var(--border);
}

.personal-info-card h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.info-items-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  font-size: 0.85rem;
}

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

.info-item span:first-child {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.info-item span:last-child {
  font-weight: 600;
  color: var(--text-primary);
}

/* ===== TOMASZ GAJDA STYLED SKILLS MATRIX ===== */
.tg-skills-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.tg-skills-group {
  position: relative;
}

.tg-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}

.tg-group-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.tg-group-title i {
  color: var(--accent);
}

.tg-group-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--accent-glow);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tg-group-badge.purple {
  background: rgba(108, 92, 231, 0.1);
  color: #6c5ce7;
}

.tg-group-badge.blue {
  background: rgba(9, 132, 227, 0.1);
  color: var(--accent-secondary);
}

.tg-skills-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.tg-skill-tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.tg-skill-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
}

.tg-skill-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 184, 148, 0.35);
}

.tg-skill-tile:hover::before {
  opacity: 1;
}

.tg-tile-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(241, 245, 249, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--accent);
  transition: var(--transition);
}

.tg-skill-tile:hover .tg-tile-icon {
  background: var(--gradient-primary);
  color: #fff;
  transform: scale(1.08);
}

.tg-tile-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.tg-tile-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

/* ===== EXPERIENCE TIMELINE ===== */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 15px;
  bottom: 20px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent) 0%, var(--accent-secondary) 70%, transparent 100%);
}

.timeline-item {
  position: relative;
  padding-left: 78px;
  margin-bottom: 2.8rem;
}

.timeline-dot {
  position: absolute;
  left: 23px;
  top: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 3.5px solid var(--accent);
  z-index: 2;
  transition: var(--transition);
  box-shadow: 0 0 0 4px rgba(0, 184, 148, 0.1);
}

.timeline-item:hover .timeline-dot {
  background: var(--accent);
  box-shadow: 0 0 16px rgba(0, 184, 148, 0.5);
  transform: scale(1.15);
}

.timeline-card {
  padding: 1.8rem;
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  transform-style: preserve-3d;
}

.timeline-card:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 184, 148, 0.3);
}

.timeline-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.timeline-date {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 700;
  background: var(--accent-glow);
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-full);
}

.timeline-location-tag {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.timeline-role {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.timeline-company {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-secondary);
  margin-bottom: 1rem;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.timeline-desc ul {
  list-style: none;
}

.timeline-desc li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.55rem;
}

.timeline-desc li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.timeline-tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
}

.timeline-pill {
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: rgba(9, 132, 227, 0.06);
  color: var(--accent-secondary);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
}

/* ===== PROJECTS / DEPLOYMENTS (Tomasz Gajda Filterable Portfolio Style) ===== */
.portfolio-filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2.8rem;
}

.filter-btn {
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: var(--text-primary);
  color: #fff;
  border-color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.15);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.7rem;
}

.project-card {
  padding: 1.8rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
}

.project-card.hidden {
  display: none !important;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 184, 148, 0.3);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.project-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  box-shadow: var(--shadow-accent);
}

.project-icon.blue {
  background: var(--gradient-secondary);
  box-shadow: var(--shadow-blue);
}

.project-category-badge {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  background: var(--accent-glow);
  color: var(--accent);
}

.project-title {
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
  color: var(--text-primary);
  line-height: 1.35;
}

.project-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  flex: 1;
  margin-bottom: 1.25rem;
  line-height: 1.65;
}

.project-features {
  margin-bottom: 1.25rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.project-features li {
  list-style: none;
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.3rem;
}

.project-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.project-tech span {
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.72rem;
  background: rgba(9, 132, 227, 0.07);
  border: 1px solid rgba(9, 132, 227, 0.15);
  color: var(--accent-secondary);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
}

/* ===== EDUCATION SECTION ===== */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.edu-card {
  padding: 2.2rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.edu-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.edu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.edu-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  color: #fff;
  font-size: 1.4rem;
  box-shadow: var(--shadow-accent);
}

.edu-degree {
  font-size: 1.28rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.edu-school {
  color: var(--accent-secondary);
  font-weight: 600;
  font-size: 0.98rem;
  margin-bottom: 0.5rem;
}

.edu-year {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.8rem;
}

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

/* ===== CERTIFICATIONS SECTION ===== */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.cert-card {
  padding: 1.4rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
}

.cert-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 184, 148, 0.25);
}

.cert-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.cert-issuer {
  font-size: 0.72rem;
  color: var(--accent-secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cert-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.cert-name {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.cert-badge-tag {
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: var(--accent-glow);
  color: #059669;
  font-weight: 600;
}

/* ===== CONTACT SECTION ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.35rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.contact-card:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 184, 148, 0.3);
}

.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.contact-icon.whatsapp {
  background: #25d366;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.25);
}

.contact-icon.blue {
  background: var(--gradient-secondary);
  box-shadow: var(--shadow-blue);
}

.contact-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.contact-value {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text-primary);
}

/* CONTACT FORM */
.contact-form-container {
  padding: 2.2rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.form-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.form-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.12);
}

.form-group textarea {
  min-height: 125px;
  resize: vertical;
}

.form-buttons-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* ===== FOOTER (Tomasz Gajda Minimalist Polish) ===== */
.footer {
  padding: 3.5rem 2rem 2.2rem;
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  position: relative;
  z-index: 1;
}

.footer-content {
  max-width: 1240px;
  margin: 0 auto;
}

.footer-back-to-top-wrap {
  margin-bottom: 2rem;
}

.footer-top-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-primary);
  transition: var(--transition);
}

.footer-top-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.footer-brand {
  margin-bottom: 1.5rem;
}

.footer-brand-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--text-primary);
}

.footer-brand-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1.8rem;
}

.footer-links a {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #fff;
  background: var(--gradient-primary);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: var(--shadow-accent);
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ===== BACK TO TOP FLOATING BUTTON ===== */
.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: var(--shadow-accent);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 184, 148, 0.4);
}

/* ===== 3D PAGE TRANSITIONS & SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: perspective(1000px) rotateX(10deg) translateY(42px) scale(0.97);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center bottom;
  will-change: transform, opacity;
}

.reveal.active {
  opacity: 1;
  transform: perspective(1000px) rotateX(0deg) translateY(0) scale(1);
}

.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.4s; }

/* ===== KEYFRAMES ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: perspective(800px) rotateX(8deg) translateY(30px);
  }
  to {
    opacity: 1;
    transform: perspective(800px) rotateX(0) translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: perspective(800px) rotateY(-8deg) translateX(30px);
  }
  to {
    opacity: 1;
    transform: perspective(800px) rotateY(0) translateX(0);
  }
}

@keyframes pulseGreen {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

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

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 1100px) {
  .tg-skills-tiles {
    grid-template-columns: repeat(3, 1fr);
  }
  .projects-grid, .certs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 290px;
    height: 100vh;
    flex-direction: column;
    background: var(--bg-secondary);
    padding: 5.5rem 2.2rem 3rem;
    gap: 1.5rem;
    align-items: flex-start;
    transition: right 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 1px solid var(--border);
    box-shadow: -15px 0 35px rgba(0, 0, 0, 0.08);
  }

  .nav-links.active {
    right: 0;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-badge-wrap {
    justify-content: center;
  }

  .hero-subtitle-box {
    justify-content: center;
  }

  .hero-desc {
    margin: 0 auto 1.8rem;
  }

  .hero-quick-contacts {
    justify-content: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    text-align: center;
  }

  .stat-item {
    text-align: center;
  }

  .hero-image-wrapper {
    order: -1;
  }

  .profile-clean-card {
    width: 280px;
    height: 350px;
  }

  .about-grid, .contact-grid, .edu-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

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

  .timeline {
    padding-left: 0;
  }

  .timeline::before {
    left: 18px;
  }

  .timeline-dot {
    left: 9px;
  }

  .timeline-item {
    padding-left: 48px;
  }
}

@media (max-width: 600px) {
  section {
    padding: 4.5rem 1.25rem;
  }

  .hero {
    padding: 6.5rem 1.25rem 4rem;
  }

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

  .projects-grid, .certs-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .form-buttons-row {
    flex-direction: column;
  }
}
