/**
 * CUSTOM ENHANCEMENTS
 * Modern polish for the resume website
 */

/* ========================================
   1. TYPOGRAPHY IMPROVEMENTS
   ======================================== */

/* Inter font family */
body,
h1,
h2,
h3,
h4,
h5,
h6,
.c-brand__title,
.c-brand__sub-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Improved base typography */
body {
  color: #6b7280;
  letter-spacing: 0.01em;
}

/* Better heading hierarchy */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #374151;
  letter-spacing: -0.02em;
}

/* Section headings - cleaner, bolder */
.o-section__heading {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #9ca3af;
}

/* Section descriptions - refined */
.o-section__description {
  font-size: 1.1rem;
  font-weight: 300;
  color: #4b5563;
  letter-spacing: 0.02em;
}

/* Work headings - company names */
.c-work__heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1f2937;
  letter-spacing: -0.01em;
  text-transform: none;
}

/* Job titles */
.c-work__title {
  font-size: 0.9rem;
  font-weight: 500;
  color: #6b7280;
  text-transform: none;
}

/* Timeframe and location */
.c-work__timeframe,
.c-work__location {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

/* Project card titles */
.o-content__body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.25rem;
  text-transform: none;
}

/* Project year - subtle styling */
.c-project-year {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: #9ca3af;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

/* Presentation cards - full width layout */
.c-presentation-row {
  margin-bottom: 2.5rem;
}

.c-presentation-row:last-child {
  margin-bottom: 0;
}

.c-presentation-card--full {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.06);
}

@media (min-width: 760px) {
  .c-presentation-card--full {
    flex-direction: row;
  }
}

/* Presentation carousel */
.c-presentation-carousel {
  position: relative;
  width: 100%;
  background: #f3f4f6;
  overflow: hidden;
}

@media (min-width: 760px) {
  .c-presentation-carousel {
    width: 55%;
    min-height: 320px;
  }
}

.c-presentation-carousel__slides {
  position: relative;
  width: 100%;
  height: 240px;
}

@media (min-width: 760px) {
  .c-presentation-carousel__slides {
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }
}

.c-presentation-carousel__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Custom positioning for specific images to show faces */
.c-presentation-carousel__slide[data-position="top"] {
  object-position: center top;
}

.c-presentation-carousel__slide[data-position="center"] {
  object-position: center center;
}

.c-presentation-carousel__slide[data-position="bottom"] {
  object-position: center bottom;
}

.c-presentation-carousel__slide[data-position="left"] {
  object-position: left center;
}

.c-presentation-carousel__slide[data-position="right"] {
  object-position: right center;
}

.c-presentation-carousel__slide[data-position="top-left"] {
  object-position: left top;
}

.c-presentation-carousel__slide[data-position="top-right"] {
  object-position: right top;
}

.c-presentation-carousel__slide.active {
  opacity: 1;
}

/* Specific image positioning overrides for tall images */
/* 2026_01_Volcano_1.png - faces at ~30% from top */
img.c-presentation-carousel__slide[src*="2026_01_Volcano_1"] {
  object-position: center 30%;
}

/* 2025_12_Volcano_5.png - show top section with title */
img.c-presentation-carousel__slide[src*="2025_12_Volcano_5"] {
  object-position: center 10%;
}

/* 2025_12_Taipei_2.JPG - full body portrait, face at ~15% from top */
img.c-presentation-carousel__slide[src*="2025_12_Taipei_2"] {
  object-position: center 20%;
}

/* Click to view indicator */
.c-presentation-carousel__slide {
  cursor: pointer;
}

.c-presentation-carousel__slide:hover {
  filter: brightness(1.05);
}

/* Carousel navigation buttons */
.c-presentation-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.4);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  color: rgba(55, 65, 81, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: none;
  opacity: 0.5;
}

.c-presentation-carousel__btn:hover {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  opacity: 1;
  color: #374151;
}

.c-presentation-carousel:hover .c-presentation-carousel__btn {
  opacity: 0.8;
}

.c-presentation-carousel__btn--prev {
  left: 12px;
}

.c-presentation-carousel__btn--next {
  right: 12px;
}

