/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  color: #374151;
  background-color: #f5f5f4;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 300;
  letter-spacing: 0.025em;
  line-height: 1.2;
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(245, 245, 244, 0.9);
  backdrop-filter: blur(8px);
  z-index: 1000;
  border-bottom: 1px solid #e7e5e4;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 5rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 300;
  color: #111827;
  letter-spacing: 0.05em;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-size: 1rem;
  font-weight: 300;
  color: #374151;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #111827;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger {
  width: 1.5rem;
  height: 2px;
  background-color: #374151;
  margin: 2px 0;
  transition: 0.3s;
}

/* Main Content */
main {
  flex: 1;
  padding-top: 5rem;
}

/* Hero Section */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: 5rem;
  font-weight: 300;
  color: #111827;
  line-height: 1.1;
  margin-bottom: 2rem;
}

.hero-subtitle {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1.125rem;
  color: #6b7280;
}

.hero-image {
  display: flex;
  justify-content: center;
}

/* Hero Image with Gradient Overlay */
.hero-image-container {
  position: relative;
  width: 100%;
  height: 24rem;
  border-radius: 0.5rem;
  overflow: hidden;
}

.profile-image-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, #f5f5f4 3%, rgba(245, 245, 244, 0.8) 5%, rgba(245, 245, 244, 0.4) 10%, transparent 100%);
  pointer-events: none;
}

/* Profile Images for other pages */
.profile-image-about {
  width: 100%;
  height: 25rem;
  object-fit: cover;
  object-position: center;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Work Images */
.work-image {
  width: 100%;
  height: 12rem;
  border-radius: 0.5rem;
  overflow: hidden;
}

.work-image-item {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* スライド用アニメーション */
.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(100%);
  transition: transform 0.6s ease, opacity 0.6s ease;
  z-index: 0;
}

.slide.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 2;
}

.slide.prev {
  transform: translateX(-100%);
  opacity: 0;
  z-index: 1;
}

.slideshow-container {
  position: relative;
  width: 100%;
  height: 24rem; /* .hero-image-container と同じ高さ */
  overflow: hidden; /* これでスライドのはみ出しを隠す */
  border-radius: 0.5rem; /* 角丸も必要なら追加 */
}

/* Legacy image placeholder styles for fallback */
.image-placeholder {
  width: 100%;
  max-width: 28rem;
  height: 24rem;
  background-color: #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 1rem;
}

/* Sections */
.section {
  padding: 5rem 1.5rem;
  border-top: 1px solid #e7e5e4;
}

.container {
  max-width: 64rem;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300;
  color: #111827;
  margin-bottom: 1.5rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
}

/* About Section */
.text-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1.125rem;
  color: #374151;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.link-with-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  color: #374151;
  transition: color 0.3s ease;
}

.link-with-arrow:hover {
  color: #111827;
}

.arrow-icon {
  transition: transform 0.3s ease;
}

.link-with-arrow:hover .arrow-icon {
  transform: translateX(0.25rem);
}

.about-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-item{
  margin-bottom: 2rem;
}

.info-item h3 {
  font-size: 1.125rem;
  color: #111827;
  margin-bottom: 1rem;
}

.info-item p {
  color: #374151;
  line-height: 1.6;
}

.achievements {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Works Section */
.works-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.work-item {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: center;
  transition: opacity 0.3s ease;
}

.work-item:hover {
  opacity: 0.7;
}

.work-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.work-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.work-title {
  font-size: 1.5rem;
  font-weight: 300;
  color: #111827;
  transition: text-decoration 0.3s ease;
}

.work-item:hover .work-title {
  text-decoration: underline;
}

.work-year {
  font-size: 1.125rem;
  color: #6b7280;
}

.work-description {
  font-size: 1.125rem;
  color: #374151;
  line-height: 1.6;
}

.work-achievement {
  font-size: 1rem;
  color: #6b7280;
  font-style: italic;
}

/* Contact Section */

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  color: #374151;
  font-size: 2rem;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.social-link:hover {
  color: #111827;
}

/* Footer */
.footer {
  background-color: #f5f5f4;
  padding: 3rem 1.5rem;
  text-align: center;
}

.footer p {
  color: #6b7280;
  font-size: 0.875rem;
}

/* Page Styles */
.page-section {
  padding: 8rem 1.5rem 5rem;
}

.page-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 300;
  color: #111827;
  margin-bottom: 4rem;
}

/* Profile Styles */
.about-detail-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
}

.profile-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.profile-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.profile-section-title {
  font-size: 1.5rem;
  font-weight: 300;
  color: #111827;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e7e5e4;
}

.profile-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.profile-item {
  display: flex;
  flex-wrap: wrap;
  font-size: 1rem;
  line-height: 1.6;
}

.profile-label {
  font-weight: 400;
  margin-right: 0.5rem;
  font-size: 1.125rem;
  color: #111827; /* ダークグレー */
  min-width: 5em;
}

