@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital,wght@0,400;0,700;1,400;1,700&family=Jost:wght@100;200;300;400;500;600;700&display=swap');

/* Scope all styles to avoid interfering with other pages */
.about-page-container {
  --marimba-bg: #eae8e1;
  --marimba-dark: #2b3e21;
  --marimba-orange: #ff5d2a;
  --marimba-blue: #a7b5bd;
  --marimba-grid-line: rgba(43, 62, 33, 0.06);

  background-color: var(--marimba-bg);
  color: var(--marimba-dark);
  font-family: 'Jost', sans-serif;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.8s cubic-bezier(0.76, 0, 0.24, 1), color 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}

.about-page-container.dark-theme-active {
  background-color: var(--marimba-dark);
  color: #ffffff;
  --marimba-grid-line: rgba(255, 255, 255, 0.08);
}

/* 5-Column Grid Overlay */
.about-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 0 4vw;
  box-sizing: border-box;
}

.about-grid-col {
  border-right: 1px solid var(--marimba-grid-line);
  height: 100%;
  transition: border-color 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}

.about-grid-col:last-child {
  border-right: none;
}

/* Radial Glows */
.about-radial-glows {
  position: absolute;
  top: -10vw;
  left: 10vw;
  width: 80vw;
  height: 50vw;
  background: radial-gradient(circle at 30% 30%, rgba(255, 93, 42, 0.07) 0%, transparent 60%),
              radial-gradient(circle at 70% 40%, rgba(167, 181, 189, 0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

/* Window Blinds Shadow Overlay */
.about-blinds-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
  background: linear-gradient(135deg, rgba(43, 62, 33, 0.02) 0%, transparent 18%, 
                              rgba(43, 62, 33, 0.035) 30%, transparent 48%, 
                              rgba(43, 62, 33, 0.035) 60%, transparent 78%, 
                              rgba(43, 62, 33, 0.02) 90%, transparent 100%);
  background-size: 100px 100px;
  mix-blend-mode: multiply;
  opacity: 0.95;
}

.about-page-container.dark-theme-active .about-blinds-overlay {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.12) 0%, transparent 18%, 
                              rgba(0, 0, 0, 0.18) 30%, transparent 48%, 
                              rgba(0, 0, 0, 0.18) 60%, transparent 78%, 
                              rgba(0, 0, 0, 0.12) 90%, transparent 100%);
  background-size: 100px 100px;
  mix-blend-mode: multiply;
}

/* Fixed Sidebar Navigation */
.about-sidebar-nav {
  position: fixed;
  top: 4vw;
  right: 6vw;
  z-index: 100;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 1vw;
  transition: color 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}

.about-sidebar-nav.dark-mode {
  color: #ffffff !important;
}

.about-nav-link {
  font-size: 1.15rem;
  color: inherit;
  text-decoration: none;
  font-weight: 300;
  letter-spacing: 0.02em;
  transition: opacity 0.3s ease, font-weight 0.3s ease;
  opacity: 0.65;
}

.about-nav-link:hover {
  opacity: 1;
}

.about-nav-link.active {
  font-weight: 600;
  opacity: 1;
}

/* Top bar with details */
.about-top-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4vw;
  padding: 4vw 4vw 0 4vw;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 5;
}

.about-logo {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.02em;
  color: inherit;
  text-decoration: none;
  grid-column: 1;
}

.about-logo span {
  display: block;
}

.about-top-details {
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.01em;
  opacity: 0.8;
  padding-top: 0.5rem;
}

.about-top-details.col-3 {
  grid-column: 3;
}

.about-top-details.col-4 {
  grid-column: 4;
}

/* Content Sections */
.about-section {
  position: relative;
  z-index: 3;
  padding: 8vw 4vw;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4vw;
  width: 100%;
}

/* Hero Section */
.about-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 12vw;
}

