:root {
    --primary-color: #6366f1;
    --secondary-color: #a855f7;
    --background-color: #f8fafc;
    --text-color: #1e293b;
    --card-background: #ffffff;
    --hover-color: #4f46e5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Malgun Gothic', sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f0f8ff;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h1, h2, h3 {
    color: #2c8c99;
    text-align: center;
}

.game-instructions {
    background-color: #e3f2fd;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.game-instructions ol {
    margin-left: 20px;
    line-height: 1.6;
}

.game-container {
    width: 800px;
    height: 400px;
    margin: 20px auto;
    position: relative;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.waste-item {
    width: 80px;
    height: 80px;
    position: absolute;
    cursor: move;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.bin {
    width: 100px;
    height: 120px;
    position: absolute;
    bottom: 20px;
    border-radius: 5px;
    text-align: center;
    color: white;
    padding-top: 50px;
}

#paper-bin { 
    left: 100px; 
    background-color: #3498db;
}

#plastic-bin { 
    left: 250px; 
    background-color: #2ecc71;
}

#glass-bin { 
    left: 400px; 
    background-color: #f1c40f;
}

#metal-bin { 
    left: 550px; 
    background-color: #e74c3c;
}

.feedback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 15px;
    border-radius: 5px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    display: none;
    z-index: 100;
}

.correct {
    background-color: rgba(0, 255, 0, 0.7);
    color: #006400;
}

.incorrect {
    background-color: rgba(255, 0, 0, 0.7);
    color: white;
}

#score, #highScore {
    text-align: center;
    font-size: 24px;
    margin: 10px;
    color: #2c8c99;
    font-weight: bold;
}

.info-panel {
    margin: 20px auto;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.achievement {
    background-color: #fff3cd;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.high-score {
    font-size: 24px;
    color: #2c8c99;
    font-weight: bold;
    margin: 10px 0;
}

/* 애니메이션 효과 추가 */
.project-card {
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.bin {
    transition: all 0.3s ease;
}

.bin:hover {
    transform: scale(1.05);
}

/* 반응형 디자인 개선 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .game-container {
        width: 100%;
        height: 300px;
    }
    
    .bin {
        width: 80px;
        height: 100px;
    }
}

/* 새로운 스타일 추가 */
.hero-section {
    text-align: center;
    padding: 50px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 10px;
    margin-bottom: 30px;
}

.main-title {
    font-size: 3em;
    margin-bottom: 10px;
    color: white;
}

.typing-text {
    font-size: 1.2em;
    border-right: 2px solid white;
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3.5s steps(40, end), blink-caret .75s step-end infinite;
}

.profile {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 20px 0;
}

.profile-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
}

.skill-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.skill-item {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.progress-bar {
    background: #eee;
    height: 10px;
    border-radius: 5px;
    margin-top: 10px;
}

.progress {
    background: var(--primary-color);
    height: 100%;
    border-radius: 5px;
    transition: width 1s ease-in-out;
}

.project-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.project-badge {
    background: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8em;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-2px);
}

/* 애니메이션 */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: white }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .profile {
        flex-direction: column;
        text-align: center;
    }

    .skill-items {
        grid-template-columns: 1fr;
    }
}