:root {
  --bg-color: #f8fafc;
  --card-bg: rgba(255, 255, 255, 0.7);
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --accent: #0284c7;
  --accent-glow: rgba(2, 132, 199, 0.3);
  --glass-border: rgba(0, 0, 0, 0.08);
  --gradient-1: linear-gradient(135deg, #0284c7 0%, #6366f1 100%);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(2, 132, 199, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(99, 102, 241, 0.05) 0%, transparent 40%);
  min-height: auto;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.65rem;
  margin-bottom: 0.75rem;
  position: relative;
  display: inline-block;
}

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

h4 {
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 38px;
  height: 2.5px;
  background: var(--gradient-1);
  border-radius: 2px;
}

p {
  color: var(--text-secondary);
  margin-bottom: 0.55rem;
  font-size: 0.93rem;
  line-height: 1.5;
}

p:last-child {
  margin-bottom: 0;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Utilities */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 1.35rem 0;
}

.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 1.15rem 1.35rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px -12px rgba(0, 0, 0, 0.1);
  border-color: rgba(2, 132, 199, 0.2);
}

.gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.6rem;
  background: var(--gradient-1);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  font-family: inherit;
  font-size: 0.9rem;
  margin-top: 0.75rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none !important;
}

.resume-download-box {
  text-align: center;
  margin-top: 1.2rem;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #818cf8 0%, #38bdf8 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn:hover::before {
  opacity: 1;
}

.btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 0 16px var(--accent-glow);
}

/* Animation Classes */
.hidden {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(4px);
}

.show {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition: all 0.6s ease;
}

/* Header */
header {
  min-height: auto;
  padding: 1.6rem 0 1rem;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-content {
  max-width: 780px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 0.35rem;
  font-family: 'Consolas', monospace;
}

.hero-role {
  color: var(--text-secondary);
  margin-top: 0.35rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.hero-desc {
  max-width: 600px;
  margin-top: 0.55rem;
  font-size: 0.93rem;
  line-height: 1.5;
}

.hero-layout {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: 100%;
}

.profile-img-container {
  flex-shrink: 0;
  width: 195px;
  height: 195px;
  border-radius: 20%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  background: var(--card-bg);
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.social-links {
  margin-top: 0.85rem;
  display: flex;
  gap: 1rem;
}

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

.social-links a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

/* Skills */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.6rem;
}

.skill-tag {
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.skill-tag:hover {
  background: rgba(56, 189, 248, 0.2);
  cursor: default;
}

.skill-category {
  margin-bottom: 0.85rem;
}

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

.skill-category h3 {
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
  color: var(--text-primary);
}

/* Experience & Education Styles */
.timeline {
  position: relative;
  border-left: 2px solid var(--glass-border);
  margin-left: 0.8rem;
  padding-left: 1.6rem;
}

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

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

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.05rem;
  top: 0.35rem;
  width: 0.85rem;
  height: 0.85rem;
  background: var(--bg-color);
  border: 2px solid var(--accent);
  border-radius: 50%;
  z-index: 2;
}

.date {
  font-family: 'Consolas', monospace;
  color: var(--accent);
  margin-bottom: 0.35rem;
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
}

.timeline .glass-card ul {
  padding-left: 1.15rem;
  margin-top: 0.45rem;
}

.timeline .glass-card li {
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.timeline .glass-card li:last-child {
  margin-bottom: 0;
}

.timeline .glass-card li p {
  margin-bottom: 0;
}

.edu-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.edu-content {
  flex: 1;
  min-width: 0;
}

.edu-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.edu-content h4 {
  font-size: 0.92rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.edu-content p {
  font-size: 0.88rem;
  margin-bottom: 0;
}

.edu-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--glass-border);
  padding: 0.25rem;
  flex-shrink: 0;
}

/* Project Grid & Modern Cards */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.15rem;
}

.project-card {
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 16px;
  padding: 1.3rem 1.3rem 1.15rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 6px 18px -4px rgba(15, 23, 42, 0.05);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease;
  user-select: none;
}

/* Luminous top accent line */
.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-1);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  opacity: 0.45;
  transition: opacity 0.25s ease, height 0.25s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(2, 132, 199, 0.45);
  box-shadow: 0 18px 38px -10px rgba(2, 132, 199, 0.18),
              0 6px 16px -4px rgba(15, 23, 42, 0.07),
              0 0 0 1px rgba(2, 132, 199, 0.25);
}

