/* 基本樣式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #FADCD2;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    background-image:
        linear-gradient(135deg, rgba(250, 220, 210, 0.7), rgba(250, 220, 210, 0.4)),
        url('54256834075_a55154526a_o.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    animation: backgroundSlide 60s ease-in-out infinite;
}

@keyframes backgroundSlide {

    0%,
    16.66% {
        background-image:
            linear-gradient(135deg, rgba(250, 220, 210, 0.7), rgba(250, 220, 210, 0.4)),
            url('54256834075_a55154526a_o.jpg');
        background-size: contain;
        background-position: center center;
    }

    16.67%,
    33.33% {
        background-image:
            linear-gradient(135deg, rgba(250, 220, 210, 0.7), rgba(250, 220, 210, 0.4)),
            url('54261181072_7d5ab6825e_o.jpg');
        background-size: cover;
        background-position: center 30%;
    }

    33.34%,
    50% {
        background-image:
            linear-gradient(135deg, rgba(250, 220, 210, 0.7), rgba(250, 220, 210, 0.4)),
            url('54261183762_30f4875342_o.jpg');
        background-size: contain;
        background-position: center center;
    }

    50.01%,
    66.66% {
        background-image:
            linear-gradient(135deg, rgba(250, 220, 210, 0.7), rgba(250, 220, 210, 0.4)),
            url('54262294673_3185c09d1d_o.jpg');
        background-size: cover;
        background-position: center 40%;
    }

    66.67%,
    83.33% {
        background-image:
            linear-gradient(135deg, rgba(250, 220, 210, 0.7), rgba(250, 220, 210, 0.4)),
            url('54783547576_359c687a6b_o.jpg');
        background-size: contain;
        background-position: center center;
    }

    83.34%,
    100% {
        background-image:
            linear-gradient(135deg, rgba(250, 220, 210, 0.7), rgba(250, 220, 210, 0.4)),
            url('54783778109_4c6aa53b17_o.jpg');
        background-size: cover;
        background-position: center 20%;
    }
}

/* 容器樣式 */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 10;
}

/* 服務介紹區塊 */
.service-section {
    background: rgba(255, 255, 255, 0.85);
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 30px;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
    transition: all 0.3s ease;
}

.service-section:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.profile-photo {
    margin-bottom: 15px;
}

.profile-photo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 30% 50%;
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.profile-photo img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: #667eea;
}

.profile-name {
    font-size: 24px;
    font-weight: 700;
    color: #2C3E50;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.service-header {
    font-size: 18px;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 10px;
}

.service-subtitle {
    font-size: 16px;
    color: #34495E;
    margin-bottom: 15px;
    font-weight: 500;
}

.service-title {
    font-size: 15px;
    color: #5D6D7E;
    margin-bottom: 15px;
}

.service-tags {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    justify-content: center;
    max-width: 420px;
    margin: 0 auto;
}

.service-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    background: #667eea;
    color: white;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.4);
    cursor: pointer;
}

.service-tag:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    background: #764ba2;
}

.service-tag i {
    font-size: 16px;
}

/* 社群媒體連結區塊 */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 14px;
    text-decoration: none;
    color: #2C3E50;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
    border-color: #667eea;
}

.social-link i {
    font-size: 22px;
    width: 28px;
    text-align: center;
    transition: all 0.3s ease;
}

.social-link:hover i {
    transform: scale(1.1);
}

/* 各平台專用顏色 */
.line i {
    color: #00B900;
}

.instagram i {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.threads i {
    color: #000000;
}

.flickr i {
    color: #FF0084;
}

.behance i {
    color: #1769FF;
}

/* 作品集區塊 */
.portfolio-section {
    background: rgba(255, 255, 255, 0.85);
    padding: 20px;
    border-radius: 16px;
    margin-top: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out 0.6s;
    animation-fill-mode: both;
}



.portfolio-slideshow {
    position: relative;
    width: 100%;
    padding-bottom: 66.67%;
    /* 3:2 Aspect Ratio */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 15px;
}

.portfolio-slideshow img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.portfolio-slideshow img.active {
    opacity: 1;
}

.slideshow-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    padding: 15px 10px;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    z-index: 10;
}

.slideshow-nav:hover {
    background: rgba(255, 255, 255, 0.8);
    color: #333;
}

.prev-btn {
    left: 0;
    border-radius: 0 5px 5px 0;
}

.next-btn {
    right: 0;
    border-radius: 5px 0 0 5px;
}

.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
}

/* 作品集標題 */
.portfolio-title {
    font-size: 18px;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 15px;
    letter-spacing: 1px;
}


/* 背景裝飾 - 爪印 */
.background-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.paw-print {
    position: absolute;
    opacity: 0.05;
    color: #FADCD2;
}

.paw-print::before {
    content: '🐾';
    font-size: 30px;
    display: block;
}

.paw-1 {
    top: 15%;
    left: 10%;
    transform: rotate(-15deg);
}

.paw-2 {
    top: 25%;
    left: 5%;
    transform: rotate(25deg);
}

.paw-3 {
    top: 60%;
    right: 15%;
    transform: rotate(-30deg);
}

.paw-4 {
    top: 70%;
    right: 8%;
    transform: rotate(45deg);
}

.paw-5 {
    bottom: 20%;
    left: 20%;
    transform: rotate(-45deg);
}

/* 動畫效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.social-link {
    animation: fadeInUp 0.6s ease-out;
}

.social-link:nth-child(1) {
    animation-delay: 0.1s;
}

.social-link:nth-child(2) {
    animation-delay: 0.2s;
}

.social-link:nth-child(3) {
    animation-delay: 0.3s;
}

.social-link:nth-child(4) {
    animation-delay: 0.4s;
}

.social-link:nth-child(5) {
    animation-delay: 0.5s;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }

    .social-link {
        padding: 14px 15px;
        font-size: 14px;
        gap: 12px;
    }

    .service-section {
        padding: 20px;
        margin-bottom: 25px;
    }

    .service-header {
        font-size: 16px;
    }

    .service-subtitle {
        font-size: 15px;
    }

    .service-title {
        font-size: 14px;
    }

    .service-tag {
        font-size: 13px;
        padding: 7px 14px;
    }

    .service-tags {
        grid-template-columns: repeat(2, 1fr);
        max-width: 300px;
    }

    .profile-photo img {
        width: 100px;
        height: 100px;
    }

    .profile-name {
        font-size: 20px;
    }

}

@media (max-width: 480px) {
    .container {
        padding: 15px 10px;
    }

    .social-link {
        padding: 12px 10px;
        font-size: 13px;
        gap: 10px;
    }

    .social-link i {
        font-size: 18px;
        width: 22px;
    }

    .service-section {
        padding: 18px;
        margin-bottom: 20px;
    }

    .service-header {
        font-size: 15px;
    }

    .service-subtitle {
        font-size: 14px;
    }

    .service-title {
        font-size: 13px;
    }

    .service-tag {
        font-size: 12px;
        padding: 6px 12px;
    }

    .service-tags {
        grid-template-columns: repeat(2, 1fr);
        max-width: 250px;
        gap: 8px;
    }

    .profile-photo img {
        width: 80px;
        height: 80px;
    }

    .profile-name {
        font-size: 18px;
    }

    .portfolio-section iframe {
        height: 300px;
    }
}