/* ============================================
   MODERN PERSONAL WEBSITE - CSS
   Clean, minimalist design
   ============================================ */

:root {
  /* Colors */
  --bg: #0f1115;
  --bg-secondary: #171a20;
  --bg-tertiary: #1e222b;
  --text: #eceff4;
  --text-secondary: #b6beca;
  --text-light: #8993a3;
  --border: #2a303b;
  --accent: #d6dde8;
  --accent-hover: #ffffff;
  --accent-light: #9ba6b8;
  --success: #9ad8b2;
  --warning: #e9c885;
  --bg-gradient: radial-gradient(
      circle at 12% 10%,
      rgba(255, 255, 255, 0.035),
      transparent 45%
    ),
    linear-gradient(180deg, #0f1115 0%, #13161d 100%);

  /* Spacing */
  --sp-xs: 0.25rem;
  --sp-sm: 0.5rem;
  --sp-md: 1rem;
  --sp-lg: 1.5rem;
  --sp-xl: 2rem;
  --sp-2xl: 3rem;
  --sp-3xl: 4rem;

  /* Typography */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.5rem;

  /* Other */
  --container-width: 1000px;
  --transition: all 0.3s ease;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0f14;
    --bg-secondary: #151922;
    --bg-tertiary: #1c212c;
    --text: #eef2f8;
    --text-secondary: #c0c8d6;
    --text-light: #8f9bb0;
    --border: #2b3342;
    --accent: #d8e1ef;
    --accent-hover: #ffffff;
    --accent-light: #a2b0c5;
    --success: #9ad8b2;
    --warning: #e9c885;
    --bg-gradient: radial-gradient(
        circle at 14% 12%,
        rgba(255, 255, 255, 0.04),
        transparent 40%
      ),
      linear-gradient(180deg, #0c0f14 0%, #111621 100%);
  }
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f6f8;
    --bg-secondary: #ffffff;
    --bg-tertiary: #eff1f4;
    --text: #0f172a;
    --text-secondary: #3f4a5b;
    --text-light: #6d788a;
    --border: #d9dee6;
    --accent: #0f172a;
    --accent-hover: #000000;
    --accent-light: #586376;
    --success: #0d8a59;
    --warning: #9a7104;
    --bg-gradient: radial-gradient(
        circle at 14% 8%,
        rgba(17, 24, 39, 0.06),
        transparent 42%
      ),
      linear-gradient(180deg, #f5f6f8 0%, #ebedf0 100%);
  }
}

/* ============================================
   BASE STYLES
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

body {
  background-color: var(--bg);
  background-image: var(--bg-gradient);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text);
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: clamp(1rem, 0.2vw + 0.95rem, 1.05rem);
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  padding-bottom: var(--sp-3xl);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--sp-md);
}

h1 {
  font-size: var(--font-size-3xl);
  font-weight: 700;
}

h2 {
  font-size: var(--font-size-2xl);
}

h3 {
  font-size: var(--font-size-xl);
}

p {
  margin-bottom: var(--sp-md);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

/* ============================================
   HEADER
   ============================================ */

.header {
  position: sticky;
  top: 0;
  background: rgba(12, 15, 20, 0.72);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  .header {
    background: rgba(12, 15, 20, 0.72);
  }
}

@media (prefers-color-scheme: light) {
  .header {
    background: rgba(245, 246, 248, 0.82);
  }
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-lg) 0;
}

.logo {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover {
  color: var(--text);
}

.nav {
  display: flex;
  gap: var(--sp-2xl);
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding: 0.5rem 0;
}

.nav a::after {
  content: none;
}

.nav a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  padding: calc(var(--sp-2xl) + var(--sp-lg)) 0 var(--sp-3xl);
  margin-top: var(--sp-lg);
}

.hero-content {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-3xl);
  align-items: start;
}

.avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  animation: none;
}

.avatar::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--border);
  z-index: -1;
  animation: none;
}

.avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  border-radius: 50%;
}

.hero-text h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: var(--sp-md);
  line-height: 1.2;
}

.highlight {
  color: inherit;
  position: relative;
  display: inline-block;
}

.tagline {
  font-size: var(--font-size-base);
  color: var(--text);
  margin-bottom: var(--sp-lg);
  font-weight: 600;
  display: inline-block;
  padding: 0;
  background: transparent;
  border-radius: 0;
  border: 0;
  letter-spacing: 0.02em;
}

.description {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  margin-bottom: var(--sp-2xl);
  line-height: 1.7;
  max-width: 600px;
}

.cta-buttons {
  display: flex;
  gap: var(--sp-lg);
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 0.7rem;
  border: 1px solid transparent;
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-primary:hover {
  background: var(--bg-tertiary);
  color: var(--text);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent-light);
  color: var(--accent-hover);
}

