* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --sky-blue: #87CEEB;
    --light-yellow: #FFE5B4;
    --pink: #FFB6C1;
    --light-pink: #FFC0CB;
}

body {
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 1rem 0;
}

nav ul li {
    margin: 0 1.5rem;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav ul li a:hover {
    color: var(--pink);
    transform: translateY(-2px);
}

main {
    padding-top: 60px;
}

section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

#hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    background-color: #fff;
    position: relative;
    overflow: hidden;
    padding-top: 120px;
}

.gradient-bg {
    display: none;
}

/* Decorative Elements */
.decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.cloud {
    position: absolute;
    background: white;
    border-radius: 50px;
    opacity: 0.8;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.cloud:before,
.cloud:after {
    content: '';
    position: absolute;
    background: white;
    border-radius: 50%;
}

.cloud1 {
    width: 100px;
    height: 40px;
    top: 20%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.cloud1:before {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 15px;
}

.cloud1:after {
    width: 40px;
    height: 40px;
    top: -20px;
    left: 40px;
}

.cloud2 {
    width: 80px;
    height: 30px;
    top: 30%;
    right: 15%;
    animation: float 8s ease-in-out infinite;
}

.cloud2:before {
    width: 40px;
    height: 40px;
    top: -20px;
    left: 10px;
}

.cloud2:after {
    width: 30px;
    height: 30px;
    top: -15px;
    left: 35px;
}

.cloud3 {
    width: 60px;
    height: 25px;
    bottom: 30%;
    left: 20%;
    animation: float 7s ease-in-out infinite;
}

.cloud3:before {
    width: 30px;
    height: 30px;
    top: -15px;
    left: 8px;
}

.cloud3:after {
    width: 25px;
    height: 25px;
    top: -12px;
    left: 25px;
}

.star {
    position: absolute;
    width: 0;
    height: 0;
    border-right: 30px solid transparent;
    border-bottom: 20px solid var(--light-yellow);
    border-left: 30px solid transparent;
    transform: rotate(35deg);
    opacity: 0.8;
}

.star:before {
    content: '';
    position: absolute;
    border-bottom: 23px solid var(--light-yellow);
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    top: -13px;
    left: -21px;
    transform: rotate(-35deg);
}

.star:after {
    content: '';
    position: absolute;
    border-bottom: 20px solid var(--light-yellow);
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    top: 3px;
    left: -30px;
    transform: rotate(-70deg);
}

.star1 {
    top: 25%;
    right: 25%;
    animation: twinkle 3s ease-in-out infinite;
}

.star2 {
    top: 40%;
    left: 30%;
    animation: twinkle 4s ease-in-out infinite;
}

.star3 {
    bottom: 35%;
    right: 35%;
    animation: twinkle 5s ease-in-out infinite;
}

.heart {
    position: absolute;
    width: 30px;
    height: 30px;
    background: var(--pink);
    transform: rotate(45deg);
    opacity: 0.8;
}

.heart:before,
.heart:after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background: var(--pink);
    border-radius: 50%;
}

.heart:before {
    left: -15px;
}

.heart:after {
    top: -15px;
}

.heart1 {
    top: 45%;
    left: 15%;
    animation: pulse 4s ease-in-out infinite;
}

.heart2 {
    bottom: 25%;
    right: 20%;
    animation: pulse 5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 0.4;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: rotate(45deg) scale(1);
    }
    50% {
        transform: rotate(45deg) scale(1.2);
    }
}

h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
    color: var(--sky-blue);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.subtitle {
    font-size: 1.5rem;
    color: var(--pink);
    position: relative;
    z-index: 2;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: var(--pink);
    z-index: 2;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--sky-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.about-content p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.portfolio-item {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.portfolio-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--sky-blue);
    z-index: 2;
}

.placeholder {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-yellow);
    color: #666;
    font-weight: 500;
}

#contact {
    text-align: center;
    background: var(--sky-blue);
    border-radius: 15px;
    margin: 2rem auto;
    padding: 3rem;
    color: #fff;
}

#contact h2,
#contact h2 i {
    color: #fff;
}

#contact a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

#contact a:hover {
    color: var(--light-yellow);
    transform: translateY(-2px);
}

footer {
    text-align: center;
    padding: 2rem;
    background: var(--pink);
    color: #fff;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    section {
        padding: 3rem 1rem;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 0.5rem 0;
    }
}

.about-illustration {
    display: block;
    margin: 2rem auto;
    max-width: 100%;
    width: 600px;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(135, 206, 235, 0.15), 0 2px 8px rgba(255, 182, 193, 0.10);
    border: 4px solid var(--sky-blue);
    background: #fff;
    transition: transform 0.3s, box-shadow 0.3s;
}