.about-hero-title {
  grid-column: 1 / span 5;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 9vw;
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.03em;
  text-align: center;
  margin: 0;
  color: inherit;

  /* Scale up animation setup */
  transform: scale(0.7);
  opacity: 0;
  transform-origin: center center;
  transition: transform 1.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.about-hero-title span {
  display: block;
}

/* Bio Section Layout */
.about-portrait-col {
  grid-column: 1 / span 2;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 2vw;
}

.about-portrait-wrapper {
  position: relative;
  width: 75%;
  aspect-ratio: 0.85;
  transform: rotate(-3.5deg);
  border-radius: 20px;
  overflow: visible;
  z-index: 2;
  box-shadow: 0 20px 45px rgba(43, 62, 33, 0.08);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.about-portrait-wrapper:hover {
  transform: rotate(-1deg) scale(1.03);
}

.about-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Accent shapes behind portrait */
.about-shape-orange-ring {
  position: absolute;
  top: -8vw;
  left: 2vw;
  width: 12vw;
  height: 12vw;
  z-index: 1;
  pointer-events: none;
  opacity: 0.9;
}

.about-shape-blue-star {
  position: absolute;
  bottom: -4vw;
  left: -4vw;
  width: 12vw;
  height: 12vw;
  z-index: 3;
  pointer-events: none;
  opacity: 0.95;
}

.about-bio-content-col {
  grid-column: 3 / span 2;
  display: flex;
  flex-direction: column;
  gap: 2.2vw;
  padding-top: 1vw;
}

.about-bio-text {
  font-size: 1.55rem;
  line-height: 1.55;
  font-weight: 300;
  letter-spacing: -0.01em;
  margin: 0;
  opacity: 0.95;
}

.about-bio-subtext {
  font-size: 1.15rem;
  line-height: 1.6;
  font-weight: 300;
  opacity: 0.75;
  margin: 0;
}

/* Stats Row */
.about-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3vw;
  margin-top: 2vw;
}

.about-stat-number {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 5vw;
  font-weight: 400;
  line-height: 1;
  margin: 0;
  color: var(--marimba-dark);
  transition: color 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}

.about-page-container.dark-theme-active .about-stat-number {
  color: #ffffff;
}

.about-stat-label {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.1;
  margin-top: 0.35rem;
  opacity: 0.9;
}

/* Headings for Sections */
.about-section-heading {
  grid-column: 1 / span 2;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 4.8vw;
  font-weight: 400;
  line-height: 1;
  margin: 0;
  letter-spacing: -0.01em;
}

/* Grid layout lists for Work and Interests */
.about-list-col-left {
  grid-column: 3;
  display: flex;
  flex-direction: column;
  gap: 3vw;
}

.about-list-col-right {
  grid-column: 4;
  display: flex;
  flex-direction: column;
  gap: 3vw;
}

.about-list-item {
  display: flex;
  flex-direction: column;
  gap: 0.5vw;
}

.about-item-title {
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
  opacity: 0.95;
}

.about-item-details {
  font-size: 0.95rem;
  font-weight: 300;
  opacity: 0.6;
  margin: 0;
  letter-spacing: 0.02em;
}

/* Personal Interests list (Spans both columns) */
.about-interests-content {
  grid-column: 3 / span 2;
  display: flex;
  flex-direction: column;
  gap: 2.2vw;
}

.about-interest-item {
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.4;
  margin: 0;
  opacity: 0.85;
  letter-spacing: -0.01em;
}

/* Let's Work Together Footer Section */
.about-footer {
  position: relative;
  z-index: 5;
  background-color: var(--marimba-dark);
  color: #ffffff;
  padding: 12vw 4vw 4vw 4vw;
  min-height: 100vh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top: 1px solid var(--marimba-grid-line);
}

.about-footer-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-grow: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 4vw 0;
}

.about-footer-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 7.2vw;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 2vw 0;
}

.about-footer-title em {
  font-style: italic;
  font-weight: 300;
}

.about-footer-desc {
  font-size: 1.35rem;
  line-height: 1.6;
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto 3vw auto;
  opacity: 0.8;
}

.about-footer-name {
  font-size: 1.25rem;
  font-weight: 400;
  margin: 0 0 0.5vw 0;
  opacity: 0.95;
}

.about-footer-email {
  font-size: 1.65rem;
  font-weight: 300;
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 2px;
  transition: border-color 0.3s ease, opacity 0.3s ease;
  margin-bottom: 4vw;
  display: inline-block;
}

.about-footer-email:hover {
  border-color: #ffffff;
  opacity: 0.8;
}

/* Social pills buttons */
.about-footer-socials {
  display: flex;
  gap: 1.5vw;
  justify-content: center;
  align-items: center;
}

