/* === Base Styles & Variables === */
:root {
    --primary: #0056b3; /* A deeper, more professional blue */
    --primary-light: #007bff;
    --secondary: #6c757d;
    --background: #ffffff;
    --surface: #f8f9fa;
    --text-primary: #212529;
    --text-secondary: #495057;
    --border-color: #dee2e6;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --border-radius: 0.5rem; /* Softer border radius */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.8;
    color: var(--text-secondary);
    background: var(--background);
    font-weight: 400;
}

/* === Typography === */
h1, h2, h3, h4, .hero-title, .section-title, .cta-title, .service-title, .portfolio-title, .feature-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.section-title {
    text-align: center;
    font-size: clamp(2.2rem, 5vw, 2.8rem);
    margin-bottom: 4rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
}

/* === Layout & Containers === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
    overflow: hidden; /* For animations */
}

/* === Buttons === */
.btn-primary, .btn-secondary, .btn-white, .btn-outline {
    display: inline-block;
    padding: 0.85rem 2rem;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: var(--surface);
    color: var(--primary);
    border-color: var(--primary);
}

.btn-white {
    background: white;
    color: var(--primary);
}
.btn-white:hover {
    background: var(--surface);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid white;
}
.btn-outline:hover {
    background: white;
    color: var(--primary);
}

/* === Hero Section === */
/* Hero Section 大圖背景與文字疊加 */
.hero-section {
    position: relative;
    min-height: 70vh;
    background: url('../image02.png') center center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
}

.hero-text {
    background: rgba(0,0,0,0.45); /* 半透明黑底 */
    padding: 2.5rem 2rem;
    border-radius: 1.2rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.hero-title {
    color: #fff;
    font-size: 3rem;
    font-weight: 800;
    text-shadow: 0 2px 16px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
}

.hero-subtitle {
    color: #e0e0e0;
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

.hero-buttons .btn {
    margin: 0 0.5rem;
    font-size: 1.1rem;
    padding: 0.75rem 2.2rem;
    border-radius: 2rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.btn-primary {
    background: #ff4081;
    color: #fff;
    border: none;
}

.btn-secondary {
    background: rgba(255,255,255,0.85);
    color: #222;
    border: none;
}

.hero-visual {
    position: relative;
    height: 550px;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

/* === Features Section === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--background);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.feature-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.feature-description {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* === Services Section === */
.services-section {
    background: var(--surface);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--background);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-description {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-price {
    background: var(--primary-light);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
    align-self: flex-start;
}

.section-link {
    text-align: center;
    margin-top: 4rem;
}


/* === Portfolio Section === */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.portfolio-card {
    background: var(--background);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.portfolio-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.portfolio-description {
    font-size: 0.95rem;
}

/* === CTA Section === */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    text-align: center;
    padding: 6rem 1.5rem;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 1rem;
    color: white;
}

.cta-description {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* === Animation === */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* === Responsive === */
@media (max-width: 992px) {
    .hero-content {
        gap: 2rem;
    }
    .hero-visual {
        height: 450px;
    }
}

@media (max-width: 768px) {
    body {
        line-height: 1.7;
    }
    .section {
        padding: 4rem 0;
    }
    .hero-section {
        min-height: auto;
        padding-top: 4rem;
        padding-bottom: 4rem;
        text-align: center;
    }
    .hero-content {
        grid-template-columns: 1fr;
    }
    .hero-visual {
        height: 350px;
        grid-row: 1; /* Image on top on mobile */
    }
    .hero-buttons {
        justify-content: center;
    }
    .features-grid, .services-grid, .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .container {
        padding: 0 1rem;
    }
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .btn-primary,
    .btn-secondary,
    .btn-white,
    .btn-outline {
        width: 100%;
        max-width: 320px;
    }
}     margin-bottom: 1.5rem;
    }
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    .hero-buttons .btn {
        margin: 0;
        width: 100%;
        max-width: 280px;
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }
    .features-grid, .services-grid, .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .feature-card, .service-card {
        padding: 2rem 1.5rem;
    }
    .container {
        padding: 0 1rem;
    }
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .btn-primary,
    .btn-secondary,
    .btn-white,
    .btn-outline {
        width: 100%;
        max-width: 280px;
        margin: 0;
    }
    .section-title {
        font-size: 2rem;
        margin-bottom: 3rem;
    }
    .cta-title {
        font-size: 1.8rem;
    }
    .cta-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-text {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem;
    }
    .section {
        padding: 3rem 0;
    }
    .feature-card, .service-card {
        padding: 1.5rem 1rem;
    }
    .container {
        padding: 0 0.75rem;
    }
} dden;
    }
    .feature-card, .service-card {
        padding: 2rem 1.5rem;
        overflow-x: hidden;
    }
    .container {
        padding: 0 1rem;
        overflow-x: hidden;
    }
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        overflow-x: hidden;
    }
    .btn-primary,
    .btn-secondary,
    .btn-white,
    .btn-outline {
        width: 100%;
        max-width: 280px;
        margin: 0;
        white-space: normal;
    }
    .section-title {
        font-size: 2rem;
        margin-bottom: 3rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .cta-title {
        font-size: 1.8rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .cta-description {
        font-size: 1rem;
        margin-bottom: 2rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .hero-subtitle {
        font-size: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .hero-text {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem;
        max-width: 98%;
    }
    .section {
        padding: 3rem 0;
        overflow-x: hidden;
    }
    .feature-card, .service-card {
        padding: 1.5rem 1rem;
        overflow-x: hidden;
    }
    .container {
        padding: 0 0.75rem;
        overflow-x: hidden;
    }
    .hero-buttons {
        max-width: 250px;
    }
    .hero-buttons .btn {
        max-width: 250px;
        font-size: 0.9rem;
        padding: 0.7rem 1.2rem;
    }
} n {
        font-size: 1rem;
        margin-bottom: 2rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .hero-subtitle {
        font-size: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .hero-text {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem;
        max-width: 98%;
    }
    .section {
        padding: 3rem 0;
        overflow-x: hidden;
    }
    .feature-card, .service-card {
        padding: 1.5rem 1rem;
        overflow-x: hidden;
    }
    .container {
        padding: 0 0.75rem;
        overflow-x: hidden;
    }
    .hero-buttons {
        max-width: 250px;
    }
    .hero-buttons .btn {
        max-width: 250px;
        font-size: 0.9rem;
        padding: 0.7rem 1.2rem;
    }
} 