/* Carousel dots */
.c-presentation-carousel__dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.c-presentation-carousel__dot {
  width: 16px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.c-presentation-carousel__dot.active,
.c-presentation-carousel__dot:hover {
  background: #fff;
  width: 24px;
}

/* Presentation info */
.c-presentation-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 760px) {
  .c-presentation-info {
    width: 45%;
    padding: 1.5rem 2rem;
  }
}

.c-presentation-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.25rem;
  text-transform: none;
}

.c-presentation-info p {
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 0;
}

/* Paragraph text improvements */
.o-content__body p {
  line-height: 1.6;
  color: #6b7280;
}

/* Intro paragraph - refined sizing */
.c-intro p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #4b5563;
  font-weight: 300;
}

@media (min-width: 600px) {
  .c-intro p {
    font-size: 1.15rem;
  }
}

/* ========================================
   SCROLL INDICATOR
   ======================================== */

.c-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  cursor: pointer;
  z-index: 10;
}

/* Ensure header section has relative positioning for absolute child */
.o-section--header {
  position: relative;
}

.c-scroll-indicator:hover {
  opacity: 1;
}

.c-scroll-indicator__text {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #9ca3af;
  margin-bottom: 0.5rem;
}

.c-scroll-indicator__arrow {
  animation: scrollBounce 2s infinite;
}

.c-scroll-indicator__arrow i {
  font-size: 1rem;
  color: #d97706;
}

@keyframes scrollBounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(6px);
  }

  60% {
    transform: translateY(3px);
  }
}

/* Hide scroll indicator on smaller screens where header isn't full height */
@media (max-width: 1023px) {
  .c-scroll-indicator {
    display: none;
  }
}


/* ========================================
   PROJECT ROWS (LinkedIn Style)
   ======================================== */

.c-project-row {
  margin-bottom: 1.5rem;
  transition: transform 0.2s ease;
}

.c-project-row {
  margin-bottom: 1rem;
}

.c-project-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 6px rgba(0, 0, 0, 0.02);
  border: 1px solid #f3f4f6;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.c-project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

@media (min-width: 600px) {
  .c-project-card {
    flex-direction: row;
    align-items: flex-start;
  }
}

.c-project-image-container {
  width: 100%;
  height: 80px;
  background-color: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid #f3f4f6;
}

@media (min-width: 600px) {
  .c-project-image-container {
    width: 120px;
    height: auto;
    min-height: 80px;
    border-bottom: none;
    border-right: 1px solid #f3f4f6;
    align-self: stretch;
  }
}

.c-project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.c-project-card:hover .c-project-image {
  transform: scale(1.05);
}

.c-project-content {
  padding: 0.5rem;
  flex: 1;
}

.c-project-content h3 {
  margin-top: 0;
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
  text-transform: none;
}

.c-project-content .c-project-year {
  display: block;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.c-project-content p {
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #4b5563;
}


/* ========================================
   2. COLOR REFINEMENTS
   ======================================== */

/* Refined accent color - warmer, more vibrant amber */
a,
.t-link-container .t-link-container__item,
.t-link-container:hover .t-link-container__item--blended {
  color: inherit;
  text-decoration: underline;
}

a:hover,
a:focus,
a:active {
  color: inherit;
  opacity: 0.8;
}

.t-primary-color,
.t-primary-color-line {
  color: #d97706;
}

.t-primary-bg,
.t-primary-color-line {
  background: #d97706;
}

.t-title__second-word {
  color: #d97706;
}

/* Preloader color */
.t-preloader__spinner:not(:required):before {
  border-top-color: #d97706;
  border-bottom-color: #d97706;
}

/* Timeline point color */
.c-timeline__point {
  background: #d97706 !important;
}


/* ========================================
   3. SHADOWS & DEPTH
   ======================================== */

/* Avatar with subtle shadow */
.c-avatar__img {
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.15),
    0 4px 12px -2px rgba(0, 0, 0, 0.08);
  border: 4px solid #fff;
}

/* Project cards - subtle lift effect */
.o-grid__col-md-4 .o-content,
.o-grid__col-sm-6 .o-content {
  padding: 1.5rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04),
    0 4px 12px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.o-grid__col-md-4 .o-content:hover,
.o-grid__col-sm-6 .o-content:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08),
    0 8px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

