@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;700&family=Quicksand:wght@400;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
 
a {
  text-decoration: none;
  color: #0000FF;
  transition: 0.3s;
}

ul {
  list-style: none;
}

body {
  font-family: 'Quicksand', sans-serif;
  font-size: 22px;
  line-height: 32px;
  background-color: #F5F5DC;
  color: #0000FF;
  width: 100%;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
}

/* ==================== PAGE DIVIDERS ==================== */

.page-divider {
  border: none;
  border-top: 2px solid #0000FF;
  margin: 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* ==================== INTRO PAGE ==================== */

.intro-page {
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  border-top: none !important;
}

.intro-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  width: 100%;
}

.intro-heading-image {
  max-width: 100%;
  max-height: 350px;
  width: auto;
  height: auto;
  display: block;
}

/* ==================== NAVIGATION BUTTONS ==================== */

.nav-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
}

.pill-btn {
  background-color: #FFD700;
  color: #0000FF;
  padding: 14px 35px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 24px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
  user-select: none;
}

.pill-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* ==================== PAGES ==================== */

.book-page {
  width: 100%;
  padding: 60px 30px;
  border-top: 2px solid #0000FF;
  min-height: auto;
}

.book-page:first-of-type {
  border-top: none;
}

.page-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
}

/* ==================== POLAROID CARDS ==================== */

.polaroid-section {
  display: flex;
  justify-content: center;
}

.polaroid {
  background-color: white;
  padding: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  width: 280px;
  transform: rotate(-2deg);
}

.polaroid-image {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center top;
  position: relative;
  overflow: hidden;
}

.polaroid-image::before {
  display: none;
}

.polaroid-image::after {
  display: none;
}

.polaroid-label {
  margin-top: 12px;
  text-align: center;
  color: #0000FF;
  font-weight: 600;
  font-size: 18px;
}

/* ==================== TEXT SECTION ==================== */

.text-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.text-section h1.handwriting {
  font-family: 'Caveat', cursive;
  font-size: 75px;
  color: #0000FF;
  font-weight: 700;
  margin-bottom: 30px;
  line-height: 1.2;
}

.text-section h3 {
  color: #0000FF;
  font-size: 28px;
  margin-top: 20px;
  margin-bottom: 15px;
}

.text-section p {
  color: #0000FF;
  line-height: 32px;
  margin-bottom: 15px;
  text-align: justify;
}

.text-section a {
  color: #0000FF;
  font-weight: bold;
  text-decoration: underline;
}

/* ==================== BIO LIST ==================== */

.bio-list {
  list-style: none;
  color: #0000FF;
  margin-top: 20px;
}

.bio-list li {
  padding: 8px 0;
  line-height: 32px;
  font-size: 20px;
}

.bio-list strong {
  font-weight: 600;
}

/* ==================== BOOK VIEW ==================== */

.book-view {
  height: auto;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 30px !important;
}

.book-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
}

.book-page-left,
.book-page-right {
  background-color: white;
  border: 3px solid #0000FF;
  padding: 45px;
  min-height: 550px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
}

.book-page-left {
  transform: rotate(-1deg);
  background-color: #FAF0E6;
}

.book-page-right {
  transform: rotate(1deg);
  background-color: #FFFACD;
}

