/* CV Terminal Theme CSS - Extracted from original HTML */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap');

:root {
  --bg-color: #ffffff;
  --text-color: #000000;
  --gray-light: #f5f5f5;
  --gray-medium: #e0e0e0;
  --gray-dark: #666666;
  --accent-color: #000000;
  --terminal-green: #00ff00;
  --terminal-cursor: #000000;
}

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

body {
  font-family: 'JetBrains Mono', monospace;
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.4;
  font-size: 14px;
  font-weight: 400;
  overflow-x: hidden;
}

/* Terminal-style loading animation */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  color: var(--text-color);
  font-family: 'JetBrains Mono', monospace;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 40px;
  overflow: hidden;
}

.terminal-container {
  width: 100%;
  max-width: 800px;
  min-height: 500px;
  background: var(--gray-light);
  border: 2px solid var(--text-color);
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-medium);
}

.terminal-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.terminal-buttons {
  display: flex;
  gap: 8px;
}

.terminal-button {
  width: 12px;
  height: 12px;
  border: 1px solid var(--text-color);
  background: var(--bg-color);
}

.terminal-output {
  font-size: 12px;
  line-height: 1.6;
  font-family: 'JetBrains Mono', monospace;
  flex: 1;
  min-height: 500px;
  max-height: 80vh;
  overflow-y: auto;
  overflow-x: hidden;
  white-space: pre;
  padding-bottom: 20px;
  margin-bottom: 10px;
}

/* Terminal scrollbar styling */
.terminal-output::-webkit-scrollbar {
  width: 8px;
}

.terminal-output::-webkit-scrollbar-track {
  background: var(--gray-light);
}

.terminal-output::-webkit-scrollbar-thumb {
  background: var(--text-color);
  border-radius: 0;
}

.terminal-output::-webkit-scrollbar-thumb:hover {
  background: var(--gray-dark);
}

.terminal-line {
  margin: 4px 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  opacity: 0;
  animation: fadeInLine 0.3s forwards;
}

.terminal-line.ascii-art-line {
  padding-left: 0;
  font-family: 'DejaVu Sans Mono', 'Liberation Mono', 'Consolas', 'Courier New', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  line-height: 1.0;
  color: var(--gray-dark);
  font-weight: 400;
  text-align: left;
  font-size: 12px;
  letter-spacing: 0;
  white-space: pre;
  font-variant-ligatures: none;
  /* Disable font ligatures that could break ASCII art */
  font-feature-settings: 'liga' 0, 'clig' 0;
  /* Additional ligature disabling */
  text-rendering: optimizeSpeed;
  /* Prioritize rendering speed over quality for ASCII art */
}

.terminal-line.ascii-art {
  padding-left: 0;
  font-family: 'DejaVu Sans Mono', 'Liberation Mono', 'Consolas', 'Courier New', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  line-height: 1.0;
  color: var(--text-color);
  font-weight: 400;
  text-align: left;
  font-size: 12px;
  letter-spacing: 0;
  white-space: pre;
  font-variant-ligatures: none;
  /* Disable font ligatures that could break ASCII art */
  font-feature-settings: 'liga' 0, 'clig' 0;
  /* Additional ligature disabling */
  text-rendering: optimizeSpeed;
  /* Prioritize rendering speed over quality for ASCII art */
}

@keyframes fadeInLine {
  to {
    opacity: 1;
  }
}

.terminal-line.command {
  color: var(--text-color);
  font-weight: 600;
}

.terminal-line.command::before {
  content: '$ ';
  color: var(--gray-dark);
  font-weight: 400;
}

.terminal-line.output {
  color: var(--gray-dark);
  padding-left: 20px;
}

.terminal-line.success {
  color: var(--text-color);
  font-weight: 500;
}

.terminal-line.success::before {
  content: '✓ ';
  color: var(--text-color);
  font-weight: 700;
}

.terminal-line.error {
  color: var(--text-color);
  background: rgba(255, 0, 0, 0.1);
  padding: 2px 5px;
}

.terminal-line.comment {
  color: var(--gray-dark);
  font-style: italic;
}

.terminal-line.comment::before {
  content: '# ';
}

