/* Reset & base styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', Arial, sans-serif;
  background: #FFFFF4;
  color: #222;
  line-height: 1.65;
  min-height: 100vh;
}
a { color: var(--accent, #B3700D ); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Top Navigation bar */
.site-header {
  position: sticky;
  top: 0;
  background: #B3700D ;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  z-index: 100;
  border-bottom: 4px solid #FFFFF4; /* or any color/thickness you like */
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.4rem 6rem;
}

/* --- Desktop layout for centered logo and split nav --- */
.nav-menu-left,
.nav-menu-right {
  display: flex;
  gap: 2rem;
  flex: 1 1 0;
  justify-content: flex-end;
}
.nav-menu-left {
  justify-content: flex-start; /* <-- left align */
  gap: 8rem;
}
.nav-menu-right {
  justify-content: flex-end;   /* <-- right align */
  gap: 8rem;
}
.site-logo {
  flex: 0 0 auto;
  text-align: center;
  font-family: 'Playfair Display';
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent, #FFFFF4);
  letter-spacing: 0.04em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1);
  will-change: opacity;
  user-select: none;
  margin: 0 2rem;
    text-decoration: none;  /* removes underline */
  color: var(--accent, #FFFFF4); /* ensures color stays as you set */
}

.site-logo:visited,
.site-logo:active,
.site-logo:hover,
.site-logo:focus {
  color: var(--accent, #FFFFF4);
  text-decoration: none;
}

.site-logo.visible {
  opacity: 1;
  pointer-events: auto;
}

.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1.08rem;
  font-weight: 500;
  color: #FFFFF4;
  background: none;
  border: none;
  padding: 0.7rem 0;
  margin: 0 0.2rem;
  letter-spacing: 0.01em;
  box-sizing: border-box;
  z-index: 1;
}

/* Keep this if you don't want text color to change on hover */
.nav-item:hover,
.nav-item:focus {
  outline: none;
}

/* Hamburger and mobile nav hidden on desktop */
.nav-menu-mobile,
.hamburger {
  display: none;
}

/* --- Hamburger Menu Styles (Mobile/Tablet) --- */
.hamburger {
  display: none;
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.2rem;
  height: 2.2rem;
  cursor: pointer;
  z-index: 110;
  background: none;
  border: none;
  outline: none;
}
.hamburger-box {
  width: 2.2rem;
  height: 2.2rem;
  display: inline-block;
  position: relative;
}
.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  display: block;
  background-color: #FFFFF4;
  position: absolute;
  width: 2rem;
  height: 0.22rem;
  border-radius: 0.1rem;
  transition: all 0.35s cubic-bezier(.4,0,.2,1);
}
.hamburger-inner {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}
.hamburger-inner::before,
.hamburger-inner::after {
  content: "";
  left: 0;
}
.hamburger-inner::before {
  top: -0.6rem;
}
.hamburger-inner::after {
  top: 0.6rem;
}
/* Hamburger active (X) animation */
.hamburger.active .hamburger-inner {
  background-color: transparent;
}
.hamburger.active .hamburger-inner::before {
  transform: translateY(0.6rem) rotate(45deg);
}
.hamburger.active .hamburger-inner::after {
  transform: translateY(-0.6rem) rotate(-45deg);
}

/* Responsive Navigation */
@media (max-width: 800px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 200;
  }
  .site-nav {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.2rem 0.5rem;
    position: relative;
    min-height: 3.4rem;
    max-width: 100vw;
  }
  .nav-menu-left,
  .nav-menu-right {
    display: none;
  }
  .site-logo {
    flex: none;
    text-align: left;
    font-size: 1.3rem;
    margin: 0;
    padding-left: 0.2rem;
  }
  .hamburger {
    display: block;
  }
  .nav-menu-mobile {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FFFFF4;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transition: max-height 0.35s cubic-bezier(.4,0,.2,1), opacity 0.32s cubic-bezier(.4,0,.2,1);
    z-index: 109;
    pointer-events: none;
  }
  .nav-menu-mobile.open {
    opacity: 1;
    max-height: 320px;
    pointer-events: auto;
  }
  .nav-menu-mobile .nav-item {
    color: #222;
    font-size: 1.1rem;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid #f2f2f2;
    text-align: left;
    width: 100%;
    background: none;
  }
  .nav-menu-mobile .nav-item:last-child {
    border-bottom: none;
  }
  .nav-menu-mobile .nav-item:hover,
  .nav-menu-mobile .nav-item:focus {
    color: #B3700D ;
  }
}

