:root {
    --primary-color: #2196F3;
    --secondary-color: #64B5F6;
    --background-color: #f8f9fa;
    --text-color: #37474F;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-color);
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color);
}

.nav-link {
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: white;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(33, 150, 243, 0.8), rgba(76, 175, 80, 0.8));
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Vision Section */
.vision-section {
    padding: 100px 0;
    background-color: var(--background-color);
}

.vision-stats {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.vision-number {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.vision-stats p {
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 0;
}

.vision-section h2 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 2rem;
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Portfolio Section */
.portfolio-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.portfolio-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: transform 0.3s ease;
    border: 1px solid rgba(33, 150, 243, 0.1);
}

.portfolio-card:hover {
    transform: translateY(-10px);
}

.portfolio-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.portfolio-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.portfolio-card .client {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.portfolio-card .achievement ul {
    list-style: none;
    padding-left: 0;
}

.portfolio-card .achievement ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.portfolio-card .achievement ul li::before {
    content: "✓";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(33, 150, 243, 0.9), rgba(76, 175, 80, 0.9));
}

.contact-form-container {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: var(--text-color);
}

.google-form-wrapper {
    width: 100%;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 5px;
    overflow: hidden;
}

.google-form-embed {
    width: 100%;
    min-height: 800px;
    border: none;
}

/* 改進 Google 表單在移動設備上的響應式顯示 */
@media (max-width: 768px) {
    .google-form-embed {
        min-height: 1000px;
    }
}

.contact-form .form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.contact-form .btn-primary {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    background: linear-gradient(45deg, #2196F3, #64B5F6);
    border: none;
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
}

.contact-form .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(33, 150, 243, 0.4);
    background: linear-gradient(45deg, #1976D2, #2196F3);
}

.contact-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.contact-form .text-danger {
    font-weight: bold;
}

#formStatus {
    padding: 10px;
    border-radius: 5px;
    font-weight: 500;
}

#formStatus.success {
    background-color: rgba(76, 175, 80, 0.2);
    color: #2e7d32;
}

#formStatus.error {
    background-color: rgba(244, 67, 54, 0.2);
    color: #c62828;
}

/* Buttons */

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 2rem;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Footer */
.footer {
    background-color: #343a40;
    color: white;
    padding: 2rem 0;
}

/* Team Section */
.team-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.team-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.team-stats {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-item {
    text-align: center;
    margin-bottom: 2rem;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-item h4 {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-color);
    opacity: 0.8;
}

.parent-company-link {
    display: inline-block;
    text-decoration: none;
    color: var(--primary-color);
    padding: 0.8rem 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-weight: 500;
}

.parent-company-link:hover {
    transform: translateY(-5px);
    background: var(--primary-color);
    color: white;
}

/* Responsive Design */
/* Case Studies Styles */
/* Chat Button Styles */
.navbar .btn-primary {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: linear-gradient(45deg, #2196F3, #64B5F6);
    border: none;
    box-shadow: 0 2px 5px rgba(33, 150, 243, 0.2);
}

.navbar .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.3);
    background: linear-gradient(45deg, #1976D2, #2196F3);
}

.navbar .btn-primary i {
    font-size: 0.9em;
}

/* Case Studies Styles */
.case-study-content {
    padding: 20px;
}

.section-title {
    color: var(--primary-color);
    margin: 25px 0 15px;
    font-weight: 600;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    padding: 15px 0;
    border-left: 2px solid var(--primary-color);
    margin-left: 20px;
    padding-left: 20px;
    position: relative;
}

.timeline-item::before {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    left: -7px;
    top: 50%;
    transform: translateY(-50%);
}

.timeline-item .date {
    font-weight: 600;
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

.results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.result-item {
    text-align: center;
    padding: 20px;
    background: rgba(33, 150, 243, 0.1);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.result-item:hover {
    transform: translateY(-5px);
}

.result-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.modal-content {
    border-radius: 15px;
}

.modal-header {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 15px 15px 0 0;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .vision-section,
    .services-section,
    .contact-section {
        padding: 60px 0;
    }

    .timeline-item {
        margin-left: 10px;
        padding-left: 15px;
    }

    .results {
        grid-template-columns: 1fr;
    }
}
