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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft JhengHei", "Segoe UI", Arial, sans-serif;
    line-height: 1.7;
    color: #1f2937;
    background-color: #f4f7fb;
}

/* =========================
   Layout
========================= */
.container {
    width: min(1080px, 90%);
    margin: 0 auto;
}

.section {
    padding: 72px 0;
}

.section-light {
    background-color: #eef3f8;
}

.section-title {
    margin-bottom: 22px;
    font-size: 30px;
    font-weight: 800;
    color: #111827;
}

.section-text {
    max-width: 820px;
    margin-bottom: 16px;
    font-size: 17px;
    color: #4b5563;
}

.project-intro {
    margin-bottom: 32px;
}

/* =========================
   Header
========================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.header-inner {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
}

.nav {
    display: flex;
    gap: 22px;
}

.nav a {
    color: #4b5563;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
}

.nav a:hover {
    color: #2563eb;
}

/* =========================
   Hero
========================= */
.hero {
    padding: 96px 0;
    background: linear-gradient(135deg, #eaf2ff 0%, #ffffff 100%);
    border-bottom: 1px solid #e5e7eb;
}

.hero-content {
    max-width: 820px;
}

.eyebrow {
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 800;
    color: #2563eb;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero h2 {
    max-width: 780px;
    margin-bottom: 22px;
    font-size: clamp(34px, 5vw, 50px);
    line-height: 1.25;
    font-weight: 900;
    color: #111827;
}

.hero-text {
    max-width: 760px;
    margin-bottom: 32px;
    font-size: 18px;
    color: #4b5563;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* =========================
   Buttons
========================= */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s;
}

.btn.primary {
    color: #ffffff;
    background-color: #2563eb;
}

.btn.primary:hover {
    background-color: #1d4ed8;
}

.btn.secondary {
    color: #2563eb;
    background-color: #ffffff;
    border: 1px solid #bfdbfe;
}

.btn.secondary:hover {
    background-color: #eff6ff;
}

/* =========================
   Skills
========================= */
.skill-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.skill-card {
    padding: 24px;
    border-radius: 16px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.skill-card h3 {
    margin-bottom: 10px;
    font-size: 20px;
    color: #111827;
}

.skill-card p {
    font-size: 15px;
    color: #4b5563;
}

/* =========================
   Projects
========================= */
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.project-card {
    display: flex;
    flex-direction: column;
    min-height: 620px;
    padding: 26px;
    border-radius: 18px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.project-card h3 {
    min-height: 68px;
    margin-bottom: 14px;
    font-size: 22px;
    line-height: 1.4;
    color: #111827;
}

.project-card>p {
    min-height: 150px;
    margin-bottom: 18px;
    font-size: 15.5px;
    color: #4b5563;
}

.project-detail {
    min-height: 250px;
    margin-bottom: 18px;
    padding: 16px;
    border-radius: 12px;
    background-color: #f8fafc;
    border: 1px solid #e5e7eb;
}

.project-detail h4 {
    margin-bottom: 8px;
    font-size: 15px;
    color: #111827;
}

.project-detail ul {
    padding-left: 20px;
}

.project-detail li {
    margin-bottom: 6px;
    font-size: 14px;
    color: #4b5563;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.tags span {
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: #1d4ed8;
    background-color: #dbeafe;
}

/* =========================
   Info Cards
========================= */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.info-card {
    padding: 26px;
    border-radius: 18px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.info-card h3 {
    margin-bottom: 14px;
    font-size: 22px;
    color: #111827;
}

.info-card ul {
    padding-left: 20px;
    color: #4b5563;
}

.info-card li {
    margin-bottom: 8px;
    font-size: 15px;
}

.info-btn {
    margin-top: 18px;
}

/* =========================
   Footer
========================= */
.footer {
    padding: 24px;
    text-align: center;
    color: #9ca3af;
    background-color: #111827;
}

/* =========================
   Responsive
========================= */
@media (max-width: 960px) {

    .skill-grid,
    .project-grid,
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-card {
        min-height: auto;
    }

    .project-card h3,
    .project-card>p,
    .project-detail {
        min-height: auto;
    }
}

@media (max-width: 700px) {
    .header-inner {
        height: auto;
        padding: 18px 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .nav {
        flex-wrap: wrap;
        gap: 12px;
    }

    .hero {
        padding: 72px 0;
    }

    .section {
        padding: 56px 0;
    }

    .skill-grid,
    .project-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .hero h2 {
        font-size: 34px;
    }

    .hero-text {
        font-size: 16px;
    }
}