.terminal-line.separator {
  color: var(--gray-dark);
  font-weight: 400;
  text-align: center;
  margin: 12px 0;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}

.terminal-line.separator::before {
  content: '';
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--text-color);
  animation: cursorBlink 1s infinite;
  margin-left: 2px;
}

@keyframes cursorBlink {

  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

/* Login prompt styles - Unix terminal appearance */
.terminal-line.prompt {
  color: var(--text-color);
  font-weight: 400;
  margin: 8px 0;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}

.terminal-line.prompt::before {
  content: '';
}

.terminal-line.input {
  color: var(--text-color);
  font-weight: 400;
  margin: 8px 0;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  display: inline-block;
  width: 100%;
  line-height: 1.4;
}

.prompt-text {
  color: var(--text-color);
  font-weight: 400;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  margin-right: 0;
  padding-right: 0;
}

.cursor-input {
  color: var(--text-color);
  background: transparent;
  border: none;
  outline: none;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: inherit;
  font-weight: 400;
  margin: 0;
  padding: 0;
  display: inline;
  line-height: inherit;
  vertical-align: baseline;
}

.cursor {
  color: var(--text-color);
  font-weight: 400;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  animation: terminalCursorBlink 1s infinite;
  margin: 0;
  padding: 0;
  display: inline;
  line-height: inherit;
  vertical-align: baseline;
}

@keyframes terminalCursorBlink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

/* Error messages in terminal style */
.terminal-line.error {
  color: #ff4444;
  background: none;
  padding: 4px 0;
  font-weight: 400;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  margin: 4px 0;
}

.terminal-line.error::before {
  content: '';
  color: #ff4444;
  font-weight: 400;
}

/* Success messages in terminal style */
.terminal-line.success::before {
  content: '';
  color: var(--text-color);
  font-weight: 400;
}

.loading-progress {
  position: relative;
  margin-top: 10px;
  height: 20px;
  background: var(--gray-medium);
  border: 1px solid var(--text-color);
  flex-shrink: 0;
}

.loading-progress-bar {
  height: 100%;
  background: var(--text-color);
  width: 0;
  transition: width 0.5s ease;
}

.loading-progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  font-weight: 600;
  color: var(--bg-color);
  mix-blend-mode: difference;
}

/* Modal for examples */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10001;
}

.modal-content {
  width: 90%;
  max-width: 800px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  color: var(--text-color);
  cursor: pointer;
  background: none;
  border: none;
}

/* ASCII Art Header */
.ascii-art {
  font-size: 10px;
  line-height: 1;
  margin-bottom: 20px;
  opacity: 0.3;
  white-space: pre;
  overflow: hidden;
  animation: slideIn 1s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 0.3;
  }
}

/* Enhanced navigation with glitch effect on hover */
.nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1200px;
  z-index: 100;
  background: var(--bg-color);
  border: 2px solid var(--text-color);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  /* iOS Safari specific fixes for proper stacking */
  -webkit-transform: translateX(-50%) translateZ(0);
  will-change: transform;
}

/* Smooth scrolling with offset for fixed navigation */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* Accounts for fixed nav height + spacing */
}

/* Ensure all sections are properly visible when navigated to */
#header,
#contact-info,
#skills,
#experience,
#education,
#certifications {
  scroll-margin-top: 100px; /* Accounts for fixed navigation height */
}

.nav-logo {
  font-weight: 700;
  font-size: 16px;
  position: relative;
}

.nav-logo::after {
  content: '_';
  animation: blink 1s infinite;
}