.about-social-pill {
  font-size: 1.05rem;
  font-weight: 300;
  color: #ffffff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.7rem 2rem;
  border-radius: 50px;
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

.about-social-pill:hover {
  background-color: #ffffff;
  color: var(--marimba-dark);
  border-color: #ffffff;
}

/* Bottom Bar of Footer */
.about-footer-bottom {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4vw;
  width: 100%;
  padding-top: 4vw;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
}

.about-footer-copyright {
  grid-column: 1 / span 2;
  font-size: 0.95rem;
  font-weight: 300;
  opacity: 0.6;
}

.about-footer-awards {
  grid-column: 4 / span 2;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.about-award-badge {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  opacity: 0.7;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.4rem 0.8rem;
  text-transform: uppercase;
}

/* Feedback floating link */
.about-feedback-btn {
  position: fixed;
  bottom: 2vw;
  left: 2vw;
  z-index: 99;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--marimba-dark);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.about-feedback-btn:hover {
  transform: translateY(-2px);
  background-color: #ffffff;
}

/* RESPONSIVE DESIGN */
@media screen and (max-width: 991px) {
  .about-sidebar-nav {
    display: none !important;
  }

  .about-grid-overlay {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-grid-col:nth-child(4),
  .about-grid-col:nth-child(5) {
    display: none;
  }

  .about-top-bar {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-top-details.col-4 {
    display: none;
  }

  .about-section {
    grid-template-columns: repeat(3, 1fr);
    padding: 10vw 4vw;
  }

  .about-hero-title {
    font-size: 11vw;
  }

  .about-portrait-col {
    grid-column: 1 / span 3;
    margin-bottom: 6vw;
  }

  .about-portrait-wrapper {
    width: 60%;
  }

  .about-shape-orange-ring {
    width: 15vw;
    height: 15vw;
  }

  .about-shape-blue-star {
    width: 15vw;
    height: 15vw;
  }

  .about-bio-content-col {
    grid-column: 1 / span 3;
    gap: 4vw;
  }

  .about-bio-text {
    font-size: 1.4rem;
  }

  .about-stats-row {
    gap: 6vw;
  }

  .about-stat-number {
    font-size: 8vw;
  }

  .about-section-heading {
    grid-column: 1 / span 3;
    font-size: 7vw;
    margin-bottom: 4vw;
  }

  .about-list-col-left {
    grid-column: 1 / span 3;
  }

  .about-list-col-right {
    grid-column: 1 / span 3;
  }

  .about-interests-content {
    grid-column: 1 / span 3;
    gap: 4vw;
  }

  .about-interest-item {
    font-size: 1.3rem;
  }

  .about-footer-title {
    font-size: 10vw;
  }

  .about-footer-bottom {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 4vw;
  }

  .about-footer-copyright {
    grid-column: 1;
  }

  .about-footer-awards {
    grid-column: 1;
    justify-content: center;
  }
}

@media screen and (max-width: 479px) {
  .about-grid-overlay {
    grid-template-columns: 1fr;
    padding: 0 6vw;
  }

  .about-grid-col:nth-child(2),
  .about-grid-col:nth-child(3) {
    display: none;
  }

  .about-top-bar {
    grid-template-columns: 1fr;
    padding: 6vw 6vw 0 6vw;
  }

  .about-top-details {
    display: none;
  }

  .about-section {
    grid-template-columns: 1fr;
    padding: 15vw 6vw;
  }

  .about-hero-title {
    font-size: 14vw;
  }

  .about-portrait-wrapper {
    width: 85%;
  }

  .about-portrait-col {
    grid-column: 1;
  }

  .about-bio-content-col {
    grid-column: 1;
  }

  .about-section-heading {
    grid-column: 1;
    font-size: 9vw;
  }

  .about-list-col-left {
    grid-column: 1;
  }

  .about-list-col-right {
    grid-column: 1;
  }

  .about-interests-content {
    grid-column: 1;
  }

  .about-footer-title {
    font-size: 13vw;
  }

  .about-footer-desc {
    font-size: 1.1rem;
  }

  .about-footer-email {
    font-size: 1.3rem;
  }

  .about-footer-socials {
    flex-direction: column;
    width: 100%;
    gap: 3vw;
  }

  .about-social-pill {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}
