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

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

body {
  font-family: "Roboto", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #c8cdfa;
  padding-bottom: 10%;
  justify-content: center;
}

header{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 2rem;
  padding: 40px;
  background-color: #007bff;
  margin-bottom: 5rem;
}
.nav{
  display: flex;
  text-decoration: none;  
  list-style: none;
  gap: 3rem;
}
.site-title{
  font-size: 2rem;
  color: #ffffff;

}
.nav a{
  text-decoration: none;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: bold;
}
.nav-button :hover{ color: #fff; background-color: #0056b3;}

.resume-container {
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2000 1500'%3E%3Cdefs%3E%3Crect stroke='%23ffffff' stroke-width='0.9' width='1' height='1' id='s'/%3E%3Cpattern id='a' width='3' height='3' patternUnits='userSpaceOnUse' patternTransform='rotate(134 1000 750) scale(50) translate(-980 -735)'%3E%3Cuse fill='%23fcfcfc' href='%23s' y='2'/%3E%3Cuse fill='%23fcfcfc' href='%23s' x='1' y='2'/%3E%3Cuse fill='%23fafafa' href='%23s' x='2' y='2'/%3E%3Cuse fill='%23fafafa' href='%23s'/%3E%3Cuse fill='%23f7f7f7' href='%23s' x='2'/%3E%3Cuse fill='%23f7f7f7' href='%23s' x='1' y='1'/%3E%3C/pattern%3E%3Cpattern id='b' width='7' height='11' patternUnits='userSpaceOnUse' patternTransform='rotate(134 1000 750) scale(50) translate(-980 -735)'%3E%3Cg fill='%23f5f5f5'%3E%3Cuse href='%23s'/%3E%3Cuse href='%23s' y='5' /%3E%3Cuse href='%23s' x='1' y='10'/%3E%3Cuse href='%23s' x='2' y='1'/%3E%3Cuse href='%23s' x='2' y='4'/%3E%3Cuse href='%23s' x='3' y='8'/%3E%3Cuse href='%23s' x='4' y='3'/%3E%3Cuse href='%23s' x='4' y='7'/%3E%3Cuse href='%23s' x='5' y='2'/%3E%3Cuse href='%23s' x='5' y='6'/%3E%3Cuse href='%23s' x='6' y='9'/%3E%3C/g%3E%3C/pattern%3E%3Cpattern id='h' width='5' height='13' patternUnits='userSpaceOnUse' patternTransform='rotate(134 1000 750) scale(50) translate(-980 -735)'%3E%3Cg fill='%23f5f5f5'%3E%3Cuse href='%23s' y='5'/%3E%3Cuse href='%23s' y='8'/%3E%3Cuse href='%23s' x='1' y='1'/%3E%3Cuse href='%23s' x='1' y='9'/%3E%3Cuse href='%23s' x='1' y='12'/%3E%3Cuse href='%23s' x='2'/%3E%3Cuse href='%23s' x='2' y='4'/%3E%3Cuse href='%23s' x='3' y='2'/%3E%3Cuse href='%23s' x='3' y='6'/%3E%3Cuse href='%23s' x='3' y='11'/%3E%3Cuse href='%23s' x='4' y='3'/%3E%3Cuse href='%23s' x='4' y='7'/%3E%3Cuse href='%23s' x='4' y='10'/%3E%3C/g%3E%3C/pattern%3E%3Cpattern id='c' width='17' height='13' patternUnits='userSpaceOnUse' patternTransform='rotate(134 1000 750) scale(50) translate(-980 -735)'%3E%3Cg fill='%23f2f2f2'%3E%3Cuse href='%23s' y='11'/%3E%3Cuse href='%23s' x='2' y='9'/%3E%3Cuse href='%23s' x='5' y='12'/%3E%3Cuse href='%23s' x='9' y='4'/%3E%3Cuse href='%23s' x='12' y='1'/%3E%3Cuse href='%23s' x='16' y='6'/%3E%3C/g%3E%3C/pattern%3E%3Cpattern id='d' width='19' height='17' patternUnits='userSpaceOnUse' patternTransform='rotate(134 1000 750) scale(50) translate(-980 -735)'%3E%3Cg fill='%23ffffff'%3E%3Cuse href='%23s' y='9'/%3E%3Cuse href='%23s' x='16' y='5'/%3E%3Cuse href='%23s' x='14' y='2'/%3E%3Cuse href='%23s' x='11' y='11'/%3E%3Cuse href='%23s' x='6' y='14'/%3E%3C/g%3E%3Cg fill='%23efefef'%3E%3Cuse href='%23s' x='3' y='13'/%3E%3Cuse href='%23s' x='9' y='7'/%3E%3Cuse href='%23s' x='13' y='10'/%3E%3Cuse href='%23s' x='15' y='4'/%3E%3Cuse href='%23s' x='18' y='1'/%3E%3C/g%3E%3C/pattern%3E%3Cpattern id='e' width='47' height='53' patternUnits='userSpaceOnUse' patternTransform='rotate(134 1000 750) scale(50) translate(-980 -735)'%3E%3Cg fill='%2382C5DC'%3E%3Cuse href='%23s' x='2' y='5'/%3E%3Cuse href='%23s' x='16' y='38'/%3E%3Cuse href='%23s' x='46' y='42'/%3E%3Cuse href='%23s' x='29' y='20'/%3E%3C/g%3E%3C/pattern%3E%3Cpattern id='f' width='59' height='71' patternUnits='userSpaceOnUse' patternTransform='rotate(134 1000 750) scale(50) translate(-980 -735)'%3E%3Cg fill='%2382C5DC'%3E%3Cuse href='%23s' x='33' y='13'/%3E%3Cuse href='%23s' x='27' y='54'/%3E%3Cuse href='%23s' x='55' y='55'/%3E%3C/g%3E%3C/pattern%3E%3Cpattern id='g' width='139' height='97' patternUnits='userSpaceOnUse' patternTransform='rotate(134 1000 750) scale(50) translate(-980 -735)'%3E%3Cg fill='%2382C5DC'%3E%3Cuse href='%23s' x='11' y='8'/%3E%3Cuse href='%23s' x='51' y='13'/%3E%3Cuse href='%23s' x='17' y='73'/%3E%3Cuse href='%23s' x='99' y='57'/%3E%3C/g%3E%3C/pattern%3E%3C/defs%3E%3Crect fill='url(%23a)' width='100%25' height='100%25'/%3E%3Crect fill='url(%23b)' width='100%25' height='100%25'/%3E%3Crect fill='url(%23h)' width='100%25' height='100%25'/%3E%3Crect fill='url(%23c)' width='100%25' height='100%25'/%3E%3Crect fill='url(%23d)' width='100%25' height='100%25'/%3E%3Crect fill='url(%23e)' width='100%25' height='100%25'/%3E%3Crect fill='url(%23f)' width='100%25' height='100%25'/%3E%3Crect fill='url(%23g)' width='100%25' height='100%25'/%3E%3C/svg%3E");
  background-size: cover;
  width: 100%;
  max-width: 800px;
  max-height: 1200px;
  min-height: 1123px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  display: grid;
  grid-template-columns: 60% 40%;
  margin: auto;
  justify-items: center;
  align-items: flex-start;
}

.profile-container {
  margin-top: 30px;
}

.profile-container h1 {
  font-size: 2.5rem;
  font-weight: 700;
  max-width: 450px;

}

.subtitle {
  color: #666;
  margin-bottom: 10px;
  max-width: 450px;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  column-gap: 30px;
  row-gap: 10px;
  font-size: 0.9rem;
  max-width: 400px;
}
.contact-info span {
  display: flex;
  align-items: center;
}

#phone, #email{
  max-width: 250px;
  overflow: hidden;
}

