/* ===================================================================
   PORTFOLIO & RESUME STYLESHEET
   Author: Kostiantyn Oliinyk (Костянтин Олійник)
   Theme: Modern Developer Portfolio with Dark/Light & i18n
   =================================================================== */

:root {
  /* Color Palette - Dark Mode (Default) */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --bg-glass: rgba(30, 41, 59, 0.85);
  --bg-card: rgba(30, 41, 59, 0.7);
  --bg-card-hover: rgba(51, 65, 85, 0.9);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-primary: #38bdf8;       /* Cyan */
  --accent-secondary: #818cf8;     /* Indigo */
  --accent-tertiary: #34d399;      /* Emerald */
  --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  --accent-glow: rgba(56, 189, 248, 0.25);

  --border-subtle: rgba(148, 163, 184, 0.15);
  --border-focus: rgba(56, 189, 248, 0.5);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.4);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --container-width: 1140px;
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #e2e8f0;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-card: rgba(255, 255, 255, 0.8);
  --bg-card-hover: #ffffff;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --accent-primary: #0284c7;
  --accent-secondary: #6366f1;
  --accent-tertiary: #059669;
  --accent-gradient: linear-gradient(135deg, #0284c7 0%, #6366f1 50%, #9333ea 100%);
  --accent-glow: rgba(2, 132, 199, 0.15);

  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-focus: rgba(2, 132, 199, 0.5);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.08);
}

/* 404 Error Page */
.error-page {
  min-height: calc(100vh - 4.5rem - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  text-align: center;
}

.error-card {
  max-width: 600px;
  width: 100%;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.error-code {
  font-size: 7rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  font-family: var(--font-mono);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 10px 30px var(--accent-glow);
}

.error-icon {
  font-size: 3.5rem;
  margin-bottom: -0.5rem;
}

.error-title {
  font-size: 2rem;
  letter-spacing: -0.02em;
}

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

.error-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
}

/* Background Ambient Glows */
.bg-ambient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  transition: opacity 0.3s ease;
}

.blob-1 {
  top: -10%;
  left: 15%;
  width: 500px;
  height: 500px;
  background: var(--accent-primary);
}

.blob-2 {
  top: 40%;
  right: -5%;
  width: 450px;
  height: 450px;
  background: var(--accent-secondary);
}

.blob-3 {
  bottom: -10%;
  left: 30%;
  width: 550px;
  height: 550px;
  background: var(--accent-tertiary);
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography & Helpers */
h1, h2, h3, h4 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid var(--border-subtle);
  color: var(--accent-primary);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.section-title {
  font-size: 2.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

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

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.brand-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 4px 12px var(--accent-glow);
}

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

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.25rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-primary);
  border-radius: var(--radius-full);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Control Buttons (Lang & Theme) */
.btn-control {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-control:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-focus);
  transform: translateY(-1px);
}

.lang-btn {
  min-width: 92px;
  justify-content: center;
}

.lang-flag {
  font-size: 1rem;
  line-height: 1;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 4.5rem;
  left: 0;
  width: 100%;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 99;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-links a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: block;
  padding: 0.5rem 0;
}

.mobile-nav-links a:hover {
  color: var(--accent-primary);
}

/* Hero Section */
.hero {
  padding: 5.5rem 0 4rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: var(--accent-tertiary);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  width: fit-content;
}

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-title {
  font-size: 3.25rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--accent-primary);
}

.hero-description {
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.7;
}

.hero-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.75rem;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
  filter: brightness(1.05);
}

.btn-secondary {
  background: var(--bg-secondary);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-focus);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.btn-outline:hover {
  background: rgba(56, 189, 248, 0.1);
  transform: translateY(-2px);
}

/* Hero Visual / Code Card */
.hero-visual {
  position: relative;
}

.code-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  transition: var(--transition);
}

