/* General Styles */
:root {
    --primary-color: #0066FF;
    --secondary-color: #6C757D;
    --success-color: #28A745;
    --info-color: #17A2B8;
    --warning-color: #FFC107;
    --danger-color: #DC3545;
    --light-color: #F8F9FA;
    --dark-color: #343A40;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand img {
    height: 30px;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
}

.btn-primary {
    /* background-color: var(--primary-color); */
    /* border-color: var(--primary-color); */
}

.btn-primary:hover {
    background-color: #0052cc;
    border-color: #0052cc;
}

/* body */
section{
    padding: 100px 0;
}

/* Hero Section */
.hero-section {
    position: relative;
    color: white;
    /* min-height: 50vh; */
    display: flex;
    align-items: center;
    overflow: hidden;
    /* 保留原有漸變作為後備背景 */
    background: linear-gradient(135deg, #0066FF 0%, #0099FF 100%);
}

/* 視頻背景容器 */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* 視頻元素 */
.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    /* 半透明效果 */
    opacity: 0.6;
}

/* 視頻遮罩層 - 可以調整顏色和透明度 */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 藍色半透明遮罩 */
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.7) 0%, rgba(0, 153, 255, 0.5) 100%);
    z-index: 2;
}

/* 確保內容在視頻之上 */
.hero-section .container {
    position: relative;
    z-index: 3;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-section .lead {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Circular Workflow */
.circular-workflow {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1); 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 圓形圖片 */
    background-image: url('../assets/images/index01.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Announcement Section */
.announcement-section {
    background: linear-gradient(135deg, #004CB3 0%, #2179fc 100%);
    /* padding: 100px 0px 400px 20px; */
}

.announcement-image {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
}

/* Partner Section */
.partner-section {
    background-color: white;
}

.partner-logos img {
    height: 40px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.partner-logos img:hover {
    opacity: 1;
}

/* Features Section */
.features-section {
    padding: 200px 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.feature-list i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    margin-right: 1rem;
}

/* Resources Section */
.resources-section .card {
    border: none;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

.resources-section .card:hover {
    transform: translateY(-5px);
}

.resources-section .card-img-top {
    height: 200px;
    object-fit: cover;
}

.resources-section .badge {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.resources-section .btn.rounded-circle {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Market Section */
.market-section {
    background-color: var(--light-color);
}

.partner-grid {
    margin-top: 3rem;
}

.partner-logo {
    height: 40px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    filter: grayscale(100%);
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* Manufacturing Section */
.manufacturing-section {
    position: relative;
    overflow: hidden;
}

.manufacturing-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.9) 0%, rgba(0, 153, 255, 0.9) 100%);
    z-index: 1;
}

.manufacturing-section .container {
    position: relative;
    z-index: 2;
}

.manufacturing-section .btn.rounded-circle {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.manufacturing-section .rounded-pill {
    display: inline-block;
    transition: opacity 0.3s ease;
}

/* Footer */
.footer {
    background-color: #f8f9fa;
    padding: 80px 0 40px;
}

.footer h5 {
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer .list-unstyled li {
    margin-bottom: 0.5rem;
}

.footer .text-muted {
    color: #6c757d !important;
}

.footer .list-inline-item:not(:last-child) {
    margin-right: 1.5rem;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 60px 0;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .circular-workflow {
        width: 300px;
        height: 300px;
        margin-top: 2rem;
    }

    /* 在中等螢幕上調整視頻透明度 */
    .video-background video {
        opacity: 0.5;
    }

    /* 加強遮罩效果以確保文字可讀性 */
    .video-overlay {
        background: linear-gradient(135deg, rgba(0, 102, 255, 0.8) 0%, rgba(0, 153, 255, 0.6) 100%);
    }

    .features-section {
        padding: 60px 0;
    }

    .partner-grid .row {
        justify-content: center;
    }
    
    .partner-logo {
        height: 30px;
    }
    
    .manufacturing-section .display-5 {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .navbar {
        padding: 0.5rem 0;
    }

    .hero-section {
        text-align: center;
    }

    /* 在小螢幕上進一步降低視頻透明度 */
    .video-background video {
        opacity: 0.4;
    }

    /* 在小螢幕上加強遮罩 */
    .video-overlay {
        background: linear-gradient(135deg, rgba(0, 102, 255, 0.85) 0%, rgba(0, 153, 255, 0.7) 100%);
    }

    .circular-workflow {
        width: 250px;
        height: 250px;
    }

    .partner-logos {
        flex-wrap: wrap;
        justify-content: center;
    }

    .partner-logos img {
        margin: 1rem;
    }

    .footer {
        padding: 40px 0 20px;
    }

    .resources-section .card-img-top {
        height: 160px;
    }
    
    .partner-grid .col-auto {
        flex: 0 0 33.333%;
        text-align: center;
    }
    
    .manufacturing-section .btn.rounded-circle {
        width: 36px;
        height: 36px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 2s ease-out;
}

/* Animation for partner logos */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.partner-logo {
    animation: fadeInUp 0.6s ease-out forwards;
    animation-delay: calc(var(--animation-order) * 0.1s);
}

/* Get Started Section */
.get-started-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0099FF 100%);
}

.newsletter-box {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.newsletter-box .form-control {
    border: 1px solid #e0e0e0;
    padding: 0.75rem 1rem;
}

.newsletter-box .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(73, 69, 255, 0.25);
}

/* Blog Posts Section */
.blog-posts-section .card {
    transition: transform 0.3s ease;
}

.blog-posts-section .card:hover {
    transform: translateY(-5px);
}

.blog-posts-section .card-img-top {
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.blog-posts-section .badge {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.blog-posts-section .btn-link {
    text-decoration: none;
    font-weight: 500;
}

.blog-posts-section .btn-link:hover {
    text-decoration: underline;
}

.blog-posts-section h3 {
    font-weight: 600;
    line-height: 1.4;
}

/* Responsive adjustments for new sections */
@media (max-width: 991.98px) {
    .get-started-section {
        text-align: center;
    }

    .get-started-section .newsletter-box {
        margin-top: 2rem;
    }

    .blog-posts-section .card-img-top {
        height: 180px;
    }
}

@media (max-width: 767.98px) {
    .get-started-section .d-flex {
        justify-content: center;
    }

    .blog-posts-section .card-img-top {
        height: 160px;
    }

    .blog-posts-section h2 {
        font-size: 1.75rem;
    }
}

/* Data Model Device Section */
.data-model-device-section {
    position: relative;
    overflow: hidden;
}

.workflow-diagram {
    position: relative;
}

.workflow-item {
    position: relative;
    z-index: 2;
}

.icon-box {
    width: 200px;
    height: 200px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.icon-box:hover {
    transform: translateY(-5px);
}

.workflow-icon {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.workflow-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.workflow-connections path {
    stroke: #0066FF;
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--light-color);
}

.testimonial-content {
    position: relative;
    border-radius: 16px;
}

.testimonial-content::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid #343a40;
}

.testimonial-company-logo {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.testimonial-company-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.rating {
    letter-spacing: 2px;
}

/* Responsive adjustments for new sections */
@media (max-width: 991.98px) {
    .workflow-item {
        margin: 0 10px;
    }

    .icon-box {
        width: 100px;
        height: 100px;
    }

    .workflow-icon {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 767.98px) {
    .workflow-diagram {
        overflow-x: auto;
        padding: 20px 0;
    }

    .workflow-item small {
        font-size: 0.7rem;
    }

    .testimonial-content {
        padding: 1.5rem !important;
    }
} 