/* William Guesdon Portfolio - Professional Style */

:root {
  --primary-purple: #27223e;
  --dark-purple: #1a1730;
  --tan-bg: #dfcfba;
  --gray-bg: #dcdcdc;
  --link-blue: #5ba4d4;
  --dark-text: #2c3e50;
}

/* Reset and base */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--dark-text);
}

/* Hero Banner */
.hero-banner {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
              url('images/alexander-sinn-07bxCZgKY-k-unsplash.jpg') center/cover no-repeat;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem 1rem;
  margin-bottom: 0;
}

.hero-banner h1 {
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-banner .subtitle {
  color: #d4af37;
  font-size: 1.2rem;
  font-weight: 600;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* Navbar styling */
.navbar {
  background-color: var(--primary-purple) !important;
  padding: 0.75rem 2rem;
}

.navbar-brand {
  font-weight: 600;
  color: white !important;
}

.navbar-nav .nav-link {
  color: rgba(255,255,255,0.9) !important;
  font-weight: 500;
  padding: 0.5rem 1.25rem !important;
}

.navbar-nav .nav-link:hover {
  color: white !important;
  background-color: rgba(255,255,255,0.1);
}

/* Section backgrounds */
.section-tan {
  background-color: var(--tan-bg);
  padding: 3rem 0;
}

.section-gray {
  background-color: var(--gray-bg);
  padding: 3rem 0;
}

.section-white {
  background-color: white;
  padding: 3rem 0;
}

/* Section container */
.section-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Section titles */
.section-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--dark-text);
  margin-bottom: 2rem;
  text-decoration: underline;
  text-underline-offset: 8px;
}

/* About section with photo */
.about-container {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.profile-photo {
  width: 180px;
  height: 180px;
  min-width: 180px;
  min-height: 180px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 4px solid white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
}

.about-text h2 {
  margin-top: 0;
  font-size: 1.5rem;
  color: var(--dark-text);
}

.about-text .highlight {
  color: var(--primary-purple);
  font-weight: 600;
}

/* Social icons */
.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-icons a {
  font-size: 1.75rem;
  color: var(--dark-text);
  transition: color 0.2s;
}

.social-icons a:hover {
  color: var(--link-blue);
}

.social-icons .bi-linkedin {
  color: #0077b5;
}

.social-icons .bi-twitter {
  color: #1da1f2;
}

/* Divider band */
.divider-band {
  background-color: var(--primary-purple);
  height: 8px;
  width: 100%;
}

/* Project items */
.project-item {
  margin-bottom: 2rem;
}

.project-item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark-text);
  margin-bottom: 0.5rem;
}

.project-item h3 a {
  color: var(--primary-purple);
  text-decoration: none;
}

.project-item h3 a:hover {
  text-decoration: underline;
}

.project-item ul {
  margin-left: 1.5rem;
}

/* Experience items */
.experience-item {
  margin-bottom: 1.5rem;
}

.experience-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-text);
  margin-bottom: 0.25rem;
}

.experience-item .date {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.experience-item .description {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

/* Publication styling */
.publication-item {
  margin-bottom: 2rem;
}

.publication-item .title {
  color: var(--link-blue);
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
}

.publication-item .title:hover {
  text-decoration: underline;
}

.publication-item .journal {
  font-style: italic;
  font-weight: 600;
}

.publication-item .authors {
  font-size: 0.95rem;
  color: #555;
}

.publication-item .download-link {
  color: var(--dark-text);
  text-decoration: underline;
}

/* Headers - override defaults */
h1, h2, h3 {
  color: var(--dark-text);
  border-bottom: none;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* Links */
a {
  color: var(--link-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Blog listing */
.quarto-listing {
  margin-top: 1rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.all-posts-label {
  color: #c4a574;
  font-size: 0.9rem;
}

/* Blog post cards - image left, content right */
.quarto-listing-default .list-group-item {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  padding: 1.5rem 0;
  border: none;
  border-bottom: 1px solid #e9ecef;
  background: white;
}

.quarto-listing-default .thumbnail {
  flex: 0 0 300px;
  max-width: 300px;
  height: 200px;
  overflow: hidden;
}

.quarto-listing-default .thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quarto-listing-default .body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.quarto-listing-default .listing-author {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.25rem;
}

.quarto-listing-default .listing-date {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.5rem;
}

.quarto-listing-default .listing-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--dark-text);
  margin-bottom: 0.5rem;
  text-decoration: none;
}

.quarto-listing-default .listing-title:hover {
  color: var(--link-blue);
}

.quarto-listing-default .listing-description {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

.quarto-listing-default .listing-reading-time {
  font-size: 0.85rem;
  color: #888;
}

/* Remove categories sidebar on blog */
#quarto-margin-sidebar {
  display: none;
}

@media (max-width: 768px) {
  .quarto-listing-default .list-group-item {
    flex-direction: column;
  }

  .quarto-listing-default .thumbnail {
    flex: none;
    max-width: 100%;
    height: 180px;
  }
}

/* Contact form styling */
.contact-form {
  max-width: 500px;
  margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  background-color: #f5f5f5;
}

.contact-form textarea {
  min-height: 150px;
}

.contact-form button {
  background-color: white;
  border: 1px solid #ccc;
  padding: 0.5rem 2rem;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #f0f0f0;
}

/* Footer */
.nav-footer {
  background-color: var(--primary-purple) !important;
  color: white;
  padding: 1.5rem;
  text-align: center;
}

/* Remove default Quarto margins for full-width sections */
.page-columns {
  grid-template-columns: 1fr !important;
}

main.content {
  max-width: none;
  padding: 0;
}

#quarto-content {
  padding: 0;
}

/* Blog post pages - center content */
.page-layout-custom .quarto-title-block {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 2rem;
}

/* Style blog post content area - wrap everything */
body.page-layout-custom #quarto-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

body.page-layout-custom #quarto-content > * {
  max-width: 100%;
}

.page-layout-custom main.content h1,
.page-layout-custom main.content h2,
.page-layout-custom main.content h3 {
  color: var(--dark-text);
}

.page-layout-custom main.content h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* Post metadata styling */
.page-layout-custom .quarto-title-meta {
  display: flex;
  gap: 2rem;
  margin: 1rem 0;
  color: #666;
  font-size: 0.9rem;
}

/* Categories/tags */
.page-layout-custom .quarto-categories {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.page-layout-custom .quarto-category {
  background: #f0f0f0;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  text-transform: uppercase;
}

/* Responsive */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

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

  .hero-banner h1 {
    font-size: 2rem;
  }
}