.book-page-title {
  font-family: 'Quicksand', sans-serif;
  font-size: 38px;
  font-weight: 700;
  color: #0000FF;
  margin-bottom: 30px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.book-page-content {
  color: #0000FF;
  line-height: 26px;
}

.book-page-content h4 {
  color: #0000FF;
  font-size: 22px;
  font-weight: 700;
  margin-top: 22px;
  margin-bottom: 10px;
}

.book-page-content p {
  color: #0000FF;
  font-size: 20px;
  margin-bottom: 12px;
  line-height: 32px;
}

.book-page-content h3 {
  color: #0000FF;
  font-size: 26px;
  font-weight: 700;
}

/* ==================== STACKED PAPERS (kept for backward compat) ==================== */

.stacked-papers {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 60px 0;
}

.paper {
  position: absolute;
  background-color: #F5F5F5;
  border: 2px solid #0000FF;
  padding: 40px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.paper-1 {
  transform: rotate(-8deg) translateX(-60px) translateY(-40px);
  z-index: 3;
  background-color: #FAF0E6;
}

.paper-2 {
  transform: rotate(4deg) translateX(20px) translateY(30px);
  z-index: 2;
  background-color: #F0F8FF;
}

.paper-3 {
  transform: rotate(0deg) translateX(80px) translateY(80px);
  z-index: 1;
  background-color: #FFFACD;
}

.paper:hover {
  transform: translateZ(0) scale(1.02) !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.paper-title {
  font-family: 'Quicksand', sans-serif;
  font-size: 38px;
  font-weight: 700;
  color: #0000FF;
  margin-bottom: 30px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.paper-content {
  color: #0000FF;
  line-height: 28px;
}

.paper-content h4 {
  color: #0000FF;
  font-size: 22px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 8px;
}

.paper-content p {
  color: #0000FF;
  font-size: 20px;
  margin-bottom: 10px;
  line-height: 30px;
}

/* ==================== EXPERIENCE ITEMS ==================== */

.experience-item {
  margin-bottom: 20px;
  padding-bottom: 15px;
}

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

.experience-item h4 {
  color: #0000FF;
  font-weight: 700;
  margin-bottom: 5px;
}

.experience-item p {
  color: #0000FF;
  margin-bottom: 5px;
}

.experience-item .year {
  font-size: 17px;
  color: #4169E1;
  font-style: italic;
}

/* ==================== ABOUT SECTION ==================== */

#about {
  height: auto;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 30px;
}

#about .container {
  width: 100%;
  max-width: 1400px;
}

#about .page-content {
  grid-template-columns: 1fr 1.5fr;
}

#projects {
  padding: 100px 0;
}

#projects .container {
  text-align: center;
  max-width: 1400px;
}

#projects h1.handwriting {
  font-family: 'Caveat', cursive;
  font-size: 75px;
  color: #0000FF;
  font-weight: 700;
  margin-bottom: 50px;
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.project {
  background-color: white;
  border: 2px solid #0000FF;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
}

.project:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.project h4 {
  color: #0000FF;
  font-size: 24px;
  margin-bottom: 12px;
}

.project p {
  color: #0000FF;
  font-size: 18px;
  margin-bottom: 15px;
  line-height: 28px;
}

.project a {
  color: #0000FF;
  font-weight: bold;
  text-decoration: underline;
}

/* ==================== CONTACT SECTION ==================== */

#contact {
  padding: 100px 0;
}

#contact .container {
  text-align: center;
  max-width: 1400px;
}

#contact h1.handwriting {
  font-family: 'Caveat', cursive;
  font-size: 75px;
  color: #0000FF;
  font-weight: 700;
  margin-bottom: 30px;
}

#contact p {
  color: #0000FF;
  font-size: 22px;
  margin-bottom: 30px;
}

.social {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
}

.social a {
  font-size: 42px;
  color: #0000FF;
  transition: all 0.3s ease;
}

.social a:hover {
  transform: scale(1.2) rotate(10deg);
}

/* ==================== FOOTER ==================== */

.footer {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 30px 30px;
  border-top: 2px solid #0000FF;
  color: #0000FF;
  text-align: center;
  background-color: #F5F5DC;
}

.footer small {
  font-size: 18px;
  opacity: 0.7;
}

/* ==================== RESPONSIVE DESIGN ==================== */

