:root {
    --primary: #00d2ff;
    --primary-dark: #0099cc;
    --secondary: #3a7bd5;
    --accent: #ff6b6b;
    --bg-dark: #0f172a;
    --bg-light: #f8fafc;
    --text-main: #e2e8f0;
    --text-dark: #1e293b;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    --container-width: 1100px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Outfit', 'Noto Sans TC', sans-serif;
    line-height: 1.6;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Nav */
header {
    height: 80px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid var(--glass-border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 400;
    transition: var(--transition);
}

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

/* Buttons */
.btn {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.4);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

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

/* Hero Section */
#hero {
    padding: 160px 0 100px;
    background: radial-gradient(circle at 80% 20%, rgba(58, 123, 213, 0.15), transparent 40%),
                radial-gradient(circle at 10% 80%, rgba(0, 210, 255, 0.1), transparent 40%);
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.highlight {
    background: linear-gradient(to right, #00d2ff, #9cedff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.25rem;
    color: #94a3b8;
    margin-bottom: 2.5rem;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.pool-animation {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 8s ease-in-out infinite;
    filter: blur(20px);
    opacity: 0.6;
}

@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

/* Sections */
.section {
    padding: 100px 0;
}

.bg-light {
    background-color: rgba(255, 255, 255, 0.02);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.step-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    transition: var(--transition);
}

.step-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-10px);
}

.step-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 2rem;
}

/* Gallery */
.cases-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.case-card {
    background: var(--glass);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.case-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.case-card:hover .case-img {
    transform: scale(1.05);
}

.case-info {
    padding: 1.5rem;
}

.case-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.case-info p {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.case-date {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
}

/* Form Section */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(30, 41, 59, 0.5); /* Semi-transparent dark background */
    padding: 1.5rem;
    border-radius: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(0, 210, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.iframe-wrapper {
    width: 100%;
    position: relative;
    height: 900px;
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff; /* Prevents flash of dark background while loading */
}

/* Optional: Slight opacity for form to blend with bg IF it's pure white */
.iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    transition: opacity 0.5s;
}

.form-note {
    text-align: center;
    margin-top: 1.5rem;
    color: #94a3b8;
}

/* Accordion */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 1rem;
}

.accordion-header {
    width: 100%;
    padding: 1.5rem;
    background: transparent;
    color: var(--text-main);
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.accordion-item.active .accordion-header::after {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1.5rem;
    color: #94a3b8;
}

.accordion-item.active .accordion-content {
    max-height: 200px;
    padding-bottom: 1.5rem;
}

/* Footer */
footer {
    padding: 60px 0 40px;
    background: #070b14;
    border-top: 1px solid var(--glass-border);
}

.disclaimer {
    background: rgba(255, 107, 107, 0.05);
    border: 1px solid rgba(255, 107, 107, 0.2);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    font-size: 0.9rem;
}

.disclaimer strong {
    color: var(--accent);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.line-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed var(--primary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .nav-links {
        display: none; /* In real app we'd add a burger menu */
    }
    
    .hero-visual {
        margin-bottom: 2rem;
    }
    
    .pool-animation {
        width: 200px;
        height: 200px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}
