/* ============ UKIYO-E THEME - Global Styles ============ */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code&family=Playfair+Display:wght@400;600;700;800&family=Noto+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --indigo-dark: #1a2744;
  --indigo: #2d4a7a;
  --wave-blue: #3b6fa0;
  --wave-light: #6b9fcc;
  --foam: #e8dcc8;
  --cream: #faf3e0;
  --paper: #fffbf0;
  --accent-red: #b83a3a;
  --warm-brown: #8b6f4e;
  --text-dark: #1a2332;
  --text-muted: #5a6b82;
}

html, body {
  font-family: 'Noto Sans', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  background: var(--paper);
}

/* About page specific background */
body.about-page {
  background: var(--paper) !important;
  min-height: 100vh;
}

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  color: var(--text-dark);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-family: 'Playfair Display', Georgia, serif;
}

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

a:hover {
  border-color: transparent;
}

/* ============ LEGACY PANEL LAYOUT (work/projects pages) ============ */
.panel {
  color: var(--text-dark);
}

.panel-link:hover .panel {
  color: #fff !important;
}

.emoji {
  color: var(--text-dark);
}

.about-center-text, .about-img, .concert-caption, .concert-img-wrapper, .content-page, .photo-flex-row, .music-flex-row, .award-organization, .project-header h3, .award-header h3, .skill-tile h3 {
  color: var(--text-dark);
}

/* ============ SHARED LOGO (for work/projects pages) ============ */
.ag-logo {
  color: var(--text-dark);
  font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif !important;
}

.ag-logo:hover {
  color: var(--wave-blue);
}

.container {
  display: flex;
  flex-direction: row;
  height: 100vh;
  width: 100vw;
  gap: 0;
}

.panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.panel h1 {
  font-size: 2.5rem;
  margin-top: 1rem;
}

.panel p {
  font-size: 1.2rem;
  max-width: 300px;
}

.emoji {
  font-size: 4rem;
  display: block;
  margin-bottom: 1rem;
}

.panel img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
  display: block;
}

/* Colors for each section */
.blog {
  background-color: var(--indigo-dark);
}

.work {
  background-color: #dde7f0;
  color: var(--text-dark);
}

.about {
  background-color: #a8c4a0;
}

.home-button {
  position: fixed;
  top: 300px;
  left: 300px;
  font-style: italic;
  text-decoration: underline;
  font-size: 1.5rem;
  color: white;
  text-decoration-thickness: 2px;
  z-index: 1000;
}

.home-button:hover {
  color: white;
  cursor: pointer;
}

.panel-link {
  flex: 1 1 0;
  display: flex;
  min-width: 0;
  min-height: 0;
  padding: 0;
  margin: 0;
}

.panel-link .panel {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: box-shadow 0.35s cubic-bezier(0.4, 0.2, 0.2, 1),
              transform 0.35s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.panel-link:hover .panel {
  box-shadow: 0 8px 32px rgba(0,0,0,0.22), 0 3px 12px rgba(0,0,0,0.18);
  z-index: 1;
  position: relative;
  transform: scale(0.97) translateY(8px);
}

.content-page {
  width: 100vw;
  height: 100vh;
  max-width: none;
  margin: 0;
  padding: 40px 0 0 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.content-page h1, .content-page h2, .content-page p, .content-page ul, .content-page section {
  max-width: none;
  margin-left: 40px;
  margin-right: 40px;
  text-align: left;
}

.content-page h1 {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.content-page section {
  margin-bottom: 2rem;
}

.content-page p, .content-page ul {
  max-width: 700px;
}

.photo-flex-row {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: flex-end;
}

.photo-flex-row > div:last-child {
  min-width: 320px;
  display: flex;
  justify-content: flex-end;
}

.music-flex-row {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: flex-end;
}
.music-flex-row > div:last-child {
  min-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.concert-img-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}
.concert-img {
  width: 320px;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  display: block;
}
.concert-caption {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(26, 39, 68, 0.8);
  color: var(--cream);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 1.1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  white-space: nowrap;
}
.concert-img-wrapper:hover .concert-caption {
  opacity: 1;
}

.ag-logo {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 120px;
  height: 120px;
  background: rgba(255,251,240,0.2);
  border-radius: 50%;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 2px 12px rgba(26, 39, 68, 0.15);
  z-index: 1000;
  transition: all 0.3s ease, opacity 0.4s cubic-bezier(0.4,0.2,0.2,1), transform 0.4s cubic-bezier(0.4,0.2,0.2,1);
  padding: 0;
  overflow: visible;
  pointer-events: auto;
}

.ag-logo img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  border-radius: 50%;
}

.ag-logo:hover {
  background: rgba(255,251,240,0.3);
  color: var(--wave-blue);
  transform: scale(1.05);
}

.about-img {
  display: block;
  margin: 24px auto 16px auto;
  width: 240px;
  height: 240px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(26, 39, 68, 0.12);
  border: 4px solid var(--foam);
  filter: brightness(1.1);
}

.about-center-text {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 24px auto;
}

/* ============ CAD EMBED ============ */
.cad-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 10px;
  overflow: hidden;
  background: #f0ebe2;
}

.cad-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .container {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }
  .panel-link {
    min-height: 33vh;
  }
  .photo-flex-row {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }
  .music-flex-row {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }
  .music-flex-row > div:last-child {
    align-items: stretch;
  }
}