@keyframes blink {

  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

.nav-left {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-menu {
  display: flex;
  gap: 15px;
  list-style: none;
  font-size: 12px;
}

.nav-menu a {
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.2s;
  position: relative;
  padding: 2px 4px;
}

.nav-menu a:hover {
  background: var(--text-color);
  color: var(--bg-color);
}

.nav-menu a::before {
  content: '> ';
  opacity: 0;
  transition: opacity 0.2s;
}

.nav-menu a:hover::before {
  opacity: 1;
}

.nav-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-label {
  font-size: 12px;
  color: var(--gray-dark);
  font-weight: 400;
  margin-right: 5px;
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.nav-label::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--text-color);
  transform: scaleX(0);
  transform-origin: left;
  animation: expandLine 1s ease-out forwards 0.5s;
}

.nav-separator {
  font-size: 14px;
  color: var(--gray-dark);
  margin: 0 8px;
  font-weight: 300;
}

.nav-button {
  background: var(--text-color);
  color: var(--bg-color);
  padding: 8px 15px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  border: none;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.nav-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.nav-button:hover::before {
  left: 100%;
}

.nav-button:hover {
  background: var(--gray-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nav-button.secondary {
  background: var(--bg-color);
  color: var(--text-color);
  border: 2px solid var(--text-color);
  padding: 6px 13px;
}

.nav-button.secondary:hover {
  background: var(--gray-light);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--text-color);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
  transition: all 0.2s;
}

.nav-toggle:hover {
  background: var(--text-color);
  color: var(--bg-color);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  /* SPACING CONTROL: Adjust top padding to control space between menu and content */
  /* Desktop: 140px provides good spacing for navigation menu */
  padding: 150px 20px 40px;
  position: relative;
  z-index: 1;
}

/* Enhanced Header with terminal styling */
.header {
  margin-bottom: 60px;
  padding-bottom: 40px;
  border-bottom: 2px solid var(--text-color);
  position: relative;
}

.header::before {
  content: '// PROFILE.INIT';
  position: absolute;
  top: -20px;
  left: 0;
  font-size: 10px;
  color: var(--gray-dark);
  letter-spacing: 2px;
}

.header-main {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.name {
  font-size: 48px;
  font-weight: 700;
  line-height: 0.9;
  margin-bottom: 10px;
  letter-spacing: -1px;
  position: relative;
  display: inline-block;
}

.name::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text-color);
  transform: scaleX(0);
  transform-origin: left;
  animation: expandLine 1s ease-out forwards 0.5s;
}

@keyframes expandLine {
  to {
    transform: scaleX(1);
  }
}

.title {
  font-size: 16px;
  font-weight: 400;
  color: var(--gray-dark);
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.4;
}

.title::before {
  content: '$ ';
  color: var(--text-color);
  font-weight: 700;
}

.tagline {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 15px;
  color: var(--text-color);
}

.tagline-sub {
  font-size: 14px;
  font-style: italic;
  color: var(--gray-dark);
  margin-top: 10px;
  line-height: 1.5;
}

/* Enhanced contact info with code-style formatting */
.contact-info {
  background: var(--gray-light);
  padding: 20px;
  border: 2px solid var(--text-color);
  position: relative;
  overflow: hidden;
}

.contact-info::before {
  content: '/* CONTACT */';
  position: absolute;
  top: 5px;
  right: 10px;
  font-size: 10px;
  color: var(--gray-dark);
}

.contact-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-item {
  display: flex;
  margin-bottom: 8px;
  font-size: 12px;
  transition: transform 0.2s;
}

.contact-item:hover {
  transform: translateX(5px);
}

.contact-label {
  width: 80px;
  color: var(--gray-dark);
  text-transform: uppercase;
}

.contact-label::after {
  content: ':';
}

.contact-value {
  flex: 1;
  font-weight: 500;
}

/* Contact section enhancements for integrated languages */
.contact-section-divider {
  height: 1px;
  background: var(--gray-medium);
  margin: 15px 0 10px 0;
}

.contact-subtitle {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-color);
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--gray-medium);
}

.language-contact-item {
  font-size: 11px;
}

.language-contact-item .contact-label {
  width: 70px;
  font-weight: 500;
}

.language-contact-item .contact-value {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--gray-dark);
  font-weight: 600;
}

/* Core competencies with matrix effect */
.competencies {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
  margin-top: 30px;
}

.competency-item {
  background: var(--gray-light);
  padding: 20px;
  border: 2px solid var(--text-color);
  font-size: 13px;
  line-height: 1.4;
  position: relative;
  transition: all 0.3s;
  overflow: hidden;
}

.competency-item::before {
  content: '[+]';
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  color: var(--gray-dark);
  transition: color 0.3s;
}

.competency-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.competency-item:hover::before {
  color: var(--text-color);
}

/* Section styling with terminal markers */
.section {
  margin-bottom: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--gray-medium);
  position: relative;
}

