@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700&family=Outfit:wght@400;600;800&display=swap');

:root {
    --primary-color: #FF9F1C;
    --primary-gradient: linear-gradient(135deg, #FF9F1C 0%, #FF5F6D 100%);
    --secondary-color: #2EC4B6;
    --secondary-gradient: linear-gradient(135deg, #2EC4B6 0%, #20A4F3 100%);
    --text-color: #2D3436;
    --text-light: #636E72;
    --bg-color: #F8F9FA;
    --card-bg: rgba(255, 255, 255, 0.65);
    --glass-border: 1px solid rgba(255, 255, 255, 0.6);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
    --font-heading: 'Outfit', 'Noto Sans TC', sans-serif;
    --font-body: 'Noto Sans TC', sans-serif;
    --radius-xl: 32px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #FFFFFF;
        --text-light: #B2BEC3;
        --bg-color: #0F172A;
        --card-bg: rgba(30, 41, 59, 0.6);
        --glass-border: 1px solid rgba(255, 255, 255, 0.08);
        --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4);
    }
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.8;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Ambient Background Lights */
body::before,
body::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
    animation: float 20s infinite alternate ease-in-out;
}

body::before {
    background: radial-gradient(circle, rgba(255, 159, 28, 0.3) 0%, transparent 70%);
    top: -200px;
    left: -200px;
}

body::after {
    background: radial-gradient(circle, rgba(46, 196, 182, 0.25) 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: var(--glass-border);
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.logo-img {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo-container:hover .logo-img {
    transform: rotate(10deg) scale(1.1);
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--primary-color);
}

main {
    flex: 1;
    max-width: 960px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    width: 100%;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 1rem 6rem;
    position: relative;
}

.app-icon-large {
    width: 160px;
    height: 160px;
    border-radius: 40px;
    margin-bottom: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(255, 159, 28, 0.3);
    animation: bounce 3s infinite ease-in-out;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    font-size: 1.5rem;
    color: var(--text-light);
    font-weight: 400;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Content Cards */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: var(--glass-border);
    margin-bottom: 3rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px) scale(1.01);
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

/* Shiny border effect on hover */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: 0.6s;
    pointer-events: none;
}

.card:hover::before {
    transform: translateX(100%);
}

h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    list-style: none;
}

li {
    background: rgba(255, 255, 255, 0.3);
    padding: 1.2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

li strong {
    display: block;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

footer {
    border-top: var(--glass-border);
    padding: 4rem 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
}


/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

/* Mobile */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    nav {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    h1 {
        font-size: clamp(2.2rem, 8vw, 3rem);
    }

    .hero {
        padding: 2rem 1rem 4rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .card {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }

    ul {
        grid-template-columns: 1fr;
    }

    body::before,
    body::after {
        width: 300px;
        height: 300px;
        opacity: 0.3;
        /* Reduce distraction on small screens */
    }
}

@media (max-width: 480px) {
    .app-icon-large {
        width: 120px;
        height: 120px;
    }

    h1 {
        font-size: 2rem;
    }
}