.profile-value {
  font-size: 1.125rem;
  color: #374151; /* やや薄めのグレー */
}

.profile-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1.125rem;
  color: #374151;
  line-height: 1.7;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.skill-category {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skill-category h3 {
  font-size: 1.125rem;
  font-weight: 300;
  color: #111827;
}

.skill-category p {
  color: #374151;
  line-height: 1.6;
}

.achievements-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1.125rem;
  color: #374151;
  line-height: 1.7;
}

/* Enhanced Contact Form Styles */
.contact-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 1rem;
  font-weight: 400;
  color: #374151;
  margin-bottom: 0.5rem;
}

.required {
  color: #ef4444;
  font-weight: 500;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 1rem;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 300;
  color: #374151;
  transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #000080;
  box-shadow: 0 0 0 3px rgba(61, 87, 217, 0.1);
  transform: translateY(-2px);
}

.form-input.error,
.form-textarea.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #9ca3af;
}

.form-textarea {
  resize: vertical;
  min-height: 8rem;
}

.form-error {
  display: none;
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Checkbox Styles */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #d1d5db;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background-color: #000080;
  border-color: #000080;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: "✓";
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
}

.checkbox-text {
  flex: 1;
}

.privacy-link {
  color: #000080;
  text-decoration: underline;
}

.privacy-link:hover {
  color: #000080;
}

/* Privacy Policy Modal */
.privacy-section {
  margin-bottom: 3rem;
}

.privacy-section-title {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 1rem;
  border-left: 4px solid #4b5563;
  padding-left: 0.75rem;
  color: #222;
}

/* === 本文テキスト === */
.privacy-content-text p {
  margin-bottom: 1rem;
}

.privacy-intro{
  font-size: 1.1rem;
  margin-bottom: 1.1rem;
}

/* === リスト（番号付き/箇条書き） === */
.privacy-list {
  padding-left: 1.5rem;
  list-style-type: disc;
  margin-bottom: 1rem;
}

.privacy-sublist {
  padding-left: 1.5rem;
  list-style-type: circle;
  margin-top: 0.5rem;
}

.privacy-list li,
.privacy-sublist li {
  margin-bottom: 0.5rem;
}

/* === お問い合わせ先情報 === */
.contact-info-box {
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.email-link {
  color: #2563eb;
  text-decoration: underline;
}

.email-link:hover {
  color: #1d4ed8;
}

/* === フッター部分 === */
.privacy-footer {
  text-align: right;
  font-size: 0.9rem;
  color: #444;
  margin-top: 2rem;
}

/* Submit Button */
.form-submit {
  align-self: flex-start;
  background-color: #000080;
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 150px;
  justify-content: center;
}

.form-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(9, 122, 193, 0.3);
}