#location{
  max-width:400px;
  overflow: hidden;
}

.contact-info i{
  margin-right: 10px;
  color: #0db99c;
}

section h2 {
  margin-top: 10px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
  margin-bottom: 15px;
  text-transform: uppercase;
  font-weight: 700;
}
.summary,
.experience,
.education{
  max-width: 430px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

#about{
  max-width: 400px;
  width: 400px;
  display: flexbox;
}

.experience-details,
.education-details {
  margin-bottom: 15px;
  overflow: hidden;
}

.experience-details ul {
  margin-bottom: 15px;
  overflow: hidden;
}

.job-header,
.education-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 430px;
  width: 100%;
}

.experience-details h3,
.education-details h3 {
  font-weight: 600;
}

.company,
.school-details {
  color: #666;
  margin-bottom: 10px;
}

.date {
  color: #666;
  font-size: 0.9rem;
}

ul {
  list-style-type: disc;
  padding-left: 30px;
  max-width: 430px;
}

.left-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 10px;
  max-width: 450px;
  width:100%;
  margin: 0 auto;
  max-height: 1200px;
  padding-left: 20px;
  padding-right: 15px;
  position: relative;
}

.right-section {
  display: grid;
  gap: 20px;
  background-color: #0db99c;
  max-height: 1200px;
  padding: 30px;
  position: relative;
  height: 100%;
  overflow: hidden;
  align-content: flex-start ;
}