.about-illustration:hover {
    transform: scale(1.03) rotate(-2deg);
    box-shadow: 0 16px 48px rgba(255, 182, 193, 0.18), 0 4px 16px rgba(135, 206, 235, 0.12);
}

.portfolio-edit-design {
    background: url('edit_design_bg.png') center center/cover no-repeat;
    position: relative;
}

.portfolio-edit-design .placeholder {
    background: rgba(255,255,255,0.7);
    color: #222;
    font-weight: bold;
    border-radius: 12px;
    padding: 1rem 2rem;
}

.portfolio-illustration {
    background: url('illustration_bg.png') center center/cover no-repeat;
    position: relative;
}

.portfolio-illustration .placeholder {
    background: rgba(255,255,255,0.7);
    color: #222;
    font-weight: bold;
    border-radius: 12px;
    padding: 1rem 2rem;
}

.portfolio-logo-design {
    background: url('logo_design_bg.png') center center/contain no-repeat;
    position: relative;
}

.portfolio-logo-design .placeholder {
    background: rgba(255,255,255,0.7);
    color: #222;
    font-weight: bold;
    border-radius: 12px;
    padding: 1rem 2rem;
}

.pastel-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
}

.pastel-star {
    position: absolute;
    width: 32px;
    height: 32px;
    opacity: 0.7;
    filter: blur(0.2px);
    background: transparent;
    pointer-events: none;
}

.pastel-star svg {
    width: 100%;
    height: 100%;
    display: block;
}

.pastel-star svg polygon {
    fill: currentColor;
}

/* 다양한 파스텔 색상과 위치, 크기, 회전 */
.pastel-star1  { color: #FFD1DC; top: 10%; left: 8%;  transform: scale(1.1) rotate(10deg); }
.pastel-star2  { color: #B5EAD7; top: 20%; left: 70%; transform: scale(0.8) rotate(-8deg); }
.pastel-star3  { color: #C7CEEA; top: 60%; left: 15%; transform: scale(1.2) rotate(20deg); }
.pastel-star4  { color: #FFDAC1; top: 80%; left: 80%; transform: scale(0.7) rotate(-15deg); }
.pastel-star5  { color: #E2F0CB; top: 40%; left: 50%; transform: scale(1.3) rotate(5deg); }
.pastel-star6  { color: #FFFACD; top: 75%; left: 30%; transform: scale(0.9) rotate(12deg); }
.pastel-star7  { color: #B5EAD7; top: 55%; left: 85%; transform: scale(1.1) rotate(-7deg); }
.pastel-star8  { color: #C7CEEA; top: 15%; left: 40%; transform: scale(0.7) rotate(18deg); }
.pastel-star9  { color: #FFB7B2; top: 65%; left: 60%; transform: scale(1.2) rotate(-12deg); }
.pastel-star10 { color: #E2F0CB; top: 30%; left: 90%; transform: scale(1.0) rotate(7deg); }

@media (max-width: 768px) {
    .pastel-star {
        width: 18px;
        height: 18px;
    }
}

/* 기존 z-index 조정 */
header, main, footer, .decoration { z-index: 1; position: relative; }

.portfolio-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: #fff;
    border-radius: 20px;
    padding: 2rem 2.5rem;
    max-width: 700px;
    width: 90vw;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    position: relative;
    text-align: center;
}
.close-btn {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
}
.close-btn:hover {
    color: #ff6f91;
}
.modal-content h3 {
    margin-bottom: 1.5rem;
    color: var(--sky-blue);
    font-size: 2rem;
}
.modal-images {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: center;
}
.modal-images img {
    width: 180px;
    height: 130px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    background: #f8f8f8;
    transition: transform 0.2s;
}
.modal-images img:hover {
    transform: scale(1.05) rotate(-2deg);
}
@media (max-width: 768px) {
    .modal-content {
        padding: 1rem 0.5rem;
    }
    .modal-images img {
        width: 100px;
        height: 70px;
    }
}

.modal-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0 1rem 0;
}
.modal-slide-img {
    width: 700px;
    height: 520px;
    max-width: 95vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    background: #f8f8f8;
    transition: transform 0.2s;
}
.arrow {
    font-size: 3rem;
    color: #b5ead7;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s, transform 0.2s;
    padding: 0 0.5rem;
    border-radius: 50%;
}
.arrow:hover {
    color: #ffb7b2;
    background: #fff6;
    transform: scale(1.15);
}
@media (max-width: 900px) {
    .modal-slide-img {
        width: 98vw;
        height: 45vw;
        min-height: 120px;
    }
} 