:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #2ecc71;
  --text-color: #333;
  --light-bg: #f9f9f9;
  --border-radius: 8px;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-bg);
}

.container {
  display: flex;
  flex-direction: column;
  height: 100vh; /* Fixed viewport height */
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

header {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}

h1 {
  color: var(--primary-color);
  margin-bottom: 5px;
}

.designation {
  color: var(--secondary-color);
  font-weight: normal;
  margin-top: 0;
}

.tagline {
  font-style: italic;
  color: #7f8c8d;
  max-width: 700px;
  margin: 0 auto;
}

.skills {
  flex-shrink: 0;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 15px 0;
  justify-content: center;
}

.skill-tag {
  background-color: #e0f7fa;
  color: #00796b;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9em;
  white-space: nowrap;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 15px 0;
  flex-shrink: 0;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 500;
  padding: 8px 15px;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: rgba(52, 152, 219, 0.1);
  transform: translateY(-2px);
}

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

.resume {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-height: 0; /* Allows the PDF viewer to shrink */
}

.resume-actions {
  display: flex;
  gap: 15px;
  margin: 15px 0;
  justify-content: center;
  flex-shrink: 0;
}

.download-btn, .view-btn {
  padding: 10px 20px;
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: bold;
  transition: all 0.3s ease;
}

.download-btn {
  background-color: var(--accent-color);
  color: white;
  /* Add this to ensure download */
  position: relative;
  overflow: hidden;
}

.download-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.download-btn:hover {
  background-color: #27ae60;
  transform: translateY(-2px);
}

.view-btn {
  background-color: var(--secondary-color);
  color: white;
}

.view-btn:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
}

.resume-viewer {
  width: 100%;
  flex-grow: 1;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background-color: white;
}

footer {
  text-align: center;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
  color: #7f8c8d;
  font-size: 0.9em;
  flex-shrink: 0;
}

.header-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
  gap: 30px;
}


.header-content > div:first-child {
  flex: 1;
  min-width: 200px;
}

.tagline-container {
  flex: 2;
  padding-top: 10px; /* Aligns with the header text */
  text-align: end;
}

.main-content {
  display: grid;
  /* grid-template-columns: 1fr 1fr; */
  gap: 30px;
  align-items: start;
}

.skills {
  margin: 0;
}

.social-links {
  margin: 0;
  justify-content: flex-start;
  align-self: center;
  justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .main-content,
  .header-content {
    flex-direction: column;
    gap: 15px;
  }
  
  .main-content {
    flex-direction: column;
  }
  
  .social-links {
    margin-top: 15px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.8em;
  }
  
  h2 {
    font-size: 1.2em;
  }
  
  .tagline {
    font-size: 0.9em;
  }
  
  .social-links {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
}