/* Tokens */
:root {
    --color-linen: #e8e3db;
    --color-blush-terra: #c4967a;
    --color-terracotta: #b5684a;
    --color-navy-soft: #3d5270;
    --color-navy-deep: #2b3f5c;
    --color-white: #ffffff;
    
    --font-heading: 'Noto Serif TC', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    color: var(--color-navy-soft);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-navy-deep);
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.bg-linen { background-color: var(--color-linen); }
.bg-navy-deep { background-color: var(--color-navy-deep); }
.bg-navy-soft { background-color: var(--color-navy-soft); }

.text-light { color: var(--color-white); }

/* Typography */
.highlight {
    color: var(--color-terracotta);
}

.section-tag {
    font-family: var(--font-heading);
    color: var(--color-blush-terra);
    font-style: italic;
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-navy-soft);
    margin-bottom: 48px;
}

.divider {
    width: 60px;
    height: 3px;
    background-color: var(--color-terracotta);
    margin: 24px auto;
}

.divider.align-left {
    margin: 24px 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--color-terracotta);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #9d563a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(181, 104, 74, 0.3);
}

.btn-outline {
    border-color: var(--color-navy-deep);
    color: var(--color-navy-deep);
}

.btn-outline:hover {
    background-color: var(--color-navy-deep);
    color: var(--color-white);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.125rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    border-bottom: 1px solid var(--color-linen);
    box-shadow: 0 2px 10px rgba(43, 63, 92, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-navy-deep);
}

.logo span {
    color: var(--color-terracotta);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    position: relative;
}

.nav-link:not(.btn-contact)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-terracotta);
    transition: var(--transition);
}

.nav-link:hover:not(.btn-contact)::after,
.nav-link.active:not(.btn-contact)::after {
    width: 100%;
}

.btn-contact {
    padding: 8px 20px;
    background-color: var(--color-navy-deep);
    color: var(--color-white);
    border-radius: 4px;
}

.btn-contact:hover {
    background-color: var(--color-terracotta);
    color: var(--color-white);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-navy-deep);
    cursor: pointer;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(135deg, #fdfcfb 0%, var(--color-linen) 100%);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-blush-terra);
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 16px;
}

.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.abstract-shape {
    width: 350px;
    height: 450px;
    background-color: var(--color-navy-deep);
    border-radius: 200px 200px 0 0;
    position: relative;
    overflow: hidden;
}

.abstract-shape::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background-color: var(--color-blush-terra);
    border-radius: 50%;
    opacity: 0.8;
}

.abstract-shape::before {
    content: '';
    position: absolute;
    top: 40px;
    left: -30px;
    width: 100px;
    height: 100px;
    background-color: var(--color-terracotta);
    border-radius: 50%;
    opacity: 0.9;
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

/* Value Props */
.value-card {
    background-color: var(--color-white);
    padding: 40px 32px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(43, 63, 92, 0.05);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(43, 63, 92, 0.08);
}

.value-icon {
    color: var(--color-terracotta);
    width: 32px;
    height: 32px;
    margin-bottom: 20px;
}

.value-card h3 {
    margin-bottom: 16px;
    font-size: 1.25rem;
}

/* About */
.about-inner {
    max-width: 800px;
}

.about-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    margin-bottom: 24px;
}

.about-description strong {
    color: var(--color-blush-terra);
    font-weight: 500;
}

/* Services */
.center {
    text-align: center;
}

.service-card {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: 8px;
    border-left: 4px solid var(--color-blush-terra);
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--color-terracotta);
    box-shadow: 0 10px 30px rgba(43, 63, 92, 0.05);
}

.service-icon-wrap {
    width: 56px;
    height: 56px;
    background-color: var(--color-linen);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}

.service-icon-wrap i {
    color: var(--color-navy-deep);
}

.service-title {
    margin-bottom: 16px;
    font-size: 1.375rem;
}

/* Experience */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 48px 0 0 24px;
    padding-left: 32px;
    border-left: 2px solid var(--color-linen);
}

.timeline-item {
    position: relative;
    margin-bottom: 48px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -39px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--color-terracotta);
    border: 4px solid var(--color-white);
}

.timeline-date {
    font-size: 0.875rem;
    color: var(--color-blush-terra);
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-title {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.timeline-company {
    font-size: 0.9375rem;
    color: var(--color-navy-soft);
    font-weight: 500;
    margin-bottom: 12px;
}

/* Testimonials */
.testimonial-wrap {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.quote-icon {
    color: var(--color-blush-terra);
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    opacity: 0.5;
}

.testimonial-text {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--color-white);
    line-height: 1.5;
    margin-bottom: 32px;
    font-style: italic;
}

.author-name {
    color: var(--color-linen);
    font-weight: 500;
}

/* Contact */
.contact-inner {
    max-width: 800px;
}

.contact-card {
    background-color: var(--color-white);
    padding: 64px 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(43, 63, 92, 0.08);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--color-linen);
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--color-terracotta);
}

.contact-desc {
    font-size: 1.125rem;
    margin-bottom: 32px;
}

.contact-email {
    margin-top: 16px;
    font-size: 0.9375rem;
    color: var(--color-blush-terra);
}

/* Footer */
.footer {
    color: var(--color-white);
    padding: 64px 0 32px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
}

.footer-brand .logo {
    color: var(--color-white);
    margin-bottom: 8px;
    display: block;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
    color: var(--color-blush-terra);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 32px;
    width: 100%;
}

/* Animations */
.slide-up {
    animation: slideUp 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title { font-size: 3rem; }
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-subtitle { margin-top: 40px; }
    .hero-description { margin: 0 auto 32px; }
    .hero-cta { justify-content: center; }
    .hero-visual { display: none; }
    
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .section { padding: 80px 0; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    
    .mobile-menu-btn { display: block; }
    .nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--color-white);
        transition: var(--transition);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .nav.active { left: 0; }
    .nav-list { flex-direction: column; font-size: 1.25rem; }
    .btn-contact { margin-top: 16px; }
    
    .hero-title { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    .testimonial-text { font-size: 1.25rem; }
}
