* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background: #fefefe;
    min-height: 100vh;
    font-weight: 400;
    line-height: 1.6;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 20px 20px 0 20px;
    max-width: 1400px;
    margin: 0 auto 40px auto;
}

h1 {
    font-size: 3rem;
    font-weight: 600;
    margin: 0;
    color: #333;
    letter-spacing: -0.02em;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right;
}

.author-line {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}

.author-name {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    min-width: 110px;
}

.social-links {
    display: flex;
    gap: 8px;
}

.social-links a {
    font-size: 0.85rem;
    color: #999;
    text-decoration: none;
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: #333;
}

.board-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.projects-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 40px 20px;
}

.projects-grid {
    display: flex;
    gap: 60px;
    justify-content: center;
    align-items: center;
}

.app-icon {
    width: 240px;
    height: 240px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        2px 2px 8px rgba(0,0,0,0.15),
        0 0 0 1px rgba(0,0,0,0.05);
    transform: rotate(-2deg);
    position: relative;
}

.app-icon:nth-child(2) {
    background: linear-gradient(135deg, #98fb98 0%, #90ee90 100%);
    transform: rotate(1.5deg);
}

.app-icon:nth-child(3) {
    background: linear-gradient(135deg, #ffb6c1 0%, #ffc0cb 100%);
    transform: rotate(-1deg);
}

.app-icon:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 
        4px 4px 16px rgba(0,0,0,0.25),
        0 0 0 1px rgba(0,0,0,0.1);
    z-index: 10;
}

.app-icon::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-top: 20px solid rgba(0,0,0,0.1);
    border-top-right-radius: 3px;
}

.app-icon .icon {
    font-size: 4.5rem;
    margin-bottom: 16px;
    color: #333;
}

