body {
  margin: 0;
  font-family: "Book Antiqua", "Palatino Linotype", Palatino, serif;
  background-color: #f5f5f5;
}

/* -------------------------- */
/* Individual Pages Navigation */
/* -------------------------- */
body:not(.home) nav {
  display: flex;
  justify-content: space-between;   /* Home left, Blog right, others evenly spaced */
  background-color: #000;
  padding: 0;
  margin: 0;
  height: 60px;                     /* fixed nav height */
}

/* Individual page links */
body:not(.home) nav a {
  flex: 1;                          /* each link takes equal width */
  display: flex;
  align-items: center;
  justify-content: center;
  color: white !important;
  text-decoration: none !important;
  font-weight: bold;
  padding: 0;                       /* height controlled by nav */
  height: 100%;
  box-sizing: border-box;
}

/* Hover effect: full-area highlight */
body:not(.home) nav a:hover {
  background-color: #444;
  text-decoration: none !important;
  transition: background-color 0.3s ease;
}

/* -------------------------- */
/* Main Content (all pages) */
/* -------------------------- */
.container {
  max-width: 800px;
  margin: 40px auto;
  background: white;
  padding: 30px;
  text-align: center;
  border-radius: 8px;
}

/* Profile image */
.profile-pic {
  margin-bottom: 20px;
  border-radius: 0;       /* rectangle for all profile pics */
  display: block;
}

/* -------------------------- */
/* Homepage Layout: Sidebar + Bio + Image */
/* -------------------------- */
body.home .home-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* Left Sidebar */
body.home .side-nav {
  width: 200px;
  background-color: #000;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  margin: 0;
}

/* Sidebar top name */
body.home .side-nav .name {
  font-size: 28px;
  padding: 40px 20px;
  margin-bottom: 0;
}

/* Sidebar menu items */
body.home .side-nav .menu-item {
  display: block;
  font-size: 20px;
  text-decoration: none;
  padding: 15px 20px;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  border-radius: 0;
}

/* Hover effect: full-width highlight with rounding for first/last */
body.home .side-nav .menu-item:hover {
  background-color: #444;
  text-decoration: none;
}

body.home .side-nav .menu-item:first-child:hover {
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

body.home .side-nav .menu-item:last-child:hover {
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

/* Force sidebar links white */
body.home .side-nav a.menu-item,
body.home .side-nav a.menu-item:link,
body.home .side-nav a.menu-item:visited,
body.home .side-nav a.menu-item:active,
body.home .side-nav a.menu-item:focus {
  color: white !important;
  text-decoration: none;
}

/* Center biography container */
body.home .bio-content {
  flex: 1;
  padding: 60px;
  overflow-y: auto;
}

/* Centered name above left-aligned bio */
body.home .bio-content .bio-name {
  text-align: center;
  font-size: 32px;
  margin-bottom: 30px;
}

body.home .bio-content p {
  text-align: left;
  line-height: 1.6;
}

/* Right profile image */
body.home .image-column {
  width: 400px;
  flex-shrink: 0;
  position: relative;
}

body.home .image-column .profile-pic {
  height: 100vh;
  width: auto;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

/* Bottom links in homepage sidebar */
body.home .side-nav .contact-link {
  margin-top: auto;
  font-size: 16px;
  opacity: 1;
}

body.home .side-nav .credits-link {
  font-size: 16px;
  opacity: 1;
}

/* Contact grid layout */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
  justify-items: center;
}

/* Contact cards */
.contact-card {
  width: 160px;
  height: 160px;
  background-color: #000;
  color: white;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-card:hover {
  background-color: #444;
}

/* Icon styling */
.contact-card img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

/* Label text */
.contact-card span {
  font-size: 15px;
  text-align: center;
}

/* Email copied feedback */
.contact-card.copied {
  background-color: #14db98;
}

/* Tooltip (hidden by default) */
.contact-card .tooltip {
  position: absolute;
  bottom: 4px;   /* moves the tooltip up into the card */
  left: 50%;      /* centers horizontally */
  transform: translateX(-50%);
  background-color: #222;
  color: white;
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* Ensure positioning works */
.contact-card {
  position: relative;
}

/* Show tooltip when copied */
.contact-card.copied .tooltip {
  opacity: 1;
}

/* Contact page base styling */
body.contact-page {
  background-color: #000;
  color: white;
}

/* Contact title */
body.contact-page h1 {
  color: white;
}

/* Contact icons */
body.contact-page .contact-card {
  border: 1px solid transparent;
  transition: border 0.2s ease, background-color 0.2s ease;
}

body.contact-page .contact-card:hover {
  border: 1px solid white;
}

/* Contact page: remove white container layer */
body.contact-page .container {
  background: transparent;
  color: white;
  box-shadow: none;
}
