/* Victoria Farkas — Lanre Akinbo-inspired portfolio */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

:root {
  --accent-blue: #6091cc;
  --accent-pink: #ef8ebf;
  --accent-gradient: linear-gradient(90deg, #6091cc, #ef8ebf);
  --text-dark: #333;
  --text-muted: #555;
  --text-light: #777;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif !important;
}

p {
  color: var(--text-muted);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-blue) !important;
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

/* ---- Profile / Hero Section ---- */
#profile-section {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
}

.profile-greeting {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.profile-name {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.profile-title {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.btn_container {
  margin-top: 1.5rem;
}

.btn_color {
  background: var(--accent-gradient);
  border: none;
  color: white !important;
  padding: 1rem 1.5rem;
  font-weight: 600;
  border-radius: 2rem;
  cursor: pointer;
  text-decoration: none !important;
  display: inline-block;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn_color:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(96, 145, 204, 0.4);
  color: white !important;
  text-decoration: none !important;
}

/* ---- Section Titles (underline style) ---- */
.section-label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3.5px;
  background: var(--accent-gradient);
  border-radius: 1px;
}

/* ---- About Section ---- */
#about-section {
  padding: 4rem 2rem;
  text-align: center;
}

.profile-photo-container {
  margin: 0 auto 2rem;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* THIS IS THE MAGIC FIX: Kills Quarto's default paragraph margins */
.profile-photo-container p {
  margin: 0;
  height: 100%;
  width: 100%;
}

.profile-photo-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%; /* Shifts focus up so your face isn't cropped */
}

.text_container {
  max-width: 800px;
  margin: 0 auto 2rem;
  font-size: 0.9rem;
}

.text_container p {
  color: var(--text-muted);
  line-height: 1.7;
  text-align: left;
  font-size: 0.9rem;
}

/* ---- Proficiencies / Skills ---- */
#proficiencies-section {
  padding: 3rem 2rem;
  text-align: center;
}

.proficiencies-intro {
  max-width: 700px;
  margin: 0 auto 2rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.9rem;
}

.article_container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.proficiency-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 320px;
  text-align: center;
  padding: 1.5rem;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.proficiency-card:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.proficiency-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: var(--accent-gradient);
  border-radius: 16px;
  color: white !important; /* Creates the stencil/cutout effect */
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(96, 145, 204, 0.35);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.proficiency-card:hover .proficiency-icon {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(96, 145, 204, 0.45);
}

.proficiency-icon .bi {
  font-size: 1.5rem;
  color: white !important; /* Creates the stencil/cutout effect */
  fill: white !important; /* Ensures SVGs also turn white */
}

.proficiency-card h3 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.proficiency-card p {
  color: var(--text-light);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* ---- Projects Section ---- */
#projects-section {
  padding: 4rem 2rem;
  text-align: center;
}

.details_container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  max-width: 400px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.project-card:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.project-card-image {
  margin: -1.5rem -1.5rem 1rem -1.5rem;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}

.project-card-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.project-card h3 {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.project-card h3 a {
  color: inherit;
}

.project-card h3 a:hover {
  color: var(--accent-blue);
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.project-card .project-meta {
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: italic;
}

.project-link {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--accent-blue) !important;
  font-weight: 600;
  font-size: 0.9rem;
}

.project-link:hover {
  text-decoration: underline !important;
}

.project-card figcaption,
.project-card .figure-caption {
  text-align: center !important;
  font-weight: 400 !important; /* 400 is standard normal weight, stripping away the bold */
  font-size: 0.3em; /* Optional: making it slightly smaller helps differentiate it from the main text */
  margin-top: 8px; /* Adds a little breathing room between the image and the text */
}

/* ---- Other Platforms ---- */
#platforms-section {
  padding: 4rem 2rem;
  text-align: center;
}

.platforms_container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.platform-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  max-width: 280px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.platform-card:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.platform-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  background: var(--accent-gradient);
  border-radius: 12px;
  color: white !important;
  font-size: 1.35rem;
  box-shadow: 0 3px 10px rgba(96, 145, 204, 0.3);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.platform-card:hover .platform-icon {
  transform: scale(1.1);
  box-shadow: 0 5px 14px rgba(96, 145, 204, 0.4);
}