/* Hide hamburger and mobile nav on desktop */
@media (min-width: 801px) {
  .hamburger {
    display: none !important;
  }
  .nav-menu-mobile {
    display: none !important;
  }
  .nav-menu-left,
  .nav-menu-right {
    display: flex !important;
  }
  .site-logo {
    text-align: center !important;
    font-size: 1.5rem !important;
    margin: 0 2rem !important;
    padding: 0 !important;
  }
}

/* Intro section*/
.intro-section {
  width: 100vw;
  background: #FFFFF4;
  box-sizing: border-box;
  padding-top: 1rem;
  padding-bottom: 2rem;
  margin: 0;
}

.intro-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  width: 100%;
  gap: 3rem;
  margin: 0 auto;
  box-sizing: border-box;
}

.intro-text {
  flex: 1 1 54%;
  max-width: 580px;
  margin-left: 2vw;
}

.intro-text h1 {
  font-size: 4rem;
  font-weight: bold;
  margin-bottom: 1.3rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.intro-text p {
  font-size: 1.25rem;
  line-height: 1.45;
  color: #232323;
  margin-top: 0;
}

.intro-image {
  flex: 1 1 46%;
  min-width: 260px;
  max-width: 450px;
  width: 100%;
  height: 490px; /* Adjust as needed for your image */
  background-image: url('../images/intro-image.jpg'); /* Change path as needed */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* margin: 0; */
}

/* Character video */

.intro-video {
  flex: 1 1 46%;
  min-width: 240px;
  max-width: 420px;
  width: 100%;
  height: 490px;
  object-fit: cover;
  object-position: center;
  border-radius: 50% / 50%; /* Vertically long oval */
  background: #eaeaea;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}

.character-wrapper {
  position: relative;
  display: inline-block;
}

.hover-hint {
  position: absolute;
  bottom: -2.2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  color: rgba(31,31,31,0.65);
  background: rgba(255,255,255,0.85);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;

  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Hide on mobile (no hover) */
@media (max-width: 900px) {
  .hover-hint {
    display: none;
  }
}


/*Teaching image */

.teaching-image {
  flex: 1 1 46%;
  min-width: 260px;
  max-width: 450px;
  width: 100%;
  height: 490px; /* Adjust as needed for your image */
  background-image: url('../images/teaching-image.jpg'); /* Change path as needed */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin: 0;
}

/*Art image */

.art-image {
  flex: 1 1 46%;
  min-width: 350px;
  max-width: 350px;
  width: 100%;
  height: 400px; /* Adjust as needed for your image */
  background-image: url('../images/art.jpg'); /* Change path as needed */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin: 0;
}

/* Intro image, character video, teaching image, and art image mobile friendliness */

@media (max-width: 900px) {
  .intro-section {
  padding-top: 0.5rem;
  padding-bottom: 0rem;
  }
  .intro-inner {
    flex-direction: column;
    gap: 0.5 rem;
    /* max-width: 95vw; */
  }
  .intro-text {
    max-width: 100%;
  }
  .intro-image,
  .teaching-image,
  .art-image,
  .intro-video {
    display: none !important;
  }
  .intro-text h1 {
    font-size: 2.2rem;
  }
  .intro-text p {
    font-size: 1.08rem;
  }
}


/* Main sections */
main {
  max-width: 700px;
  margin: 2rem auto 2rem auto;
  padding: 0 1rem;
}

.hero-image-section {
  width: 100%;
  aspect-ratio: 2 / 1;
  background-image: url('../images/profile.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Optional overlay for better text readability */
  position: relative;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}

.section {
  margin-bottom: 3.5rem;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
  will-change: opacity, transform;
}
.section.revealed {
  opacity: 1;
  transform: translateY(0);
}
.section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--accent, #B3700D );
}
.section p, .section ul {
  font-size: 1.08rem;
  margin-bottom: 0.7rem;
}

/* Icons under hero image */

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin: 2rem 0;
}

.icon {
  width: 5rem;
  height: 5rem;
  font-size: 4rem; 
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F1A638;           /* circle bg color */
  border-radius: 50%;
  text-decoration: none;
  color: #FFFFF4;                /* icon color */
  font-size: 1.5rem;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.icon i {
  color: #FFFFF4;                /* ensure icon color */
}

@keyframes jitter {
  0%   { transform: translate(0, 0) rotate(0deg);}
  20%  { transform: translate(-2px, 2px) rotate(-2deg);}
  40%  { transform: translate(-2px, -2px) rotate(2deg);}
  60%  { transform: translate(2px, 2px) rotate(-2deg);}
  80%  { transform: translate(2px, -2px) rotate(2deg);}
  100% { transform: translate(0, 0) rotate(0deg);}
}

.icon:hover,
.icon:focus {
  background: #B3700D;           /* slightly darker on hover */
  color: #FFFFF4;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  animation: jitter 0.3s linear;
}

@media (max-width: 600px) {
  .icon {
    width: 2rem;
    height: 2rem;
    font-size: 1.5rem;
  }
  .social-icons {
    gap: 0.7rem;
    margin: 1rem 0;
  }
}

/* Contact links */
.bio-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding: 0;
}
.bio-links li a {
  color: #444;
  font-weight: 500;
  border-bottom: 1.5px solid #e3e3e3;
  padding-bottom: 2px;
  transition: color 0.2s, border-bottom-color 0.2s;
}
.bio-links li a:hover,
.bio-links li a:focus {
  color: var(--accent, #B3700D );
  border-bottom-color: var(--accent, #B3700D );
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem 1rem 1rem 1rem;
  font-size: 1rem;
  color: #bbb;
  background: none;
}

/* Responsive for content */
@media (max-width: 800px) {
  main {
    padding: 0 0.5rem;
  }
  .section h2 {
    font-size: 1.3rem;
  }
}
@media (max-width: 600px) {
  .section {
    transform: translateY(20px);
  }
}

/* Accessibility: prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .section,
  .section.revealed {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Buttons for publications on CV page */
.pub-buttons {
  margin-top: 0.5em;
  display: flex;
  gap: 0.5em;
}

.pub-btn {
  display: inline-block;
  padding: 0.4em 1em;
  background: #F1A638;
  color: #FFFFF4;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.95em;
  transition: background 0.2s;
}

.pub-btn:hover,
.pub-btn:focus {
  background: #B3700D;
}

/* Header fonts */
.title {
  font-family: 'Playfair Display', serif;
}

/* Skills section*/ 
.skills-section {
  max-width: 900px;
  margin: 2.5rem auto;
  padding: 0 1rem;
}
.skills-columns {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.skills-col {
  flex: 1 1 350px;
  min-width: 280px;
}
.skill {
  margin-bottom: 1.35rem;
}
.skill-name {
  font-weight: 600;
  display: block;
  margin-bottom: 0.2rem;
  font-size: 1rem;
}
.skill-bar {
  background: #eaeaea;
  border-radius: 6px;
  overflow: hidden;
  height: 22px;
  margin-top: 0.2rem;
}
.skill-level {
  height: 100%;
  background: linear-gradient(90deg, #B3700D  60%, #B3700D  100%);
  color: #FFFFF4;
  text-align: right;
  padding-right: 8px;
  line-height: 22px;
  font-size: 0.93rem;
  border-radius: 6px 0 0 6px;
  width: 0;
  transition: width 1.3s cubic-bezier(.6,.22,.12,.98);
  white-space: nowrap;
}
@media (max-width: 700px) {
  .skills-columns {
    flex-direction: column;
    gap: 0;
  }
}

/* Portfolio video */
.responsive-video {
  flex: 1 1 46%;
  min-width: 220px;
  max-width: 520px;
  aspect-ratio: 16 / 9;
  /* Remove: padding-bottom, height, position, overflow */
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}

.responsive-video iframe {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

@media (max-width: 800px) {
  .responsive-video {
    max-width: 100%;
    margin-left: 0;
  }
}

@supports not (aspect-ratio: 16 / 9) {
  .responsive-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
  }
  .responsive-video iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
  }
}

.portfolio-image {
  width: 100%;
  max-width: 450px;
  aspect-ratio: 1260 / 670;
  background-image: url('../images/2022portfolio.jpg');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.portfolio2-image {
  width: 100%;
  max-width: 450px;
  aspect-ratio: 1891 / 951;
  background-image: url('../images/2023portfolio.jpg');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.portfolio3-image {
  width: 100%;
  max-width: 450px;
  aspect-ratio: 1115 / 724;
  background-image: url('../images/2024portfolio.jpg');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

@media (max-width: 900px) {
  .portfolio-image {
    max-width: 300px;
    min-width: 120px;
    width: 100%;
    /* No height! */
  }
  .portfolio2-image {
    max-width: 300px;
    min-width: 120px;
    width: 100%;
    /* No height! */
  }
  .portfolio3-image {
    max-width: 300px;
    min-width: 120px;
    width: 100%;
    /* No height! */
  }

  .intro-inner > .media { order: 1; }
  .intro-inner > .intro-text { order: 2; }

}