.project-card:hover::before {
  opacity: 1;
  height: 4px;
}

/* Top Meta Bar: Category badge & Store links */
.project-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.proj-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.26rem 0.65rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  transition: transform 0.2s ease;
}

.project-card:hover .proj-category-badge {
  transform: translateY(-1px);
}

/* Category Color Variants */
.badge-gov {
  background: rgba(2, 132, 199, 0.08);
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.22);
}

.badge-pos {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-geo {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-club {
  background: rgba(124, 58, 237, 0.08);
  color: #7c3aed;
  border: 1px solid rgba(124, 58, 237, 0.22);
}

.badge-ticket {
  background: rgba(219, 39, 119, 0.08);
  color: #db2777;
  border: 1px solid rgba(219, 39, 119, 0.22);
}

.badge-city {
  background: rgba(8, 145, 178, 0.1);
  color: #0891b2;
  border: 1px solid rgba(8, 145, 178, 0.25);
}

.badge-identity {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.24);
}

.badge-ai {
  background: rgba(147, 51, 234, 0.09);
  color: #9333ea;
  border: 1px solid rgba(147, 51, 234, 0.25);
}

/* Project Header & Title */
.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.45rem;
}

.project-card h3 {
  color: #0f172a;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
  flex: 1;
}

.project-card:hover h3 {
  color: #0284c7;
}

/* Meaningful Excerpt */
.project-summary {
  font-size: 0.88rem;
  line-height: 1.52;
  color: #475569;
  margin-bottom: 0.75rem;
}

/* Key Metrics Row */
.project-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.proj-metric-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.24rem 0.6rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.proj-metric-chip i {
  color: #0284c7;
  font-size: 0.72rem;
}

.project-card:hover .proj-metric-chip {
  background: #ffffff;
  border-color: rgba(2, 132, 199, 0.3);
}

/* Corner Store Badges */
.project-store-links {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  font-size: 0.92rem;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
  position: relative;
  z-index: 2;
  cursor: pointer;
}

.store-badge .play-svg {
  width: 15px;
  height: 15px;
  display: block;
  transition: transform 0.22s ease;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.06));
}

.store-badge.store-badge-play:hover {
  background: #ffffff;
  border-color: rgba(66, 133, 244, 0.45);
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 4px 14px rgba(66, 133, 244, 0.25);
}

.store-badge.store-badge-apple i {
  background: linear-gradient(135deg, #2997ff 0%, #0071e3 50%, #0040A8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-size: 1rem;
  transition: transform 0.22s ease;
}

.store-badge.store-badge-apple:hover {
  background: #ffffff;
  border-color: #0071e3;
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.3);
}

.store-badge:active {
  transform: scale(0.94);
}

/* Project Tech Tags */
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
  margin-bottom: 0.95rem;
}

.project-tags .skill-tag {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 50px;
  font-size: 0.74rem;
  font-weight: 500;
  padding: 0.2rem 0.58rem;
  transition: all 0.2s ease;
}

.project-card:hover .project-tags .skill-tag {
  border-color: #cbd5e1;
}

.project-tags .skill-tag:hover {
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.3);
  color: #0284c7;
}

/* Project Card Footer */
.project-card-footer {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.proj-card-hint {
  font-size: 0.76rem;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font-weight: 500;
}

.proj-card-hint i {
  color: var(--accent);
  font-size: 0.75rem;
}

.proj-details-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.38rem 0.95rem;
  background: var(--gradient-1);
  color: #ffffff;
  border: none;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.project-card:hover .proj-details-btn,
.proj-details-btn:hover {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.42);
  filter: brightness(1.06);
}

.proj-details-btn i {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.project-card:hover .proj-details-btn i {
  transform: translate(1px, -1px);
}

/* Project Modal */
.proj-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

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

.proj-modal-box {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  padding: 1.8rem 2rem;
  max-width: 660px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(2,132,199,0.08);
  animation: modalIn 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.88) translateY(24px); }
  to   { opacity: 1; transform: scale(1)    translateY(0);    }
}

.proj-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--glass-border);
}

.proj-modal-header h3 {
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 0;
  line-height: 1.3;
}

.proj-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(2, 132, 199, 0.07);
  border: 1px solid rgba(2, 132, 199, 0.15);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: all 0.22s ease;
}

.proj-modal-close:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.28);
  color: #ef4444;
  transform: rotate(90deg);
}