.hero-inline-link {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.hero-inline-link:hover {
  color: var(--text);
  text-decoration: none;
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
  padding: var(--sp-3xl) 0 var(--sp-3xl);
  scroll-margin-top: var(--sp-3xl);
}

.section:first-of-type {
  padding-top: var(--sp-2xl);
}

.section-alt {
  background: var(--bg-secondary);
  border-top: 0;
  border-bottom: 0;
}

.section-title {
  position: relative;
  margin: 0 auto var(--sp-2xl);
  font-size: var(--font-size-2xl);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding-bottom: var(--sp-sm);
}

.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 36px;
  height: 1px;
  border-radius: 999px;
  background: var(--border);
  opacity: 1;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-2xl);
}

.about-card {
  padding: var(--sp-2xl);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  transition: var(--transition);
}

.about-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.about-card h3 {
  color: var(--text);
  margin-bottom: var(--sp-lg);
}

.about-card p {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.8;
  margin: 0;
}

.about-intro {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding: var(--sp-2xl) var(--sp-3xl);
  background: var(--bg-secondary);
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.about-intro p {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  line-height: 1.8;
  text-align: center;
  margin: 0;
}

/* ============================================
   TIMELINE / EXPERIENCE
   ============================================ */

.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-light), transparent);
  border-radius: 2px;
}

.timeline-item {
  margin-bottom: var(--sp-2xl);
  padding-left: 80px;
  position: relative;
  padding: var(--sp-xl);
  padding-left: 80px;
  background: var(--bg-secondary);
  border-radius: 1rem;
  border: 1px solid var(--border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item:hover {
  transform: translateX(3px);
  border-color: var(--accent-light);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.timeline-marker {
  position: absolute;
  left: 0;
  top: 5px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  border: 4px solid var(--bg-secondary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item:hover .timeline-marker {
  transform: scale(1.08);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.timeline-content h3 {
  margin: 0 0 var(--sp-sm) 0;
  font-size: var(--font-size-lg);
}

.role-info {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin: 0;
}

.timeline-date {
  font-size: var(--font-size-sm);
  color: var(--accent);
  font-weight: 600;
  margin-bottom: var(--sp-md);
  display: inline-block;
}

.timeline-content p:not(.role-info):not(.timeline-date) {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.8;
  margin: var(--sp-md) 0 0 0;
}

/* ============================================
   SKILLS SECTION
   ============================================ */

.skills-description-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-xl);
  grid-auto-rows: 1fr;
  align-items: stretch;
}

.skill-category {
  padding: 1.4rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skill-category:hover {
  border-color: var(--border);
  box-shadow: none;
}

.skill-category h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--sp-md);
  color: var(--text);
}

.skill-description {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0;
}

.skill-description strong {
  color: var(--text);
  font-weight: 600;
}

.skill-scope {
  font-size: var(--font-size-xs);
  color: var(--text-light);
  line-height: 1.6;
  padding-top: var(--sp-sm);
  border-top: 1px solid var(--border);
  font-style: italic;
  margin: 0;
  letter-spacing: 0.04em;
}

/* Legacy styles for tags (if needed elsewhere) */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
}

.tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
}

/* ============================================
   PROJECTS SECTION
   ============================================ */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--sp-2xl);
  max-width: 1100px;
  margin: 0 auto;
}

.project-card {
  padding: var(--sp-2xl);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
  border-color: var(--accent-light);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: var(--sp-md);
}

.project-header h3 {
  font-size: var(--font-size-lg);
  margin: 0;
  color: var(--text);
}

.project-links a {
  color: var(--text-secondary);
  transition: color 0.3s;
}

.project-links a:hover {
  color: var(--accent);
}

.project-description {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.7;
  margin-bottom: var(--sp-md);
}

.project-proof {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  margin: 0 0 var(--sp-sm) 0;
}

.project-proof strong {
  color: var(--text);
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
}

.tech-tag {
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 1rem;
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  font-weight: 500;
}

/* ============================================
   SYSTEMS SECTION
   ============================================ */

.systems-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-2xl);
}

.systems-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: var(--sp-2xl);
  transition: var(--transition);
}

.systems-card:hover {
  border-color: var(--accent-light);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.systems-card h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--sp-sm);
}

.systems-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.75;
}

/* ============================================
   EDUCATION SECTION
   ============================================ */

.education-content {
  max-width: 700px;
  margin: 0 auto;
}

.education-item {
  display: flex;
  gap: var(--sp-xl);
  padding: var(--sp-2xl);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 1rem;
  align-items: center;
}

.education-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.education-details h3 {
  font-size: var(--font-size-lg);
  margin: 0 0 var(--sp-sm) 0;
  color: var(--text);
}

.education-school {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin: 0 0 var(--sp-xs) 0;
}

.education-year {
  font-size: var(--font-size-sm);
  color: var(--accent);
  font-weight: 600;
  margin: 0;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-description {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--sp-3xl);
  line-height: 1.8;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: var(--sp-2xl);
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 0.75rem 1.5rem;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  border-radius: 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.contact-link:hover {
  border-color: var(--accent-light);
  background: var(--bg-tertiary);
  text-decoration: none;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  padding: var(--sp-2xl) 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-light);
  font-size: var(--font-size-sm);
}

