/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #f6f6f6;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Focus States for Accessibility */
a:focus,
button:focus,
.project-item:focus-within {
  outline: none;
}

/* Header Section */
header {
  padding-top: 50px;
  background-color: #f7f7f7;
  padding-bottom: 80px;
}

.name {
  font-weight: 700;
  font-size: 32px;
  line-height: 32px;
  color: black;
  margin-bottom: 50px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.header-left {
  flex: 2;
}

.header-right {
  flex: 1;
  text-align: right;
}

.header-right img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: none;
}

.header-head {
  background-color: #f0f0f0;
  padding-left: 60px;
  padding-right: 60px;
  padding-top: 40px;
  padding-bottom: 40px;
  border-radius: 8px;
}

.main-title {
  font-weight: 800;
  font-size: 64px;
  line-height: 0.7;
  color: #000;
  margin-bottom: 50px;
}

@media (max-width: 1200px) {
  .main-title {
    font-size: 50px;
  }
}

.description-text {
  font-size: 18px;
  line-height: 1.6;
  color: #333;
  max-width: 580px;
}

.intro {
  font-weight: 600;
  font-size: 32px;
  line-height: 36px;
  margin-bottom: 16px;
}

.greeting {
  font-weight: 700;
  font-size: 60px;
  line-height: 90px;
  color: #888888;
  margin-bottom: 100px;
}

.location-bar {
  display: flex;
  justify-content: space-between;
  margin-top: 80px;
  margin-bottom: 120px;
}

.location,
.designer,
.architect {
  font-weight: 800;
  font-size: 24px;
  line-height: 32px;
  color: #888888;
}

/* Bio Section */
.bio-section {
  margin-bottom: 120px;
}

.bio-content {
  font-size: 18px;
  line-height: 1.8;
  max-width: 800px;
}

.bio-content p {
  margin-bottom: 24px;
}

/* Skills Section */
.skills-section {
  margin-bottom: 120px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.skill-category h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #555;
}

.skill-category ul {
  list-style: none;
  padding-left: 20px;
  /* Add left padding to contain the bullets */
}

.skill-category li {
  padding: 6px 0;
  position: relative;
}

.skill-category li::before {
  content: "•";
  color: #888888;
  font-weight: bold;
  display: inline-block;
  width: 1em;
  position: absolute;
  left: -20px;
  /* Position the bullet 20px to the left of the text */
}

/* Projects Section */
.projects-section {
  margin-bottom: 120px;
}

.projects-title {
  font-weight: 700;
  font-size: 60px;
  line-height: 90px;
  color: #888888;
  margin-bottom: 40px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

/* Updated project item styles */
.project-item {
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.project-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.project-image-container {
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.project-item:hover .project-image {
  transform: scale(1.05);
}

.project-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 16px;
}

.project-details {
  flex-grow: 1;
}

.project-title {
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
  color: #302f2f;
  margin-bottom: 12px;
}

.project-description {
  font-size: 16px;
  line-height: 24px;
  color: #555;
  margin-bottom: 12px;
}

.project-tech {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
}

.tech-tag {
  background-color: #f0f0f0;
  color: #555;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

/* Info Section */
.info-section {
  display: flex;
  justify-content: space-between;
  margin-bottom: 120px;
}

.info-left {
  flex: 2;
  padding-right: 40px;
}

.info-right {
  flex: 1;
}

.info-title {
  font-weight: 700;
  font-size: 60px;
  line-height: 90px;
  color: #888888;
  margin-bottom: 40px;
}

.cv-link,
.cover-letter-link {
  display: block;
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
  color: #333;
  margin-bottom: 16px;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.cv-link:hover,
.cover-letter-link:hover {
  color: #555;
}

.contact {
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
  margin-top: 60px;
  margin-bottom: 16px;
}

.email {
  font-weight: 400;
  font-size: 24px;
  line-height: 32px;
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.email:hover {
  color: #555;
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 30px;
}

.social-icon {
  color: #555;
  transition: color 0.3s ease;
}

.social-icon:hover {
  color: #000;
}

.profile-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  margin-left: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.profile-section {
  margin-bottom: 120px;
  text-align: right;
}

.profile-section img {
  max-width: 400px;
}

/* Footer */
footer {
  text-align: right;
  padding-bottom: 50px;
}

.footer-text {
  font-weight: 700;
  font-size: 60px;
  line-height: 90px;
  color: #888888;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  transition: opacity 0.3s ease;
  overflow-y: auto;
}

.modal-container {
  position: relative;
  width: 95%;
  /* Increase from 85% to 95% */
  max-width: 1100px;
  /* Increase from 900px to 1200px */
  height: 85vh;
  margin: 3% auto;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

#pdf-container-wrapper {
  height: 100%;
  width: 100%;
  overflow: scroll;
}

#pdf-container-wrapper img {
  width: 100%;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  font-size: 20px;
  z-index: 10;
  transition: background-color 0.3s ease;
}

.close-button:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* PDF Containers */
.pdf-container {
  width: 100%;
  overflow: hidden;
  text-align: center;
}

.pdf-container.active {
  display: block;
}

.pdf-object {
  width: 100%;
  height: 100%;
  border: none;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .greeting,
  .projects-title,
  .info-title,
  .footer-text {
    font-size: 48px;
    line-height: 72px;
  }
  .main-title {
    font-size: 50px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  @media (max-width: 900px) {
    .header-content {
      flex-direction: column;
      text-align: left;
    }

    .header-right {
      text-align: left;
      margin-top: 40px;
    }

    .main-title {
      font-size: 40px;
    }
  }

  .header-right img {
    width: 60%;
    float: none;
    margin-left: 0;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-section {
    flex-direction: column;
  }

  .info-left {
    flex: 1;
    padding-right: 0;
  }

  .info-right {
    margin-top: 50px;
    max-width: 100%;
  }

  .info-right img {
    width: 50%;
    float: none;
    margin-left: 0;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .greeting,
  .projects-title,
  .info-title,
  .footer-text {
    font-size: 36px;
    line-height: 54px;
  }

  .name,
  .intro,
  .location,
  .designer,
  .architect,
  .project-title,
  .cv-link,
  .cover-letter-link,
  .contact,
  .email {
    font-size: 20px;
    line-height: 28px;
  }

  .modal-container {
    width: 95%;
    height: 80vh;
    margin: 5% auto;
  }
}

@media (max-width: 600px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .greeting,
  .projects-title,
  .info-title,
  .footer-text {
    font-size: 28px;
    line-height: 42px;
  }

  .main-title {
    font-size: 32px;
    line-height: 1.3;
  }

  .description-text {
    font-size: 16px;
  }

  .name,
  .intro,
  .location,
  .designer,
  .architect,
  .project-title,
  .cv-link,
  .cover-letter-link,
  .contact,
  .email {
    font-size: 16px;
    line-height: 24px;
  }

  .modal-container {
    width: 95%;
    height: 70vh;
    margin: 8% auto;
  }
}

/* iPhone-specific fixes */
@media only screen 
and (max-width: 428px),
only screen and (device-width: 390px) and (device-height: 844px),
only screen and (device-width: 375px) and (device-height: 812px),
only screen and (device-width: 414px) and (device-height: 896px) {
  .main-title {
    font-size: 28px;
    line-height: 1.1;
  }
  
  .header-head {
    padding: 30px 20px;
    padding-bottom: 40px;
  }
}
