@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&family=Noto+Sans+TC:wght@400;500;700&display=swap');

:root {
    --background-top: #ecf7ff;
    --background-bottom: #87b9d6;
    --glow-center: rgba(203, 182, 232, 0.65);
    --glow-mid: rgba(123, 204, 237, 0.40);
    --glow-edge: rgba(123, 204, 237, 0);
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(180deg, var(--background-top), var(--background-bottom));
    font-family: "Poppins", "Noto Sans TC", sans-serif;
    color: #222c46;
    display: flex;
    justify-content: center;
    align-items: center;
}

.light-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 30%, var(--glow-center), transparent 70%);
    z-index: 0;
    animation: softGlow 8s ease-in-out infinite alternate;
}

@keyframes softGlow {
    from { opacity: 0.6; }
    to { opacity: 1; }
}

.terminal {
    max-width: 800px;
    padding: 28px;
    border: 2px solid #889ec5;
    border-radius: 18px;
    background: rgba(247, 244, 255, 0.95);
    text-align: center;
    z-index: 1;
    position: relative;
    box-shadow: 0 0 40px rgba(43, 72, 112, 0.32);
    backdrop-filter: blur(10px);
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid #b3c8e5;
    display: block;
    margin: 0 auto 20px auto;
    box-shadow: 0 0 15px rgba(78, 113, 164, 0.38);
}

h1 {
    font-size: 2.2em;
    margin-bottom: 6px;
    color: #87b9d6;
    text-shadow: 0 0 6px rgba(71, 105, 114, 0.23);
}

.intro {
    font-style: italic;
    color: #4f527b;
    margin-bottom: 20px;
    font-weight: 500;
}

p {
    margin: 10px 0;
    line-height: 1.8em;
    color: #4f527b;
}

.terminal p:first-of-type,
.terminal p:nth-of-type(3) {
    color: #7d83da;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(195, 99, 148, 0.19);
    font-family: "Poppins", "Noto Sans TC", sans-serif;
}

#intro-text {
    color: #414c6a;
    font-family: "Poppins", "Noto Sans TC", sans-serif;
    letter-spacing: 0.5px;
    text-shadow: 0 0 6px rgba(137, 161, 205, 0.20);
    line-height: 1.7em;
    font-size: 1em;
}

.buttons {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    font-family: monospace;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.github {
    background: linear-gradient(45deg, #25314a, #3e5271);
    color: white;
}
.github:hover {
    box-shadow: 0 0 12px rgba(62, 82, 113, 0.40);
    transform: translateY(-2px);
}

.discord {
    background: linear-gradient(45deg, #404a78, #5b5688);
    color: white;
}
.discord:hover {
    box-shadow: 0 0 12px rgba(91, 86, 136, 0.48);
    transform: translateY(-2px);
}

.linkedin {
    background: linear-gradient(45deg, #245075, #2e658d);
    color: white;
}
.linkedin:hover {
    box-shadow: 0 0 12px rgba(46, 101, 141, 0.45);
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .avatar {
        width: 110px;
        height: 110px;
    }
    .terminal {
        width: 90%;
        padding: 18px;
    }
}