.proj-modal-body p {
  font-size: 0.93rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.proj-modal-body ul {
  padding-left: 1.2rem;
  margin-top: 0.35rem;
}

.proj-modal-body li {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
}

.proj-modal-body li:last-child {
  margin-bottom: 0;
}

.modal-link {
  margin-top: 1.1rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.modal-link .btn {
  font-size: 0.82rem;
  padding: 0.5rem 1.25rem;
}

.btn-appstore {
  background: linear-gradient(135deg, #0071e3 0%, #0056b3 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.35) !important;
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
}

.btn-appstore:hover {
  box-shadow: 0 8px 24px rgba(0, 113, 227, 0.5) !important;
  transform: translateY(-2px);
  filter: brightness(1.08) !important;
}

.btn-playstore {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25) !important;
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
}

.btn-playstore .play-svg {
  width: 17px;
  height: 17px;
  display: inline-block;
  flex-shrink: 0;
}

.btn-playstore:hover {
  box-shadow: 0 8px 24px rgba(66, 133, 244, 0.35), 0 4px 12px rgba(15, 23, 42, 0.4) !important;
  border-color: rgba(66, 133, 244, 0.4) !important;
  transform: translateY(-2px);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
  margin-top: 0.8rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: rgba(2, 132, 199, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-item h3 {
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.contact-item p {
  font-size: 0.88rem;
  margin-bottom: 0;
}

.reference-box {
  margin-top: 1.2rem;
  border-top: 1px solid var(--glass-border);
  padding-top: 0.9rem;
}

.reference-box h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.reference-box p {
  font-size: 0.88rem;
  line-height: 1.45;
}

/* Footer */
footer {
  padding: 1rem 0;
  text-align: center;
  border-top: 1px solid var(--glass-border);
  margin-top: 1.2rem;
  color: var(--text-secondary);
  font-size: 0.82rem;
}

/* ===================================================
   Native Browser Print Styles (@media print)
   =================================================== */
@page {
  size: A4 portrait;
  margin: 12mm 15mm;
}

@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    animation: none !important;
    transition: none !important;
  }

  html,
  body {
    background: #ffffff !important;
    color: #1e293b !important;
    font-size: 10pt !important;
    line-height: 1.5 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  body {
    background-image: none !important;
  }

  #cv-content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

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

  header {
    min-height: auto !important;
    padding: 0 0 1.2rem 0 !important;
  }

  .hero-layout {
    gap: 2rem !important;
    flex-direction: row !important;
    text-align: left !important;
  }

  .profile-img-container {
    width: 130px !important;
    height: 130px !important;
    border-radius: 14px !important;
    border: 2px solid #e2e8f0 !important;
    box-shadow: none !important;
  }

  .hero-content {
    max-width: 100% !important;
  }

  .hero-subtitle {
    font-size: 1rem !important;
    margin-bottom: 0.3rem !important;
  }

  h1 {
    font-size: 2.2rem !important;
    line-height: 1.15 !important;
  }

  h2 {
    font-size: 1.35rem !important;
    margin-bottom: 0.8rem !important;
    page-break-after: avoid !important;
    break-after: avoid !important;
  }

  h3 {
    font-size: 1.05rem !important;
    margin-bottom: 0.3rem !important;
    page-break-after: avoid !important;
    break-after: avoid !important;
  }

  .section {
    padding: 1rem 0 !important;
    page-break-inside: auto;
  }

  .glass-card {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    padding: 1rem !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .timeline {
    border-left: 2px solid #e2e8f0 !important;
    margin-left: 0.8rem !important;
    padding-left: 1.5rem !important;
  }

  .timeline-item::before {
    left: -2.05rem !important;
    background: #ffffff !important;
    border-color: #0284c7 !important;
  }

  .timeline-item,
  .project-card,
  .edu-card,
  .contact-item,
  .skill-category {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.8rem !important;
  }

  .skills-grid {
    gap: 0.5rem !important;
  }

  .skill-tag {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #0369a1 !important;
    font-size: 0.8rem !important;
    padding: 0.25rem 0.75rem !important;
  }

  .social-links {
    margin-top: 0.8rem !important;
    gap: 1.2rem !important;
  }

  .hidden {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    visibility: visible !important;
  }

  .no-print,
  footer,
  .btn,
  .proj-details-btn,
  .project-card-footer,
  .proj-modal-overlay {
    display: none !important;
  }
}