.code-card:hover {
  border-color: var(--border-focus);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.code-header {
  background: var(--bg-tertiary);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.code-dots {
  display: flex;
  gap: 0.4rem;
}

.code-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.code-dot.red { background: #ef4444; }
.code-dot.yellow { background: #f59e0b; }
.code-dot.green { background: #10b981; }

.code-filename {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.code-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.code-keyword { color: #f43f5e; font-weight: 600; }
.code-class { color: #38bdf8; font-weight: 600; }
.code-fn { color: #a855f7; }
.code-string { color: #34d399; }
.code-comment { color: var(--text-muted); font-style: italic; }
.code-var { color: #fbbf24; }

.floating-stats-card {
  position: absolute;
  bottom: -1.5rem;
  right: -1rem;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-md);
}

.stats-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

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

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

.stats-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Sections General */
section {
  padding: 5rem 0;
}

/* Philosophy / Core Mindset Cards */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.philosophy-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.philosophy-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: var(--transition);
}

.philosophy-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.philosophy-card:hover::before {
  opacity: 1;
}

.philosophy-icon-wrap {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  border: 1px solid var(--border-subtle);
}

.philosophy-card.green .philosophy-icon-wrap {
  background: rgba(52, 211, 153, 0.1);
  color: var(--accent-tertiary);
}

.philosophy-card.indigo .philosophy-icon-wrap {
  background: rgba(129, 140, 248, 0.1);
  color: var(--accent-secondary);
}

.philosophy-card.amber .philosophy-icon-wrap {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
}

.philosophy-card.purple .philosophy-icon-wrap {
  background: rgba(192, 132, 252, 0.1);
  color: #c084fc;
}

.philosophy-title {
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.philosophy-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.philosophy-quote {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Skills Section */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.skill-category {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skill-category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.skill-cat-icon {
  font-size: 1.5rem;
}

.skill-category-title {
  font-size: 1.25rem;
}

.skill-items-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skill-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.skill-item:hover {
  border-color: var(--border-focus);
  transform: translateX(4px);
}

.skill-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.skill-icon {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.skill-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-primary);
  font-weight: 600;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.project-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.project-banner {
  height: 190px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.project-banner-decor {
  font-size: 4rem;
  opacity: 0.85;
  transition: var(--transition);
}

.project-card:hover .project-banner-decor {
  transform: scale(1.1);
}

.project-badge-float {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: var(--accent-primary);
  border: 1px solid var(--border-subtle);
}

.project-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.project-title {
  font-size: 1.35rem;
}

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

.project-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0.5rem 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.project-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.project-features li::before {
  content: "✓";
  color: var(--accent-tertiary);
  font-weight: bold;
}

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

.tech-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.project-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

/* Education & Journey Section */
.education-wrap {
  max-width: 800px;
  margin: 0 auto;
}

.timeline {
  position: relative;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 15px;
  width: 2px;
  background: var(--border-subtle);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-marker {
  position: absolute;
  left: -2.5rem;
  top: 0.25rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--accent-primary);
  box-shadow: 0 0 12px var(--accent-glow);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
}

.timeline-card:hover {
  border-color: var(--border-focus);
  transform: translateX(4px);
}

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

.timeline-period {
  font-size: 0.85rem;
  color: var(--accent-primary);
  font-weight: 600;
  background: rgba(56, 189, 248, 0.1);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.timeline-institution {
  font-size: 1.25rem;
  color: var(--text-primary);
}

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

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

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 3rem;
  align-items: start;
}

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

.contact-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.contact-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-2px);
}

.contact-card-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.contact-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.contact-card-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.contact-card-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-all;
}

.btn-copy {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1.1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

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

.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

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

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

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

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0 2rem;
  margin-top: 5rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

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

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--accent-primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Modal Window for Minesweeper Game */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
}

.modal-close:hover {
  color: var(--accent-primary);
}

.modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

/* Minesweeper Mini-Game Engine Styles */
.game-stats {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 360px;
  background: var(--bg-tertiary);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
}

.game-stat-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.minesweeper-board {
  display: grid;
  grid-template-columns: repeat(8, 40px);
  grid-template-rows: repeat(8, 40px);
  gap: 3px;
  background: var(--bg-tertiary);
  padding: 6px;
  border-radius: var(--radius-sm);
  user-select: none;
  -webkit-user-select: none;
}

.ms-cell {
  width: 40px;
  height: 40px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.ms-cell:hover:not(.revealed) {
  background: var(--border-focus);
}

.ms-cell.revealed {
  background: var(--bg-primary);
  border-color: rgba(255, 255, 255, 0.05);
  cursor: default;
}

.ms-cell.mine {
  background: #ef4444 !important;
  color: #fff;
}

.ms-cell[data-count="1"] { color: #38bdf8; }
.ms-cell[data-count="2"] { color: #34d399; }
.ms-cell[data-count="3"] { color: #f43f5e; }
.ms-cell[data-count="4"] { color: #818cf8; }
.ms-cell[data-count="5"] { color: #fbbf24; }
.ms-cell[data-count="6"] { color: #06b6d4; }

.game-controls {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.game-message {
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  min-height: 1.5rem;
}

/* ===================================================================
   PRINT STYLESHEET (Clean PDF / Paper CV Generation)
   =================================================================== */
@media print {
  body {
    background: #ffffff !important;
    color: #111827 !important;
    font-size: 12pt;
    line-height: 1.4;
  }

  .bg-ambient,
  .navbar,
  .hero-cta,
  .modal-overlay,
  .toast,
  .btn-control,
  .mobile-menu-toggle,
  .project-actions,
  .contact-form-wrap,
  .footer,
  .floating-stats-card {
    display: none !important;
  }

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

  .hero {
    padding: 1rem 0 1.5rem !important;
  }

  .hero-grid {
    display: block !important;
  }

  .hero-title {
    font-size: 24pt !important;
    color: #0f172a !important;
  }

  .gradient-text {
    background: none !important;
    -webkit-background-clip: unset !important;
    color: #0f172a !important;
  }

  .hero-subtitle {
    font-size: 14pt !important;
    color: #3b82f6 !important;
    margin-bottom: 0.5rem;
  }

  .code-card {
    display: none !important;
  }

  section {
    padding: 1.5rem 0 !important;
    page-break-inside: avoid;
  }

  .section-title {
    font-size: 16pt !important;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.3rem;
    margin-bottom: 1rem !important;
    text-align: left !important;
  }

  .section-badge {
    display: none !important;
  }

  .section-subtitle {
    text-align: left !important;
    margin-bottom: 1rem !important;
    font-size: 10pt !important;
  }

  .philosophy-grid,
  .projects-grid,
  .skills-container {
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
  }

  .philosophy-card,
  .project-card,
  .skill-category,
  .timeline-card,
  .contact-card {
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    box-shadow: none !important;
    padding: 1rem !important;
    page-break-inside: avoid;
  }

  .project-banner {
    display: none !important;
  }

  .contact-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-visual {
    order: -1;
  }

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .philosophy-grid,
  .projects-grid,
  .skills-container {
    grid-template-columns: 1fr;
  }

  .floating-stats-card {
    position: static;
    margin-top: 1rem;
  }
}
