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

body {
  font-family: 'Arial', sans-serif;
  background-color: #fff;
  margin: 0;
  padding: 0;
}

body, html {
  height: 100%;
}

/* Full Site Border */
.site-wrapper {
  min-height: 100vh;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding-left: 30px;
  padding-right: 30px;
  border-left: 80px solid #ffffff;
  border-right: 80px solid #ffffff;
  background-color: white;
  box-shadow: none;
}

/* Navbar */
.navbar {
  background-color: black;
  padding: 15px 0;
}

.navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 40px;
}

.navbar ul li a {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
  transition: color 0.3s;
}

.navbar ul li a:hover {
  color: #f2a7b3;
}

/* Hero Section */
.hero {
  background-image: url('website_background.png');
  background-repeat: repeat;
  background-size: 150px auto;
  background-position: top left;
  padding: 60px 30px 40px 30px;
  position: relative;
}

.hero-inner {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 40px;
  position: relative;
}

/* Intro Info Section */
.intro-info {
  max-width: 500px;
  margin-top: 120px;
}

.intro-info h1 {
  font-size: 2rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

.social-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.social-links a {
  background-color: black;
  padding: 8px 14px;
  text-decoration: none;
  color: white;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.social-links a:hover {
  background-color: #f48ca0;
  color: white;
}

/* Picture Frame */
.picture-frame {
  position: relative;
  top: 60px;
  background-color: white;
  padding: 5px;
  border: 2px solid #f2a7b3;
  border-radius: 12px;
  width: 220px;
  aspect-ratio: 1 / 1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.picture-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* About Me Section */
.about-me {
  background-color: #ffc0cb;
  padding: 60px 30px;
  border-top-left-radius: 60px;
  border-top-right-radius: 60px;
  color: #222;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1500px;
  margin: 0 auto;
}

.about-me h2 {
  font-size: 2.2rem;
  margin-bottom: 30px;
}

.about-content {
  max-width: 1500px;
  text-align: left;
  line-height: 1.8;
  font-size: 1.05rem;
  padding: 0 10px;
}

.about-content p {
  margin-bottom: 20px;
}

.resume-button {
  display: inline-block;
  margin-top: 10px;
  background-color: black;
  color: white;
  padding: 10px 20px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s;
}

.resume-button:hover {
  background-color: #333;
}

/* Blog Section */
.blog-preview {
  background-color: #fff9fb;
  padding: 60px 30px 20px 30px;
  color: #333;
  max-width: 1500px;
  margin: 0 auto;
}

.blog-preview-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

.blog-preview h2 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: #222;
}

.blog-title-link {
  text-decoration: none;
  color: #cc3366;
  transition: color 0.3s;
}

.blog-title-link:hover {
  color: #a80044;
}

.blog-title-link h3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 6px;
}

.blog-preview hr {
  height: 2px;
  border: none;
  background-color: #cc3366;
  margin-top: 16px;
  margin-bottom: 24px;
}

.blog-section {
  background-color: #fff0f3;
  padding: 60px 30px;
  border-top: 3px solid #f2a7b3;
  color: #222;
  max-width: 1500px;
  margin: 0 auto;
}

.blog-content {
  max-width: 1000px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
}

.blog-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #333;
}

.blog-content h3 {
  font-size: 1.4rem;
  margin-top: 30px;
  color: #444;
}

.blog-content ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.blog-content li {
  margin-bottom: 10px;
}

/* Media, Lists, Captions, Math */
.imputation-gif,
video.imputation-gif {
  display: block;
  margin: 2em auto;
  max-width: 100%;
  width: 90%;
  height: auto;
  border: 2px solid #f2a7b3;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.spaced-list {
  padding-left: 0.8em;
  margin-left: 0;
  margin-bottom: 1em;
  line-height: 1.6;
  list-style-position: inside;
}

.spaced-list li {
  margin-bottom: 0.5em;
}

.centered-math {
  text-align: center;
  margin: 20px 0;
  font-size: 1.05rem;
}

.figure-caption {
  text-align: center;
  font-size: 0.95rem;
  color: #555;
  margin-top: -10px;
  margin-bottom: 30px;
  font-style: italic;
}

.meta {
  text-align: left;
  color: #555;
  font-size: 0.9em;
  font-family: Arial, sans-serif;
}

/* References */
.references {
  border-top: 1px solid #ddd;
}

.references h3 {
  margin-bottom: 0.5em;
}

.references p {
  font-size: 0.95em;
}

/* Contact Form */
.contact-google-form {
  background-color: #fff9fb;
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.form-wrapper iframe {
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.iframe-container {
  position: relative;
  width: 100%;
  padding-top: 125%;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  background-color: #ffffff;
  color: #333;
  border-top: 1px solid #ddd;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .site-wrapper {
    padding-left: 15px;
    padding-right: 15px;
    border-left: none;
    border-right: none;
  }

  .navbar ul {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .hero {
    padding: 40px 15px;
    background-size: 100px auto;
  }

  .hero-inner {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .intro-info {
    margin-top: 20px;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .about-me {
    padding: 40px 20px;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
  }

  .about-content {
    font-size: 1rem;
    padding: 0;
  }

  .blog-preview,
  .blog-section,
  .contact-google-form {
    padding: 40px 15px;
  }

  .blog-content {
    font-size: 1rem;
        overflow-x: auto;
  }

  .picture-frame {
    width: 180px;
    top: 0;
  }

  .resume-button {
    padding: 8px 16px;
    font-size: 1rem;
  }

  .navbar ul li a {
    font-size: 1rem;
  }

  .comparison-table {
    min-width: 600px;
  }
}

/* Comparison Table (Desktop) */
.comparison-table-wrapper {
  overflow-x: auto;
}

.comparison-table {
  all: revert !important;
  display: table !important;
  width: 100%;
  table-layout: auto;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-family: sans-serif;
}

.comparison-table th,
.comparison-table td {
  border: 1px solid #ccc;
  padding: 0.75em 1em;
  text-align: left;
  vertical-align: top;
}

.comparison-table thead {
  background-color: #f4f4f4;
}

.comparison-table th {
  font-weight: bold;
  background-color: #f8f8f8;
}
