/* Resume Page Styles */
html {
  overflow-y: scroll;
}

body.resume-page {
  overflow-y: auto !important;
  height: auto !important;
}

html:has(body.resume-page) {
  overflow-y: scroll !important;
  height: auto !important;
}

.resume-page {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #ffffff;
  color: #1a1a1a;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.resume-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.decorative-circle {
  position: absolute;
  border-radius: 50%;
  background: #f5e6d3; /* Tertiary beige color */
  z-index: 0;
  opacity: 0.6;
}

.resume-page .circle-1 {
  width: 200px;
  height: 200px;
  top: 10%;
  right: 5%;
}

.resume-page .circle-2 {
  width: 150px;
  height: 150px;
  bottom: 15%;
  right: 10%;
}

.resume-page .circle-3 {
  width: 180px;
  height: 180px;
  top: 50%;
  left: 2%;
}

/* Ensure header is consistent on resume page */
.resume-page .home-header {
  padding: 1rem 3rem;
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  z-index: 100;
  overflow-x: hidden;
}

.resume-page .header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
}

.resume-wrapper {
  display: flex;
  max-width: 1200px;
  margin: 2rem auto;
  background: #ffffff;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  position: relative;
  z-index: 1;
}

/* Right Sidebar - Teal Background */
.resume-sidebar {
  width: 350px;
  background: #ffffff;
  color: #1a1a1a;
  padding: 2rem;
  flex-shrink: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

.profile-section {
  text-align: center;
  margin-bottom: 2rem;
  padding-top: 2rem;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-img-wrapper {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #ffa8a3;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-sizing: border-box;
  flex-shrink: 0;
  max-width: 100%;
}

.profile-img {
  min-width: 200px;
  min-height: 200px;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  display: block;
  transform: translateY(15px);
}

.profile-section .name {
  font-size: 2rem;
  font-weight: bold;
  margin: 0.5rem 0;
  color: #1a1a1a;
}

.profile-section .name a {
  color: #1a1a1a;
  text-decoration: none;
}

.profile-section .name a:hover {
  text-decoration: underline;
}

.profile-section .title {
  font-size: 1rem;
  margin: 0;
  color: #666;
}

.sidebar-heading {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 2rem 0 1rem 0;
  color: #1a1a1a;
  text-transform: uppercase;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 0.5rem;
}

.contact-list,
.social-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li,
.social-list li {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.contact-list .icon,
.social-list .icon {
  margin-right: 0.75rem;
  font-size: 1.2rem;
  width: 20px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-list .icon svg,
.social-list .icon svg {
  width: 20px;
  height: 20px;
  color: #1a1a1a;
}

.contact-list a {
  color: #1a1a1a;
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

.social-list a {
  color: #1a1a1a;
  text-decoration: none;
}

.social-list a:hover {
  text-decoration: underline;
}

.education-section {
  margin-top: 2rem;
}

.education-item {
  margin-bottom: 1.5rem;
}

.education-item h3 {
  font-size: 1rem;
  margin: 0 0 0.25rem 0;
  color: #1a1a1a;
}

.education-item .institution {
  font-size: 0.9rem;
  margin: 0.25rem 0;
  color: #666;
}

.education-item .dates {
  font-size: 0.85rem;
  margin: 0.25rem 0;
  color: #999;
}

.education-item .grade {
  font-size: 0.85rem;
  margin: 0.25rem 0;
  color: #999;
}

.education-item .activities {
  font-size: 0.85rem;
  margin: 0.25rem 0;
  color: #999;
  font-style: italic;
}

/* Technical Expertise Section */
.technical-expertise-section {
  margin-top: 2rem;
}

.expertise-category {
  margin-bottom: 1.5rem;
}

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

.expertise-category-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 0.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.technical-expertise-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
}

.technical-expertise-list li {
  font-size: 0.9rem;
  color: #1a1a1a;
  margin-bottom: 0;
  padding-left: 0;
}

/* Left Column - Main Content */
.resume-main {
  flex: 1;
  padding: 2rem 3rem;
  background: #ffffff;
  color: #1a1a1a;
}

.resume-main h2 {
  color: #4d51fb;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 2rem 0 1rem 0;
  display: flex;
  align-items: center;
  text-transform: uppercase;
}

.resume-main h3 {
  color: #333;
}

.resume-main h2:first-child {
  margin-top: 0;
}


.resume-main p {
  line-height: 1.6;
  color: #333;
  margin-bottom: 1rem;
}

/* Experience Items */
.experience-item {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.experience-item:last-child {
  border-bottom: none;
}

.experience-item h3 {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0 0 0.5rem 0;
  color: #333;
}

.experience-item h3 + p {
  font-size: 0.9rem;
  color: #999;
  margin: 0 0 0.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.experience-item h3 + p strong {
  flex: 1;
  font-weight: normal;
  color: #999;
  font-size: 0.9rem;
}

.experience-item .dates {
  font-size: 0.9rem;
  color: #999;
  margin-left: auto;
}

.experience-item p {
  margin: 0.75rem 0;
}

.experience-item ul {
  margin: 0.5rem 0;
  padding-left: 1.25rem;
}

.experience-item li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
  color: #333;
}

/* Company Group Styling */
.experience-item.company-group {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.experience-item.company-group .company-name {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0 0 0.25rem 0;
  color: #333;
}

.experience-item.company-group .company-duration {
  font-size: 0.9rem;
  color: #999;
  margin: 0 0 1rem 0;
}

.experience-item.company-group .company-roles {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.experience-item.company-group .role-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 1rem;
}

.experience-item.company-group .role-title {
  font-size: 0.95rem;
  color: #333;
  font-weight: 500;
}

.experience-item.company-group .role-dates {
  font-size: 0.9rem;
  color: #999;
}

.experience-item.company-group ul {
  margin: 0.25rem 0 0.75rem 1rem;
  padding-left: 1.25rem;
}

.experience-item.company-group ul li {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.25rem;
  line-height: 1.5;
}

/* Project Items */
.project-item {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.project-item:last-child {
  border-bottom: none;
}

.project-image {
  width: 60%;
  max-width: 400px;
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
}

.project-image-small {
  width: 30%;
  max-width: 200px;
}

.project-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.project-item h3 {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0 0 0.5rem 0;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.project-item h3 a {
  color: #4d51fb;
  text-decoration: none;
}

.project-item h3 a:hover {
  text-decoration: underline;
}

.project-description {
  font-size: 0.95rem;
  color: #666;
  margin: 0 0 0.5rem 0;
}

.project-tech {
  font-size: 0.9rem;
  color: #999;
  margin: 0 0 0.5rem 0;
}

.project-date {
  font-size: 0.9rem;
  color: #bbb;
  margin: 0 0 0 auto;
  font-weight: normal;
}


/* Responsive Design */
@media (max-width: 768px) {
  .resume-wrapper {
    flex-direction: column;
  }
  
  .resume-sidebar {
    width: 100%;
  }
  
  .resume-main {
    padding: 1.5rem;
  }
  
  .experience-header {
    flex-direction: column;
  }
  
  .experience-header .dates {
    text-align: left;
    margin-top: 0.5rem;
  }
}

@media (max-width: 400px) {
  .resume-sidebar {
    padding: 1.5rem;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
  }
  
  .profile-section {
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 0;
    padding-right: 0;
  }
  
  .profile-img-wrapper {
    width: min(200px, calc(100% - 0px));
    height: min(200px, calc(100% - 0px));
    max-width: 200px;
    max-height: 200px;
    margin-left: auto;
    margin-right: auto;
    flex-shrink: 0;
  }
  
  .profile-img {
    min-width: 200px;
    min-height: 200px;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
  }
}

