/* ===== FUGU Website Styles ===== */
/* White-themed, modern, clean design */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

[id] {
    scroll-margin-top: 80px;
}

body {
    font-family: 'Inter', 'Noto Sans TC', 'Noto Sans SC', sans-serif;
    background-color: #ffffff;
    color: #1a1a2e;
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1a73e8, #6c5ce7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: #444;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #1a73e8;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switcher {
    display: flex;
    gap: 4px;
    background: #f5f5f7;
    border-radius: 8px;
    padding: 3px;
}

.lang-btn {
    border: none;
    background: transparent;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #666;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn.active {
    background: #fff;
    color: #1a73e8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.lang-btn:hover:not(.active) {
    color: #1a73e8;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #1a73e8, #6c5ce7);
    color: #fff;
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(26, 115, 232, 0.4);
}

.btn-secondary {
    color: #1a73e8;
    background: transparent;
    padding: 12px 0;
    position: relative;
}

.btn-secondary::after {
    content: ' \2192';
}

.btn-secondary:hover {
    color: #6c5ce7;
}

.btn-outline {
    border: 2px solid #1a73e8;
    color: #1a73e8;
    background: transparent;
}

.btn-outline:hover {
    background: #1a73e8;
    color: #fff;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: max(640px, 85vh);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    justify-content: center;
    text-align: center;
    background: #f8faff;
    overflow: hidden;
    padding-top: 112px;
    padding-bottom: 80px;
}

#particleCanvas {
    position: relative;
    width: 100%;
    height: clamp(180px, 32vh, 360px);
    flex-shrink: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 24px;
    margin-bottom: 0;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 30px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* ===== Content Sections ===== */
.content-section {
    padding: 100px 0;
}

.content-section.alt-bg {
    background: #f8faff;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.grid-2-col.reverse {
    direction: rtl;
}

.grid-2-col.reverse > * {
    direction: ltr;
}

.text-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a2e;
    line-height: 1.2;
}

.text-content p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 24px;
}

.visual-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-content svg {
    max-width: 100%;
    height: auto;
}

/* Centered heading */
.centered-heading {
    text-align: center;
    margin-bottom: 60px;
}

.centered-heading h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1a1a2e;
}

.centered-heading p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Features Grid ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    background: #fff;
    border: 1px solid #eef2ff;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(26, 115, 232, 0.1);
    border-color: #c7d7fe;
}

.feature-icon {
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1a1a2e;
}

.feature-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* ===== Process Steps ===== */
.process-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.process-step {
    text-align: center;
    padding: 40px 30px;
    flex: 1;
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1a73e8, #6c5ce7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.process-step h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a2e;
}

.process-step p {
    font-size: 0.9rem;
    color: #666;
}

.process-connector {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #1a73e8, #6c5ce7);
    opacity: 0.4;
}

/* ===== Stats Grid ===== */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    width: 100%;
}

.stat-item {
    background: #f8faff;
    border: 1px solid #eef2ff;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(26, 115, 232, 0.08);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1a73e8, #6c5ce7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* ===== Contact Form ===== */
.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #444;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid #e0e7ff;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    color: #333;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.contact-form .btn {
    align-self: flex-start;
}

/* ===== Video Showcase ===== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 16px;
    margin-top: 48px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.video-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    cursor: pointer;
}

.video-card video {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.video-card:hover video {
    transform: scale(1.03);
}

.video-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-product {
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
}

.video-scene {
    color: rgba(255,255,255,0.8);
    font-size: 0.75rem;
    background: rgba(255,255,255,0.15);
    padding: 3px 8px;
    border-radius: 4px;
}

/* ===== Footer ===== */
.footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 60px 0 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    display: block;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: #888;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-column h4 {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #888;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #2a2a3e;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: #666;
}

/* ===== Cookie Banner ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-content p {
    font-size: 0.85rem;
    color: #555;
    margin: 0;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* ===== Modal ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    overflow-y: auto;
    padding: 20px;
}

.modal-content {
    background: #fff;
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    margin: 60px auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    font-size: 1.3rem;
    color: #1a1a2e;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
    max-height: calc(80vh - 150px);
    overflow-y: auto;
    color: #555;
    line-height: 1.8;
}

.modal-footer {
    padding: 16px 30px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
}

/* ===== Scroll Animations ===== */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-right .btn {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-title {
        font-size: 3rem;
        min-height: 80px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .grid-2-col {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .grid-2-col.reverse {
        direction: ltr;
    }

    .text-content h2,
    .centered-heading h2 {
        font-size: 1.8rem;
    }

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

    .process-steps {
        flex-direction: column;
    }

    .process-connector {
        width: 2px;
        height: 30px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-top {
        flex-direction: column;
        gap: 30px;
    }

    .footer-links {
        gap: 30px;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .lang-switcher {
        display: flex;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.4rem;
    }

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