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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #2d3748;
  background: #f7fafc;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.container {
  display: grid;
  grid-template-columns: 2.5in 6in;
  width: 8.5in;
  background: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transform-origin: top center;
}

/* ===== SIDEBAR ===== */
.sidebar {
  background: #4a5568;
  color: #e2e8f0;
  padding: 40px 30px;
}

.sidebar-header {
  margin-bottom: 20px;
}

.sidebar-header h1 {
  font-size: 2em;
  font-weight: 700;
  line-height: 1.2;
  color: #f7fafc;
}

.sidebar-header h2 {
  font-size: 1.45em;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
  color: #e2e8f0;
}

.sidebar-header .title {
  font-size: 1.3em;
  font-weight: 300;
  color: #cbd5e0;
  margin: 0;
}

.sidebar-section {
  margin-bottom: 15px;
}

.sidebar-section h2 {
  font-size: 1.2em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #f7fafc;
  border-bottom: 2px solid #718096;
  padding-bottom: 6px;
}

.education-item {
  margin-bottom: 12px;
}

.edu-institution {
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 3px;
}

.edu-detail {
  font-size: 0.9em;
  color: #cbd5e0;
  margin: 1px 0;
  padding-left: 5px;
}

.pub-title {
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 3px;
}

.pub-detail {
  font-size: 0.9em;
  color: #cbd5e0;
  margin: 1px 0;
  padding-left: 5px;
}

.pub-link {
  font-size: 0.85em;
  color: #cbd5e0;
  margin: 2px 0;
  text-decoration: none;
  line-height: 1.4;
}

.pub-link:hover {
  color: #f7fafc;
  text-decoration: underline;
}

.skill-category {
  margin-bottom: 14px;
}

.skill-category h3 {
  font-size: 0.95em;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 6px;
}

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

.skill-list li {
  font-size: 0.85em;
  color: #cbd5e0;
  margin: 2px 0;
  padding-left: 10px;
  position: relative;
  line-height: 1.4;
}

.skill-list li::before {
  content: '-';
  position: absolute;
  left: 0;
}

.contact-section .contact-item {
  margin-bottom: 10px;
}

.contact-label {
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 2px;
  font-size: 0.9em;
}

.contact-item p,
.contact-item a {
  font-size: 0.85em;
  color: #cbd5e0;
  margin: 2px 0;
  text-decoration: none;
  line-height: 1.4;
}

.contact-item a:hover {
  color: #f7fafc;
  text-decoration: underline;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  padding: 40px 30px;
  background: #ffffff;
}

.social-links {
  display: flex;
  gap: 25px;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4a5568;
  text-decoration: none;
  font-size: 0.95em;
  font-weight: 500;
  transition: color 0.2s;
}

.social-link:hover {
  color: #2d3748;
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.content-section {
  margin-bottom: 20px;
}

.content-section h2 {
  font-size: 1.8em;
  font-weight: 700;
  color: #1a202c;
  position: relative;
}

.content-section > p {
  color: #4a5568;
  line-height: 1.4;
  margin-bottom: 12px;
  text-align: justify;
}

.job {
  margin-bottom: 20px;
}

.job h3 {
  font-size: 1.25em;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 5px;
}

.job-meta {
  font-size: 0.95em;
  color: #718096;
  font-style: italic;
  margin-bottom: 10px;
}

.job ul {
  list-style: none;
  margin-left: 0;
}

.job li {
  color: #4a5568;
  margin: 6px 0;
  padding-left: 20px;
  position: relative;
  line-height: 1.4;
  font-size: 0.9em;
}

.job li::before {
  content: '•';
  position: absolute;
  left: 5px;
  color: #4a5568;
  font-weight: bold;
}

.job a {
  color: #1f466a;
  text-decoration: underline;
}

/* ===== DOWNLOAD BUTTON ===== */
.download-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #4a5568;
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1000;
}

.download-btn:hover {
  transform: translateY(-2px);
  background-color: #2d3748;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.download-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* ===== WEBSITE BUTTON ===== */
.website-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #4a5568;
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease, opacity 0.3s ease;
  z-index: 1000;
}

.website-btn:hover {
  transform: translateY(-2px);
  background-color: #2d3748;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.website-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Hide buttons on scroll */
.download-btn.hidden,
.website-btn.hidden {
  opacity: 0;
  pointer-events: none;
}

@media print {
  .download-btn {
    display: none !important;
  }
  
  .website-btn {
    display: none !important;
  }
  
  body {
    background: none;
    padding: 0;
  }

  .resume-wrapper {
    width: auto !important;
    height: auto !important;
    display: block;
  }
  
  .container {
    box-shadow: none;
    width: 100%;
    max-width: none;
    grid-template-columns: 2.5in 6in; /* Force fixed width for print to ensure correct sizing */
    transform: none !important;
    margin-bottom: 0 !important;
  }
}