.platform-icon .bi,
.platform-icon svg {
  font-size: 1.35rem;
  color: white !important; /* Creates the stencil/cutout effect */
  fill: white !important; /* Ensures SVGs also turn white */

  /* Centering overrides */
  line-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.platform-card h3 {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.platform-card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ---- Contact Section ---- */
#contact-section {
  padding: 4rem 2rem;
  text-align: center;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.contact-info {
  text-align: left;
  flex: 1;
  min-width: 250px;
}

.contact-info h2 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.contact-info p {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.contact-info a {
  color: var(--text-muted);
}

.contact-info a:hover {
  color: var(--accent-blue) !important;
}

/* ---- Navbar ---- */
.navbar {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.navbar-brand {
  font-weight: 600;
}

/* ---- Projects page cards ---- */
.projects-grid {
  gap: 2rem;
}

.projects .project-card {
  height: 100%;
  min-height: 200px;
}

.projects .project-card h2 {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.projects .project-card h2 a {
  color: inherit;
}

.projects .project-card h2 a:hover {
  color: var(--accent-blue);
}

.projects .project-card p,
.projects .project-card li {
  font-size: 0.875rem;
  line-height: 1.5;
}

/* ---- CV page (two-column layout) ---- */
.cv-page .quarto-document h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
  padding-bottom: 0.35rem;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, #6091cc, #ef8ebf) 1;
}

.cv-page .quarto-document h2:first-of-type {
  margin-top: 0;
}

.cv-grid {
  gap: 2rem;
  align-items: start;
}

.cv-sidebar {
  position: sticky;
  top: 1rem;
}

.cv-sidebar h2 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
}

.cv-sidebar h2:first-of-type {
  margin-top: 0;
}

/* Ensure bullet lists render properly on CV */
.cv-page ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.cv-page li {
  margin-bottom: 0.25rem;
}

/* ---- Beyond Data page ---- */
.beyond-data h2 {
  color: var(--accent-blue);
  font-size: 1.15rem;
}

/* ---- Hide default title where we use custom section headers ---- */
.index-page .quarto-title-block,
.projects-page .quarto-title-block {
  display: none;
}

/* ---- Profiencies intro text ---- */
.proficiencies-intro {
  margin-bottom: 1rem;
}

/* ===== Dark Mode Toggle ===== */
.dark-mode-toggle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition:
    background 0.2s,
    border-color 0.2s;
  flex-shrink: 0;
}

.quarto-navbar-tools .dark-mode-toggle {
  margin-right: 0.5rem;
}

.dark-mode-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
}

.dark-mode-toggle .dark-mode-icon {
  position: absolute;
}

.dark-mode-toggle .moon-icon {
  display: inline;
}

.dark-mode-toggle .sun-icon {
  display: none;
}

.dark-mode-toggle.dark .moon-icon {
  display: none;
}

.dark-mode-toggle.dark .sun-icon {
  display: inline;
}

/* ===== Dark Mode Theme ===== */
[data-theme="dark"] {
  --accent-blue: #7eb3e8;
  --accent-pink: #f5a3c7;
  --accent-gradient: linear-gradient(90deg, #7eb3e8, #f5a3c7);
  --text-dark: #e8e8e8;
  --text-muted: #b0b0b0;
  --text-light: #909090;
  --bg-primary: #1a1a1a;
  --bg-secondary: #2d2d2d;
  --bg-card: #252525;
  --border-dark: #404040;
}

[data-theme="dark"] body {
  background-color: var(--bg-primary) !important;
  color: var(--text-dark) !important;
}

[data-theme="dark"] .quarto-title,
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3 {
  color: var(--text-dark) !important;
}

[data-theme="dark"] p {
  color: var(--text-muted) !important;
}

[data-theme="dark"] .section-label {
  color: var(--text-muted) !important;
}

[data-theme="dark"] .section-title {
  color: var(--text-dark) !important;
}

[data-theme="dark"] .profile-name {
  color: var(--text-dark) !important;
}

[data-theme="dark"] .profile-title,
[data-theme="dark"] #profile-section p {
  color: var(--text-muted) !important;
}

[data-theme="dark"] .text_container p,
[data-theme="dark"] .proficiencies-intro {
  color: var(--text-muted) !important;
}

[data-theme="dark"] .proficiency-icon {
  box-shadow: 0 4px 12px rgba(126, 179, 232, 0.4);
}

[data-theme="dark"] .proficiency-card:hover .proficiency-icon {
  box-shadow: 0 6px 16px rgba(126, 179, 232, 0.5);
}

[data-theme="dark"] .platform-icon {
  box-shadow: 0 3px 10px rgba(126, 179, 232, 0.35);
}

[data-theme="dark"] .platform-card:hover .platform-icon {
  box-shadow: 0 5px 14px rgba(126, 179, 232, 0.45);
}

[data-theme="dark"] .proficiency-card,
[data-theme="dark"] .project-card,
[data-theme="dark"] .platform-card {
  background: var(--bg-card) !important;
  border-color: var(--border-dark) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .proficiency-card:hover,
[data-theme="dark"] .project-card:hover,
[data-theme="dark"] .platform-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .proficiency-card h3,
[data-theme="dark"] .project-card h3,
[data-theme="dark"] .project-card h2,
[data-theme="dark"] .platform-card h3 {
  color: var(--text-dark) !important;
}

[data-theme="dark"] .proficiency-card p,
[data-theme="dark"] .project-card p,
[data-theme="dark"] .project-card em,
[data-theme="dark"] .platform-card p {
  color: var(--text-muted) !important;
}

[data-theme="dark"] .contact-info h2 {
  color: var(--text-dark) !important;
}

[data-theme="dark"] .contact-info p,
[data-theme="dark"] .contact-info a {
  color: var(--text-muted) !important;
}

[data-theme="dark"] #quarto-content {
  background-color: var(--bg-primary) !important;
}

[data-theme="dark"] .navbar {
  border-bottom-color: var(--border-dark) !important;
}

[data-theme="dark"] .cv-sidebar,
[data-theme="dark"] .cv-main {
  color: var(--text-dark);
}

[data-theme="dark"] .cv-page .quarto-document h2 {
  border-image: linear-gradient(90deg, #7eb3e8, #f5a3c7) 1;
}

[data-theme="dark"] table,
[data-theme="dark"] .table {
  color: var(--text-muted) !important;
}

[data-theme="dark"] .table td,
[data-theme="dark"] .table th {
  border-color: var(--border-dark) !important;
}