.app-icon .app-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.sticky-note {
    background: #ffd700;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 3px;
    padding: 20px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        2px 2px 8px rgba(0,0,0,0.15),
        0 0 0 1px rgba(0,0,0,0.05);
    transform: rotate(-1deg);
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.sticky-note:nth-child(2n) {
    background: linear-gradient(135deg, #98fb98 0%, #90ee90 100%);
    transform: rotate(1deg);
}

.sticky-note:nth-child(3n) {
    background: linear-gradient(135deg, #ffb6c1 0%, #ffc0cb 100%);
    transform: rotate(-0.5deg);
}

.sticky-note:nth-child(4n) {
    background: linear-gradient(135deg, #87ceeb 0%, #add8e6 100%);
    transform: rotate(0.8deg);
}

.sticky-note:nth-child(5n) {
    background: linear-gradient(135deg, #dda0dd 0%, #e6e6fa 100%);
    transform: rotate(-1.2deg);
}

.sticky-note:nth-child(6n) {
    background: linear-gradient(135deg, #f0e68c 0%, #fff8dc 100%);
    transform: rotate(0.3deg);
}

.sticky-note:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 
        4px 4px 16px rgba(0,0,0,0.25),
        0 0 0 1px rgba(0,0,0,0.1);
    z-index: 10;
}

.sticky-note h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.sticky-note .author {
    font-size: 0.85rem;
    color: #666;
    margin: 0 0 12px 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sticky-note .preview {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.note-corner {
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-top: 20px solid rgba(0,0,0,0.1);
    border-top-right-radius: 3px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.close:hover,
.close:focus {
    color: #000;
}

.modal-content h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.modal-content .article-meta {
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 25px;
    font-size: 1rem;
}

.modal-content p {
    line-height: 1.7;
    color: #34495e;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Color Palette Selector */
.palette-selector {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 100;
}

.palette-selector h4 {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: #333;
    font-weight: 600;
    text-align: center;
}

.palette-options {
    display: flex;
    gap: 8px;
}

.palette-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.palette-option:hover {
    transform: scale(1.1);
    border-color: #333;
}

.palette-option.active {
    border-color: #333;
    transform: scale(1.15);
}

.palette-option.warm {
    background: linear-gradient(45deg, #ffd700, #ffb6c1, #98fb98);
}

.palette-option.cool {
    background: linear-gradient(45deg, #87ceeb, #dda0dd, #f0e68c);
}

.palette-option.soft {
    background: linear-gradient(45deg, #a8e6cf, #dcedc8, #f8bbd9);
}

.palette-option.pastel {
    background: linear-gradient(45deg, #ffe4e1, #e0ffff, #f0fff0);
}

.palette-option.blush {
    background: linear-gradient(45deg, #FF99C8, #FCF6BD, #D0F4DE);
}

/* Color Palette Classes */
.palette-warm .sticky-note:nth-child(6n+1) { background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%); }
.palette-warm .sticky-note:nth-child(6n+2) { background: linear-gradient(135deg, #ffb6c1 0%, #ffc0cb 100%); }
.palette-warm .sticky-note:nth-child(6n+3) { background: linear-gradient(135deg, #98fb98 0%, #90ee90 100%); }
.palette-warm .sticky-note:nth-child(6n+4) { background: linear-gradient(135deg, #ffb89a 0%, #ff9977 100%); }
.palette-warm .sticky-note:nth-child(6n+5) { background: linear-gradient(135deg, #ffffe0 0%, #fffacd 100%); }
.palette-warm .sticky-note:nth-child(6n+6) { background: linear-gradient(135deg, #ffe4b5 0%, #ffdead 100%); }

.palette-cool .sticky-note:nth-child(6n+1) { background: linear-gradient(135deg, #87ceeb 0%, #add8e6 100%); }
.palette-cool .sticky-note:nth-child(6n+2) { background: linear-gradient(135deg, #dda0dd 0%, #e6e6fa 100%); }
.palette-cool .sticky-note:nth-child(6n+3) { background: linear-gradient(135deg, #b0e0e6 0%, #afeeee 100%); }
.palette-cool .sticky-note:nth-child(6n+4) { background: linear-gradient(135deg, #d8bfd8 0%, #dda0dd 100%); }
.palette-cool .sticky-note:nth-child(6n+5) { background: linear-gradient(135deg, #f0e68c 0%, #fff8dc 100%); }
.palette-cool .sticky-note:nth-child(6n+6) { background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%); }

.palette-soft .sticky-note:nth-child(6n+1) { background: linear-gradient(135deg, #a8e6cf 0%, #c8e6c9 100%); }
.palette-soft .sticky-note:nth-child(6n+2) { background: linear-gradient(135deg, #f8bbd9 0%, #f48fb1 100%); }
.palette-soft .sticky-note:nth-child(6n+3) { background: linear-gradient(135deg, #dcedc8 0%, #f0f4c3 100%); }
.palette-soft .sticky-note:nth-child(6n+4) { background: linear-gradient(135deg, #b3e5fc 0%, #81d4fa 100%); }
.palette-soft .sticky-note:nth-child(6n+5) { background: linear-gradient(135deg, #ffcdd2 0%, #f8bbd9 100%); }
.palette-soft .sticky-note:nth-child(6n+6) { background: linear-gradient(135deg, #e1bee7 0%, #d1c4e9 100%); }

.palette-pastel .sticky-note:nth-child(6n+1) { background: linear-gradient(135deg, #ffe4e1 0%, #fff0f5 100%); }
.palette-pastel .sticky-note:nth-child(6n+2) { background: linear-gradient(135deg, #e0ffff 0%, #f0ffff 100%); }
.palette-pastel .sticky-note:nth-child(6n+3) { background: linear-gradient(135deg, #f0fff0 0%, #f5fffa 100%); }
.palette-pastel .sticky-note:nth-child(6n+4) { background: linear-gradient(135deg, #ffefd5 0%, #fff8dc 100%); }
.palette-pastel .sticky-note:nth-child(6n+5) { background: linear-gradient(135deg, #e6e6fa 0%, #f8f8ff 100%); }
.palette-pastel .sticky-note:nth-child(6n+6) { background: linear-gradient(135deg, #fffacd 0%, #ffffe0 100%); }

.palette-blush .sticky-note:nth-child(6n+1) { background: linear-gradient(135deg, #FF99C8 0%, #ffb3d4 100%); }
.palette-blush .sticky-note:nth-child(6n+2) { background: linear-gradient(135deg, #FCF6BD 0%, #fdf8c7 100%); }
.palette-blush .sticky-note:nth-child(6n+3) { background: linear-gradient(135deg, #D0F4DE 0%, #d8f6e3 100%); }
.palette-blush .sticky-note:nth-child(6n+4) { background: linear-gradient(135deg, #A9DEF9 0%, #bbe5fa 100%); }
.palette-blush .sticky-note:nth-child(6n+5) { background: linear-gradient(135deg, #E4C1F9 0%, #e8cdfb 100%); }
.palette-blush .sticky-note:nth-child(6n+6) { background: linear-gradient(135deg, #FF99C8 0%, #FCF6BD 100%); }

/* Responsive Design */
@media (max-width: 768px) {
    .board-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
        padding: 10px;
    }
    
    header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        margin: 0 auto 30px auto;
        padding: 10px 10px 0 10px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .header-right {
        text-align: center;
    }
    
    .author-line {
        justify-content: center;
    }
    
    .projects-container {
        padding: 30px 15px;
        min-height: 50vh;
    }
    
    .projects-grid {
        gap: 40px;
    }
    
    .app-icon {
        width: 130px;
        height: 130px;
    }
    
    .app-icon .icon {
        font-size: 2.5rem;
    }
    
    .app-icon .app-name {
        font-size: 0.9rem;
    }
    
    .sticky-note {
        padding: 15px;
        min-height: 180px;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }
    
    .modal-content h2 {
        font-size: 1.6rem;
    }
    
    .palette-selector {
        bottom: 10px;
        right: 10px;
        padding: 10px;
        transform: scale(0.8);
    }
}

@media (max-width: 480px) {
    .board-container {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    header {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
        align-items: center;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .header-right {
        text-align: right;
        gap: 4px;
    }
    
    .author-line {
        flex-direction: row;
        gap: 6px;
        align-items: center;
        justify-content: flex-end;
    }
    
    .author-name {
        min-width: auto;
        font-size: 0.75rem;
    }
    
    .social-links a {
        font-size: 0.7rem;
    }
    
    .projects-container {
        padding: 20px 10px;
        min-height: 40vh;
    }
    
    .projects-grid {
        gap: 30px;
        flex-direction: column;
    }
    
    .app-icon {
        width: 120px;
        height: 120px;
    }
    
    .app-icon .icon {
        font-size: 2.2rem;
    }
    
    .app-icon .app-name {
        font-size: 0.85rem;
    }
    
    .sticky-note {
        padding: 12px;
        min-height: 160px;
    }
    
    .sticky-note h3 {
        font-size: 1rem;
    }
    
    .sticky-note .preview {
        font-size: 0.8rem;
        -webkit-line-clamp: 3;
    }
}