.profile-pic-section {
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-pic {
  max-width: 180px;
  border-radius: 50%;
  margin-top: 5px;
}

.skills ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style-type: none;
  padding-left: 0;
  max-width: 260px;
  
}

.skills li {
  background-color: #f0f0f0;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.9rem;
  max-width: 250px;
}

.strengths {
  max-width: 300px;
  width: 100%;
  overflow: hidden;
}

.strengths ul {
  gap: 5px;
  margin: 0;
  max-width: 260px;

}

.strengths li {
  padding: 1px 4px;
  margin: 0;
  max-width: 250px;
}

button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  max-height: 40px;
  border-radius: 10px;
}

button:hover {
  background-color: #0056b3;
}

#main{
  display: none;
}
.strengths .strength {
  margin-bottom: 15px;
}

footer {
  background-color: #333;
  color: white;
  text-align: center;
  margin-bottom: -40px;
  padding: 5px 0;
  font-size: 0.8em;
  width: 100%;
  position: absolute;
  bottom: 0;
}

/* Generated Resume Options Styles */
.resume-options{
  background-color: #f0f0f0;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  margin: auto;
  width: 100%;
  height: 7rem;
  margin-top: 50px;
  padding: 10px;
  border-radius: 10px 10px 0 0;
  align-items: center;
  justify-items: center;
  display: none;
  position: fixed;
  bottom: 0;
  animation: slideUp 1s ease-in-out;

}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Resume Editable Styles */
.editable-field {
  border: 2px dashed #3498db;
  border-radius: 4px;
  padding: 2px 5px;
  transition: all 0.3s ease;
}

.editable-field:focus {
  outline: none;
  border-color: #2ecc71;
  box-shadow: 0 0 5px rgba(46, 204, 113, 0.5);
}

/* Edit button styles */
#edit-resume-btn {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 10px 15px;
  margin: 10px 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#edit-resume-btn:hover {
  background-color: #2980b9;
}

#edit-resume-btn.save-mode {
  background-color: #2ecc71;
}

#edit-resume-btn.save-mode:hover {
  background-color: #27ae60;
}

@media (max-width: 1024px) {
  .resume-container{
    width: 95%;
    margin: auto;
    min-height: 1123px;
  }
  body{
    width: 100%;
    min-width: 800px;
    overflow-x: auto;
  }
  .resume-options{
    width: 80%;
    margin: auto;
    margin-top: 50px;
  }
}





/* Print Page Settings */
@media print {
  html, body {
      width: 794px !important;
      height: 1123px !important;
      margin: 0 !important;
      padding: 0 !important;
      overflow: hidden !important;
  }

  body {
      display: flex;
      justify-content: center;
      margin: auto;
      align-items: flex-start;
  }

  .right-section {
    max-height: 1200px !important;
    max-width: 314px !important;
    height: 1200px !important;
    margin: 0 !important; 
    padding: 30px !important;
  }

  .left-section {
    max-height: 1200px !important;
    max-width: 470px !important;
    height: 1200px !important;
    margin: 0 !important; 
    padding: 30px !important; 
  }

  .resume-container {
    width: 794px !important;
    max-width: 794px !important;
    height: 1200px !important;
    max-height: 1200px !important;
    min-height: 1123px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: 60% 40% !important;
    gap: 0 !important; 
    overflow: hidden !important;
  }

  .profile-pic {
    max-width: 180px !important; 
    width: 180px !important;
    height: auto !important;
    border-radius: 50%;
  }

  section {
      margin-bottom: 5px !important;
  }

  section h2 {
      margin-bottom: 5px !important;
  }

  .experience-details, .education-details {
      margin-bottom: 5px !important;
  }

  .experience-details h3 {
      margin-bottom: 4px !important;
  }

  .experience-details ul {
      margin-bottom: 4px !important;
      padding-left: 20px !important;
  }

  .experience-details li {
      margin-bottom: 5px !important;
      /* font-size: 0.75rem !important; */
  }

  .skills ul {
      gap: 5px !important;
      margin-top: 10px !important;
  }

  .skills li {
      padding: 3px 6px !important;
  }

  .resume-container * {
      max-width: 100% !important;
      word-wrap: break-word !important;
  }

  @page {
      size: 794px 1123px;
      margin: 0 !important;
  }

  * {
      -webkit-print-color-adjust: exact !important;
      print-color-adjust: exact !important;
  }
  .header, .resume-options, .page-title{
    display: none !important;
  }

  body > button {
      display: none;
  }
    .right-section button {
    display: none !important;
  }
}