/* ======= Import Fonts ======= */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600&family=Montserrat:wght@300;400&display=swap');

/* ======= Global Styles ======= */
body {
  font-family: 'Montserrat', sans-serif;
  background: #fefbf5;
  color: #222;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-size: 18px;
  line-height: 1.6;
}

/* ======= Decorative Floating Shapes ======= */
body::before, body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  z-index: 0;
  opacity: 0.1;
}

body::before {
  width: 400px;
  height: 400px;
  background: rgba(246, 210, 193, 0.2);
  top: -100px;
  left: -150px;
  animation: floatLeft 12s ease-in-out infinite;
}

body::after {
  width: 500px;
  height: 500px;
  background: rgba(246, 210, 193, 0.15);
  bottom: -200px;
  right: -200px;
  animation: floatRight 15s ease-in-out infinite;
}

@keyframes floatLeft {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(20px, 20px); }
}

@keyframes floatRight {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(-20px, -20px); }
}

/* ======= Headings ======= */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: #222;
  text-align: center;
  margin-bottom: 20px;
}

h1 { font-size: 4rem; letter-spacing: 2px; }
h2 { font-size: 3rem; font-weight: 600; }
h3 { font-size: 2rem; font-weight: 600; }

/* ======= Links ======= */
a {
  text-decoration: none;
  color: #222;
  transition: all 0.3s ease;
}

a:hover {
  color: #f67280;
}

/* ======= Header / Navigation ======= */
header.site-header {
  background: #222;
  color: #fefbf5;
  padding: 12px 50px;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 3px 15px rgba(0,0,0,0.2);
}

header .logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 800;
  color: #fefbf5;
  letter-spacing: 2px;
  line-height: 1;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 10px 0 0 0;
}

nav.main-nav li {
  margin: 0 10px;
}

nav.main-nav a {
  color: #fefbf5;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 500;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.3s ease;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  background: #f67280;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(246,114,128,0.3);
}

/* ======= Main Content Blocks ======= */
.page-container {
  max-width: 1000px;
  margin: 50px auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.content-block {
  background: #fffdf8;
  padding: 30px;
  margin-bottom: 40px;
  border-radius: 30px;
  border: 2px solid #222;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards;
}

.content-block:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 50px rgba(0,0,0,0.12);
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   ⭐ PERFECT IMAGE + QUOTES ROW ALIGNMENT ⭐
============================================================ */
.image-quotes-row {
  display: flex;
  justify-content: space-between;
  align-items: center; /* vertical alignment */
  gap: 30px;
  margin-top: 20px;
}

/* Smaller left image */
.home-image-container {
  flex: 0 0 35%;
}

.home-image-container img {
  width: 100%;
  border-radius: 25px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
  border: 2px solid #222;
}

/* Right quotes box */
.quote-list-container {
  flex: 1;
  background: #fffdf8;
  padding: 30px;
  border-radius: 25px;
  border: 2px solid #222;
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.quote-list-container h2 {
  margin-top: 0;
}

.quote-list {
  list-style: none;    /* removes the bullet */
  margin: 0;           /* remove default margin */
  padding: 0;          /* remove default padding */
  text-align: center;  /* center the quote text under the title */
}


/* ====== Image General ====== */
img {
  display: block;
  margin: 20px auto;
  max-width: 100%;
  border-radius: 25px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

/* ======= Lists / Remove bullet points ======= */
ul { list-style: none; padding-left: 0; margin-left: 0; }
ul li { margin: 0; line-height: 1.7; }

/* (All other sections unchanged) */

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
  padding: 0;
}

.skills-list li {
  flex: 1 1 200px;
  max-width: 250px;
  background: #fffdf8;
  padding: 20px;
  border-radius: 25px;
  border: 2px solid #222;
  box-shadow: 0 15px 30px rgba(0,0,0,0.07);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  transform: translateY(0);
}

.skills-list li:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
  background: #fef7f0;
}

.portfolio-links, .projects-list {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.page-container > .content-block > p {
  text-align: center;
  margin-bottom: 30px;
}

.portfolio-item, .project-item {
  flex: 1 1 30%;
  max-width: 350px;
  min-width: 280px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fffdf8;
  padding: 25px;
  border-radius: 25px;
  border: 2px solid #222;
  box-shadow: 0 15px 30px rgba(0,0,0,0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  transform: translateY(0);
}

.portfolio-item:hover,
.project-item:hover,
.skills-list li:hover,
.contact-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
  background: #fef7f0;
}

.btn-link {
  display: inline-block;
  margin-top: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #f67280, #f8c291);
  color: #fff;
  border-radius: 20px;
  text-align: center;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(246,114,128,0.3);
  color: #fff;
}

.site-footer {
  background: #222;
  color: #fefbf5;
  text-align: center;
  padding: 20px 0;
  margin-top: 60px;
  font-size: 0.9rem;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 -3px 15px rgba(0,0,0,0.08);
}

@media screen and (max-width: 768px) {
  nav.main-nav ul {
    flex-direction: column;
    align-items: center;
  }

  .skills-list, .projects-list, .portfolio-links {
    flex-direction: column;
    align-items: center;
  }

  .portfolio-item, .project-item, .skills-list li {
    width: 90%;
    max-width: none;
  }

  /* Mobile stacking for image + quotes */
  .image-quotes-row {
    flex-direction: column;
  }

  .home-image-container,
  .quote-list-container {
    width: 100%;
  }
}

.contact-main {
  border-radius: 30px;
  border: 2px solid #222;
  padding: 40px;
  background: #fdfaf5;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  margin-bottom: 40px;
  text-align: center;
}

.contact-options {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
}

.contact-card {
  flex: 1 1 300px;
  max-width: 400px;
  padding: 30px;
  background: #fffdf8;
  border-radius: 30px;
  border: 2px solid #222;
  box-shadow: 0 15px 30px rgba(0,0,0,0.07);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  transform: translateY(0);
}

.contact-card h2 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 15px;
  font-size: 2.5rem;
  color: #222;
}

.contact-card a.btn-link {
  margin-top: 10px;
}

.contact-card .btn-group {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}

.contact-options {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  align-items: stretch;
}

.contact-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-card .btn-group {
  justify-content: center;
}

.back-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  color: #f67280;
  background: #fffdf8;
  padding: 12px 20px;
  border-radius: 25px;
  border: 2px solid #f67280;
  box-shadow: 0 8px 20px rgba(246,114,128,0.3);
  transition: all 0.3s ease;
  margin-bottom: 30px;
}

