/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #f0f0f0;
  color: #333;
  line-height: 1.5;
}

/* Wrapper */
.wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow-x: hidden;
  padding: 20px;
}

/* Book Style */
.book {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  width: 90%;
  max-width: 1200px;
  background: white;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  perspective: 1500px;
}

.book-page {
  width: 50%;
  padding: 30px;
  background: #fff;
  overflow-y: auto;
  position: relative;
  transition: transform 0.6s ease;
}

/* Profile Page */
.profile-page {
  text-align: center;
}

.profile-page img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 4px solid #007bff;
}

.profile-page h1 {
  font-size: 1.8rem;
  color: #222;
}

.profile-page h3 {
  color: #007bff;
  font-weight: 500;
  margin: 10px 0;
}

.profile-page p {
  margin: 20px 0;
  font-size: 1rem;
  color: #555;
}

.social-media {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 15px 0;
}

.social-media a {
  font-size: 1.4rem;
  color: #007bff;
  transition: color 0.3s;
}

.social-media a:hover {
  color: #0056b3;
}

.btn-box {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.btn {
  padding: 10px 20px;
  background: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1rem;
  transition: background 0.3s;
}

.btn:hover {
  background: #0056b3;
}

/* Page Titles */
.title {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #007bff;
}

/* Work & Education */
.workeduc-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.workeduc-content .year {
  font-weight: 600;
  color: #007bff;
}

.workeduc-content h3 {
  font-size: 1.1rem;
  margin-top: 5px;
}

.workeduc-content p {
  font-size: 0.95rem;
  color: #555;
}

/* Services */
.services-box {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.services-content {
  flex: 1 1 45%;
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.services-content i {
  font-size: 2rem;
  color: #007bff;
  margin-bottom: 10px;
}

.services-content h3 {
  margin-bottom: 10px;
}

.services-content p {
  font-size: 0.95rem;
  color: #555;
}

/* Skills */
.skills-box {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.skills-content {
  flex: 1 1 45%;
}

.skills-content h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #007bff;
}

.skills-content .content {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skills-content span {
  background: #e0e0e0;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Portfolio */
.portfolio-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.img-box img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.info-box {
  background: #f7f7f7;
  padding: 15px;
  border-radius: 5px;
}

.info-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.info-title h3 {
  font-size: 1.2rem;
}

.info-title a {
  font-size: 0.95rem;
  color: #007bff;
  text-decoration: none;
}

.info-box p {
  font-size: 0.95rem;
}

/* Contact */
.contact-box form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.field {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

textarea.field {
  resize: vertical;
}

/* Navigation */
.number-page {
  position: absolute;
  bottom: 10px;
  right: 20px;
  font-size: 0.9rem;
  color: #999;
}

.nextprev-btn {
  position: absolute;
  bottom: 10px;
  left: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #007bff;
}

.nextprev-btn.back {
  left: unset;
  right: 20px;
}

.back-profile {
  position: absolute;
  bottom: 10px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.95rem;
  color: #007bff;
  text-decoration: none;
}

/* Responsive Design */
@media (max-width: 992px) {
  .book {
    flex-direction: column;
  }

  .book-page {
    width: 100%;
    height: auto;
  }

  .services-content,
  .skills-content {
    flex: 1 1 100%;
  }
}

@media (max-width: 600px) {
  .profile-page img {
    width: 120px;
    height: 120px;
  }

  .title {
    font-size: 1.5rem;
  }

  .profile-page h1 {
    font-size: 1.4rem;
  }

  .profile-page h3 {
    font-size: 1rem;
  }

  .btn {
    font-size: 0.9rem;
    padding: 8px 16px;
  }

  .skills-content span {
    font-size: 0.8rem;
  }

  .services-content i {
    font-size: 1.6rem;
  }

  .info-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
