/* === Global Layout & Typography === */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #111;
  background-color: #fafafa;
}

a {
  color: #0d6efd;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* === Main Wrapper === */
.center-wrapper {
  display: flex;
  justify-content: center;
  padding: 40px 16px 80px;
}

.profile-container {
  width: 100%;
  max-width: 960px;
  text-align: center;
}

/* === Header / Intro === */
#main-headline {
  font-size: clamp(10rem, 8vw, 4.5rem);
  letter-spacing: 0.08em;
  text-align: center;

  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.profile-container h2 {
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.profile-container p {
  margin: 0.25rem 0;
}

.profile-pic {
  width: min(950px, 100%);
  height: 50vh;
  max-height: 700px;
  border-radius: 12px;
  margin: 24px auto 32px;
  display: block;
  object-fit: cover;
}

.profile-text {
  text-align: center;
  margin-right: auto;
  margin-left: auto;
  max-width: 950px;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* === Reusable Card Layouts === */
.section-title {
  text-align: left;
  font-size: 1.75rem;
  margin: 40px 0 16px;
}

.education-container,
.experience-container {
  width: 100%;
  max-width: 960px;

  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 0 8px;
  margin-top: 30px;
  margin-bottom: 30px;
  text-align: center;
}

ul,
ol {
  list-style-position: inside;
  padding: 0;
  margin: 0.5rem 0 0;
}

li {
  margin-bottom: 0.5rem;
}

.card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  text-align: left;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #0d6efd;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.number {
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}

.card h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
}

.subtitle {
  font-style: italic;
  color: #666;
  margin: 0 0 12px;
}

.description {
  margin: 0;
  line-height: 1.6;
  color: #444;
}

/* === Project Gallery === */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 1120px;
  margin: 20px auto 0;
}

.project-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 18px auto 12px;
  max-width: 980px;
}

.project-section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.project-section-link:hover {
  text-decoration: none;
  transform: translateY(-2px);
  background: #0d6efd;
}

.project-section-link--secondary {
  background: #f3f4f6;
  color: #111827;
  border: 1px solid #e5e7eb;
}

.project-section-link--secondary:hover {
  background: #e5e7eb;
}

.project-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e7e7e7;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.08);
  border-color: #0d6efd;
}

.image-wrapper {
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover img {
  transform: scale(1.05);
}

.card-content {
  padding: 14px 16px 18px;
  text-align: left;
}

.project-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
}

.project-location {
  margin: 6px 0 0;
  color: #777;
  font-size: 0.9rem;
}

/* === Footer / Gift Button === */
#thank-you-section {
  text-align: center;
  margin-top: 72px;
  padding: 40px 16px;
  background-color: #f8f8f8;
}

#thank-you-section .btn-primary {
  padding: 12px 28px;
  font-size: 1rem;
  border-radius: 999px;
}

/* === Visualizations Page === */
.visualizations-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 16px 80px;
}

.visualizations-header {
  text-align: center;
  margin-bottom: 32px;
}

.visualizations-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: flex-start;
}

.visualizations-section {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.visualizations-section h2 {
  margin-top: 0;
}

.svg-container {
  width: 100%;
  min-height: 220px;
  margin-top: 12px;
}

.data-viz-container {
  width: 100%;
  min-height: 420px;
  margin-top: 12px;
}

.data-viz-container .vega-embed summary {
  margin-top: 8px;
}

.visualizations-section h3 {
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

/* === Responsive === */
@media (max-width: 992px) {
  .project-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .visualizations-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .center-wrapper {
    padding-top: 24px;
  }

  .project-gallery {
    grid-template-columns: 1fr;
  }

  .image-wrapper {
    height: 220px;
  }
}