.footer p {
  margin: 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--sp-2xl);
  }

  .avatar {
    width: 150px;
    height: 150px;
    margin: 0 auto;
  }

  .hero-text h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
  }

  .nav {
    gap: var(--sp-lg);
  }

  .nav a {
    font-size: var(--font-size-xs);
  }

  .cta-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .timeline::before {
    left: 15px;
  }

  .timeline-item {
    padding-left: 65px;
  }

  .timeline-marker {
    width: 30px;
    height: 30px;
    left: 0;
  }

  .section {
    padding: var(--sp-2xl) 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
  }

  .skills-description-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
  }

  .systems-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
  }

  .contact-links {
    gap: var(--sp-lg);
  }
}

@media (max-width: 480px) {
  .header-content {
    flex-direction: column;
    gap: var(--sp-lg);
  }

  .nav {
    gap: var(--sp-md);
    justify-content: center;
  }

  .hero {
    padding: var(--sp-2xl) 0;
  }

  .section {
    padding: var(--sp-xl) 0;
  }

  .timeline-item {
    padding-left: 55px;
  }

  .timeline-marker {
    width: 28px;
    height: 28px;
  }

  .section-title {
    font-size: var(--font-size-xl);
    margin: 0 auto var(--sp-lg);
    letter-spacing: 0.04em;
    padding-bottom: var(--sp-xs);
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .education-item {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    font-size: 11pt;
    line-height: 1.5;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  /* Hide decorative elements */
  .avatar::before,
  .avatar::after,
  .timeline-marker,
  .contact-links,
  .project-links,
  footer {
    display: none !important;
  }

  /* Remove animations */
  * {
    animation: none !important;
    transition: none !important;
  }

  /* Optimize sections */
  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }

  .hero {
    padding: 0.5rem 0 1rem;
    margin-top: 0;
  }

  .hero-content {
    grid-template-columns: 80px 1fr;
    gap: 1rem;
  }

  .avatar {
    width: 80px;
    height: 80px;
    border: 2px solid #333;
  }

  .hero-text h1 {
    font-size: 24pt;
    margin-bottom: 0.25rem;
  }

  .tagline {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    font-size: 12pt;
    color: #333 !important;
  }

  .description {
    font-size: 10pt;
    margin-bottom: 0.5rem;
  }

  /* Section titles */
  .section-title {
    font-size: 14pt;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid #333;
    padding-bottom: 0.25rem;
  }

  /* Timeline adjustments */
  .timeline::before {
    display: none;
  }

  .timeline-item {
    padding: 0.5rem 0;
    padding-left: 0;
    background: none !important;
    border: none !important;
    margin-bottom: 1rem;
    page-break-inside: avoid;
  }

  .timeline-content h3 {
    font-size: 12pt;
  }

  .role-info,
  .timeline-date {
    font-size: 10pt;
  }

  .timeline-content p:not(.role-info):not(.timeline-date) {
    font-size: 9pt;
  }

  /* Skills */
  .skills-description-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .skill-category {
    padding: 0.75rem;
    border: 1px solid #333 !important;
    background: none !important;
    page-break-inside: avoid;
  }

  .skill-category h3 {
    font-size: 11pt;
    margin-bottom: 0.25rem;
    color: #000 !important;
    background: none !important;
    -webkit-text-fill-color: #000 !important;
  }

  .skill-description {
    font-size: 9pt;
    margin-bottom: 0.35rem;
  }

  .skill-scope {
    font-size: 8pt;
    padding-top: 0.25rem;
    border-top: 1px solid #666 !important;
  }

  /* Projects */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .project-card {
    padding: 0.75rem;
    border: 1px solid #333 !important;
    background: none !important;
    page-break-inside: avoid;
  }

  .project-header h3 {
    font-size: 11pt;
  }

  .project-description {
    font-size: 9pt;
  }

  .tech-tag {
    font-size: 7pt;
    padding: 0.15rem 0.4rem;
    border: 1px solid #333 !important;
    background: none !important;
  }

  /* Education */
  .education-item {
    padding: 0.75rem;
    border: 1px solid #333 !important;
    background: none !important;
  }

  .education-icon {
    width: 40px;
    height: 40px;
    background: none !important;
    border: 2px solid #333 !important;
  }

  .education-details h3 {
    font-size: 11pt;
  }

  .education-school,
  .education-year {
    font-size: 9pt;
  }

  /* About section */
  .about-intro {
    padding: 0.75rem;
    border: 1px solid #333 !important;
    background: none !important;
  }

  .about-intro p {
    font-size: 10pt;
  }

  /* Contact section for print */
  .contact-description {
    font-size: 10pt;
    margin-bottom: 0.5rem;
  }

  /* Page breaks */
  h2 {
    page-break-after: avoid;
  }

  .timeline-item,
  .project-card,
  .education-item {
    page-break-inside: avoid;
  }
}
