:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --background-color: #f4f7f6;
    --text-color: #333;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

main {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.card {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 15px 30px var(--shadow-color);
    text-align: center;
    max-width: 700px;
    width: 100%;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.name {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-weight: 800;
}

.statement {
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 500;
}

.highlight {
    color: var(--primary-color);
    font-weight: 900;
    text-shadow: 1px 1px 2px rgba(52, 152, 219, 0.2);
}

.section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #ddd;
    text-align: left;
}

.section:first-of-type {
    border-top: none;
    padding-top: 0;
}

.section h2 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 700;

    border-left: 5px solid var(--primary-color);
    padding-left: 10px;
}

.section p {
    font-size: 1.05rem;
    color: var(--text-color);
    margin-bottom: 10px;
    padding-left: 15px;
}

.section i {
    margin-right: 8px;
    color: var(--primary-color);
}

.skill-list {
    list-style: none;
    padding: 0 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.skill-list li {
    background-color: #e8f0fe;
    color: var(--secondary-color);
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.3s, color 0.3s;
    white-space: nowrap;
}

.skill-list li:hover {
    background-color: var(--primary-color);
    color: white;
}

.skill-list li i {
    color: var(--secondary-color);
    margin-right: 5px;
}
.skill-list li:hover i {
    color: white;
}

.project-list {
    list-style: none;
    padding: 0 15px;
    margin-top: 15px;
}

.project-list li {
    margin-bottom: 15px;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.2s;
}

.project-list li:hover {
    background-color: #e8f0fe;
    transform: translateX(5px);
}

.project-list a {
    text-decoration: none;
    color: var(--text-color);
    display: block;
    font-size: 1rem;
}

.project-list .stars {
    color: #f39c12;
    font-size: 0.9rem;
    margin-left: 5px;
}

.social-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 0 15px;
}

.social-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    color: white;
}

.social-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.social-button i {
    margin-right: 8px;
    color: white;
}

.social-button.github {
    background: linear-gradient(135deg, #24292e 0%, #000000 100%);
}

.social-button.sponsors {
    background: linear-gradient(135deg, #ea4aaa 0%, #c13584 100%);
}

.social-button.twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #0c85d0 100%);
}

.social-button.zenn {
    background: linear-gradient(135deg, #3ea8ff 0%, #0066cc 100%);
}

.social-button.qiita {
    background: linear-gradient(135deg, #55c500 0%, #3fa000 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 0 15px;
    margin-top: 20px;
}

.stat-item {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2980b9 100%);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: white;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
    transition: transform 0.3s;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.links {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.link-button {
    display: inline-flex;
    align-items: center;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    font-size: 1rem;
    letter-spacing: 0.5px;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.link-button i {
    margin-right: 10px;
    font-size: 1.1rem;
}

.github {
    background-color: var(--secondary-color);
    color: white;
}

.github:hover {
    background-color: #444;
    transform: translateY(-2px);
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.15);
}

.blog {
    background-color: #6c757d;
    color: white;
}

.blog:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.15);
}

footer {
    padding: 15px;
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    color: #777;
}

@media (max-width: 768px) {
    .card {
        padding: 30px 20px;
    }
    .name {
        font-size: 3rem;
    }
    .statement {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
    .links {
        flex-direction: column;
        gap: 10px;
    }
    .link-button {
        width: 100%;
        justify-content: center;
    }
    .skill-list {
        justify-content: center;
    }
    .social-buttons {
        flex-direction: column;
    }
    .social-button {
        width: 100%;
        justify-content: center;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 2.5rem;
    }
    .statement {
        font-size: 1.4rem;
    }
}