.back-arrow span {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.back-arrow:hover {
  background: #f67280;
  color: #fff;
  box-shadow: 0 12px 25px rgba(246,114,128,0.4);
}

.back-arrow:hover span {
  transform: translateX(-5px);
}

/* Center the PDF/resume properly */
.pdf-wrapper {
  display: flex;
  justify-content: center; /* horizontal center */
  align-items: center;     /* vertical center */
  width: 100%;
  min-height: 80vh;        /* takes at least 80% of viewport height */
  margin: 40px 0;          /* spacing top and bottom */
}

.pdf-container {
  width: 90%;
  max-width: 1000px;       /* prevents it from being huge */
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  background: #fff;
}

.pdf-embed {
  width: 100%;
  height: 80vh;             /* adjust to fit nicely */
  border: none;
  display: block;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
  .pdf-wrapper {
    min-height: 60vh;
  }
  .pdf-embed {
    height: 60vh;
  }
}

.resume-content-block {
  background: #fffdf8;
  padding: 30px;
  margin: 50px auto;
  border-radius: 30px;
  border: 2px solid #222;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  max-width: 1000px;
  width: 90%;
  animation: fadeInUp 0.8s forwards;
}

.resume-content-block p {
  text-align: center;
}

/* Bypasses Bulleted Points for Fun Facts */
ul.fun-facts {
  list-style: disc;   /* shows bullets */
  padding-left: 40px; /* gives space for bullets */
  margin-left: 0;
}

ul.fun-facts li {
  margin-bottom: 10px;
}

/* ======= Project Items - Reduce gap between title and description ======= */
.projects-list .project-item {
  justify-content: flex-start; /* removes extra space caused by flex layout */
}

.projects-list .project-item h3 {
  margin-bottom: 0.5em; /* shrink space below title */
}

.projects-list .project-item p {
  margin-top: 0.3em; /* shrink space above description */
}

/* Skill Containers (Center and Side-by-Side) */
.skills-container {
  display: flex;
  gap: 40px; /* space between the two sections */
  flex-wrap: wrap; /* stack on smaller screens */
}

.skills-container .content-block {
  flex: 1 1 300px; /* grow to fill space, min width 300px */
}

.skills-container .content-block p {
  text-align: center;
}

/* ======= Normalize Resume Scaling Across All Screens ======= */
.resume-content-block {
  width: 90vw;          /* relative to viewport width */
  max-width: 1000px;    /* keeps it from getting too huge on big screens */
  min-width: 320px;     /* ensures it's not too tiny on small screens */
  margin-left: auto;
  margin-right: auto;
}

.pdf-container {
  width: 90vw;
  max-width: 1000px;
  min-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.pdf-embed {
  width: 100%;
  height: 80vh;
  min-height: 500px;   /* ensures a minimum visible height */
}

@media screen and (max-width: 400px) {
  .resume-content-block,
  .pdf-container {
    width: 95vw;
  }
}

/* ======= Global Fade-In for All Pages ======= */
main, .content-block, .resume-content-block, .pdf-container {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards;
}