body {
  background-color: #f0f0f0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

.site-header {
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

.desktop-name {
  display: inline-block;
  font-size: 2rem;
  transition: color 0.3s ease;
}

.logo a:hover .desktop-name {
  color: #0066cc;
}

.mobile-name {
  display: none;
  font-weight: bold;
  font-size: 2rem;
}

.main-nav ul {
  display: flex;
  gap: 0.1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-nav li {
  margin-left: 2rem;
}

.main-nav a {
  text-decoration: none;
  color: #333;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
  font-weight: 500;
}

.main-nav a:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.main-nav a.active {
  background-color: #176ad6;
  font-weight: bold;
  color: white;
  box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
  font-weight: 600;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 200;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #333;
  transition: all 0.3s ease;
}

main {
  margin: 2rem auto;
  padding: 0 2rem;
}

section {
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin-bottom: 2rem;
}

h1,
h2 {
  color: #333;
}

footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

.project-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2em;
}

.project-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  display: flex;
  align-items: center;
  transition: box-shadow 0.2s;
  padding: 1em;
}

.project-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.13);
}

.project-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.project-thumb {
  border-radius: 8px;
  margin-right: 1.5em;
  background: #f5f5f5;
}

.project-info h3 {
  margin: 0 0 0.2em 0;
  font-size: 1.3em;
  font-weight: 600;
}

.project-date {
  font-size: 0.95em;
  color: #888;
  margin-bottom: 0.4em;
  display: block;
}

.project-brief {
  margin: 0;
  color: #444;
  font-size: 1em;
}

.project-detail {
  max-width: 700px;
  margin: 2em auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  padding: 2em;
  text-align: center;
}

.project-detail-image {
  border-radius: 12px;
  margin-bottom: 1em;
}

.project-detail h1 {
  margin-top: 0;
  font-size: 2.2em;
}

.project-detail .project-date {
  color: #888;
  font-size: 1.1em;
  margin-bottom: 1em;
}

.project-links {
  list-style: none;
  padding: 0;
  margin: 1.5em 0;
  display: flex;
  justify-content: center;
  gap: 2em;
}

.project-links li a {
  color: #0077ff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.project-links li a:hover {
  color: #0055aa;
}

.project-link-btn {
  display: inline-block;
  padding: 0.7em 1.6em;
  margin: 0;
  font-size: 1.08em;
  font-weight: 600;
  color: #1e355e;
  background: #e6ecf7;
  border-radius: 0.7em;
  box-shadow: 0 2px 12px 0 rgba(42, 77, 143, 0.06);
  text-decoration: none;
  transition: background 0.18s, color 0.18s, border 0.18s, transform 0.13s,
    box-shadow 0.13s;
  position: relative;
  overflow: hidden;
}

.project-link-btn:hover,
.project-link-btn:focus {
  background: #d2e0f7;
  color: #16305a;
  border-color: #1e355e;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 24px 0 rgba(42, 77, 143, 0.13);
}

.project-link-btn:active {
  transform: scale(0.98);
  box-shadow: 0 1px 4px 0 rgba(42, 77, 143, 0.08);
}

/* Contact page styles */
.contact-links {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin: 2rem 0;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.8rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.linkedin-link {
  background: #0077b5;
  color: white;
  border: 2px solid transparent;
}

.linkedin-link:hover,
.linkedin-link:focus {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 119, 181, 0.3);
  background: #005885;
}

.linkedin-link:active {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 15px rgba(0, 119, 181, 0.2);
}

.contact-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.linkedin-link:hover .contact-icon {
  transform: scale(1.1);
}

.contact-text {
  font-weight: 600;
  letter-spacing: 0.025em;
}

/* Video embed styles for responsive YouTube videos */
.video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  border-radius: 8px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Hobby/project grid styles */
.hobby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2em;
  margin: 1.5em 0;
}

.hobby-card {
  background: #f9f9f9;
  padding: 1em;
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.hobby-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.hobby-card h4 {
  margin: 0.5em 0 0.2em 0;
  color: #333;
  font-size: 1.1em;
}

.hobby-card p {
  margin: 0;
  color: #666;
  font-size: 0.95em;
}

@media (max-width: 768px) {
  .site-header {
    padding: 1rem;
  }

  .desktop-name {
    display: none;
  }

  .mobile-name {
    display: inline-block;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    inset: 0 0 0 30%;
    background: white;
    padding: min(30vh, 10rem) 2rem;
    transform: translateX(100%);
    transition: transform 350ms ease-in;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 100;
  }

  .main-nav.nav-open {
    transform: translateX(0%);
  }

  .main-nav ul {
    /* display: flex; */
    flex-direction: column;
    gap: 0.75rem;
    padding: 0;
  }

  .main-nav a.active {
    width: 100%;
    display: block;
  }

  .main-nav li {
    margin-left: 0;
  }

  .mobile-nav-toggle[aria-expanded="true"] .hamburger span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }

  .mobile-nav-toggle[aria-expanded="true"] .hamburger span:nth-child(2) {
    opacity: 0;
  }

  .mobile-nav-toggle[aria-expanded="true"] .hamburger span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }

  .project-links {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.7em !important;
  }

  .project-link-btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
    font-size: 0.98em;
    padding: 0.7em 0.6em;
    word-break: break-word;
    white-space: normal;
  }

  .contact-links {
    flex-direction: column;
    gap: 1rem;
  }

  .contact-link {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  .hobby-grid {
    grid-template-columns: 1fr;
    gap: 1.5em;
  }

  .video-container {
    padding-bottom: 56.25%;
  }
}
