/*-- Custom styles for Derek Briggs' personal website --*/

/* ===== Color Variables ===== */
:root {
  --accent-primary: #0891b2;      /* Vibrant teal */
  --accent-secondary: #7c3aed;    /* Purple accent */
  --accent-warm: #f59e0b;         /* Warm gold */
  --text-dark: #1e293b;
  --text-light: #f8fafc;
  --bg-light: #f1f5f9;
  --bg-dark: #0f172a;
}

/* ===== Hero Strip (decorative banner) ===== */
.hero-strip {
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.85), rgba(124, 58, 237, 0.8)),
              url('images/Sunset_Clouds.jpeg');
  background-size: cover;
  background-position: center;
  height: 120px;
  margin: -1rem -1rem 0 -1rem;
}

/* ===== Main Intro Section ===== */
.main-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 2rem 1rem;
  margin-top: -80px;
}

.main-intro .profile-container {
  margin-bottom: 1.5rem;
}

.main-intro .profile-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  border: 5px solid white;
}

.name-title {
  margin-bottom: 1.5rem;
}

.name-title h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 0.5rem 0;
}

.name-title p,
.name-title strong {
  font-size: 1.1rem;
  color: #64748b;
  margin: 0;
}

.intro-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.intro-buttons .btn {
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.intro-buttons .btn-primary {
  background: var(--accent-primary);
  color: white;
  border: 2px solid var(--accent-primary);
}

.intro-buttons .btn-primary:hover {
  background: var(--accent-secondary);
  border-color: var(--accent-secondary);
  text-decoration: none;
}

.intro-buttons .btn-secondary {
  background: transparent;
  color: var(--accent-primary);
  border: 2px solid var(--accent-primary);
}

.intro-buttons .btn-secondary:hover {
  background: var(--accent-primary);
  color: white;
  text-decoration: none;
}

/* ===== About Section ===== */
.about-section {
  max-width: 700px;
  margin: 0 auto;
  padding: 1.5rem 2rem 2.5rem;
  text-align: center;
}

.about-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

/* ===== Intro Link ===== */
.intro-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--accent-secondary);
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.intro-link:hover {
  color: var(--accent-primary);
  text-decoration: none;
}

/* ===== Highlights Section ===== */
.highlights-section {
  background: var(--bg-light);
  padding: 3rem 2rem;
}

.highlights-section h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 2rem;
  font-weight: 700;
}

.highlights-grid {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: nowrap;
}

.highlight-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  flex: 0 1 250px;
  max-width: 250px;
  text-align: center;
}

.highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.highlight-image {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.highlight-image.image-top {
  object-position: center top;
}

.highlight-card strong {
  display: block;
  color: var(--accent-primary);
  font-size: 0.95rem;
  margin: 0.75rem 1rem 0.25rem;
  font-weight: 600;
}

.highlight-card p,
.highlight-card em {
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 0 1rem 1rem;
  display: block;
}

/* ===== Credentials Section ===== */
.credentials-section {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  padding: 3rem 2rem;
}

.credentials-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  list-style: none;
  padding: 0;
}

.credentials-list li {
  color: white;
  font-size: 1.1rem;
  padding: 0.5rem 1.25rem;
  background: rgba(255,255,255,0.15);
  border-radius: 50px;
  backdrop-filter: blur(10px);
}

.credentials-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ===== CTA Section ===== */
.cta-section {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.cta-section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 2.5rem;
  font-weight: 700;
}

.cta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.cta-card {
  padding: 2rem;
  background: white;
  border-radius: 16px;
  border: 2px solid var(--bg-light);
  transition: all 0.3s ease;
}

.cta-card:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 8px 30px rgba(8, 145, 178, 0.15);
}

.cta-card h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.35rem;
}

.cta-card h3 a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.cta-card h3 a:hover {
  color: var(--accent-secondary);
  text-decoration: none;
}

.cta-card p {
  color: #64748b;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* ===== Responsive Design ===== */
@media (max-width: 900px) {
  .highlights-grid {
    flex-wrap: wrap;
  }

  .cta-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .hero-strip {
    height: 80px;
  }

  .main-intro {
    margin-top: -50px;
  }

  .main-intro .profile-photo {
    width: 140px;
    height: 140px;
  }

  .name-title h1 {
    font-size: 2rem;
  }

  .intro-buttons {
    flex-direction: column;
    align-items: center;
  }

  .intro-buttons .btn {
    width: 100%;
    max-width: 250px;
  }
}

/* ===== Navbar styling ===== */
.navbar {
  font-weight: 500;
}

/* ===== Quote styling ===== */
blockquote {
  border-left: 4px solid var(--accent-primary);
  padding-left: 1.5rem;
  font-style: italic;
  color: #555;
  margin: 1.5rem 0;
}

/* ===== Table styling ===== */
table {
  margin: 1.5rem 0;
}

/* ===== Footer ===== */
.nav-footer {
  padding: 1.5rem 0;
  background: var(--bg-dark);
}

/* ===== Blog post cards ===== */
.quarto-listing-default .listing-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}

/* ===== Links ===== */
a {
  text-decoration: none;
  color: var(--accent-primary);
}

a:hover {
  text-decoration: underline;
  color: var(--accent-secondary);
}

/* ===== Code blocks ===== */
pre {
  border-radius: 12px;
}

/* ===== Responsive images ===== */
img {
  max-width: 100%;
  height: auto;
}

/* ===== Page title banner (for other pages) ===== */
.title-block-banner {
  margin-bottom: 2rem;
}

/* ===== Dark mode adjustments ===== */
[data-bs-theme="dark"] .name-title h1,
[data-bs-theme="dark"] .about-section p {
  color: var(--text-light);
}

[data-bs-theme="dark"] .highlight-card {
  background: #1e293b;
}

[data-bs-theme="dark"] .highlight-card strong {
  color: #22d3ee;
}

[data-bs-theme="dark"] .cta-card {
  background: #1e293b;
  border-color: #334155;
}

[data-bs-theme="dark"] .highlights-section {
  background: #0f172a;
}

[data-bs-theme="dark"] .cta-section h2,
[data-bs-theme="dark"] .highlights-section h2 {
  color: var(--text-light);
}