@media (max-width: 1024px) {
  .container {
    padding: 0 25px;
  }

  .book-container {
    gap: 20px;
  }

  .book-page-left,
  .book-page-right {
    padding: 40px;
    min-height: 500px;
  }

  .book-page-title {
    font-size: 34px;
    margin-bottom: 25px;
  }

  .book-page-content h4 {
    font-size: 20px;
    margin-top: 18px;
  }

  .book-page-content p {
    font-size: 18px;
  }

  .text-section h1.handwriting {
    font-size: 64px;
  }

  .intro-heading-image {
    max-height: 300px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
    max-width: 100%;
  }

  .intro-page {
    padding: 30px 20px;
    height: auto;
    min-height: 100vh;
  }

  .intro-heading-image {
    max-height: 280px;
  }

  .nav-buttons {
    gap: 12px;
  }

  .pill-btn {
    padding: 12px 28px;
    font-size: 22px;
  }

  .page-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  #about {
    padding: 40px 20px;
  }

  .polaroid {
    width: 220px;
  }

  .text-section h1.handwriting {
    font-size: 54px;
  }

  .text-section p {
    font-size: 20px;
    line-height: 30px;
  }

  .book-page {
    padding: 40px 20px;
  }

  .book-view {
    min-height: auto;
    padding: 30px 20px !important;
  }

  .book-container {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .book-page-left,
  .book-page-right {
    padding: 35px;
    min-height: auto;
    max-height: 600px;
    transform: none !important;
  }

  .book-page-title {
    font-size: 32px;
    margin-bottom: 20px;
  }

  .book-page-content h4 {
    font-size: 20px;
    margin-top: 16px;
  }

  .book-page-content p,
  .book-page-content h3 {
    font-size: 18px;
  }

  #projects {
    padding: 60px 20px;
  }

  #projects h1.handwriting {
    font-size: 58px;
    margin-bottom: 40px;
  }

  .projects {
    gap: 20px;
  }

  .project {
    padding: 20px;
  }

  #contact {
    padding: 60px 20px;
  }

  #contact h1.handwriting {
    font-size: 58px;
    margin-bottom: 25px;
  }

  .social {
    gap: 25px;
  }

  .social a {
    font-size: 38px;
  }
}


@media (max-width: 480px) {
  .intro-page {
    padding: 25px 15px;
  }

  .intro-heading-image {
    max-height: 200px;
  }

  .intro-content {
    gap: 35px;
  }

  .nav-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .pill-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 20px;
  }

  .container {
    padding: 0 15px;
    max-width: 100%;
  }

  .text-section h1.handwriting {
    font-size: 46px;
    margin-bottom: 20px;
  }

  .text-section p {
    font-size: 18px;
    line-height: 28px;
    margin-bottom: 12px;
  }

  .text-section h3 {
    font-size: 22px;
    margin-top: 15px;
  }

  .bio-list li {
    font-size: 18px;
    padding: 6px 0;
  }

  .polaroid {
    width: 180px;
  }

  .polaroid-image {
    height: 160px;
  }

  #about {
    padding: 30px 15px;
  }

  .book-view {
    padding: 20px 15px !important;
  }

  .book-container {
    gap: 20px;
  }

  .book-page-left,
  .book-page-right {
    padding: 25px;
    border: 2px solid #0000FF;
    min-height: auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  }

  .book-page-title {
    font-size: 28px;
    margin-bottom: 15px;
    letter-spacing: 1px;
  }

  .book-page-content h4,
  .book-page-content p {
    font-size: 17px;
  }

  .book-page-content h4 {
    margin-top: 12px;
    margin-bottom: 8px;
  }

  .experience-item {
    margin-bottom: 15px;
    padding-bottom: 12px;
  }

  .experience-item h4 {
    margin-bottom: 4px;
    font-size: 18px;
  }

  .experience-item p {
    font-size: 17px;
    margin-bottom: 3px;
  }

  #projects {
    padding: 40px 15px;
  }

  #projects h1.handwriting {
    font-size: 50px;
    margin-bottom: 30px;
  }

  .projects {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .project {
    padding: 15px;
    border: 2px solid #0000FF;
  }

  .project h4 {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .project p {
    font-size: 17px;
    margin-bottom: 12px;
    line-height: 25px;
  }

  .project a {
    font-size: 14px;
  }

  #contact {
    padding: 40px 15px;
  }

  #contact h1.handwriting {
    font-size: 50px;
    margin-bottom: 20px;
  }

  #contact p {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .social {
    gap: 20px;
  }

  .social a {
    font-size: 32px;
  }

  .footer {
    padding: 20px 15px;
    font-size: 16px;
  }

  .page-divider {
    border-top: 2px solid #0000FF;
  }
}