.section::before {
  content: '/**';
  position: absolute;
  top: -10px;
  left: 0;
  font-size: 10px;
  color: var(--gray-dark);
}

.section::after {
  content: '**/';
  position: absolute;
  bottom: 20px;
  left: 0;
  font-size: 10px;
  color: var(--gray-dark);
}

.section:last-child {
  border-bottom: none;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-left: 20px;
}

.section-title::before {
  content: '>';
  position: absolute;
  left: 0;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

/* Enhanced Skills grid with progress bars */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.skills-category {
  background: var(--gray-light);
  border: 2px solid var(--text-color);
  padding: 15px;
  position: relative;
  transition: all 0.3s;
  min-height: 120px; /* Consistent minimum height */
}

.skills-category:hover {
  box-shadow: 5px 5px 0px var(--text-color);
  transform: translate(-2px, -2px);
}

.skills-category-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.skills-category-title::before {
  content: '// ';
  color: var(--gray-dark);
}

.skills-list {
  list-style: none;
}

.skills-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-medium);
  font-size: 12px;
  position: relative;
}

.skill-name-wrapper {
  flex-grow: 1;
}

.skill-example-button {
  background: none;
  border: 1px solid var(--gray-dark);
  color: var(--gray-dark);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  cursor: pointer;
  margin-left: 10px;
  padding: 2px 5px;
  transition: all 0.2s;
}

.skill-example-button:hover {
  background: var(--text-color);
  color: var(--bg-color);
  border-color: var(--text-color);
}

.skills-list li::before {
  content: '';
}

.skills-list li:last-child {
  border-bottom: none;
}

.skill-level {
  font-size: 10px;
  color: var(--gray-dark);
  margin-left: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Languages are now integrated in contact section - old styles removed */

/* Experience timeline */
.experience-list {
  position: relative;
  padding-left: 30px;
}

.experience-list::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--text-color);
}

.experience-item {
  position: relative;
  margin-bottom: 40px;
  background: var(--gray-light);
  padding: 20px;
  border: 2px solid var(--text-color);
}

.experience-item::before {
  content: '';
  position: absolute;
  left: -38px;
  top: 20px;
  width: 12px;
  height: 12px;
  background: var(--text-color);
  border: 4px solid var(--bg-color);
}

.experience-period {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-dark);
  margin-bottom: 5px;
}

.experience-company {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 5px;
}

.experience-title {
  font-size: 14px;
  color: var(--gray-dark);
  margin-bottom: 15px;
  font-style: italic;
}

.experience-description {
  line-height: 1.5;
  margin-bottom: 15px;
}

.experience-tasks {
  list-style: none;
}

.experience-tasks li {
  position: relative;
  padding-left: 15px;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.4;
}

.experience-tasks li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--text-color);
}

/* Education and Certifications */
.education-list,
.certification-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.education-item,
.certification-item {
  background: var(--gray-light);
  padding: 20px;
  border: 2px solid var(--text-color);
  position: relative;
  transition: all 0.2s;
}

.education-item:hover,
.certification-item:hover {
  transform: translateY(-2px);
}

.education-year,
.certification-date {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-dark);
  margin-bottom: 5px;
}

.education-title,
.certification-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 5px;
}

.education-institution,
.certification-issuer {
  font-size: 12px;
  color: var(--gray-dark);
  margin-bottom: 10px;
}

.education-description,
.certification-description {
  font-size: 12px;
  line-height: 1.4;
}

