/********** Template CSS **********/
:root {
    --primary: #e28e96;
    --secondary: #FFC448;
    --light: #FAFAFB;
    --dark: #12141D;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.my-6 {
    margin-top: 6rem;
    margin-bottom: 6rem;
}

.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/

.navbar.fixed-top {
    display: none;
    transition: .5s;
}

.navbar .navbar-nav .nav-link {
    padding: 20px 15px;
    color: var(--dark);
    font-size: 18px;
    font-weight: 600;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar .navbar-brand h1 {
    color: #e28e96 !important; /* 你想要的顏色 */
}

.navbar .navbar-brand {
    background-color: #F3DFBF !important; /* 換成你要的顏色 */
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        padding: 10px 0;
    }
}


/*** Header ***/
#home {
    margin-bottom: 6rem;
    background: url(../img/bg-header.png) left top no-repeat;
}

.typed-cursor {
    font-size: 30px;
    color: var(--dark);
}

.custom-h3 {
    color: #e28e96 !important; /* 你要的顏色 */
}

.btn-play {
    position: relative;
    display: block;
    box-sizing: content-box;
    width: 16px;
    height: 26px;
    border-radius: 100%;
    border: none;
    outline: none !important;
    padding: 18px 20px 20px 28px;
    background: var(--primary);
}

.btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 100%;
    animation: pulse-border 1500ms ease-out infinite;
}

.btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: #FFFFFF;
    border-radius: 100%;
    transition: all 200ms;
}

.btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    left: -1px;
    border-left: 16px solid var(--primary);
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(2);
        opacity: 0;
    }
}

.modal-video .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

.modal-video .modal-body {
    position: relative;
    padding: 0px;
}

.modal-video .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: #FFFFFF;
    background: #000000;
    opacity: 1;
}



/*** Intro ***/
#intro.intro {
  text-align: center;
  margin-bottom: 80px;
}
.intro h2 {
  font-size: 28px;
  margin-bottom: 15px;
  color: #444;
}
.intro p {
  font-size: 18px;
  line-height: 1.6;
  color: #666;
}

#intro .about {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  margin-bottom: 80px;
}
.about h3 {
  font-size: 24px;
  margin-bottom: 20px;
  border-left: 5px solid #e28e96;
  padding-left: 10px;
}
.about ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 三等分 */
  gap: 15px 30px; /* 上下左右間距 */
}

.about-grid li {
  font-size: 18px;
}

.about-grid li span {
  font-weight: bold;
  color: #333;
}

.strengths {
  margin-top: 80px;   /* 新增，往下推 */
  margin-bottom: 80px;
}
.strengths h3 {
  font-size: 24px;
  margin-bottom: 20px;
  border-left: 5px solid #e28e96;
  padding-left: 10px;
}
.strength-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}
.card:hover {
  transform: translateY(-5px);
}
.card h4 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #444;
}
.card p {
  font-size: 16px;
  color: #555;
  line-height: 1.5;
}


/*** About ***/
#about .years .display-1 {
    font-size: 10rem;
    line-height: 9rem;
}

#about .years h5 {
    letter-spacing: 30px;
    margin-right: -30px;
}
/* Timeline Style */
#about .timeline {
    display: flex;
    overflow-x: auto; /* 可水平滾動 */
    padding: 20px 0;
    gap: 40px; /* 節點間距 */
    border-left: none;
    border-bottom: 3px solid #e28e96; /* 改成底部線 */
}

#about .timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 200px; /* 每個節點固定寬度 */
}

#about .timeline-dot {
    position: relative;
    left: auto;
    top: auto;
    margin-bottom: 10px;
}

#about .timeline-content {
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

#about .timeline-content h5 {
    margin: 0 0 5px;
    font-weight: bold;
    color: #e28e96;
}
#about .timeline-content img.timeline-img {
    max-width: 100%;   /* 讓圖片不超過卡片寬度 */
    border-radius: 6px;
    margin-top: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/*** Service ***/
.service-item .bg-icon {
    width: 200px;      /* 你想要的最大寬度 */
    height: 200px;     /* 最大高度 */
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
#service .subtitle {
    font-size: 0.9rem;
    color: #6c757d; /* 灰色 */
}
.icon-img {
    width: auto;       /* 照原始寬度 */
    height: auto;      /* 照原始高度 */
    max-width: 100%;   /* 避免超出容器 */
    max-height: 100%;  /* 避免超出容器 */
    object-fit: contain; 
}
.service-item .bg-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; 
}

/*** Skills ***/
#skill .progress {
    height: 5px;
    border-radius: 5px;
}

#skill .progress .progress-bar {
    width: 0px;
    border-radius: 5px;
    transition: 3s;
}

#skill .nav-pills .nav-link {
    color: var(--dark);
}

#skill .nav-pills .nav-link.active {
    color: #FFFFFF;
}

#skill .tab-content hr {
    width: 30px;
}



/*** gallery ***/
.gallery {
  margin-bottom: 80px;
}

.gallery h3 {
  font-size: 24px;
  margin-bottom: 20px;
  border-left: 5px solid #e28e96;
  padding-left: 10px;
}

/* 外層容器：水平滾動 */
.photo-container {
  display: flex;
  overflow-x: auto;
  gap: 20px; /* 照片間距 */
  scroll-behavior: smooth;
  padding: 10px 20px 10px 20px; 
}

/* 隱藏醜醜的 scrollbar (美化) */
.photo-container::-webkit-scrollbar {
  height: 8px;
}
.photo-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}
.photo-container::-webkit-scrollbar-thumb {
  background: #e28e96;
  border-radius: 10px;
}

/* 單張照片卡片 */
.photo {
  flex: 0 0 auto; /* 確保不縮小 */
  width: 250px;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}
.photo:hover {
  transform: scale(1.05); /* hover 放大 */
}

/* 圖片填滿 */
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 保持比例裁切 */
}