/* Timeline enhanced */
.c-timeline {
  border-left-color: #e5e7eb;
}

.c-timeline__point {
  box-shadow: 0 0 0 4px #fff,
    0 0 0 6px #f3f4f6,
    0 2px 8px rgba(0, 0, 0, 0.1) !important;
}


/* ========================================
   4. SPACING & LAYOUT POLISH
   ======================================== */

/* More breathing room in sections */
@media (min-width: 760px) {
  .o-section__header {
    padding: 2.25rem 2.5rem 1.25rem;
  }

  .o-section__content {
    padding: 2.25rem 2.5rem 1.25rem;
  }
}

@media (min-width: 1200px) {
  .o-section__header {
    padding: 3rem 3rem 1.5rem;
  }

  .o-section__content {
    padding: 3rem 3rem 1.5rem;
  }
}

/* Timeline items - better spacing */
.c-timeline__item {
  padding-bottom: 1rem;
}

.c-timeline__item:last-child {
  padding-bottom: 0;
}

/* Add more space between Experience and Education */
#education-section {
  margin-top: 4rem;
}

/* Grid gap for projects */
.o-grid {
  gap: 1rem 0;
}


/* ========================================
   5. DECORATIVE LINE ENHANCEMENT
   ======================================== */

.c-deco-line {
  height: 3px;
  width: 40px;
  border-radius: 2px;
  background: linear-gradient(90deg, #d97706, #f59e0b);
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}


/* ========================================
   6. SOCIAL BUTTONS REFINEMENT
   ======================================== */

.c-social-button {
  background: #f9fafb;
  border-color: #e5e7eb;
  border-radius: 8px;
  transition: all 0.25s ease;
}

.c-social-button .fab {
  color: #9ca3af;
  transition: color 0.25s ease;
}

.c-social-button:hover {
  background: #d97706;
  border-color: #d97706;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.c-social-button:hover .fab {
  color: #fff;
}


/* ========================================
   7. BRAND/NAME STYLING
   ======================================== */

.c-brand__title {
  font-weight: 800;
}

.t-title__second-word {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.t-sub-title {
  color: #6b7280;
  font-weight: 400;
}


/* ========================================
   8. SECTION BACKGROUNDS - CLEANER
   ======================================== */

@media (min-width: 1024px) {

  .t-section,
  .t-section__header,
  .t-section--header .t-section__header {
    background: #ffffff;
  }

  .t-section__content {
    background: #ffffff;
  }

  .t-section:nth-child(even),
  .t-section:nth-child(even) .t-section__header {
    background: #ffffff;
  }

  .t-section:nth-child(even) .t-section__content {
    background: #ffffff;
  }
}


/* ========================================
   9. LINK IMPROVEMENTS
   ======================================== */

.o-content__body a {
  color: inherit;
  text-decoration: underline;
}

.o-content__body a:hover {
  text-decoration: none;
}


/* ========================================
   10. SMOOTH SCROLLING & TRANSITIONS
   ======================================== */

html {
  scroll-behavior: smooth;
}

/* Smoother transitions globally */
* {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}


/* ========================================
   11. HEADER SECTION POLISH
   ======================================== */

/* Make the header section feel more spacious */
.c-header__inner-content {
  padding: 2rem 0;
}

@media (min-width: 1024px) {
  .c-header__inner-content {
    padding: 0;
  }
}


/* ========================================
   12. RESPONSIVE REFINEMENTS
   ======================================== */

@media (max-width: 1023px) {
  .o-section__heading {
    text-align: center;
  }

  .o-section__description {
    text-align: center;
  }

  .c-deco-line {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ========================================
   13. SECTION ALIGNMENT FIXES
   ======================================== */

/* Education Section Specific Alignment - Force Top */
@media (min-width: 760px) {
  #education-section .o-section__container {
    align-items: flex-start !important;
  }

  #education-section .o-section__header {
    align-self: flex-start !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    transform: none !important;
  }

  /* Adjust header h2 top margin to align with timeline dot/date */
  #education-section .o-section__header h2 {
    margin-top: 0.2rem !important;
    padding-top: 0 !important;
  }
}

@media (min-width: 1200px) {
  #education-section .o-section__header {
    padding-top: 0 !important;
  }
}