.form-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-loading {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.loading-spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Form Note */
.form-note {
  margin-top: 1rem;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.5;
}

.email-link {
  color: #000080;
  text-decoration: underline;
}

.email-link:hover {
  color: #000080;
}

/* Message Styles */
.message {
  display: none;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
  animation: slideIn 0.3s ease-out;
}

.success-message {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.error-message {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.message-icon {
  font-size: 1.5rem;
  font-weight: 600;
  flex-shrink: 0;
}

.message-content h3 {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.message-content p {
  font-size: 0.875rem;
  line-height: 1.5;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Response Info */
.response-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.response-label {
  font-size: 1rem;
  color: #6b7280;
}

/* News Styles - Clean Design */
.news-container {
  max-width: 100%;
}

.news-list,
.news-preview-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-item,
.news-preview-item {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.3s ease;
}

.news-item:hover,
.news-preview-item:hover {
  background-color: rgba(249, 250, 251, 0.5);
}

.news-item:last-child,
.news-preview-item:last-child {
  border-bottom: none;
}

.news-date {
  flex-shrink: 0;
  width: 120px;
}

.news-date time {
  font-size: 1rem;
  font-weight: 400;
  color: #000080;
  letter-spacing: 0.025em;
}

.news-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.news-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: #D4E1E8;
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 400;
  border-radius: 0.25rem;
  letter-spacing: 0.025em;
}

.news-title {
  font-size: 1.125rem;
  font-weight: 400;
  color: #111827;
  line-height: 1.5;
  letter-spacing: 0.025em;
  margin: 0;
}

.news-description {
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

/* News Preview Section */

.news-preview-list {
  background-color: white;
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.news-preview-item {
  padding: 1rem 0;
}

.news-preview-item:first-child {
  padding-top: 0;
}

.news-preview-item:last-child {
  padding-bottom: 0;
}

/* Loading Placeholder */
.loading-placeholder {
  text-align: center;
  padding: 2rem;
  color: #9ca3af;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #f5f5f4;
    flex-direction: column;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e7e5e4;
  }

  .nav.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }

  .hero-image {
    order: -1;
  }

  .hero-image-container {
    height: 16rem;
  }

  .profile-image-about {
    height: 32rem;
  }

  .about-detail-grid,
  .contact-detail-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .work-item {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .work-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* News Mobile Styles */
  .news-item,
  .news-preview-item {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }

  .news-date {
    width: auto;
  }

  .news-date time {
    font-size: 0.875rem;
  }

  .news-title {
    font-size: 1rem;
  }

  .news-description {
    font-size: 0.875rem;
  }

  .slideshow-container {
    position: relative;
    width: 100%;
    height: 16rem; /* .hero-image-container と同じ高さ */
    overflow: hidden; /* これでスライドのはみ出しを隠す */
    border-radius: 0.5rem; /* 角丸も必要なら追加 */
  }
}

@media (max-width: 480px) {
  .section {
    padding: 3rem 1rem;
  }

  .hero {
    padding: 1rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .news-preview-list {
    padding: 0.75rem;
  }

  .news-item,
  .news-preview-item {
    padding: 1rem 0;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Focus Styles */
*:focus-visible {
  outline: 2px solid #374151;
  outline-offset: 2px;
}

/* Selection */
::selection {
  background-color: #374151;
  color: #f5f5f4;
}

/* Smooth Transitions */
* {
  transition: color 0.3s ease, background-color 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

* Projects Page Styles */
.projects-container {
  max-width: 100%;
}

.projects-section {
  margin-bottom: 5rem;
}

.projects-section:last-child {
  margin-bottom: 0;
}

.projects-section-title {
  font-size: 2rem;
  font-weight: 300;
  color: #111827;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e7e5e4;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  background: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

.project-card.featured {
  border: 2px solid #000080;
}

.project-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.project-image-item {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.project-content {
  padding: 1.5rem;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 400;
  color: #111827;
  line-height: 1.4;
  margin: 0;
}

.project-year {
  font-size: 1rem;
  color: #6b7280;
  font-weight: 300;
}

.project-description {
  font-size: 1rem;
  color: #374151;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tech-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: #D4E1E8;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 300;
  border-radius: 1rem;
}

.project-achievement {
  font-size: 0.875rem;
  color: #000080;
  font-weight: 400;
  font-style: italic;
}

/* Project Detail Page Styles */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
}

.breadcrumb-link {
  color: #6b7280;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.breadcrumb-link:hover {
  color: #111827;
}

.breadcrumb-separator {
  color: #9ca3af;
}

.breadcrumb-current {
  color: #111827;
  font-weight: 400;
}

.project-header-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
  align-items: center;
}

.project-hero-image {
  position: relative;
}

.project-hero-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

.project-status-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #000080;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 400;
}

.project-hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-hero-title {
  font-size: 2.5rem;
  font-weight: 300;
  color: #111827;
  line-height: 1.2;
  margin: 0;
}

.project-hero-subtitle {
  font-size: 1.25rem;
  color: #6b7280;
  line-height: 1.5;
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-meta-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.meta-label {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 300;
}

.meta-value {
  font-size: 0.875rem;
  color: #111827;
  font-weight: 400;
}

.project-content-section {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-bottom: 4rem;
}

.project-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-section-title {
  font-size: 1.75rem;
  font-weight: 300;
  color: #111827;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e7e5e4;
}

.project-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1.125rem;
  color: #374151;
  line-height: 1.7;
}

.feature-list,
.work-list {
  display: grid;
  gap: 1.5rem;
}

.feature-item,
.work-item {
  padding: 1.5rem;
  background: #fafafa;
  border-radius: 0.5rem;
  border-left: 4px solid #000080;
}

.feature-title,
.work-title {
  font-size: 1.125rem;
  font-weight: 400;
  color: #111827;
  margin-bottom: 0.75rem;
}

.feature-description,
.work-description {
  font-size: 1rem;
  color: #374151;
  line-height: 1.6;
}

.tech-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.tech-category {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tech-category-title {
  font-size: 1.125rem;
  font-weight: 300;
  color: #111827;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 3rem;
  border-top: 1px solid #e7e5e4;
}

.nav-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  color: #374151;
  font-size: 1rem;
  font-weight: 300;
  transition: all 0.3s ease;
  text-decoration: none;
}

.nav-button:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #111827;
}

.nav-icon {
  transition: transform 0.3s ease;
}

.nav-button:hover .nav-icon {
  transform: translateX(0.25rem);
}

.nav-back:hover .nav-icon {
  transform: translateX(-0.25rem);
}


/* Responsive Design for Project Pages */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-header-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-hero-title {
    font-size: 2rem;
  }

  .project-meta-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .feature-list,
  .work-list {
    grid-template-columns: 1fr;
  }

  .project-navigation {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .project-card {
    margin: 0 -0.5rem;
  }

  .project-hero-title {
    font-size: 1.75rem;
  }

  .project-achievement-badge {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