/* Mobile navigation styles */
@media (max-width: 768px) {
  .nav {
    padding: 10px 15px;
    flex-wrap: wrap;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-color);
    border: 2px solid var(--text-color);
    border-top: none;
    flex-direction: column;
    padding: 15px;
    gap: 10px;
    z-index: 99;
    /* iOS Safari specific fixes */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .container {
    /* MOBILE SPACING CONTROL: Adjust top padding for mobile screens */
    /* Mobile: 300px ensures profile text is visible below expanded menu */
    padding: 100px 15px 20px;
  }

  .header-main {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .name {
    font-size: 32px;
  }

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

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

  .education-list,
  .certification-list {
    grid-template-columns: 1fr;
  }

  .nav-buttons {
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
  }
  
  .nav-label {
    margin-bottom: 5px;
    align-self: flex-start;
  }
  
  .nav-separator {
    align-self: center;
    margin: 5px 0;
  }

  .nav-button {
    padding: 6px 10px;
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .terminal-container {
    padding: 15px;
  }

  .terminal-output {
    height: 300px;
  }

  .name {
    font-size: 24px;
  }

  .section-title {
    font-size: 18px;
  }

  .experience-list {
    padding-left: 20px;
  }

  .experience-item::before {
    left: -28px;
  }
}

/* Enhanced Print styles for A4 PDF Export */
@media print {
  @page {
    size: A4;
    margin: 15mm;
  }

  .nav,
  .loading-screen,
  .nav-toggle,
  .skill-example-button,
  .modal {
    display: none !important;
  }

  .container {
    padding: 0;
    max-width: none;
  }

  .header {
    margin-bottom: 30px;
    padding-bottom: 20px;
  }

  .section {
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 20px;
    padding-bottom: 15px;
  }

  .experience-item,
  .education-item,
  .certification-item,
  .competency-item,
  .skills-category {
    break-inside: avoid;
    page-break-inside: avoid;
    box-shadow: none !important;
    transform: none !important;
    margin-bottom: 15px;
  }

  /* Avoid orphaned titles */
  .section-title {
    break-after: avoid;
    page-break-after: avoid;
  }

  /* Keep skill categories together */
  .skills-grid {
    break-inside: auto;
  }

  /* Keep timeline items together */
  .experience-list {
    break-inside: auto;
  }

  /* Ensure proper spacing for sections */
  .header {
    break-after: avoid;
    page-break-after: avoid;
    margin-bottom: 25px;
  }

  body {
    font-size: 10px;
    line-height: 1.3;
    -webkit-print-color-adjust: exact;
    color-adjust: exact;
  }

  .name {
    font-size: 28px;
  }

  .title {
    font-size: 14px;
  }

  .section-title {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .tagline {
    font-size: 12px;
  }

  .header-main {
    gap: 20px;
  }

  .competencies {
    gap: 10px;
  }

  .skills-grid,
  .education-list,
  .certification-list {
    gap: 15px;
  }

  .contact-info {
    padding: 15px;
  }

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

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

/* Login hint styling */
.login-hint {
  position: relative !important;
  bottom: auto !important;
  margin-top: 10px !important;
  text-align: center !important;
  color: var(--gray-dark) !important;
  font-size: 12px !important;
  font-family: 'JetBrains Mono', 'Courier New', monospace !important;
  flex-shrink: 0;
}

/* iOS Safari specific fixes for navigation positioning */
@supports (-webkit-touch-callout: none) {
  .nav {
    /* Ensure navigation stays at top of viewport on iOS */
    position: -webkit-sticky;
    position: sticky;
    top: 20px;
    z-index: 1000;
    /* Force hardware acceleration on iOS */
    -webkit-transform: translateX(-50%) translate3d(0, 0, 0);
    transform: translateX(-50%) translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* Prevent touch callouts on navigation */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    /* Ensure proper compositing layer */
    isolation: isolate;
    /* Prevent scrolling issues */
    -webkit-overflow-scrolling: touch;
  }
  
  .nav-logo {
    /* Ensure logo text renders properly on iOS */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Prevent text selection issues */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    /* Force text rendering on separate layer */
    will-change: contents;
  }
  
  .nav-menu {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    z-index: 999;
    /* Improve menu rendering on iOS */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  .nav-buttons {
    /* Ensure buttons render properly on iOS */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
  
  /* Ensure header content has enough top margin to stay below nav */
  .container {
    padding-top: 180px; /* Increased padding for iOS to ensure menu doesn't overlap */
  }
  
  .header {
    z-index: 1; /* Keep header below navigation */
  }
}

/* Additional iOS fixes for webkit browsers */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  .nav {
    /* Ensure consistent positioning across different iOS versions */
    -webkit-perspective: 1000px;
    perspective: 1000px;
  }
  
  .nav-logo {
    /* Fix potential text rendering issues on retina displays */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    text-rendering: optimizeLegibility;
  }
}

/* Simple blink animation for cursor */
@keyframes blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}
